[03:22:31]ConnectInit Can't connect to host [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step0: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 50073+1722090427=1722140500 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 55 C7 A5 66 BB 03 A5 66 EF [04:21:41]Current date/time: 28.07.2024 04:21 [04:21:41]FM_Init [04:21:41]wFMConnect [04:21:41]MH_SAM_On [04:21:41]Write to MH i2c: E0 00 00 08 00 E7 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_init finished! [04:21:41]*** atr: [04:21:41]*** 0F 3B D5 18 FF 81 91 FE [04:21:41]*** 1F C3 80 73 C8 21 10 0A [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]*** 00 00 00 00 00 00 00 00 [04:21:41]Read from MH i2c: E0 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E0 10 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [04:21:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:21:41]wFMCommunicate request_size=10 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:21:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:21:41]RAPDU: 90 00 [04:21:41]wFMCommunicate OK [04:21:41]wFMCommunicate request_size=4 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 11 00 00 [04:21:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 17 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [04:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:41]wFMCommunicate OK [04:21:41]Detected FM SN is 0000000000874941 [04:21:41]Stored FM SN is 0000000000874941 [04:21:41]wFMCommunicate request_size=9 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 16 00 00 04 FA 44 01 00 [04:21:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:21:41]RAPDU: 90 00 [04:21:41]wFMCommunicate OK [04:21:41]FM PIN OK [04:21:41]wFMCommunicate request_size=8 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 14 04 00 03 02 00 01 [04:21:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:21:41]RAPDU: 90 00 [04:21:41]wFMCommunicate OK [04:21:41]wFMCommunicate request_size=13 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:21:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:21:41]RAPDU: 90 00 [04:21:41]wFMCommunicate OK [04:21:41]wFMCommunicate request_size=4 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 11 00 00 [04:21:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 17 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [04:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:41]wFMCommunicate OK [04:21:41]DocumentArchiveInit [04:21:41]Start Httpd... [04:21:41]Httpd thread 3067436388 created [04:21:41]Write to MH i2c: 01 00 00 0F 00 0F [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: 01 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: 01 07 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:21:41]Allocated Socket 6 [04:21:41]Bind OK [04:21:41]Listen OK [04:21:41]httpd running on port 8080 [04:21:41]Waiting for new connection... [04:21:41]MH Int Process started [04:21:41]OFD Sender: No OFD packet to send [04:21:42]accept exits with 7 [04:21:42]New connection [04:21:42]New thread 3067149668 created [04:21:42]Waiting for new connection... [04:21:42] Sock 7.Parse request [04:21:42]Sock 7.Check first char [04:21:42]Sock 7.First char is OK [04:21:42]request: POST /json_proto HTTP/1.0 [04:21:42]Method: POST [04:21:42]URL: /json_proto [04:21:42]Method is POST - this is cgi request [04:21:42]url: /json_proto [04:21:42]query_string will be loaded in cgi processing [04:21:42]execute_cgi json_proto POST (null) [04:21:42]execute_cgi path=json_proto method=POST [04:21:42]POST find Content-Length [04:21:42]Host: 172.17.45.196:8080 [04:21:42]Content-Length: 215 [04:21:42]Content-Type: application/json [04:21:42] [04:21:42]POST finish read [04:21:42]Found Content-Length = 215 [04:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:42]execute_script... [04:21:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:42]POST & json_proto [04:21:42]process_json_proto [04:21:42]json parsed OK: [04:21:42]protocol is kg_v1.0 [04:21:42]action value=get_value [04:21:42]process_action get_value [04:21:42]cmd_get_value [04:21:42]process_action get_value done [04:21:42]requested_data is exist [04:21:42]produce_requested_data [04:21:42]requested_item kkm.sn is exist - process it [04:21:42]requested_item kkm.ver is exist - process it [04:21:42]requested_item fm.sn is exist - process it [04:21:42]wFMCommunicate request_size=4 [04:21:42]MH_SAM_APDU [04:21:42]CAPDU: 80 11 00 00 [04:21:42]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:21:42]Write i2c OK [04:21:42]MH_I2C_Read... [04:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:42]Read from MH i2c: E2 [04:21:42]MH_I2C_Read... [04:21:42]Read from MH i2c: E2 17 00 [04:21:42]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [04:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:43]wFMCommunicate OK [04:21:43]requested_item fd.num is exist - process it [04:21:43]SAM_PROTO_GetFieldsCounters [04:21:43]wFMCommunicate request_size=4 [04:21:43]MH_SAM_APDU [04:21:43]CAPDU: 80 13 00 00 [04:21:43]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:21:43]Write i2c OK [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 [04:21:43]MH_I2C_Read... [04:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:43]Read from MH i2c: E2 62 00 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [04:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:43]wFMCommunicate OK [04:21:43]SAM_PROTO_GetFieldsCounters done [04:21:43]requested_item shift.num is exist - process it [04:21:43]requested_item shift.opened is exist - process it [04:21:43]req_shift_opened [04:21:43]FM_GetShiftState [04:21:43]SAM_PROTO_GetShiftState [04:21:43]wFMCommunicate request_size=4 [04:21:43]MH_SAM_APDU [04:21:43]CAPDU: 80 13 01 00 [04:21:43]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:21:43]Write i2c OK [04:21:43]MH_I2C_Read... [04:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:43]Read from MH i2c: E2 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 0E 00 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [04:21:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:21:43]wFMCommunicate OK [04:21:43]SAM_PROTO_GetShiftState done [04:21:43]FM_GetShiftState done [04:21:43]req_shift_opened done [04:21:43]requested_item shift.open_date is exist - process it [04:21:43]req_shift_open_date [04:21:43]req_shift_open_date done [04:21:43]produce_requested_data done [04:21:43]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44634,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:21:43]process_action_free get_value [04:21:43]json_value_free [04:21:43]json_value_free done [04:21:43]process_json_proto returns [04:21:43]Send response to host [04:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44634,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:21:43]free response buf [04:21:43]execute_script done [04:21:43]execute_script returns [04:21:43]free content buf [04:21:43]Sock 7.Close socket [04:21:43]Sock 7.Thread stoped [04:21:43]accept exits with 5 [04:21:43]New connection [04:21:43]New thread 3067006308 created [04:21:43]Thread 3067149668 joined [04:21:43]Waiting for new connection... [04:21:43] Sock 5.Parse request [04:21:43]Sock 5.Check first char [04:21:43]Sock 5.First char is OK [04:21:43]request: POST /json_proto HTTP/1.0 [04:21:43]Method: POST [04:21:43]URL: /json_proto [04:21:43]Method is POST - this is cgi request [04:21:43]url: /json_proto [04:21:43]query_string will be loaded in cgi processing [04:21:43]execute_cgi json_proto POST (null) [04:21:43]execute_cgi path=json_proto method=POST [04:21:43]POST find Content-Length [04:21:43]Host: 172.17.45.196:8080 [04:21:43]Content-Length: 331 [04:21:43]Content-Type: application/json [04:21:43] [04:21:43]POST finish read [04:21:43]Found Content-Length = 331 [04:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:21:43]execute_script... [04:21:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [04:21:43]POST & json_proto [04:21:43]process_json_proto [04:21:43]json parsed OK: [04:21:43]protocol is kg_v1.0 [04:21:43]action value=get_value [04:21:43]process_action get_value [04:21:43]cmd_get_value [04:21:43]process_action get_value done [04:21:43]requested_data is exist [04:21:43]produce_requested_data [04:21:43]requested_item fm.sale.total is exist - process it [04:21:43]SAM_PROTO_GetFMData [04:21:43]wFMCommunicate request_size=4 [04:21:43]MH_SAM_APDU [04:21:43]CAPDU: 80 13 03 00 [04:21:43]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:21:43]Write i2c OK [04:21:43]MH_I2C_Read... [04:21:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:21:43]Read from MH i2c: E2 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 FD 00 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 FE AA 00 00 69 04 A0 00 6F 04 04 00 6F AA 00 00 B1 04 04 00 9D 54 08 40 70 04 04 00 A0 C1 9E 3B 72 04 04 00 FD 92 69 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D3 CE CC 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4D FD 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 A3 [04:21:43]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 FE AA 00 00 69 04 A0 00 6F 04 04 00 6F AA 00 00 B1 04 04 00 9D 54 08 40 70 04 04 00 A0 C1 9E 3B 72 04 04 00 FD 92 69 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D3 CE CC 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4D FD 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [04:21:43]wFMCommunicate OK [04:21:43]wFMCommunicate request_size=4 [04:21:43]MH_SAM_APDU [04:21:43]CAPDU: 80 17 00 00 [04:21:43]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:21:43]Write i2c OK [04:21:43]MH_I2C_Read... [04:21:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:43]Read from MH i2c: E2 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 FD 00 [04:21:43]MH_I2C_Read... [04:21:43]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [04:21:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [04:21:43]wFMCommunicate OK [04:21:43]wFMCommunicate request_size=4 [04:21:43]MH_SAM_APDU [04:21:43]CAPDU: 80 17 00 00 [04:21:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:21:43]Write i2c OK [04:21:43]MH_I2C_Read... [04:21:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:44]Read from MH i2c: E2 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 FD 00 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [04:21:44]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [04:21:44]wFMCommunicate OK [04:21:44]wFMCommunicate request_size=4 [04:21:44]MH_SAM_APDU [04:21:44]CAPDU: 80 17 00 00 [04:21:44]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:21:44]Write i2c OK [04:21:44]MH_I2C_Read... [04:21:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:44]Read from MH i2c: E2 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 FD 00 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [04:21:44]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [04:21:44]wFMCommunicate OK [04:21:44]wFMCommunicate request_size=4 [04:21:44]MH_SAM_APDU [04:21:44]CAPDU: 80 17 00 00 [04:21:44]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:21:44]Write i2c OK [04:21:44]MH_I2C_Read... [04:21:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [04:21:44]Read from MH i2c: E2 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 DF 00 [04:21:44]MH_I2C_Read... [04:21:44]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [04:21:44]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [04:21:44]wFMCommunicate OK [04:21:44]SAM_PROTO_GetFMData done [04:21:44]requested_item fm.sale_refund.total is exist - process it [04:21:44]requested_item fm.buy.total is exist - process it [04:21:44]requested_item shift.sale.total is exist - process it [04:21:44]SAM_PROTO_GetShiftData [04:21:44]wFMCommunicate request_size=4 [04:21:44]MH_SAM_APDU [04:21:44]CAPDU: 80 13 02 00 [04:21:44]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04:21:44]Write i2c OK [04:21:44]MH_I2C_Read... [04:21:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:21:45]Read from MH i2c: E2 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 18 00 00 AA 04 AA 04 A6 04 6E 04 04 00 05 00 00 00 69 04 97 00 6F 04 04 00 05 00 00 00 B1 04 03 00 58 92 01 70 04 03 00 58 92 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B9 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 8C [04:21:45]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 05 00 00 00 69 04 97 00 6F 04 04 00 05 00 00 00 B1 04 03 00 58 92 01 70 04 03 00 58 92 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B9 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8F 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [04:21:45]wFMCommunicate OK [04:21:45]wFMCommunicate request_size=4 [04:21:45]MH_SAM_APDU [04:21:45]CAPDU: 80 17 00 00 [04:21:45]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:21:45]Write i2c OK [04:21:45]MH_I2C_Read... [04:21:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:45]Read from MH i2c: E2 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 19 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 BF [04:21:45]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 [04:21:45]wFMCommunicate OK [04:21:45]wFMCommunicate request_size=4 [04:21:45]MH_SAM_APDU [04:21:45]CAPDU: 80 17 00 00 [04:21:45]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:21:45]Write i2c OK [04:21:45]MH_I2C_Read... [04:21:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:45]Read from MH i2c: E2 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 [04:21:45]MH_I2C_Read... [04:21:45]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 4D [04:21:45]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [04:21:45]wFMCommunicate OK [04:21:45]wFMCommunicate request_size=4 [04:21:45]MH_SAM_APDU [04:21:45]CAPDU: 80 17 00 00 [04:21:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:21:45]Write i2c OK [04:21:45]MH_I2C_Read... [04:21:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:21:46]Read from MH i2c: E2 [04:21:46]MH_I2C_Read... [04:21:46]Read from MH i2c: E2 FD 00 [04:21:46]MH_I2C_Read... [04:21:46]Read from MH i2c: E2 FD 00 1B 00 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 0D [04:21:46]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [04:21:46]wFMCommunicate OK [04:21:46]wFMCommunicate request_size=4 [04:21:46]MH_SAM_APDU [04:21:46]CAPDU: 80 17 00 00 [04:21:46]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:21:46]Write i2c OK [04:21:46]MH_I2C_Read... [04:21:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [04:21:46]Read from MH i2c: E2 [04:21:46]MH_I2C_Read... [04:21:46]Read from MH i2c: E2 C7 00 [04:21:46]MH_I2C_Read... [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=47 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 [04:21:48]Write to MH i2c: E2 32 00 23 00 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 00 00 AE [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=15 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 0A 07 04 06 00 00 00 00 00 00 00 [04:21:48]Write to MH i2c: E2 12 00 24 00 80 15 02 00 0A 00 07 04 06 00 00 00 00 00 00 00 00 00 C9 [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=15 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 0A 39 04 06 00 70 17 00 00 00 00 [04:21:48]Write to MH i2c: E2 12 00 25 00 80 15 02 00 0A 00 39 04 06 00 70 17 00 00 00 00 00 00 83 [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=11 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [04:21:48]Write to MH i2c: E2 0E 00 26 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 D8 [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=13 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 08 F4 03 04 00 5C C7 A5 66 [04:21:48]Write to MH i2c: E2 10 00 27 00 80 15 02 00 08 00 F4 03 04 00 5C C7 A5 66 00 00 E0 [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=25 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [04:21:48]Write to MH i2c: E2 1C 00 28 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 0C [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:21:48]Read from MH i2c: E2 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 [04:21:48]MH_I2C_Read... [04:21:48]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [04:21:48]RAPDU: 90 00 [04:21:48]wFMCommunicate OK [04:21:48]wFMCommunicate request_size=4 [04:21:48]MH_SAM_APDU [04:21:48]CAPDU: 80 15 03 00 [04:21:48]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [04:21:48]Write i2c OK [04:21:48]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 40 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 35 04 06 00 74 4F EC 98 72 06 90 00 1E [04:21:49]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 35 04 06 00 74 4F EC 98 72 06 90 00 [04:21:49]wFMCommunicate OK [04:21:49]SAM_PROTO_ProcessDocument answer len = 59 [04:21:49]SAM_PROTO_ProcessDocument done [04:21:49]SetTLVBufToDocument [04:21:49]Processing tag 1209 (04B9) [04:21:49]Malloc new data [04:21:49]Processing tag 1041 (0411) [04:21:49]Processing tag 1040 (0410) [04:21:49]Malloc new data [04:21:49]Processing tag 1038 (040E) [04:21:49]Malloc new data [04:21:49]Processing tag 1042 (0412) [04:21:49]Malloc new data [04:21:49]Processing tag 1077 (0435) [04:21:49]Malloc new data [04:21:49]SetTLVBufToDocument err=0 [04:21:49]KKMLoadAndSignReceiptData store KKM data [04:21:49]KKMLoadAndSignReceiptData err=0 [04:21:49]wFMCommunicate request_size=4 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 11 00 00 [04:21:49]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 17 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F8 [04:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:49]wFMCommunicate OK [04:21:49]Счет N : (3)14527 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4700003610560 Вода Энесай 5л. 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 6 28.07.2024 04:21 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44635 ФПД: 127886620652038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042148&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44635&fm=127886620652038&tin=02508201610067®Number=0000000000092655&sum=6000 0 [04:21:49]StoreToDocumentArchive [04:21:49]shift 430 fd 44635 [04:21:49]save to /storage/0430/doc_00044635 [04:21:49]save last doc name /storage/0430/doc_00044635 to /storage/kkm_last_doc_name [04:21:49]save OK [04:21:49]Clear old archive folders... [04:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [04:21:49]tlvbuf is 01FFDF80 [04:21:49]SAM_PROTO_ClearQueue [04:21:49]wFMCommunicate request_size=4 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 09 00 00 [04:21:49]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:21:49]RAPDU: 90 00 [04:21:49]wFMCommunicate OK [04:21:49]SAM_PROTO_ClearQueue done [04:21:49]KKMCreateOFDPacket [04:21:49]OFDProtocolAddRootSTLVToBuf [04:21:49]FM_MakeSignedData [04:21:49]FM_MakeSignedData [04:21:49]SAM_PROTO_SignData [04:21:49]wFMCommunicate request_size=4 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 0D 01 02 [04:21:49]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:21:49]RAPDU: 90 00 [04:21:49]wFMCommunicate OK [04:21:49]wFMCommunicate request_size=255 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [04:21:49]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 89 [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:21:49]RAPDU: 90 00 [04:21:49]wFMCommunicate OK [04:21:49]wFMCommunicate request_size=27 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 0D 02 02 16 34 39 34 31 10 04 04 00 5B AE 00 00 35 04 06 00 74 4F EC 98 72 06 [04:21:49]Write to MH i2c: E2 1E 00 2E 00 80 0D 02 02 16 00 34 39 34 31 10 04 04 00 5B AE 00 00 35 04 06 00 74 4F EC 98 72 06 00 00 C5 [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:21:49]RAPDU: 90 00 [04:21:49]wFMCommunicate OK [04:21:49]wFMCommunicate request_size=4 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 0D 03 02 [04:21:49]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:21:49]Write i2c OK [04:21:49]MH_I2C_Read... [04:21:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:49]Read from MH i2c: E2 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 0B 00 [04:21:49]MH_I2C_Read... [04:21:49]Read from MH i2c: E2 0B 00 2F 00 00 19 A4 39 59 34 F3 04 9F 90 00 C4 [04:21:49]RAPDU: 19 A4 39 59 34 F3 04 9F 90 00 [04:21:49]wFMCommunicate OK [04:21:49]SAM_PROTO_SignData done [04:21:49]FM_MakeSignedData done [04:21:49]CreateOFDProtocolMessage [04:21:49]wFMCommunicate request_size=4 [04:21:49]MH_SAM_APDU [04:21:49]CAPDU: 80 11 00 00 [04:21:49]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:50]Read from MH i2c: E2 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 17 00 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [04:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:50]wFMCommunicate OK [04:21:50]CreateOFDProtocolMessage done [04:21:50]OFDSenderStorePacket 44635 [04:21:50]StoreOFDPacket docnum=44635 [04:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 17 6A 18 01 40 1B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5B AE 00 00 35 04 06 00 74 4F EC 98 72 06 19 A4 39 59 34 F3 04 9F [04:21:50]CheckFolder [04:21:50]dirname=/storage/ofd_packets [04:21:50]CheckFolder done [04:21:50]ProducePacketName [04:21:50]name=ofd_packets/00044635 [04:21:50]NVStorageSaveData ofd_packets/00044635 [04:21:50]File name is /storage/ofd_packets/00044635 [04:21:50]Write 318 bytes [04:21:50]NVStorageSaveData done [04:21:50]OFDSenderStorePacket done [04:21:50]KKMCreateOFDPacket done [04:21:50]NVStorageSaveData kkm_last_timestamp [04:21:50]File name is /storage/kkm_last_timestamp [04:21:50]Write 4 bytes [04:21:50]NVStorageSaveData done [04:21:50]ExternCall_PrintAddStr [04:21:50]wPrintStart [04:21:50]Write to MH i2c: 01 00 00 31 00 31 [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 07 00 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:21:50]RasterBufferAndPrint [04:21:50]line Счет N : (3)14527 [04:21:50]line ИНН: 02508201610067 [04:21:50]line Контрольно-Кассовый Чек [04:21:50]line ПРОДАЖА [04:21:50]line Товар: 4700003610560 [04:21:50]line Вода Энесай 5л. [04:21:50]line 1.000 * 60.00 [04:21:50]line = 60.00 [04:21:50]line НДС 12% НСП 1% [04:21:50]line > о реализуемом товаре [04:21:50]line ИТОГО: 60.00 [04:21:50]line НСП 1% : 0.53 [04:21:50]line НДС 12% : 6.37 [04:21:50]line Наличными: 0.00 [04:21:50]line Безнал.: 60.00 [04:21:50]line Место: АЗС № 128 "Партнер Нефть" [04:21:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:21:50]line СНО: Общий режим [04:21:50]line Чек 6 28.07.2024 04:21 [04:21:50]line Смена: 430 ФФД: 1.0 [04:21:50]line ЗНМ: 0300000045 [04:21:50]line РНМ: 0000000000092655 [04:21:50]line Версия ККМ: 001 [04:21:50]line Платежная система: Бакай Банк [04:21:50]line ФМ: 0000000000874941 [04:21:50]line ФД: 44635 [04:21:50]line ФПД: 127886620652038 [04:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042148&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44635&fm=127886620652038&tin=02508201610067®Number=0000000000092655&sum=6000 [04:21:50]line 0 [04:21:50]written 0, free lines is 4095 [04:21:50]OFD Sender: Processing packet 44635 [packets to send 7, broken 6] [04:21:50]ProducePacketName [04:21:50]name=ofd_packets/00044635 [04:21:50]OFD Sender: To server: pG, [04:21:50]CommunicateWithHost lk.salyk.kg:30040 [04:21:50]ConnectInit lk.salyk.kg [04:21:50]Connected sock=10 [04:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 17 6A 18 01 40 1B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5B AE 00 00 35 04 06 00 74 4F EC 98 72 06 19 A4 39 59 34 F3 04 9F [04:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 7C 84 47 00 0F 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5B AE 00 00 F4 03 04 00 6F 73 A5 66 B6 04 01 00 00 7F 5D C9 77 ED B7 B4 BA [04:21:50]CommunicateWithHost err = 0 [04:21:50]CheckOFDResponse [04:21:50]1017 (14) - 77093643461234 [04:21:50]1041 (16) - 0000000000874941 [04:21:50]1040 (4) - 44635 [04:21:50]1012 (4) - 27.07.2024 22:23 [04:21:50]1206 (1) - 0 [04:21:50]OFD Sender: Remove packet 44635 [04:21:50]ProducePacketName [04:21:50]name=ofd_packets/00044635 [04:21:50]NVStorageDeleteData [04:21:50]Write to MH i2c: 01 00 00 5B 00 5B [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 07 00 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 31 0D A0 [04:21:50]RasterBufferAndPrint [04:21:50]line [04:21:50]line [04:21:50]line [04:21:50]line [04:21:50]line [04:21:50]written 0, free lines is 3390 [04:21:50]process_action close_receipt done [04:21:50]requested_data is exist [04:21:50]produce_requested_data [04:21:50]requested_item fm.sn is exist - process it [04:21:50]wFMCommunicate request_size=4 [04:21:50]MH_SAM_APDU [04:21:50]CAPDU: 80 11 00 00 [04:21:50]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:50]Read from MH i2c: E2 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 17 00 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 30 [04:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:50]wFMCommunicate OK [04:21:50]requested_item fd.num is exist - process it [04:21:50]SAM_PROTO_GetFieldsCounters [04:21:50]wFMCommunicate request_size=4 [04:21:50]MH_SAM_APDU [04:21:50]CAPDU: 80 13 00 00 [04:21:50]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:50]Read from MH i2c: E2 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 62 00 [04:21:50]MH_I2C_Read... [04:21:50]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [04:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:50]wFMCommunicate OK [04:21:50]SAM_PROTO_GetFieldsCounters done [04:21:50]requested_item shift.num is exist - process it [04:21:50]requested_item shift.opened is exist - process it [04:21:50]req_shift_opened [04:21:50]FM_GetShiftState [04:21:50]SAM_PROTO_GetShiftState [04:21:50]wFMCommunicate request_size=4 [04:21:50]MH_SAM_APDU [04:21:50]CAPDU: 80 13 01 00 [04:21:50]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [04:21:50]Write i2c OK [04:21:50]MH_I2C_Read... [04:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:51]Read from MH i2c: E2 [04:21:51]MH_I2C_Read... [04:21:51]Read from MH i2c: E2 0E 00 [04:21:51]MH_I2C_Read... [04:21:51]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7A [04:21:51]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:21:51]wFMCommunicate OK [04:21:51]SAM_PROTO_GetShiftState done [04:21:51]FM_GetShiftState done [04:21:51]req_shift_opened done [04:21:51]requested_item shift.open_date is exist - process it [04:21:51]req_shift_open_date [04:21:51]req_shift_open_date done [04:21:51]produce_requested_data done [04:21:51]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44635,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:21:51]process_action_free close_receipt [04:21:51]json_value_free [04:21:51]json_value_free done [04:21:51]process_json_proto returns [04:21:51]Send response to host [04:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44635,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:21:51]free response buf [04:21:51]execute_script done [04:21:51]execute_script returns [04:21:51]free content buf [04:21:51]Sock 7.Close socket [04:21:51]Sock 7.Thread stoped [04:21:51]OFD Sender: No OFD packet to send [04:21:51]accept exits with 5 [04:21:51]New connection [04:21:51]New thread 3067006308 created [04:21:51]Thread 3067149668 joined [04:21:51]Waiting for new connection... [04:21:51] Sock 5.Parse request [04:21:51]Sock 5.Check first char [04:21:52]Sock 5.First char is OK [04:21:52]request: POST /json_proto HTTP/1.0 [04:21:52]Method: POST [04:21:52]URL: /json_proto [04:21:52]Method is POST - this is cgi request [04:21:52]url: /json_proto [04:21:52]query_string will be loaded in cgi processing [04:21:52]execute_cgi json_proto POST (null) [04:21:52]execute_cgi path=json_proto method=POST [04:21:52]POST find Content-Length [04:21:52]Host: 172.17.45.196:8080 [04:21:52]Content-Length: 629 [04:21:52]Content-Type: application/json [04:21:52] [04:21:52]POST finish read [04:21:52]Found Content-Length = 629 [04:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14528", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:52]execute_script... [04:21:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14528", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:52]POST & json_proto [04:21:52]process_json_proto [04:21:52]json parsed OK: [04:21:52]protocol is kg_v1.0 [04:21:52]action value=close_receipt [04:21:52]process_action close_receipt [04:21:52]cmd_close_receipt [04:21:52]MH_GetDate [04:21:52]Write to MH i2c: F0 00 00 65 00 54 [04:21:52]Write i2c OK [04:21:52]MH_I2C_Read... [04:21:52]Read from MH i2c: F0 [04:21:52]MH_I2C_Read... [04:21:52]Read from MH i2c: F0 09 00 [04:21:52]MH_I2C_Read... [04:21:52]Read from MH i2c: F0 09 00 65 00 00 60 C7 A5 66 BB 03 A5 66 58 [04:21:52]GetLastDocTimeStamp 1722140508 [04:21:52]current date 1722140512 [04:21:52]FM_GetShiftState [04:21:52]SAM_PROTO_GetShiftState [04:21:52]wFMCommunicate request_size=4 [04:21:52]MH_SAM_APDU [04:21:52]CAPDU: 80 13 01 00 [04:21:52]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [04:21:52]Write i2c OK [04:21:52]MH_I2C_Read... [04:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:52]Read from MH i2c: E2 [04:21:52]MH_I2C_Read... [04:21:52]Read from MH i2c: E2 0E 00 [04:21:52]MH_I2C_Read... [04:21:52]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7C [04:21:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:21:52]wFMCommunicate OK [04:21:52]SAM_PROTO_GetShiftState done [04:21:52]FM_GetShiftState done [04:21:52]opened in 1722126323 [04:21:52]opened+sec_in_day 1722212723 [04:21:52]quantity*price = 10000 [04:21:52]sum+1 = 10001 [04:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 7 28.07.2024 04:21 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44636 ФПД: 235872038070678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042152&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44636&fm=235872038070678&tin=02508201610067®Number=0000000000092655&sum=10000 0 [04:21:54]StoreToDocumentArchive [04:21:54]shift 430 fd 44636 [04:21:54]save to /storage/0430/doc_00044636 [04:21:54]save last doc name /storage/0430/doc_00044636 to /storage/kkm_last_doc_name [04:21:54]save OK [04:21:54]Clear old archive folders... [04:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=270 [04:21:54]tlvbuf is 0200BA30 [04:21:54]SAM_PROTO_ClearQueue [04:21:54]wFMCommunicate request_size=4 [04:21:54]MH_SAM_APDU [04:21:54]CAPDU: 80 09 00 00 [04:21:54]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:54]Read from MH i2c: E2 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [04:21:54]RAPDU: 90 00 [04:21:54]wFMCommunicate OK [04:21:54]SAM_PROTO_ClearQueue done [04:21:54]KKMCreateOFDPacket [04:21:54]OFDProtocolAddRootSTLVToBuf [04:21:54]FM_MakeSignedData [04:21:54]FM_MakeSignedData [04:21:54]SAM_PROTO_SignData [04:21:54]wFMCommunicate request_size=4 [04:21:54]MH_SAM_APDU [04:21:54]CAPDU: 80 0D 01 02 [04:21:54]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:54]Read from MH i2c: E2 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [04:21:54]RAPDU: 90 00 [04:21:54]wFMCommunicate OK [04:21:54]wFMCommunicate request_size=255 [04:21:54]MH_SAM_APDU [04:21:54]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 60 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [04:21:54]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 60 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 13 [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:54]Read from MH i2c: E2 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [04:21:54]RAPDU: 90 00 [04:21:54]wFMCommunicate OK [04:21:54]wFMCommunicate request_size=29 [04:21:54]MH_SAM_APDU [04:21:54]CAPDU: 80 0D 02 02 18 38 37 34 39 34 31 10 04 04 00 5C AE 00 00 35 04 06 00 D6 86 3D 0A A9 96 [04:21:54]Write to MH i2c: E2 20 00 76 00 80 0D 02 02 18 00 38 37 34 39 34 31 10 04 04 00 5C AE 00 00 35 04 06 00 D6 86 3D 0A A9 96 00 00 A4 [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:21:55]RAPDU: 90 00 [04:21:55]wFMCommunicate OK [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 0D 03 02 [04:21:55]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 0B 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 0B 00 77 00 00 ED 87 A2 B4 2A F7 84 79 90 00 DB [04:21:55]RAPDU: ED 87 A2 B4 2A F7 84 79 90 00 [04:21:55]wFMCommunicate OK [04:21:55]SAM_PROTO_SignData done [04:21:55]FM_MakeSignedData done [04:21:55]CreateOFDProtocolMessage [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 11 00 00 [04:21:55]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:55]Read from MH i2c: E2 17 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 46 [04:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:21:55]wFMCommunicate OK [04:21:55]CreateOFDProtocolMessage done [04:21:55]OFDSenderStorePacket 44636 [04:21:55]StoreOFDPacket docnum=44636 [04:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 9A 98 1A 01 52 EF 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 60 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5C AE 00 00 35 04 06 00 D6 86 3D 0A A9 96 ED 87 A2 B4 2A F7 84 79 [04:21:55]CheckFolder [04:21:55]dirname=/storage/ofd_packets [04:21:55]CheckFolder done [04:21:55]ProducePacketName [04:21:55]name=ofd_packets/00044636 [04:21:55]NVStorageSaveData ofd_packets/00044636 [04:21:55]File name is /storage/ofd_packets/00044636 [04:21:55]Write 320 bytes [04:21:55]NVStorageSaveData done [04:21:55]OFDSenderStorePacket done [04:21:55]KKMCreateOFDPacket done [04:21:55]NVStorageSaveData kkm_last_timestamp [04:21:55]File name is /storage/kkm_last_timestamp [04:21:55]Write 4 bytes [04:21:55]NVStorageSaveData done [04:21:55]ExternCall_PrintAddStr [04:21:55]wPrintStart [04:21:55]Write to MH i2c: 01 00 00 79 00 79 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [04:21:55]RasterBufferAndPrint [04:21:55]line Счет N : (3)14528 [04:21:55]line ИНН: 02508201610067 [04:21:55]line Контрольно-Кассовый Чек [04:21:55]line ПРОДАЖА [04:21:55]line Товар: 4700000480814 [04:21:55]line Пиво Живое 0,5 ст [04:21:55]line 1.000 * 100.00 [04:21:55]line = 100.00 [04:21:55]line НДС 12% НСП 1% [04:21:55]line > о реализуемом товаре [04:21:55]line ИТОГО: 100.00 [04:21:55]line НСП 1% : 0.88 [04:21:55]line НДС 12% : 10.62 [04:21:55]line Наличными: 100.00 [04:21:55]line Безнал.: 0.00 [04:21:55]line Место: АЗС № 128 "Партнер Нефть" [04:21:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:21:55]line СНО: Общий режим [04:21:55]line Чек 7 28.07.2024 04:21 [04:21:55]line Смена: 430 ФФД: 1.0 [04:21:55]line ЗНМ: 0300000045 [04:21:55]line РНМ: 0000000000092655 [04:21:55]line Версия ККМ: 001 [04:21:55]line ФМ: 0000000000874941 [04:21:55]line ФД: 44636 [04:21:55]line ФПД: 235872038070678 [04:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042152&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44636&fm=235872038070678&tin=02508201610067®Number=0000000000092655&sum=10000 [04:21:55]line 0 [04:21:55]written 0, free lines is 4095 [04:21:55]OFD Sender: Processing packet 44636 [packets to send 7, broken 6] [04:21:55]ProducePacketName [04:21:55]name=ofd_packets/00044636 [04:21:55]OFD Sender: To server: pG, [04:21:55]CommunicateWithHost lk.salyk.kg:30040 [04:21:55]ConnectInit lk.salyk.kg [04:21:55]Connected sock=10 [04:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 9A 98 1A 01 52 EF 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 60 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5C AE 00 00 35 04 06 00 D6 86 3D 0A A9 96 ED 87 A2 B4 2A F7 84 79 [04:21:55]Write to MH i2c: 01 00 00 A1 00 A1 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FE 0C B2 [04:21:55]RasterBufferAndPrint [04:21:55]line [04:21:55]line [04:21:55]line [04:21:55]line [04:21:55]line [04:21:55]written 0, free lines is 3354 [04:21:55]process_action close_receipt done [04:21:55]requested_data is exist [04:21:55]produce_requested_data [04:21:55]requested_item fm.sn is exist - process it [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 11 00 00 [04:21:55]Write to MH i2c: E2 08 00 A8 00 80 11 00 00 00 00 00 00 22 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 17 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 17 00 A8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 76 [04:21:55]RAPDU: 11 04 10 00 30 30 30 Received data: 30 87 30 95 30 F6 30 70 30 47 30 2C 30 01 38 00 37 30 34 30 39 30 34 30 30 31 30 90 30 00 30 [04:21:55]30 wFMCommunicate OK [04:21:55]30 requested_item fd.num is exist - process it [04:21:55]38 SAM_PROTO_GetFieldsCounters [04:21:55]37 wFMCommunicate request_size=4 [04:21:55]34 MH_SAM_APDU [04:21:55]39 CAPDU: 34 80 31 13 4F 00 00 00 00 [04:21:55]00 Write to MH i2c: DA E2 56 08 47 00 00 91 A9 CB 00 A5 80 07 13 01 00 00 00 07 00 00 00 3B 00 00 00 F9 25 03 [04:21:55]0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5C AE 00 00 F4 03 04 00 75 73 A5 66 B6 04 01 00 00 C6 D1 FC 70 F0 E3 08 CB [04:21:55]CommunicateWithHost err = 0 [04:21:55]CheckOFDResponse [04:21:55]1017 (14) - 77093643461234 [04:21:55]1041 (16) - 0000000000874941 [04:21:55]1040 (4) - 44636 [04:21:55]1012 (4) - 27.07.2024 22:23 [04:21:55]1206 (1) - 0 [04:21:55]OFD Sender: Remove packet 44636 [04:21:55]ProducePacketName [04:21:55]name=ofd_packets/00044636 [04:21:55]NVStorageDeleteData [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:56]Read from MH i2c: E2 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: E2 62 00 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: E2 62 00 A9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [04:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:56]wFMCommunicate OK [04:21:56]SAM_PROTO_GetFieldsCounters done [04:21:56]requested_item shift.num is exist - process it [04:21:56]requested_item shift.opened is exist - process it [04:21:56]req_shift_opened [04:21:56]FM_GetShiftState [04:21:56]SAM_PROTO_GetShiftState [04:21:56]wFMCommunicate request_size=4 [04:21:56]MH_SAM_APDU [04:21:56]CAPDU: 80 13 01 00 [04:21:56]Write to MH i2c: E2 08 00 AA 00 80 13 01 00 00 00 00 00 27 [04:21:56]Write i2c OK [04:21:56]MH_I2C_Read... [04:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:56]Read from MH i2c: E2 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: E2 0E 00 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: E2 0E 00 AA 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C0 [04:21:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:21:56]wFMCommunicate OK [04:21:56]SAM_PROTO_GetShiftState done [04:21:56]FM_GetShiftState done [04:21:56]req_shift_opened done [04:21:56]requested_item shift.open_date is exist - process it [04:21:56]req_shift_open_date [04:21:56]req_shift_open_date done [04:21:56]produce_requested_data done [04:21:56]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44636,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:21:56]process_action_free close_receipt [04:21:56]json_value_free [04:21:56]json_value_free done [04:21:56]process_json_proto returns [04:21:56]Send response to host [04:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44636,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:21:56]free response buf [04:21:56]execute_script done [04:21:56]execute_script returns [04:21:56]free content buf [04:21:56]Sock 5.Close socket [04:21:56]Sock 5.Thread stoped [04:21:56]OFD Sender: No OFD packet to send [04:21:57]accept exits with 9 [04:21:57]New connection [04:21:57]New thread 3067149668 created [04:21:57]Thread 3067006308 joined [04:21:57]Waiting for new connection... [04:21:57] Sock 9.Parse request [04:21:57]Sock 9.Check first char [04:21:57]Sock 9.First char is OK [04:21:57]request: POST /json_proto HTTP/1.0 [04:21:57]Method: POST [04:21:57]URL: /json_proto [04:21:57]Method is POST - this is cgi request [04:21:57]url: /json_proto [04:21:57]query_string will be loaded in cgi processing [04:21:57]execute_cgi json_proto POST (null) [04:21:57]execute_cgi path=json_proto method=POST [04:21:57]POST find Content-Length [04:21:57]Host: 172.17.45.196:8080 [04:21:57]Content-Length: 613 [04:21:57]Content-Type: application/json [04:21:57] [04:21:57]POST finish read [04:21:57]Found Content-Length = 613 [04:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14529", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:57]execute_script... [04:21:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14529", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:57]POST & json_proto [04:21:57]process_json_proto [04:21:57]json parsed OK: [04:21:57]protocol is kg_v1.0 [04:21:57]action value=close_receipt [04:21:57]process_action close_receipt [04:21:57]cmd_close_receipt [04:21:57]MH_GetDate [04:21:57]Write to MH i2c: F0 00 00 AB 00 9A [04:21:57]Write i2c OK [04:21:57]MH_I2C_Read... [04:21:57]Read from MH i2c: F0 [04:21:57]MH_I2C_Read... [04:21:57]Read from MH i2c: F0 09 00 [04:21:57]MH_I2C_Read... [04:21:57]Read from MH i2c: F0 09 00 AB 00 00 65 C7 A5 66 BB 03 A5 66 A3 [04:21:57]GetLastDocTimeStamp 1722140512 [04:21:57]current date 1722140517 [04:21:57]FM_GetShiftState [04:21:57]SAM_PROTO_GetShiftState [04:21:57]wFMCommunicate request_size=4 [04:21:57]MH_SAM_APDU [04:21:57]CAPDU: 80 13 01 00 [04:21:57]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [04:21:57]Write i2c OK [04:21:57]MH_I2C_Read... [04:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:57]Read from MH i2c: E2 [04:21:57]MH_I2C_Read... [04:21:57]Read from MH i2c: E2 0E 00 [04:21:57]MH_I2C_Read... [04:21:57]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C2 [04:21:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:21:57]wFMCommunicate OK [04:21:57]SAM_PROTO_GetShiftState done [04:21:57]FM_GetShiftState done [04:21:57]opened in 1722126323 [04:21:57]opened+sec_in_day 1722212723 [04:21:57]quantity*price = 11100 [04:21:57]sum+1 = 11101 [04:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 8 28.07.2024 04:21 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44637 ФПД: 239816279519707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042157&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44637&fm=239816279519707&tin=02508201610067®Number=0000000000092655&sum=11100 0 [04:21:59]StoreToDocumentArchive [04:21:59]shift 430 fd 44637 [04:21:59]save to /storage/0430/doc_00044637 [04:21:59]save last doc name /storage/0430/doc_00044637 to /storage/kkm_last_doc_name [04:21:59]save OK [04:21:59]Clear old archive folders... [04:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=266 [04:21:59]tlvbuf is 02032800 [04:21:59]SAM_PROTO_ClearQueue [04:21:59]wFMCommunicate request_size=4 [04:21:59]MH_SAM_APDU [04:21:59]CAPDU: 80 09 00 00 [04:21:59]Write to MH i2c: E2 08 00 B9 00 80 09 00 00 00 00 00 00 2B [04:21:59]Write i2c OK [04:21:59]MH_I2C_Read... [04:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:59]Read from MH i2c: E2 [04:21:59]MH_I2C_Read... [04:21:59]Read from MH i2c: E2 03 00 [04:21:59]MH_I2C_Read... [04:21:59]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [04:21:59]RAPDU: 90 00 [04:21:59]wFMCommunicate OK [04:21:59]SAM_PROTO_ClearQueue done [04:21:59]KKMCreateOFDPacket [04:21:59]OFDProtocolAddRootSTLVToBuf [04:21:59]FM_MakeSignedData [04:21:59]FM_MakeSignedData [04:21:59]SAM_PROTO_SignData [04:21:59]wFMCommunicate request_size=4 [04:21:59]MH_SAM_APDU [04:21:59]CAPDU: 80 0D 01 02 [04:21:59]Write to MH i2c: E2 08 00 BA 00 80 0D 01 02 00 00 00 00 33 [04:21:59]Write i2c OK [04:21:59]MH_I2C_Read... [04:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:59]Read from MH i2c: E2 [04:21:59]MH_I2C_Read... [04:21:59]Read from MH i2c: E2 03 00 [04:21:59]MH_I2C_Read... [04:21:59]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [04:21:59]RAPDU: 90 00 [04:21:59]wFMCommunicate OK [04:21:59]wFMCommunicate request_size=255 [04:21:59]MH_SAM_APDU [04:21:59]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [04:21:59]Write to MH i2c: E2 02 01 BB 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 3E [04:21:59]Write i2c OK [04:21:59]MH_I2C_Read... [04:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:00]Read from MH i2c: E2 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 03 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [04:22:00]RAPDU: 90 00 [04:22:00]wFMCommunicate OK [04:22:00]wFMCommunicate request_size=25 [04:22:00]MH_SAM_APDU [04:22:00]CAPDU: 80 0D 02 02 14 34 31 10 04 04 00 5D AE 00 00 35 04 06 00 DA 1C 94 26 F1 DB [04:22:00]Write to MH i2c: E2 1C 00 BC 00 80 0D 02 02 14 00 34 31 10 04 04 00 5D AE 00 00 35 04 06 00 DA 1C 94 26 F1 DB 00 00 A1 [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:00]Read from MH i2c: E2 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 03 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [04:22:00]RAPDU: 90 00 [04:22:00]wFMCommunicate OK [04:22:00]wFMCommunicate request_size=4 [04:22:00]MH_SAM_APDU [04:22:00]CAPDU: 80 0D 03 02 [04:22:00]Write to MH i2c: E2 08 00 BD 00 80 0D 03 02 00 00 00 00 38 [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:00]Read from MH i2c: E2 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 0B 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 0B 00 BD 00 00 19 21 EC 14 7A DB 53 BA 90 00 D5 [04:22:00]RAPDU: 19 21 EC 14 7A DB 53 BA 90 00 [04:22:00]wFMCommunicate OK [04:22:00]SAM_PROTO_SignData done [04:22:00]FM_MakeSignedData done [04:22:00]CreateOFDProtocolMessage [04:22:00]wFMCommunicate request_size=4 [04:22:00]MH_SAM_APDU [04:22:00]CAPDU: 80 11 00 00 [04:22:00]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:00]Read from MH i2c: E2 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 17 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8C [04:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:00]wFMCommunicate OK [04:22:00]CreateOFDProtocolMessage done [04:22:00]OFDSenderStorePacket 44637 [04:22:00]StoreOFDPacket docnum=44637 [04:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 1D 68 16 01 78 91 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5D AE 00 00 35 04 06 00 DA 1C 94 26 F1 DB 19 21 EC 14 7A DB 53 BA [04:22:00]CheckFolder [04:22:00]dirname=/storage/ofd_packets [04:22:00]CheckFolder done [04:22:00]ProducePacketName [04:22:00]name=ofd_packets/00044637 [04:22:00]NVStorageSaveData ofd_packets/00044637 [04:22:00]File name is /storage/ofd_packets/00044637 [04:22:00]Write 316 bytes [04:22:00]NVStorageSaveData done [04:22:00]OFDSenderStorePacket done [04:22:00]KKMCreateOFDPacket done [04:22:00]NVStorageSaveData kkm_last_timestamp [04:22:00]File name is /storage/kkm_last_timestamp [04:22:00]Write 4 bytes [04:22:00]NVStorageSaveData done [04:22:00]ExternCall_PrintAddStr [04:22:00]wPrintStart [04:22:00]Write to MH i2c: 01 00 00 BF 00 BF [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 07 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 07 00 BF 00 00 00 00 00 00 FF 0F D4 [04:22:00]RasterBufferAndPrint [04:22:00]line Счет N : (3)14529 [04:22:00]line ИНН: 02508201610067 [04:22:00]line Контрольно-Кассовый Чек [04:22:00]line ПРОДАЖА [04:22:00]line Товар: 4870001570071 [04:22:00]line Напиток Pepsi 1л [04:22:00]line 1.000 * 111.00 [04:22:00]line = 111.00 [04:22:00]line НДС 12% НСП 1% [04:22:00]line > о реализуемом товаре [04:22:00]line ИТОГО: 111.00 [04:22:00]line НСП 1% : 0.98 [04:22:00]line НДС 12% : 11.79 [04:22:00]line Наличными: 111.00 [04:22:00]line Безнал.: 0.00 [04:22:00]line Место: АЗС № 128 "Партнер Нефть" [04:22:00]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:00]line СНО: Общий режим [04:22:00]line Чек 8 28.07.2024 04:21 [04:22:00]line Смена: 430 ФФД: 1.0 [04:22:00]line ЗНМ: 0300000045 [04:22:00]line РНМ: 0000000000092655 [04:22:00]line Версия ККМ: 001 [04:22:00]line ФМ: 0000000000874941 [04:22:00]line ФД: 44637 [04:22:00]line ФПД: 239816279519707 [04:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042157&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44637&fm=239816279519707&tin=02508201610067®Number=0000000000092655&sum=11100 [04:22:00]OFD Sender: Processing packet 44637 [packets to send 7, broken 6] [04:22:00]ProducePacketName [04:22:00]name=ofd_packets/00044637 [04:22:00]OFD Sender: To server: pG, [04:22:00]CommunicateWithHost lk.salyk.kg:30040 [04:22:00]ConnectInit lk.salyk.kg [04:22:00]line 0 [04:22:00]written 0, free lines is 4095 [04:22:00]Write to MH i2c: 01 00 00 E7 00 E7 [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 07 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 E9 0C E3 [04:22:00]RasterBufferAndPrint [04:22:00]line [04:22:00]line [04:22:00]line [04:22:00]line [04:22:00]line [04:22:00]written 0, free lines is 3337 [04:22:00]process_action close_receipt done [04:22:00]requested_data is exist [04:22:00]produce_requested_data [04:22:00]requested_item fm.sn is exist - process it [04:22:00]wFMCommunicate request_size=4 [04:22:00]MH_SAM_APDU [04:22:00]CAPDU: 80 11 00 00 [04:22:00]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [04:22:00]Write i2c OK [04:22:00]MH_I2C_Read... [04:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:00]Read from MH i2c: E2 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 17 00 [04:22:00]MH_I2C_Read... [04:22:00]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BC [04:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:00]wFMCommunicate OK [04:22:00]requested_item fd.num is exist - process it [04:22:00]SAM_PROTO_GetFieldsCounters [04:22:00]wFMCommunicate request_size=4 [04:22:00]MH_SAM_APDU [04:22:00]CAPDU: 80 13 00 00 [04:22:00]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [04:22:01]Write i2c OK [04:22:01]MH_I2C_Read... [04:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:01]Read from MH i2c: E2 [04:22:01]MH_I2C_Read... [04:22:01]Read from MH i2c: E2 62 00 [04:22:01]MH_I2C_Read... [04:22:01]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [04:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:01]wFMCommunicate OK [04:22:01]SAM_PROTO_GetFieldsCounters done [04:22:01]requested_item shift.num is exist - process it [04:22:01]requested_item shift.opened is exist - process it [04:22:01]req_shift_opened [04:22:01]FM_GetShiftState [04:22:01]SAM_PROTO_GetShiftState [04:22:01]wFMCommunicate request_size=4 [04:22:01]MH_SAM_APDU [04:22:01]CAPDU: 80 13 01 00 [04:22:01]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [04:22:01]Write i2c OK [04:22:01]MH_I2C_Read... [04:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:01]Read from MH i2c: E2 [04:22:01]MH_I2C_Read... [04:22:01]Read from MH i2c: E2 0E 00 [04:22:01]MH_I2C_Read... [04:22:01]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 06 [04:22:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:01]wFMCommunicate OK [04:22:01]SAM_PROTO_GetShiftState done [04:22:01]FM_GetShiftState done [04:22:01]req_shift_opened done [04:22:01]requested_item shift.open_date is exist - process it [04:22:01]req_shift_open_date [04:22:01]req_shift_open_date done [04:22:01]produce_requested_data done [04:22:01]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44637,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:01]process_action_free close_receipt [04:22:01]json_value_free [04:22:01]json_value_free done [04:22:01]process_json_proto returns [04:22:01]Send response to host [04:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44637,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:01]free response buf [04:22:01]execute_script done [04:22:01]execute_script returns [04:22:01]free content buf [04:22:01]Sock 9.Close socket [04:22:01]Sock 9.Thread stoped [04:22:01]Connected sock=10 [04:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 1D 68 16 01 78 91 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5D AE 00 00 35 04 06 00 DA 1C 94 26 F1 DB 19 21 EC 14 7A DB 53 BA [04:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 62 8E 47 00 1B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5D AE 00 00 F4 03 04 00 7B 73 A5 66 B6 04 01 00 00 64 49 E6 9A 2F 04 2C 87 [04:22:01]CommunicateWithHost err = 0 [04:22:01]CheckOFDResponse [04:22:01]1017 (14) - 77093643461234 [04:22:01]1041 (16) - 0000000000874941 [04:22:01]1040 (4) - 44637 [04:22:01]1012 (4) - 27.07.2024 22:23 [04:22:01]1206 (1) - 0 [04:22:01]OFD Sender: Remove packet 44637 [04:22:01]ProducePacketName [04:22:02]name=ofd_packets/00044637 [04:22:02]NVStorageDeleteData [04:22:02]OFD Sender: No OFD packet to send [04:22:04]accept exits with 7 [04:22:04]New connection [04:22:04]New thread 3067006308 created [04:22:04]Thread 3067149668 joined [04:22:04]Waiting for new connection... [04:22:04] Sock 7.Parse request [04:22:04]Sock 7.Check first char [04:22:04]Sock 7.First char is OK [04:22:04]request: POST /json_proto HTTP/1.0 [04:22:04]Method: POST [04:22:04]URL: /json_proto [04:22:04]Method is POST - this is cgi request [04:22:04]url: /json_proto [04:22:04]query_string will be loaded in cgi processing [04:22:04]execute_cgi json_proto POST (null) [04:22:04]execute_cgi path=json_proto method=POST [04:22:04]POST find Content-Length [04:22:04]Host: 172.17.45.196:8080 [04:22:04]Content-Length: 2609 [04:22:04]Content-Type: application/json [04:22:04] [04:22:04]POST finish read [04:22:04]Found Content-Length = 2609 [04:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14530", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441011186", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 814.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:04]execute_script... [04:22:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14530", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441011186", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 4.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 814.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:04]POST & json_proto [04:22:04]process_json_proto [04:22:04]json parsed OK: [04:22:04]protocol is kg_v1.0 [04:22:04]action value=close_receipt [04:22:04]process_action close_receipt [04:22:04]cmd_close_receipt [04:22:04]MH_GetDate [04:22:04]Write to MH i2c: F0 00 00 F1 00 E0 [04:22:04]Write i2c OK [04:22:04]MH_I2C_Read... [04:22:04]Read from MH i2c: F0 [04:22:04]MH_I2C_Read... [04:22:04]Read from MH i2c: F0 09 00 [04:22:04]MH_I2C_Read... [04:22:04]Read from MH i2c: F0 09 00 F1 00 00 6C C7 A5 66 BB 03 A5 66 F0 [04:22:04]GetLastDocTimeStamp 1722140517 [04:22:04]current date 1722140524 [04:22:04]FM_GetShiftState [04:22:04]SAM_PROTO_GetShiftState [04:22:04]wFMCommunicate request_size=4 [04:22:04]MH_SAM_APDU [04:22:04]CAPDU: 80 13 01 00 [04:22:04]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [04:22:04]Write i2c OK [04:22:04]MH_I2C_Read... [04:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:04]Read from MH i2c: E2 [04:22:04]MH_I2C_Read... [04:22:04]Read from MH i2c: E2 0E 00 [04:22:04]MH_I2C_Read... [04:22:04]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 08 [04:22:04]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:04]wFMCommunicate OK [04:22:04]SAM_PROTO_GetShiftState done [04:22:04]FM_GetShiftState done [04:22:04]opened in 1722126323 [04:22:04]opened+sec_in_day 1722212723 [04:22:04]quantity*price = 2000 [04:22:04]sum+1 = 2001 [04:22:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231512 Mentos ПФ Виноград 6*100*2г 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441011186 Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441014019 Напиток Лимонад 0,5л ст (Gabb trade) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46003553 Nestle NUTS батончик 30х50г 4.000 * 75.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 814.00 НСП 1% : 7.20 НДС 12% : 86.42 Наличными: 814.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 9 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44638 ФПД: 126308345094477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042204&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44638&fm=126308345094477&tin=02508201610067®Number=0000000000092655&sum=81400 0 [04:22:06]StoreToDocumentArchive [04:22:06]shift 430 fd 44638 [04:22:06]save to /storage/0430/doc_00044638 [04:22:06]save last doc name /storage/0430/doc_00044638 to /storage/kkm_last_doc_name [04:22:06]save OK [04:22:06]Clear old archive folders... [04:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=1089 [04:22:06]tlvbuf is 020503E0 [04:22:06]SAM_PROTO_ClearQueue [04:22:06]wFMCommunicate request_size=4 [04:22:06]MH_SAM_APDU [04:22:06]CAPDU: 80 09 00 00 [04:22:06]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [04:22:06]Write i2c OK [04:22:06]MH_I2C_Read... [04:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:06]Read from MH i2c: E2 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 03 00 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [04:22:06]RAPDU: 90 00 [04:22:06]wFMCommunicate OK [04:22:06]SAM_PROTO_ClearQueue done [04:22:06]KKMCreateOFDPacket [04:22:06]OFDProtocolAddRootSTLVToBuf [04:22:06]FM_MakeSignedData [04:22:06]FM_MakeSignedData [04:22:06]SAM_PROTO_SignData [04:22:06]wFMCommunicate request_size=4 [04:22:06]MH_SAM_APDU [04:22:06]CAPDU: 80 0D 01 02 [04:22:06]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [04:22:06]Write i2c OK [04:22:06]MH_I2C_Read... [04:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:06]Read from MH i2c: E2 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 03 00 [04:22:06]MH_I2C_Read... [04:22:06]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [04:22:06]RAPDU: 90 00 [04:22:06]wFMCommunicate OK [04:22:06]wFMCommunicate request_size=255 [04:22:06]MH_SAM_APDU [04:22:06]CAPDU: 80 0D 02 02 FA 03 00 41 04 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 [04:22:06]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 41 04 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 00 00 81 [04:22:07]ConnectInit Can't connect to host [04:22:07]Write i2c OK [04:22:07]MH_I2C_Read... [04:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:07]Read from MH i2c: E2 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 [04:22:07]MH_I2C_Read... [04:22:07]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [04:22:07]RAPDU: 90 00 [04:22:07]wFMCommunicate OK [04:22:07]wFMCommunicate request_size=255 [04:22:07]MH_SAM_APDU [04:22:07]CAPDU: 80 0D 02 02 FA 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 OFD Sender: No OFD packet to send [04:22:07]38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 [04:22:07]Write to MH i2c: E2 02 01 02 01 80 0D 02 02 FA 00 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 00 00 83 [04:22:07]Write i2c OK [04:22:07]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [04:22:08]RAPDU: 90 00 [04:22:08]wFMCommunicate OK [04:22:08]wFMCommunicate request_size=255 [04:22:08]MH_SAM_APDU [04:22:08]CAPDU: 80 0D 02 02 FA 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 [04:22:08]Write to MH i2c: E2 02 01 03 01 80 0D 02 02 FA 00 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 00 00 9D [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:08]Read from MH i2c: E2 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 [04:22:08]MH_I2C_Read... [04:22:08]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [04:22:08]RAPDU: 90 00 [04:22:08]wFMCommunicate OK [04:22:08]wFMCommunicate request_size=255 [04:22:08]MH_SAM_APDU [04:22:08]CAPDU: 80 0D 02 02 FA D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 21 00 00 00 00 07 04 06 00 F8 3D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 [04:22:08]Write to MH i2c: E2 02 01 04 01 80 0D 02 02 FA 00 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 21 00 00 00 00 07 04 06 00 F8 3D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 00 00 71 [04:22:08]Write i2c OK [04:22:08]MH_I2C_Read... [04:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:09]Read from MH i2c: E2 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 03 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [04:22:09]RAPDU: 90 00 [04:22:09]wFMCommunicate OK [04:22:09]wFMCommunicate request_size=98 [04:22:09]MH_SAM_APDU [04:22:09]CAPDU: 80 0D 02 02 5D 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5E AE 00 00 35 04 06 00 72 E0 74 0A A1 4D [04:22:09]Write to MH i2c: E2 65 00 05 01 80 0D 02 02 5D 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5E AE 00 00 35 04 06 00 72 E0 74 0A A1 4D 00 00 E3 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:09]Read from MH i2c: E2 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 03 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [04:22:09]RAPDU: 90 00 [04:22:09]wFMCommunicate OK [04:22:09]wFMCommunicate request_size=4 [04:22:09]MH_SAM_APDU [04:22:09]CAPDU: 80 0D 03 02 [04:22:09]Write to MH i2c: E2 08 00 06 01 80 0D 03 02 00 00 00 00 82 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:09]Read from MH i2c: E2 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 0B 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 0B 00 06 01 00 0F BF 7E 04 EA 28 A6 F5 90 00 80 [04:22:09]RAPDU: 0F BF 7E 04 EA 28 A6 F5 90 00 [04:22:09]wFMCommunicate OK [04:22:09]SAM_PROTO_SignData done [04:22:09]FM_MakeSignedData done [04:22:09]CreateOFDProtocolMessage [04:22:09]wFMCommunicate request_size=4 [04:22:09]MH_SAM_APDU [04:22:09]CAPDU: 80 11 00 00 [04:22:09]Write to MH i2c: E2 08 00 07 01 80 11 00 00 00 00 00 00 82 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:09]Read from MH i2c: E2 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 17 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 17 00 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D6 [04:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:09]wFMCommunicate OK [04:22:09]CreateOFDProtocolMessage done [04:22:09]OFDSenderStorePacket 44638 [04:22:09]StoreOFDPacket docnum=44638 [04:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 55 04 00 00 CF E3 4D 04 10 D3 5A 03 01 00 03 00 41 04 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 21 00 00 00 00 07 04 06 00 F8 3D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5E AE 00 00 35 04 06 00 72 E0 74 0A A1 4D 0F BF 7E 04 EA 28 A6 F5 [04:22:09]CheckFolder [04:22:09]dirname=/storage/ofd_packets [04:22:09]CheckFolder done [04:22:09]ProducePacketName [04:22:09]name=ofd_packets/00044638 [04:22:09]NVStorageSaveData ofd_packets/00044638 [04:22:09]File name is /storage/ofd_packets/00044638 [04:22:09]Write 1139 bytes [04:22:09]NVStorageSaveData done [04:22:09]OFDSenderStorePacket done [04:22:09]KKMCreateOFDPacket done [04:22:09]NVStorageSaveData kkm_last_timestamp [04:22:09]File name is /storage/kkm_last_timestamp [04:22:09]Write 4 bytes [04:22:09]NVStorageSaveData done [04:22:09]ExternCall_PrintAddStr [04:22:09]wPrintStart [04:22:09]Write to MH i2c: 01 00 00 08 01 09 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 07 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 FF 0F 1E [04:22:09]RasterBufferAndPrint [04:22:09]line Счет N : (3)14530 [04:22:09]line ИНН: 02508201610067 [04:22:09]line Контрольно-Кассовый Чек [04:22:09]line ПРОДАЖА [04:22:09]line Товар: 46226617 [04:22:09]line Mentos ПВ Нежная Мята 6*100*2г [04:22:09]line 2.000 * 10.00 [04:22:09]line = 20.00 [04:22:09]line НДС 12% НСП 1% [04:22:09]line > о реализуемом товаре [04:22:09]line Товар: 46226624 [04:22:09]line Mentos ПВ Клубника 6*100*2 [04:22:09]line 2.000 * 10.00 [04:22:09]line = 20.00 [04:22:09]line НДС 12% НСП 1% [04:22:09]line > о реализуемом товаре [04:22:09]line Товар: 46231512 [04:22:09]line Mentos ПФ Виноград 6*100*2г [04:22:09]line 2.000 * 10.00 [04:22:09]line = 20.00 [04:22:09]line НДС 12% НСП 1% [04:22:09]line > о реализуемом товаре [04:22:09]line Товар: 4602441011186 [04:22:09]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [04:22:09]line 2.000 * 125.00 [04:22:09]line = 250.00 [04:22:09]line НДС 12% НСП 1% [04:22:10]line > о реализуемом товаре [04:22:10]line Товар: 4602441014019 [04:22:10]line Напиток Лимонад 0,5л ст (Gabb trade) [04:22:10]line 1.000 * 125.00 [04:22:10]line = 125.00 [04:22:10]line НДС 12% НСП 1% [04:22:10]line > о реализуемом товаре [04:22:10]line Товар: 46003553 [04:22:10]line Nestle NUTS батончик 30х50г [04:22:10]line 4.000 * 75.00 [04:22:10]line = 300.00 [04:22:10]line НДС 12% НСП 1% [04:22:10]line > о реализуемом товаре [04:22:10]line Товар: 2000031750019 [04:22:10]line Пакет Партнер Нефть [04:22:10]line 1.000 * 4.00 [04:22:10]line = 4.00 [04:22:10]line НДС 12% НСП 1% [04:22:10]line > о реализуемом товаре [04:22:10]line Товар: 5449000027450 [04:22:10]line Напиток FuzeTea чай манго,ром 0,5л [04:22:10]line 1.000 * 75.00 [04:22:10]line = 75.00 [04:22:10]line НДС 12% НСП 1% [04:22:10]line > о реализуемом товаре [04:22:10]line ИТОГО: 814.00 [04:22:10]line НСП 1% : 7.20 [04:22:10]line НДС 12% : 86.42 [04:22:10]line Наличными: 814.00 [04:22:10]line Безнал.: 0.00 [04:22:10]line Место: АЗС № 128 "Партнер Нефть" [04:22:10]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:10]line СНО: Общий режим [04:22:10]line Чек 9 28.07.2024 04:22 [04:22:10]line Смена: 430 ФФД: 1.0 [04:22:10]line ЗНМ: 0300000045 [04:22:10]line РНМ: 0000000000092655 [04:22:10]line Версия ККМ: 001 [04:22:10]line ФМ: 0000000000874941 [04:22:10]line ФД: 44638 [04:22:10]line ФПД: 126308345094477 [04:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042204&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44638&fm=126308345094477&tin=02508201610067®Number=0000000000092655&sum=81400 [04:22:10]line 0 [04:22:10]OFD Sender: Processing packet 44638 [packets to send 7, broken 6] [04:22:10]ProducePacketName [04:22:10]name=ofd_packets/00044638 [04:22:10]OFD Sender: To server: pG, [04:22:10]CommunicateWithHost lk.salyk.kg:30040 [04:22:10]ConnectInit lk.salyk.kg [04:22:10]written 0, free lines is 4095 [04:22:11]Write to MH i2c: 01 00 00 5E 01 5F [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 F6 09 65 [04:22:11]RasterBufferAndPrint [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]written 0, free lines is 2583 [04:22:11]process_action close_receipt done [04:22:11]requested_data is exist [04:22:11]produce_requested_data [04:22:11]requested_item fm.sn is exist - process it [04:22:11]wFMCommunicate request_size=4 [04:22:11]MH_SAM_APDU [04:22:11]CAPDU: 80 11 00 00 [04:22:11]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 [04:22:11]MH_I2C_Read... [04:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:11]Read from MH i2c: E2 17 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 34 [04:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:11]wFMCommunicate OK [04:22:11]requested_item fd.num is exist - process it [04:22:11]SAM_PROTO_GetFieldsCounters [04:22:11]wFMCommunicate request_size=4 [04:22:11]MH_SAM_APDU [04:22:11]CAPDU: 80 13 00 00 [04:22:11]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:11]Read from MH i2c: E2 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 62 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 62 00 66 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [04:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:11]wFMCommunicate OK [04:22:11]SAM_PROTO_GetFieldsCounters done [04:22:11]requested_item shift.num is exist - process it [04:22:11]requested_item shift.opened is exist - process it [04:22:11]req_shift_opened [04:22:11]FM_GetShiftState [04:22:11]SAM_PROTO_GetShiftState [04:22:11]wFMCommunicate request_size=4 [04:22:11]MH_SAM_APDU [04:22:11]CAPDU: 80 13 01 00 [04:22:11]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:11]Read from MH i2c: E2 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 0E 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7E [04:22:11]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:11]wFMCommunicate OK [04:22:11]SAM_PROTO_GetShiftState done [04:22:11]FM_GetShiftState done [04:22:11]req_shift_opened done [04:22:11]requested_item shift.open_date is exist - process it [04:22:11]req_shift_open_date [04:22:11]req_shift_open_date done [04:22:11]produce_requested_data done [04:22:11]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44638,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:11]process_action_free close_receipt [04:22:11]json_value_free [04:22:11]json_value_free done [04:22:11]process_json_proto returns [04:22:11]Send response to host [04:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44638,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:11]free response buf [04:22:11]execute_script done [04:22:11]execute_script returns [04:22:11]free content buf [04:22:11]Sock 7.Close socket [04:22:11]Sock 7.Thread stoped [04:22:15]ConnectInit Can't take IP for lk.salyk.kg [04:22:15]CommunicateWithHost connect error [04:22:15]CommunicateWithHost err = -1 [04:22:15]OFD Sender: Server communicate error [04:22:18]accept exits with 9 [04:22:18]New connection [04:22:18]New thread 3067149668 created [04:22:18]Thread 3067006308 joined [04:22:18]Waiting for new connection... [04:22:18] Sock 9.Parse request [04:22:18]Sock 9.Check first char [04:22:18]Sock 9.First char is OK [04:22:18]request: POST /json_proto HTTP/1.0 [04:22:18]Method: POST [04:22:18]URL: /json_proto [04:22:18]Method is POST - this is cgi request [04:22:18]url: /json_proto [04:22:18]query_string will be loaded in cgi processing [04:22:18]execute_cgi json_proto POST (null) [04:22:18]execute_cgi path=json_proto method=POST [04:22:18]POST find Content-Length [04:22:18]Host: 172.17.45.196:8080 [04:22:18]Content-Length: 844 [04:22:18]Content-Type: application/json [04:22:18] [04:22:18]POST finish read [04:22:18]Found Content-Length = 844 [04:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14531", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:18]execute_script... [04:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14531", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:18]POST & json_proto [04:22:18]process_json_proto [04:22:18]json parsed OK: [04:22:18]protocol is kg_v1.0 [04:22:18]action value=close_receipt [04:22:18]process_action close_receipt [04:22:19]cmd_close_receipt [04:22:19]MH_GetDate [04:22:19]Write to MH i2c: F0 00 00 68 01 58 [04:22:19]Write i2c OK [04:22:19]MH_I2C_Read... [04:22:19]Read from MH i2c: F0 [04:22:19]MH_I2C_Read... [04:22:19]Read from MH i2c: F0 09 00 [04:22:19]MH_I2C_Read... [04:22:19]Read from MH i2c: F0 09 00 68 01 00 7B C7 A5 66 BB 03 A5 66 77 [04:22:19]GetLastDocTimeStamp 1722140524 [04:22:19]current date 1722140539 [04:22:19]FM_GetShiftState [04:22:19]SAM_PROTO_GetShiftState [04:22:19]wFMCommunicate request_size=4 [04:22:19]MH_SAM_APDU [04:22:19]CAPDU: 80 13 01 00 [04:22:19]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [04:22:19]Write i2c OK [04:22:19]MH_I2C_Read... [04:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:19]Read from MH i2c: E2 [04:22:19]MH_I2C_Read... [04:22:19]Read from MH i2c: E2 0E 00 [04:22:19]MH_I2C_Read... [04:22:19]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 80 [04:22:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:19]wFMCommunicate OK [04:22:19]SAM_PROTO_GetShiftState done [04:22:19]FM_GetShiftState done [04:22:19]opened in 1722126323 [04:22:19]opened+sec_in_day 1722212723 [04:22:19]quantity*price = 14000 [04:22:19]sum+1 = 14001 [04:22:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 10 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44639 ФПД: 256415197109238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042219&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44639&fm=256415197109238&tin=02508201610067®Number=0000000000092655&sum=18500 0 [04:22:21]StoreToDocumentArchive [04:22:21]shift 430 fd 44639 [04:22:21]save to /storage/0430/doc_00044639 [04:22:21]save last doc name /storage/0430/doc_00044639 to /storage/kkm_last_doc_name [04:22:21]D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 save OK [04:22:21]06 Clear old archive folders... [04:22:21]00 4C 1D 00 00 00 00 13 04 ProcessDocumentItem done err = 0, tmpTLVsize=365 [04:22:21]06 tlvbuf is 01FF7840 [04:22:21]SAM_PROTO_ClearQueue [04:22:21]wFMCommunicate request_size=4 [04:22:21]MH_SAM_APDU [04:22:21]CAPDU: 80 09 00 00 00 30 [04:22:21]75 Write to MH i2c: 00 E2 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB 08 FF 00 03 76 08 01 00 80 03 09 E8 00 03 00 00 00 00 00 00 E9 [04:22:21]00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:21]BC 04 01 00 01 FC Write i2c OK [04:22:21]03 MH_I2C_Read... [04:22:21]06 Read from MH i2c: 00 E2 F8 [04:22:21]3D MH_I2C_Read... [04:22:21]01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 Read from MH i2c: 00 E2 03 D0 00 02 [04:22:21]00 MH_I2C_Read... [04:22:21]00 Read from MH i2c: 00 E2 00 03 EE 00 03 76 0F 01 00 00 F2 90 03 00 01 EB 00 01 F3 03 06 00 C2 21 00 00 00 00 07 04 06 00 [04:22:21]F8 RAPDU: 3D 90 01 00 00 [04:22:21]00 wFMCommunicate OK [04:22:21]00 SAM_PROTO_ClearQueue done [04:22:21]39 KKMCreateOFDPacket [04:22:21]04 OFDProtocolAddRootSTLVToBuf [04:22:21]06 FM_MakeSignedData [04:22:21]00 FM_MakeSignedData [04:22:21]00 SAM_PROTO_SignData [04:22:21]00 wFMCommunicate request_size=4 [04:22:21]00 MH_SAM_APDU [04:22:21]00 CAPDU: 80 0D 01 02 [04:22:21]Write to MH i2c: E2 08 00 77 01 80 0D 01 02 00 00 00 00 1F 00 04 00 02 F1 00 [04:22:21]01 00 Write i2c OK [04:22:21]12 MH_I2C_Read... [04:22:21]04 04 00 09 00 00 00 F4 03 04 00 6C C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 Read from MH i2c: 30 E2 30 [04:22:21]30 MH_I2C_Read... [04:22:21]30 30 39 32 36 35 35 Read from MH i2c: 11 E2 04 03 10 00 00 30 30 30 30 30 30 30 30 [04:22:21]30 MH_I2C_Read... [04:22:21]30 38 37 34 39 34 31 10 04 04 00 Read from MH i2c: 5E E2 AE 03 00 00 77 00 01 35 00 04 90 06 00 *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:21]EC 00 [04:22:21]72 RAPDU: E0 74 0A A1 4D 0F BF 7E 04 EA 28 A6 F5 [04:22:21]90 00 [04:22:21]wFMCommunicate OK [04:22:21]wFMCommunicate request_size=255 [04:22:21]MH_SAM_APDU [04:22:21]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [04:22:22]Write to MH i2c: E2 02 01 78 01 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 Received data: 00 87 00 95 37 F6 04 70 06 47 00 2C 94 01 11 00 00 30 00 30 00 30 00 30 13 30 04 30 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 30 01 30 00 30 01 30 BC 38 04 37 01 34 00 39 34 31 4F 00 00 00 1D A7 47 00 6D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5E AE 00 00 F4 03 04 00 8F 73 A5 66 B6 04 01 00 00 33 B8 EA BE 70 3A 92 41 [04:22:22]01 CommunicateWithHost err = 0 [04:22:22]FC CheckOFDResponse [04:22:22]03 1017 (14) - 77093643461234 [04:22:22]06 1041 (16) - 0000000000874941 [04:22:22]00 1040 (4) - 44638 [04:22:22]44 1012 (4) - 27.07.2024 22:24 [04:22:22]48 1206 (1) - 0 [04:22:22]OFD Sender: Remove packet 44638 [04:22:22]ProducePacketName [04:22:22]name=ofd_packets/00044638 [04:22:22]NVStorageDeleteData [04:22:22]00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 32 [04:22:22]Write i2c OK [04:22:22]MH_I2C_Read... [04:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:22]Read from MH i2c: E2 [04:22:22]MH_I2C_Read... [04:22:22]Read from MH i2c: E2 03 00 [04:22:22]MH_I2C_Read... [04:22:22]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [04:22:22]RAPDU: 90 00 [04:22:22]wFMCommunicate OK [04:22:22]wFMCommunicate request_size=124 [04:22:22]MH_SAM_APDU [04:22:22]CAPDU: 80 0D 02 02 77 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7B C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5F AE 00 00 35 04 06 00 E9 35 50 BD 1B F6 [04:22:22]Write to MH i2c: E2 7F 00 79 01 80 0D 02 02 77 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7B C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5F AE 00 00 35 04 06 00 E9 35 50 BD 1B F6 00 00 AE [04:22:23]OFD Sender: No OFD packet to send [04:22:23]Write i2c OK [04:22:23]MH_I2C_Read... [04:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:23]Read from MH i2c: E2 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 03 00 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [04:22:23]RAPDU: 90 00 [04:22:23]wFMCommunicate OK [04:22:23]wFMCommunicate request_size=4 [04:22:23]MH_SAM_APDU [04:22:23]CAPDU: 80 0D 03 02 [04:22:23]Write to MH i2c: E2 08 00 7A 01 80 0D 03 02 00 00 00 00 F6 [04:22:23]Write i2c OK [04:22:23]MH_I2C_Read... [04:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:23]Read from MH i2c: E2 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 0B 00 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 0B 00 7A 01 00 31 E5 F2 1A C4 04 AA 35 90 00 C0 [04:22:23]RAPDU: 31 E5 F2 1A C4 04 AA 35 90 00 [04:22:23]wFMCommunicate OK [04:22:23]SAM_PROTO_SignData done [04:22:23]FM_MakeSignedData done [04:22:23]CreateOFDProtocolMessage [04:22:23]wFMCommunicate request_size=4 [04:22:23]MH_SAM_APDU [04:22:23]CAPDU: 80 11 00 00 [04:22:23]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [04:22:23]Write i2c OK [04:22:23]MH_I2C_Read... [04:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:23]Read from MH i2c: E2 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 17 00 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4A [04:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:23]wFMCommunicate OK [04:22:23]CreateOFDProtocolMessage done [04:22:23]OFDSenderStorePacket 44639 [04:22:23]StoreOFDPacket docnum=44639 [04:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 81 01 00 00 88 25 79 01 41 D2 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7B C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5F AE 00 00 35 04 06 00 E9 35 50 BD 1B F6 31 E5 F2 1A C4 04 AA 35 [04:22:23]CheckFolder [04:22:23]dirname=/storage/ofd_packets [04:22:23]CheckFolder done [04:22:23]ProducePacketName [04:22:23]name=ofd_packets/00044639 [04:22:23]NVStorageSaveData ofd_packets/00044639 [04:22:23]File name is /storage/ofd_packets/00044639 [04:22:23]Write 415 bytes [04:22:23]NVStorageSaveData done [04:22:23]OFDSenderStorePacket done [04:22:23]KKMCreateOFDPacket done [04:22:23]NVStorageSaveData kkm_last_timestamp [04:22:23]File name is /storage/kkm_last_timestamp [04:22:23]Write 4 bytes [04:22:23]NVStorageSaveData done [04:22:23]ExternCall_PrintAddStr [04:22:23]wPrintStart [04:22:23]Write to MH i2c: 01 00 00 7C 01 7D [04:22:23]Write i2c OK [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: 01 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: 01 07 00 [04:22:23]MH_I2C_Read... [04:22:23]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [04:22:23]RasterBufferAndPrint [04:22:23]line Счет N : (3)14531 [04:22:23]line ИНН: 02508201610067 [04:22:23]line Контрольно-Кассовый Чек [04:22:23]line ПРОДАЖА [04:22:23]line Товар: 48743587 [04:22:23]line Сигареты Winston XStyle Silver [04:22:23]line 1.000 * 140.00 [04:22:23]line = 140.00 [04:22:23]line НДС 12% НСП 1% [04:22:23]line > о реализуемом товаре [04:22:23]line Товар: 42113270 [04:22:23]line Жев Orbit арбуз [04:22:23]line 1.000 * 45.00 [04:22:23]line = 45.00 [04:22:23]line НДС 12% НСП 1% [04:22:23]line > о реализуемом товаре [04:22:23]line ИТОГО: 185.00 [04:22:23]line НСП 1% : 1.64 [04:22:23]line НДС 12% : 19.65 [04:22:23]OFD Sender: Processing packet 44639 [packets to send 7, broken 6] [04:22:23]ProducePacketName [04:22:23]name=ofd_packets/00044639 [04:22:23]OFD Sender: To server: pG, [04:22:23]CommunicateWithHost lk.salyk.kg:30040 [04:22:23]ConnectInit lk.salyk.kg [04:22:23]line Наличными: 185.00 [04:22:23]line Безнал.: 0.00 [04:22:23]line Место: АЗС № 128 "Партнер Нефть" [04:22:23]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:23]line СНО: Общий режим [04:22:23]line Чек 10 28.07.2024 04:22 [04:22:23]line Смена: 430 ФФД: 1.0 [04:22:23]line ЗНМ: 0300000045 [04:22:23]line РНМ: 0000000000092655 [04:22:23]line Версия ККМ: 001 [04:22:23]line ФМ: 0000000000874941 [04:22:23]line ФД: 44639 [04:22:23]line ФПД: 256415197109238 [04:22:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042219&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44639&fm=256415197109238&tin=02508201610067®Number=0000000000092655&sum=18500 [04:22:23]line 0 [04:22:23]written 0, free lines is 4095 [04:22:23]Connected sock=10 [04:22:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 81 01 00 00 88 25 79 01 41 D2 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 7B C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5F AE 00 00 35 04 06 00 E9 35 50 BD 1B F6 31 E5 F2 1A C4 04 AA 35 [04:22:24]Write to MH i2c: 01 00 00 AB 01 AC [04:22:24]Write i2c OK [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: 01 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: 01 07 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 9C 0C 5B [04:22:24]RasterBufferAndPrint [04:22:24]line [04:22:24]line [04:22:24]line [04:22:24]line [04:22:24]line [04:22:24]written 0, free lines is 3262 [04:22:24]process_action close_receipt done [04:22:24]requested_data is exist [04:22:24]produce_requested_data [04:22:24]requested_item fm.sn is exist - process it [04:22:24]wFMCommunicate request_size=4 [04:22:24]MH_SAM_APDU [04:22:24]CAPDU: 80 11 00 00 [04:22:24]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [04:22:24]Write i2c OK [04:22:24]MH_I2C_Read... [04:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:24]Read from MH i2c: E2 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 17 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 81 [04:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:24]wFMCommunicate OK [04:22:24]requested_item fd.num is exist - process it [04:22:24]SAM_PROTO_GetFieldsCounters [04:22:24]wFMCommunicate request_size=4 [04:22:24]MH_SAM_APDU [04:22:24]CAPDU: 80 13 00 00 [04:22:24]Write to MH i2c: E2 08 00 B3 01 80 13 00 00 00 00 00 00 30 [04:22:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 41 20 47 00 84 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 5F AE 00 00 F4 03 04 00 91 73 A5 66 B6 04 01 00 00 1C BE 84 75 06 BE A8 79 [04:22:24]CommunicateWithHost err = 0 [04:22:24]CheckOFDResponse [04:22:24]Write i2c OK [04:22:24]1017 (14) - 77093643461234 [04:22:24]1041 (16) - 0000000000874941 [04:22:24]1040 (4) - 44639 [04:22:24]1012 (4) - 27.07.2024 22:24 [04:22:24]1206 (1) - 0 [04:22:24]OFD Sender: Remove packet 44639 [04:22:24]ProducePacketName [04:22:24]name=ofd_packets/00044639 [04:22:24]NVStorageDeleteData [04:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 62 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 62 00 B3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [04:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 5F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:24]wFMCommunicate OK [04:22:24]SAM_PROTO_GetFieldsCounters done [04:22:24]requested_item shift.num is exist - process it [04:22:24]requested_item shift.opened is exist - process it [04:22:24]req_shift_opened [04:22:24]FM_GetShiftState [04:22:24]SAM_PROTO_GetShiftState [04:22:24]wFMCommunicate request_size=4 [04:22:24]MH_SAM_APDU [04:22:24]CAPDU: 80 13 01 00 [04:22:24]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [04:22:24]Write i2c OK [04:22:24]MH_I2C_Read... [04:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:24]Read from MH i2c: E2 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 0E 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CB [04:22:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:24]wFMCommunicate OK [04:22:24]SAM_PROTO_GetShiftState done [04:22:24]FM_GetShiftState done [04:22:24]req_shift_opened done [04:22:24]requested_item shift.open_date is exist - process it [04:22:24]req_shift_open_date [04:22:24]req_shift_open_date done [04:22:24]produce_requested_data done [04:22:24]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44639,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:24]process_action_free close_receipt [04:22:24]json_value_free [04:22:24]json_value_free done [04:22:24]process_json_proto returns [04:22:24]Send response to host [04:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44639,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:24]free response buf [04:22:24]execute_script done [04:22:24]execute_script returns [04:22:24]free content buf [04:22:24]Sock 9.Close socket [04:22:24]Sock 9.Thread stoped [04:22:24]OFD Sender: No OFD packet to send [04:22:25]accept exits with 7 [04:22:25]New connection [04:22:25]New thread 3067006308 created [04:22:25]Thread 3067149668 joined [04:22:25]Waiting for new connection... [04:22:25] Sock 7.Parse request [04:22:25]Sock 7.Check first char [04:22:25]Sock 7.First char is OK [04:22:25]request: POST /json_proto HTTP/1.0 [04:22:25]Method: POST [04:22:25]URL: /json_proto [04:22:25]Method is POST - this is cgi request [04:22:25]url: /json_proto [04:22:25]query_string will be loaded in cgi processing [04:22:25]execute_cgi json_proto POST (null) [04:22:25]execute_cgi path=json_proto method=POST [04:22:25]POST find Content-Length [04:22:25]Host: 172.17.45.196:8080 [04:22:25]Content-Length: 654 [04:22:25]Content-Type: application/json [04:22:25] [04:22:25]POST finish read [04:22:25]Found Content-Length = 654 [04:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14532", "tax_sys" : 0, "items" : [ { "code": "4601501087628", "name": "\u041F\u0438\u0432\u043E \u0425\u0430\u0439\u043D\u0435\u043A\u0435\u043D 0,33\u043B \u0441\u0442", "price" : 175.00, "quantity" : 4.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:25]execute_script... [04:22:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14532", "tax_sys" : 0, "items" : [ { "code": "4601501087628", "name": "\u041F\u0438\u0432\u043E \u0425\u0430\u0439\u043D\u0435\u043A\u0435\u043D 0,33\u043B \u0441\u0442", "price" : 175.00, "quantity" : 4.000, "sum" : 700.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 700.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:25]POST & json_proto [04:22:25]process_json_proto [04:22:25]json parsed OK: [04:22:25]protocol is kg_v1.0 [04:22:25]action value=close_receipt [04:22:25]process_action close_receipt [04:22:25]cmd_close_receipt [04:22:25]MH_GetDate [04:22:25]Write to MH i2c: F0 00 00 B5 01 A5 [04:22:25]Write i2c OK [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: F0 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: F0 09 00 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: F0 09 00 B5 01 00 81 C7 A5 66 BB 03 A5 66 CA [04:22:25]GetLastDocTimeStamp 1722140539 [04:22:25]current date 1722140545 [04:22:25]FM_GetShiftState [04:22:25]SAM_PROTO_GetShiftState [04:22:25]wFMCommunicate request_size=4 [04:22:25]MH_SAM_APDU [04:22:25]CAPDU: 80 13 01 00 [04:22:25]Write to MH i2c: E2 08 00 B6 01 80 13 01 00 00 00 00 00 34 [04:22:25]Write i2c OK [04:22:25]MH_I2C_Read... [04:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:25]Read from MH i2c: E2 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: E2 0E 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 0E 00 B6 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CD [04:22:26]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:26]wFMCommunicate OK [04:22:26]SAM_PROTO_GetShiftState done [04:22:26]FM_GetShiftState done [04:22:26]opened in 1722126323 [04:22:26]opened+sec_in_day 1722212723 [04:22:26]quantity*price = 70000 [04:22:26]sum+1 = 70001 [04:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 11 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44640 ФПД: 190941656438598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042226&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44640&fm=190941656438598&tin=02508201610067®Number=0000000000092655&sum=70000 0 [04:22:27]StoreToDocumentArchive [04:22:27]shift 430 fd 44640 [04:22:27]save to /storage/0430/doc_00044640 [04:22:27]save last doc name /storage/0430/doc_00044640 to /storage/kkm_last_doc_name [04:22:27]save OK [04:22:27]Clear old archive folders... [04:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=279 [04:22:27]tlvbuf is 01FFFAE0 [04:22:27]SAM_PROTO_ClearQueue [04:22:27]wFMCommunicate request_size=4 [04:22:27]MH_SAM_APDU [04:22:27]CAPDU: 80 09 00 00 [04:22:27]Write to MH i2c: E2 08 00 C3 01 80 09 00 00 00 00 00 00 36 [04:22:27]Write i2c OK [04:22:27]MH_I2C_Read... [04:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:27]Read from MH i2c: E2 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: E2 03 00 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [04:22:27]RAPDU: 90 00 [04:22:27]wFMCommunicate OK [04:22:27]SAM_PROTO_ClearQueue done [04:22:27]KKMCreateOFDPacket [04:22:27]OFDProtocolAddRootSTLVToBuf [04:22:27]FM_MakeSignedData [04:22:27]FM_MakeSignedData [04:22:27]SAM_PROTO_SignData [04:22:27]wFMCommunicate request_size=4 [04:22:27]MH_SAM_APDU [04:22:27]CAPDU: 80 0D 01 02 [04:22:27]Write to MH i2c: E2 08 00 C4 01 80 0D 01 02 00 00 00 00 3E [04:22:27]Write i2c OK [04:22:27]MH_I2C_Read... [04:22:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:27]Read from MH i2c: E2 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: E2 03 00 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [04:22:27]RAPDU: 90 00 [04:22:27]wFMCommunicate OK [04:22:27]wFMCommunicate request_size=255 [04:22:27]MH_SAM_APDU [04:22:27]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 31 35 30 31 30 38 37 36 32 38 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 82 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 [04:22:28]Write to MH i2c: E2 02 01 C5 01 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 31 35 30 31 30 38 37 36 32 38 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 82 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 00 00 86 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 03 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 03 00 C5 01 00 90 00 3A [04:22:28]RAPDU: 90 00 [04:22:28]wFMCommunicate OK [04:22:28]wFMCommunicate request_size=38 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 60 AE 00 00 35 04 06 00 AD A9 11 9A D7 46 [04:22:28]Write to MH i2c: E2 29 00 C6 01 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 60 AE 00 00 35 04 06 00 AD A9 11 9A D7 46 00 00 F7 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 03 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 03 00 C6 01 00 90 00 3B [04:22:28]RAPDU: 90 00 [04:22:28]wFMCommunicate OK [04:22:28]wFMCommunicate request_size=4 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 0D 03 02 [04:22:28]Write to MH i2c: E2 08 00 C7 01 80 0D 03 02 00 00 00 00 43 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 0B 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 0B 00 C7 01 00 19 7D D3 09 BD EC C9 05 90 00 2D [04:22:28]RAPDU: 19 7D D3 09 BD EC C9 05 90 00 [04:22:28]wFMCommunicate OK [04:22:28]SAM_PROTO_SignData done [04:22:28]FM_MakeSignedData done [04:22:28]CreateOFDProtocolMessage [04:22:28]wFMCommunicate request_size=4 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 11 00 00 [04:22:28]Write to MH i2c: E2 08 00 C8 01 80 11 00 00 00 00 00 00 43 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:28]Read from MH i2c: E2 17 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 17 00 C8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 97 [04:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:28]wFMCommunicate OK [04:22:28]CreateOFDProtocolMessage done [04:22:28]OFDSenderStorePacket 44640 [04:22:28]StoreOFDPacket docnum=44640 [04:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2B 01 00 00 0D F0 23 01 9F E7 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 31 35 30 31 30 38 37 36 32 38 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 82 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 60 AE 00 00 35 04 06 00 AD A9 11 9A D7 46 19 7D D3 09 BD EC C9 05 [04:22:28]CheckFolder [04:22:28]dirname=/storage/ofd_packets [04:22:28]CheckFolder done [04:22:28]ProducePacketName [04:22:28]name=ofd_packets/00044640 [04:22:28]NVStorageSaveData ofd_packets/00044640 [04:22:28]File name is /storage/ofd_packets/00044640 [04:22:28]Write 329 bytes [04:22:28]NVStorageSaveData done [04:22:28]OFDSenderStorePacket done [04:22:28]KKMCreateOFDPacket done [04:22:28]NVStorageSaveData kkm_last_timestamp [04:22:28]File name is /storage/kkm_last_timestamp [04:22:28]Write 4 bytes [04:22:28]NVStorageSaveData done [04:22:29]ExternCall_PrintAddStr [04:22:29]wPrintStart [04:22:29]Write to MH i2c: 01 00 00 C9 01 CA [04:22:29]Write i2c OK [04:22:29]MH_I2C_Read... [04:22:29]Read from MH i2c: 01 [04:22:29]MH_I2C_Read... [04:22:29]Read from MH i2c: 01 07 00 [04:22:29]MH_I2C_Read... [04:22:29]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [04:22:29]RasterBufferAndPrint [04:22:29]line Счет N : (3)14532 [04:22:29]line ИНН: 02508201610067 [04:22:29]line Контрольно-Кассовый Чек [04:22:29]line ПРОДАЖА [04:22:29]line Товар: 4601501087628 [04:22:29]line Пиво Хайнекен 0,33л ст [04:22:29]line 4.000 * 175.00 [04:22:29]line = 700.00 [04:22:29]line НДС 12% НСП 1% [04:22:29]line > о реализуемом товаре [04:22:29]line ИТОГО: 700.00 [04:22:29]line НСП 1% : 6.19 [04:22:29]line НДС 12% : 74.34 [04:22:29]line Наличными: 700.00 [04:22:29]line Безнал.: 0.00 [04:22:29]line Место: АЗС № 128 "Партнер Нефть" [04:22:29]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:29]line СНО: Общий режим [04:22:29]line Чек 11 28.07.2024 04:22 [04:22:29]line Смена: 430 ФФД: 1.0 [04:22:29]line ЗНМ: 0300000045 [04:22:29]line РНМ: 0000000000092655 [04:22:29]line Версия ККМ: 001 [04:22:29]line ФМ: 0000000000874941 [04:22:29]line ФД: 44640 [04:22:29]line ФПД: 190941656438598 [04:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042226&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44640&fm=190941656438598&tin=02508201610067®Number=0000000000092655&sum=70000 [04:22:29]line 0 [04:22:29]written 0, free lines is 4095 [04:22:29]OFD Sender: Processing packet 44640 [packets to send 7, broken 6] [04:22:29]ProducePacketName [04:22:29]name=ofd_packets/00044640 [04:22:29]OFD Sender: To server: pG, [04:22:29]CommunicateWithHost lk.salyk.kg:30040 [04:22:29]ConnectInit lk.salyk.kg [04:22:29]Connected sock=10 [04:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2B 01 00 00 0D F0 23 01 9F E7 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 31 35 30 31 30 38 37 36 32 38 06 04 25 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D0 B0 D0 B9 D0 BD D0 B5 D0 BA D0 B5 D0 BD 20 30 2C 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 70 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 82 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 Write to MH i2c: 30 01 30 00 30 00 30 F1 30 01 30 30 30 30 30 39 32 36 35 35 11 04 10 F2 00 [04:22:29]30 Write i2c OK [04:22:29]30 MH_I2C_Read... [04:22:29]30 Read from MH i2c: 30 01 30 [04:22:29]30 MH_I2C_Read... [04:22:29]30 30 30 30 38 37 34 39 34 31 10 04 04 00 60 AE 00 00 35 Read from MH i2c: 04 01 06 07 00 00 AD [04:22:29]A9 MH_I2C_Read... [04:22:29]11 Read from MH i2c: 9A 01 D7 07 46 00 19 F1 7D 01 D3 09 BD EC C9 05 [04:22:29]00 00 00 00 00 B4 0D BA [04:22:29]RasterBufferAndPrint [04:22:29]line [04:22:29]line [04:22:29]line [04:22:29]line [04:22:29]line [04:22:29]written 0, free lines is 3597 [04:22:29]process_action close_receipt done [04:22:29]requested_data is exist [04:22:29]produce_requested_data [04:22:29]requested_item fm.sn is exist - process it [04:22:29]wFMCommunicate request_size=4 [04:22:29]MH_SAM_APDU [04:22:29]CAPDU: 80 11 00 00 [04:22:29]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [04:22:29]Write i2c OK [04:22:29]MH_I2C_Read... [04:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:29]Read from MH i2c: E2 [04:22:29]MH_I2C_Read... [04:22:29]Read from MH i2c: E2 17 00 [04:22:29]MH_I2C_Read... [04:22:29]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C7 [04:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:29]wFMCommunicate OK [04:22:29]requested_item fd.num is exist - process it [04:22:29]SAM_PROTO_GetFieldsCounters [04:22:29]wFMCommunicate request_size=4 [04:22:29]MH_SAM_APDU [04:22:29]CAPDU: 80 13 00 00 [04:22:29]Write to MH i2c: E2 08 00 F9 01 80 13 00 00 00 00 00 00 76 [04:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 35 7C 47 00 CD 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 Write i2c OK [04:22:30]04 MH_I2C_Read... [04:22:30]04 Read from MH i2c: 00 E2 60 [04:22:30]AE MH_I2C_Read... [04:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:30]Read from MH i2c: 00 E2 00 62 F4 00 03 [04:22:30]04 MH_I2C_Read... [04:22:30]00 97 73 A5 Read from MH i2c: 66 E2 B6 62 04 00 01 00 00 3F 33 73 A2 F5 80 C3 F7 [04:22:30]F9 CommunicateWithHost err = 0 [04:22:30]01 CheckOFDResponse [04:22:30]00 1017 (14) - 77093643461234 [04:22:30]5D 1041 (16) - 0000000000874941 [04:22:30]00 1040 (4) - 44640 [04:22:30]B9 1012 (4) - 27.07.2024 22:24 [04:22:30]04 1206 (1) - 0 [04:22:30]01 OFD Sender: Remove packet 44640 [04:22:30]00 ProducePacketName [04:22:30]01 name=ofd_packets/00044640 [04:22:30]11 NVStorageDeleteData [04:22:30]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 60 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [04:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 60 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:30]wFMCommunicate OK [04:22:30]SAM_PROTO_GetFieldsCounters done [04:22:30]requested_item shift.num is exist - process it [04:22:30]requested_item shift.opened is exist - process it [04:22:30]req_shift_opened [04:22:30]FM_GetShiftState [04:22:30]SAM_PROTO_GetShiftState [04:22:30]wFMCommunicate request_size=4 [04:22:30]MH_SAM_APDU [04:22:30]CAPDU: 80 13 01 00 [04:22:30]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [04:22:30]Write i2c OK [04:22:30]MH_I2C_Read... [04:22:30]Read from MH i2c: E2 [04:22:30]MH_I2C_Read... [04:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:30]Read from MH i2c: E2 0E 00 [04:22:30]MH_I2C_Read... [04:22:30]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 11 [04:22:30]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:30]wFMCommunicate OK [04:22:30]SAM_PROTO_GetShiftState done [04:22:30]FM_GetShiftState done [04:22:30]req_shift_opened done [04:22:30]requested_item shift.open_date is exist - process it [04:22:30]req_shift_open_date [04:22:30]req_shift_open_date done [04:22:30]produce_requested_data done [04:22:30]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44640,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:30]process_action_free close_receipt [04:22:30]json_value_free [04:22:30]json_value_free done [04:22:30]process_json_proto returns [04:22:30]Send response to host [04:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44640,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:30]free response buf [04:22:30]execute_script done [04:22:30]execute_script returns [04:22:30]free content buf [04:22:30]Sock 7.Close socket [04:22:30]Sock 7.Thread stoped [04:22:30]OFD Sender: No OFD packet to send [04:22:31]accept exits with 9 [04:22:31]New connection [04:22:31]New thread 3067149668 created [04:22:31]Thread 3067006308 joined [04:22:31]Waiting for new connection... [04:22:31] Sock 9.Parse request [04:22:31]Sock 9.Check first char [04:22:31]Sock 9.First char is OK [04:22:31]request: POST /json_proto HTTP/1.0 [04:22:31]Method: POST [04:22:31]URL: /json_proto [04:22:31]Method is POST - this is cgi request [04:22:31]url: /json_proto [04:22:31]query_string will be loaded in cgi processing [04:22:31]execute_cgi json_proto POST (null) [04:22:31]execute_cgi path=json_proto method=POST [04:22:31]POST find Content-Length [04:22:31]Host: 172.17.45.196:8080 [04:22:31]Content-Length: 631 [04:22:31]Content-Type: application/json [04:22:31] [04:22:31]POST finish read [04:22:31]Found Content-Length = 631 [04:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14533", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:31]execute_script... [04:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14533", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:31]POST & json_proto [04:22:31]process_json_proto [04:22:31]json parsed OK: [04:22:31]protocol is kg_v1.0 [04:22:31]action value=close_receipt [04:22:31]process_action close_receipt [04:22:31]cmd_close_receipt [04:22:31]MH_GetDate [04:22:31]Write to MH i2c: F0 00 00 FB 01 EB [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 FB 01 00 87 C7 A5 66 BB 03 A5 66 16 [04:22:31]GetLastDocTimeStamp 1722140546 [04:22:31]current date 1722140551 [04:22:31]FM_GetShiftState [04:22:31]SAM_PROTO_GetShiftState [04:22:31]wFMCommunicate request_size=4 [04:22:31]MH_SAM_APDU [04:22:31]CAPDU: 80 13 01 00 [04:22:31]Write to MH i2c: E2 08 00 FC 01 80 13 01 00 00 00 00 00 7A [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:31]Read from MH i2c: E2 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 FC 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 13 [04:22:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:31]wFMCommunicate OK [04:22:31]SAM_PROTO_GetShiftState done [04:22:31]FM_GetShiftState done [04:22:31]opened in 1722126323 [04:22:31]opened+sec_in_day 1722212723 [04:22:31]quantity*price = 6000 [04:22:31]sum+1 = 6001 [04:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 12 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44641 ФПД: 260247994076661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042231&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44641&fm=260247994076661&tin=02508201610067®Number=0000000000092655&sum=6000 0 [04:22:33]StoreToDocumentArchive [04:22:33]shift 430 fd 44641 [04:22:33]save to /storage/0430/doc_00044641 [04:22:33]save last doc name /storage/0430/doc_00044641 to /storage/kkm_last_doc_name [04:22:33]save OK [04:22:33]Clear old archive folders... [04:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=271 [04:22:33]tlvbuf is 02019420 [04:22:33]SAM_PROTO_ClearQueue [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 09 00 00 [04:22:33]Write to MH i2c: E2 08 00 09 02 80 09 00 00 00 00 00 00 7D [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]SAM_PROTO_ClearQueue done [04:22:33]KKMCreateOFDPacket [04:22:33]OFDProtocolAddRootSTLVToBuf [04:22:33]FM_MakeSignedData [04:22:33]FM_MakeSignedData [04:22:33]SAM_PROTO_SignData [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 01 02 [04:22:33]Write to MH i2c: E2 08 00 0A 02 80 0D 01 02 00 00 00 00 85 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]wFMCommunicate request_size=255 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 87 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [04:22:34]Write to MH i2c: E2 02 01 0B 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 87 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 CA [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]wFMCommunicate request_size=30 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 31 10 04 04 00 61 AE 00 00 35 04 06 00 EC B1 B5 3D 8D F5 [04:22:34]Write to MH i2c: E2 21 00 0C 02 80 0D 02 02 19 00 30 38 37 34 39 34 31 10 04 04 00 61 AE 00 00 35 04 06 00 EC B1 B5 3D 8D F5 00 00 A2 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 03 02 [04:22:34]Write to MH i2c: E2 08 00 0D 02 80 0D 03 02 00 00 00 00 8A [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 0B 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 0B 00 0D 02 00 FA F6 41 CC AE 71 A8 73 90 00 C2 [04:22:34]RAPDU: FA F6 41 CC AE 71 A8 73 90 00 [04:22:34]wFMCommunicate OK [04:22:34]SAM_PROTO_SignData done [04:22:34]FM_MakeSignedData done [04:22:34]CreateOFDProtocolMessage [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 11 00 00 [04:22:34]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:34]Read from MH i2c: E2 17 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [04:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:35]wFMCommunicate OK [04:22:35]CreateOFDProtocolMessage done [04:22:35]OFDSenderStorePacket 44641 [04:22:35]StoreOFDPacket docnum=44641 [04:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 49 A1 1B 01 0E 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 87 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 61 AE 00 00 35 04 06 00 EC B1 B5 3D 8D F5 FA F6 41 CC AE 71 A8 73 [04:22:35]CheckFolder [04:22:35]dirname=/storage/ofd_packets [04:22:35]CheckFolder done [04:22:35]ProducePacketName [04:22:35]name=ofd_packets/00044641 [04:22:35]NVStorageSaveData ofd_packets/00044641 [04:22:35]File name is /storage/ofd_packets/00044641 [04:22:35]Write 321 bytes [04:22:35]NVStorageSaveData done [04:22:35]OFDSenderStorePacket done [04:22:35]KKMCreateOFDPacket done [04:22:35]NVStorageSaveData kkm_last_timestamp [04:22:35]File name is /storage/kkm_last_timestamp [04:22:35]Write 4 bytes [04:22:35]NVStorageSaveData done [04:22:35]ExternCall_PrintAddStr [04:22:35]wPrintStart [04:22:35]Write to MH i2c: 01 00 00 0F 02 11 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 [04:22:35]MH_I2C_Read... [04:22:35]OFD Sender: Processing packet 44641 [packets to send 7, broken 6] [04:22:35]ProducePacketName [04:22:35]name=ofd_packets/00044641 [04:22:35]OFD Sender: To server: pG, [04:22:35]CommunicateWithHost lk.salyk.kg:30040 [04:22:35]ConnectInit lk.salyk.kg [04:22:35]Read from MH i2c: 01 07 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [04:22:35]RasterBufferAndPrint [04:22:35]line Счет N : (3)14533 [04:22:35]line ИНН: 02508201610067 [04:22:35]line Контрольно-Кассовый Чек [04:22:35]line ПРОДАЖА [04:22:35]line Товар: 4700000160204 [04:22:35]line Вода Легенда 1,5л [04:22:35]line 1.000 * 60.00 [04:22:35]line = 60.00 [04:22:35]line НДС 12% НСП 1% [04:22:35]line > о реализуемом товаре [04:22:35]line ИТОГО: 60.00 [04:22:35]line НСП 1% : 0.53 [04:22:35]line НДС 12% : 6.37 [04:22:35]line Наличными: 60.00 [04:22:35]line Безнал.: 0.00 [04:22:35]line Место: АЗС № 128 "Партнер Нефть" [04:22:35]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:35]line СНО: Общий режим [04:22:35]line Чек 12 28.07.2024 04:22 [04:22:35]line Смена: 430 ФФД: 1.0 [04:22:35]line ЗНМ: 0300000045 [04:22:35]line РНМ: 0000000000092655 [04:22:35]line Версия ККМ: 001 [04:22:35]line ФМ: 0000000000874941 [04:22:35]line ФД: 44641 [04:22:35]line ФПД: 260247994076661 [04:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042231&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44641&fm=260247994076661&tin=02508201610067®Number=0000000000092655&sum=6000 [04:22:35]line 0 [04:22:35]written 0, free lines is 4095 [04:22:35]Connected sock=7 [04:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 49 A1 1B 01 0E 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 87 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 Write to MH i2c: 01 01 00 00 00 01 37 0D 02 04 10 00 30 30 30 30 30 30 30 30 39 30 [04:22:35]30 Write i2c OK [04:22:35]30 MH_I2C_Read... [04:22:35]39 Read from MH i2c: 32 01 36 [04:22:35]35 MH_I2C_Read... [04:22:35]35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 Read from MH i2c: 34 01 39 07 34 00 31 [04:22:35]10 MH_I2C_Read... [04:22:35]04 04 00 61 AE 00 00 35 04 06 Read from MH i2c: 00 01 EC 07 B1 00 B5 37 3D 02 8D 00 F5 00 FA 00 F6 00 41 00 CC 12 AE 0E 71 60 A8 [04:22:35]73 RasterBufferAndPrint [04:22:35] [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]written 0, free lines is 3756 [04:22:35]process_action close_receipt done [04:22:35]requested_data is exist [04:22:35]produce_requested_data [04:22:35]requested_item fm.sn is exist - process it [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 11 00 00 [04:22:35]Write to MH i2c: E2 08 00 3E 02 80 11 00 00 00 00 00 00 BA [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 3E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0E [04:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:36]wFMCommunicate OK [04:22:36]requested_item fd.num is exist - process it [04:22:36]SAM_PROTO_GetFieldsCounters [04:22:36]wFMCommunicate request_size=4 [04:22:36]MH_SAM_APDU [04:22:36]CAPDU: 80 13 00 00 [04:22:36]Write to MH i2c: E2 08 00 3F 02 80 13 00 00 00 00 00 00 BD [04:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 13 56 47 00 97 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 Write i2c OK [04:22:36]30 MH_I2C_Read... [04:22:36]39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:36]30 30 38 37 34 39 34 31 10 04 04 Read from MH i2c: 00 E2 61 [04:22:36]AE MH_I2C_Read... [04:22:36]00 00 F4 03 04 00 9D Read from MH i2c: 73 E2 A5 62 66 00 B6 [04:22:36]04 MH_I2C_Read... [04:22:36]01 00 00 Read from MH i2c: 48 E2 26 62 75 00 63 3F ED 02 5B 00 B0 5D 2B [04:22:36]CommunicateWithHost err = 0 [04:22:36]CheckOFDResponse [04:22:36]1017 (14) - 77093643461234 [04:22:36]1041 (16) - 0000000000874941 [04:22:36]1040 (4) - 44641 [04:22:36]1012 (4) - 27.07.2024 22:24 [04:22:36]1206 (1) - 0 [04:22:36]OFD Sender: Remove packet 44641 [04:22:36]ProducePacketName [04:22:36]00 name=ofd_packets/00044641 [04:22:36]B9 NVStorageDeleteData [04:22:36]04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 61 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [04:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 61 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:36]wFMCommunicate OK [04:22:36]SAM_PROTO_GetFieldsCounters done [04:22:36]requested_item shift.num is exist - process it [04:22:36]requested_item shift.opened is exist - process it [04:22:36]req_shift_opened [04:22:36]FM_GetShiftState [04:22:36]SAM_PROTO_GetShiftState [04:22:36]wFMCommunicate request_size=4 [04:22:36]MH_SAM_APDU [04:22:36]CAPDU: 80 13 01 00 [04:22:36]Write to MH i2c: E2 08 00 40 02 80 13 01 00 00 00 00 00 BF [04:22:36]Write i2c OK [04:22:36]MH_I2C_Read... [04:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:36]Read from MH i2c: E2 [04:22:36]MH_I2C_Read... [04:22:36]Read from MH i2c: E2 0E 00 [04:22:36]MH_I2C_Read... [04:22:36]Read from MH i2c: E2 0E 00 40 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 58 [04:22:36]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:36]wFMCommunicate OK [04:22:36]SAM_PROTO_GetShiftState done [04:22:36]FM_GetShiftState done [04:22:36]req_shift_opened done [04:22:36]requested_item shift.open_date is exist - process it [04:22:36]req_shift_open_date [04:22:36]req_shift_open_date done [04:22:36]produce_requested_data done [04:22:36]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44641,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:36]process_action_free close_receipt [04:22:36]json_value_free [04:22:36]json_value_free done [04:22:36]process_json_proto returns [04:22:36]Send response to host [04:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44641,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:36]free response buf [04:22:36]execute_script done [04:22:36]execute_script returns [04:22:36]free content buf [04:22:36]Sock 9.Close socket [04:22:36]Sock 9.Thread stoped [04:22:36]OFD Sender: No OFD packet to send [04:22:38]accept exits with 10 [04:22:38]New connection [04:22:38]New thread 3067006308 created [04:22:38]Thread 3067149668 joined [04:22:38]Waiting for new connection... [04:22:38] Sock 10.Parse request [04:22:38]Sock 10.Check first char [04:22:38]Sock 10.First char is OK [04:22:38]request: POST /json_proto HTTP/1.0 [04:22:38]Method: POST [04:22:38]URL: /json_proto [04:22:38]Method is POST - this is cgi request [04:22:38]url: /json_proto [04:22:38]query_string will be loaded in cgi processing [04:22:38]execute_cgi json_proto POST (null) [04:22:38]execute_cgi path=json_proto method=POST [04:22:38]POST find Content-Length [04:22:38]Host: 172.17.45.196:8080 [04:22:38]Content-Length: 967 [04:22:38]Content-Type: application/json [04:22:38] [04:22:38]POST finish read [04:22:38]Found Content-Length = 967 [04:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14534", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:38]execute_script... [04:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14534", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:38]POST & json_proto [04:22:38]process_json_proto [04:22:38]json parsed OK: [04:22:38]protocol is kg_v1.0 [04:22:38]action value=close_receipt [04:22:38]process_action close_receipt [04:22:38]cmd_close_receipt [04:22:38]MH_GetDate [04:22:38]Write to MH i2c: F0 00 00 41 02 32 [04:22:38]Write i2c OK [04:22:38]MH_I2C_Read... [04:22:38]Read from MH i2c: F0 [04:22:38]MH_I2C_Read... [04:22:38]Read from MH i2c: F0 09 00 [04:22:38]MH_I2C_Read... [04:22:38]Read from MH i2c: F0 09 00 41 02 00 8E C7 A5 66 BB 03 A5 66 64 [04:22:38]GetLastDocTimeStamp 1722140551 [04:22:38]current date 1722140558 [04:22:38]FM_GetShiftState [04:22:38]SAM_PROTO_GetShiftState [04:22:38]wFMCommunicate request_size=4 [04:22:38]MH_SAM_APDU [04:22:38]CAPDU: 80 13 01 00 [04:22:38]Write to MH i2c: E2 08 00 42 02 80 13 01 00 00 00 00 00 C1 [04:22:38]Write i2c OK [04:22:38]MH_I2C_Read... [04:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:38]Read from MH i2c: E2 [04:22:38]MH_I2C_Read... [04:22:38]Read from MH i2c: E2 0E 00 [04:22:38]MH_I2C_Read... [04:22:38]Read from MH i2c: E2 0E 00 42 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5A [04:22:38]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:38]wFMCommunicate OK [04:22:38]SAM_PROTO_GetShiftState done [04:22:38]FM_GetShiftState done [04:22:38]opened in 1722126323 [04:22:38]opened+sec_in_day 1722212723 [04:22:38]quantity*price = 8500 [04:22:38]sum+1 = 8501 [04:22:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 13 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44642 ФПД: 50589131570917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042238&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44642&fm=50589131570917&tin=02508201610067®Number=0000000000092655&sum=10000 0 [04:22:40]StoreToDocumentArchive [04:22:40]shift 430 fd 44642 [04:22:40]save to /storage/0430/doc_00044642 [04:22:40]save last doc name /storage/0430/doc_00044642 to /storage/kkm_last_doc_name [04:22:40]save OK [04:22:40]Clear old archive folders... [04:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=414 [04:22:40]tlvbuf is 020BA640 [04:22:40]SAM_PROTO_ClearQueue [04:22:40]wFMCommunicate request_size=4 [04:22:40]MH_SAM_APDU [04:22:40]CAPDU: 80 09 00 00 [04:22:40]Write to MH i2c: E2 08 00 4F 02 80 09 00 00 00 00 00 00 C3 [04:22:40]Write i2c OK [04:22:40]MH_I2C_Read... [04:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:40]Read from MH i2c: E2 [04:22:40]MH_I2C_Read... [04:22:40]Read from MH i2c: E2 03 00 [04:22:40]MH_I2C_Read... [04:22:40]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [04:22:40]RAPDU: 90 00 [04:22:40]wFMCommunicate OK [04:22:40]SAM_PROTO_ClearQueue done [04:22:40]KKMCreateOFDPacket [04:22:40]OFDProtocolAddRootSTLVToBuf [04:22:40]FM_MakeSignedData [04:22:40]FM_MakeSignedData [04:22:40]SAM_PROTO_SignData [04:22:40]wFMCommunicate request_size=4 [04:22:40]MH_SAM_APDU [04:22:40]CAPDU: 80 0D 01 02 [04:22:40]Write to MH i2c: E2 08 00 50 02 80 0D 01 02 00 00 00 00 CB [04:22:40]Write i2c OK [04:22:40]MH_I2C_Read... [04:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:40]Read from MH i2c: E2 [04:22:40]MH_I2C_Read... [04:22:40]Read from MH i2c: E2 03 00 [04:22:40]MH_I2C_Read... [04:22:40]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [04:22:40]RAPDU: 90 00 [04:22:40]wFMCommunicate OK [04:22:40]wFMCommunicate request_size=255 [04:22:40]MH_SAM_APDU [04:22:40]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [04:22:40]Write to MH i2c: E2 02 01 51 02 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 9B [04:22:40]Write i2c OK [04:22:40]MH_I2C_Read... [04:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:41]Read from MH i2c: E2 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 03 00 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [04:22:41]RAPDU: 90 00 [04:22:41]wFMCommunicate OK [04:22:41]wFMCommunicate request_size=173 [04:22:41]MH_SAM_APDU [04:22:41]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 62 AE 00 00 35 04 06 00 2E 02 B3 37 7E E5 [04:22:41]Write to MH i2c: E2 B0 00 52 02 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 62 AE 00 00 35 04 06 00 2E 02 B3 37 7E E5 00 00 FE [04:22:41]Write i2c OK [04:22:41]MH_I2C_Read... [04:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:41]Read from MH i2c: E2 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 03 00 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [04:22:41]RAPDU: 90 00 [04:22:41]wFMCommunicate OK [04:22:41]wFMCommunicate request_size=4 [04:22:41]MH_SAM_APDU [04:22:41]CAPDU: 80 0D 03 02 [04:22:41]Write to MH i2c: E2 08 00 53 02 80 0D 03 02 00 00 00 00 D0 [04:22:41]Write i2c OK [04:22:41]MH_I2C_Read... [04:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:41]Read from MH i2c: E2 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 0B 00 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 0B 00 53 02 00 D9 EA 4E 64 59 C0 1E 00 90 00 7D [04:22:41]RAPDU: D9 EA 4E 64 59 C0 1E 00 90 00 [04:22:41]wFMCommunicate OK [04:22:41]SAM_PROTO_SignData done [04:22:41]FM_MakeSignedData done [04:22:41]CreateOFDProtocolMessage [04:22:41]wFMCommunicate request_size=4 [04:22:41]MH_SAM_APDU [04:22:41]CAPDU: 80 11 00 00 [04:22:41]Write to MH i2c: E2 08 00 54 02 80 11 00 00 00 00 00 00 D0 [04:22:41]Write i2c OK [04:22:41]MH_I2C_Read... [04:22:41]OFD Sender: No OFD packet to send [04:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:41]Read from MH i2c: E2 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 17 00 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: E2 17 00 54 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 24 [04:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:41]wFMCommunicate OK [04:22:41]CreateOFDProtocolMessage done [04:22:41]OFDSenderStorePacket 44642 [04:22:41]StoreOFDPacket docnum=44642 [04:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 B2 01 00 00 E6 AF AA 01 47 DE 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 62 AE 00 00 35 04 06 00 2E 02 B3 37 7E E5 D9 EA 4E 64 59 C0 1E 00 [04:22:41]CheckFolder [04:22:41]dirname=/storage/ofd_packets [04:22:41]CheckFolder done [04:22:41]ProducePacketName [04:22:41]name=ofd_packets/00044642 [04:22:41]NVStorageSaveData ofd_packets/00044642 [04:22:41]File name is /storage/ofd_packets/00044642 [04:22:41]Write 464 bytes [04:22:41]NVStorageSaveData done [04:22:41]OFDSenderStorePacket done [04:22:41]KKMCreateOFDPacket done [04:22:41]NVStorageSaveData kkm_last_timestamp [04:22:41]File name is /storage/kkm_last_timestamp [04:22:41]Write 4 bytes [04:22:41]NVStorageSaveData done [04:22:41]ExternCall_PrintAddStr [04:22:41]wPrintStart [04:22:41]Write to MH i2c: 01 00 00 55 02 57 [04:22:41]Write i2c OK [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: 01 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: 01 07 00 [04:22:41]MH_I2C_Read... [04:22:41]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [04:22:41]RasterBufferAndPrint [04:22:41]line Счет N : (3)14534 [04:22:41]line ИНН: 02508201610067 [04:22:41]line Контрольно-Кассовый Чек [04:22:41]line ПРОДАЖА [04:22:41]line Товар: 4600682557456 [04:22:41]line Напиток FLash up energy эн ж/б 0,5/0,45л [04:22:41]line 1.000 * 85.00 [04:22:41]line = 85.00 [04:22:41]line НДС 12% НСП 1% [04:22:41]line > о реализуемом товаре [04:22:41]line Товар: 4700000160013 [04:22:41]line Снек Курут индивидуальный [04:22:41]line 1.000 * 15.00 [04:22:41]line = 15.00 [04:22:41]line НДС 12% НСП 1% [04:22:41]line > о реализуемом товаре [04:22:41]line ИТОГО: 100.00 [04:22:42]line НСП 1% : 0.88 [04:22:42]line НДС 12% : 10.62 [04:22:42]line Наличными: 100.00 [04:22:42]line Безнал.: 0.00 [04:22:42]line Место: АЗС № 128 "Партнер Нефть" [04:22:42]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:42]line СНО: Общий режим [04:22:42]line Чек 13 28.07.2024 04:22 [04:22:42]line Смена: 430 ФФД: 1.0 [04:22:42]line ЗНМ: 0300000045 [04:22:42]line РНМ: 0000000000092655 [04:22:42]line Версия ККМ: 001 [04:22:42]line ФМ: 0000000000874941 [04:22:42]line ФД: 44642 [04:22:42]line ФПД: 50589131570917 [04:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042238&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44642&fm=50589131570917&tin=02508201610067®Number=0000000000092655&sum=10000 [04:22:42]line 0 [04:22:42]OFD Sender: Processing packet 44642 [packets to send 7, broken 6] [04:22:42]ProducePacketName [04:22:42]name=ofd_packets/00044642 [04:22:42]OFD Sender: To server: pG, [04:22:42]CommunicateWithHost lk.salyk.kg:30040 [04:22:42]ConnectInit lk.salyk.kg [04:22:42]written 0, free lines is 4095 [04:22:42]Connected sock=9 [04:22:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 B2 01 00 00 E6 AF AA 01 47 DE 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 Write to MH i2c: 06 01 00 00 00 84 02 86 [04:22:42]58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 Write i2c OK [04:22:42]01 MH_I2C_Read... [04:22:42]F3 Read from MH i2c: 03 01 06 [04:22:42]00 MH_I2C_Read... [04:22:42]26 04 00 00 00 00 07 Read from MH i2c: 04 01 06 07 00 00 10 [04:22:42]27 MH_I2C_Read... [04:22:42]00 Read from MH i2c: 00 01 00 07 00 00 39 84 04 06 00 00 00 00 00 00 00 1F 02 04 00 02 00 00 00 01 00 00 12 04 04 00 0D 00 00 00 F4 00 03 86 04 0C 00 1F 8E [04:22:42]RasterBufferAndPrint [04:22:42]line [04:22:42]line [04:22:42]line [04:22:42]line [04:22:42]line [04:22:42]C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 62 AE 00 00 35 04 06 00 2E 02 written 0, free lines is 3395 [04:22:42]B3 37 7E E5 D9 EA 4E 64 59 C0 1E process_action close_receipt done [04:22:42]00 requested_data is exist [04:22:42] [04:22:42]produce_requested_data [04:22:42]requested_item fm.sn is exist - process it [04:22:42]wFMCommunicate request_size=4 [04:22:42]MH_SAM_APDU [04:22:42]CAPDU: 80 11 00 00 [04:22:42]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [04:22:42]Write i2c OK [04:22:42]MH_I2C_Read... [04:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:42]Read from MH i2c: E2 [04:22:42]MH_I2C_Read... [04:22:42]Read from MH i2c: E2 17 00 [04:22:42]MH_I2C_Read... [04:22:42]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5B [04:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:43]wFMCommunicate OK [04:22:43]requested_item fd.num is exist - process it [04:22:43]SAM_PROTO_GetFieldsCounters [04:22:43]wFMCommunicate request_size=4 [04:22:43]MH_SAM_APDU [04:22:43]CAPDU: 80 13 00 00 [04:22:43]Write to MH i2c: E2 08 00 8C 02 80 13 00 00 00 00 00 00 0A [04:22:43]Write i2c OK [04:22:43]MH_I2C_Read... [04:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 05 79 47 00 EA 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:43]30 Read from MH i2c: 30 E2 30 [04:22:43]30 MH_I2C_Read... [04:22:43]30 30 30 Read from MH i2c: 30 E2 30 62 38 00 37 [04:22:43]34 MH_I2C_Read... [04:22:43]39 34 31 10 04 04 00 62 Read from MH i2c: AE E2 00 62 00 00 F4 8C 03 02 04 00 00 5D A4 00 73 B9 A5 04 66 01 B6 00 04 01 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 62 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 00 00 19 78 04 A3 04 0C 00 D7 00 45 00 C3 00 0A 00 BD 90 [04:22:43]00 CommunicateWithHost err = 0 [04:22:43]14 CheckOFDResponse [04:22:43] [04:22:43]1017 (14) - 77093643461234 [04:22:43]RAPDU: 1041 (16) - 0000000000874941 [04:22:43]5D 1040 (4) - 44642 [04:22:43]00 1012 (4) - 27.07.2024 22:24 [04:22:43]B9 1206 (1) - 0 [04:22:43]OFD Sender: Remove packet 44642 [04:22:43]ProducePacketName [04:22:43]name=ofd_packets/00044642 [04:22:43]NVStorageDeleteData [04:22:43]04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 62 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:43]wFMCommunicate OK [04:22:43]SAM_PROTO_GetFieldsCounters done [04:22:43]requested_item shift.num is exist - process it [04:22:43]requested_item shift.opened is exist - process it [04:22:43]req_shift_opened [04:22:43]FM_GetShiftState [04:22:43]SAM_PROTO_GetShiftState [04:22:43]wFMCommunicate request_size=4 [04:22:43]MH_SAM_APDU [04:22:43]CAPDU: 80 13 01 00 [04:22:43]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [04:22:43]Write i2c OK [04:22:43]MH_I2C_Read... [04:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:43]Read from MH i2c: E2 [04:22:43]MH_I2C_Read... [04:22:43]Read from MH i2c: E2 0E 00 [04:22:43]MH_I2C_Read... [04:22:43]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A5 [04:22:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:43]wFMCommunicate OK [04:22:43]SAM_PROTO_GetShiftState done [04:22:43]FM_GetShiftState done [04:22:43]req_shift_opened done [04:22:43]requested_item shift.open_date is exist - process it [04:22:43]req_shift_open_date [04:22:43]req_shift_open_date done [04:22:43]produce_requested_data done [04:22:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44642,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:43]process_action_free close_receipt [04:22:43]json_value_free [04:22:43]json_value_free done [04:22:43]process_json_proto returns [04:22:43]Send response to host [04:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44642,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:43]free response buf [04:22:43]execute_script done [04:22:43]execute_script returns [04:22:43]free content buf [04:22:43]Sock 10.Close socket [04:22:43]Sock 10.Thread stoped [04:22:44]OFD Sender: No OFD packet to send [04:22:45]accept exits with 7 [04:22:45]New connection [04:22:45]New thread 3067149668 created [04:22:45]Thread 3067006308 joined [04:22:45]Waiting for new connection... [04:22:45] Sock 7.Parse request [04:22:45]Sock 7.Check first char [04:22:45]Sock 7.First char is OK [04:22:45]request: POST /json_proto HTTP/1.0 [04:22:45]Method: POST [04:22:45]URL: /json_proto [04:22:45]Method is POST - this is cgi request [04:22:45]url: /json_proto [04:22:45]query_string will be loaded in cgi processing [04:22:45]execute_cgi json_proto POST (null) [04:22:45]execute_cgi path=json_proto method=POST [04:22:45]POST find Content-Length [04:22:45]Host: 172.17.45.196:8080 [04:22:45]Content-Length: 1200 [04:22:45]Content-Type: application/json [04:22:45] [04:22:45]POST finish read [04:22:45]Found Content-Length = 1200 [04:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14535", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:45]execute_script... [04:22:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14535", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:45]POST & json_proto [04:22:45]process_json_proto [04:22:45]json parsed OK: [04:22:45]protocol is kg_v1.0 [04:22:45]action value=close_receipt [04:22:45]process_action close_receipt [04:22:45]cmd_close_receipt [04:22:45]MH_GetDate [04:22:45]Write to MH i2c: F0 00 00 8E 02 7F [04:22:45]Write i2c OK [04:22:45]MH_I2C_Read... [04:22:45]Read from MH i2c: F0 [04:22:45]MH_I2C_Read... [04:22:45]Read from MH i2c: F0 09 00 [04:22:45]MH_I2C_Read... [04:22:45]Read from MH i2c: F0 09 00 8E 02 00 95 C7 A5 66 BB 03 A5 66 B8 [04:22:45]GetLastDocTimeStamp 1722140558 [04:22:45]current date 1722140565 [04:22:45]FM_GetShiftState [04:22:45]SAM_PROTO_GetShiftState [04:22:45]wFMCommunicate request_size=4 [04:22:45]MH_SAM_APDU [04:22:45]CAPDU: 80 13 01 00 [04:22:45]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [04:22:45]Write i2c OK [04:22:45]MH_I2C_Read... [04:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:45]Read from MH i2c: E2 [04:22:45]MH_I2C_Read... [04:22:45]Read from MH i2c: E2 0E 00 [04:22:45]MH_I2C_Read... [04:22:45]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A7 [04:22:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:45]wFMCommunicate OK [04:22:45]SAM_PROTO_GetShiftState done [04:22:45]FM_GetShiftState done [04:22:45]opened in 1722126323 [04:22:45]opened+sec_in_day 1722212723 [04:22:45]quantity*price = 18000 [04:22:45]sum+1 = 18001 [04:22:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 535.00 НСП 1% : 4.73 НДС 12% : 56.80 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 14 28.07.2024 04:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44643 ФПД: 17385455794242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042245&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44643&fm=17385455794242&tin=02508201610067®Number=0000000000092655&sum=53500 0 [04:22:47]StoreToDocumentArchive [04:22:47]shift 430 fd 44643 [04:22:47]save to /storage/0430/doc_00044643 [04:22:47]save last doc name /storage/0430/doc_00044643 to /storage/kkm_last_doc_name [04:22:47]save OK [04:22:47]Clear old archive folders... [04:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=515 [04:22:47]tlvbuf is 020CB800 [04:22:47]SAM_PROTO_ClearQueue [04:22:47]wFMCommunicate request_size=4 [04:22:47]MH_SAM_APDU [04:22:47]CAPDU: 80 09 00 00 [04:22:47]Write to MH i2c: E2 08 00 9C 02 80 09 00 00 00 00 00 00 10 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:47]Read from MH i2c: E2 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 03 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [04:22:47]RAPDU: 90 00 [04:22:47]wFMCommunicate OK [04:22:47]SAM_PROTO_ClearQueue done [04:22:47]KKMCreateOFDPacket [04:22:47]OFDProtocolAddRootSTLVToBuf [04:22:47]FM_MakeSignedData [04:22:47]FM_MakeSignedData [04:22:47]SAM_PROTO_SignData [04:22:47]wFMCommunicate request_size=4 [04:22:47]MH_SAM_APDU [04:22:47]CAPDU: 80 0D 01 02 [04:22:47]Write to MH i2c: E2 08 00 9D 02 80 0D 01 02 00 00 00 00 18 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:47]Read from MH i2c: E2 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 03 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [04:22:47]RAPDU: 90 00 [04:22:47]wFMCommunicate OK [04:22:47]wFMCommunicate request_size=255 [04:22:47]MH_SAM_APDU [04:22:47]CAPDU: 80 0D 02 02 FA 03 00 03 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [04:22:47]Write to MH i2c: E2 02 01 9E 02 80 0D 02 02 FA 00 03 00 03 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 A0 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]wFMCommunicate request_size=255 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 02 02 FA 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 [04:22:49]Write to MH i2c: E2 02 01 9F 02 80 0D 02 02 FA 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 OFD Sender: No OFD packet to send [04:22:49]08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 00 00 0B [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:49]E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [04:22:49]RAPDU: 90 00 [04:22:49]wFMCommunicate OK [04:22:49]wFMCommunicate request_size=24 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 0D 02 02 13 31 10 04 04 00 63 AE 00 00 35 04 06 00 0F CF DD EA B8 42 [04:22:49]Write to MH i2c: E2 1B 00 A0 02 80 0D 02 02 13 00 31 10 04 04 00 63 AE 00 00 35 04 06 00 0F CF DD EA B8 42 00 00 7A [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [04:22:49]RAPDU: 90 00 [04:22:49]wFMCommunicate OK [04:22:49]wFMCommunicate request_size=4 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 0D 03 02 [04:22:49]Write to MH i2c: E2 08 00 A1 02 80 0D 03 02 00 00 00 00 1E [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 0B 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 0B 00 A1 02 00 06 8A 9C 85 24 5A 0E B6 90 00 12 [04:22:49]RAPDU: 06 8A 9C 85 24 5A 0E B6 90 00 [04:22:49]wFMCommunicate OK [04:22:49]SAM_PROTO_SignData done [04:22:49]FM_MakeSignedData done [04:22:49]CreateOFDProtocolMessage [04:22:49]wFMCommunicate request_size=4 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 11 00 00 [04:22:49]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:50]Read from MH i2c: E2 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: E2 17 00 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 72 [04:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:50]wFMCommunicate OK [04:22:50]CreateOFDProtocolMessage done [04:22:50]OFDSenderStorePacket 44643 [04:22:50]StoreOFDPacket docnum=44643 [04:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 02 00 00 AB 7E 0F 02 96 02 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 63 AE 00 00 35 04 06 00 0F CF DD EA B8 42 06 8A 9C 85 24 5A 0E B6 [04:22:50]CheckFolder [04:22:50]dirname=/storage/ofd_packets [04:22:50]CheckFolder done [04:22:50]ProducePacketName [04:22:50]name=ofd_packets/00044643 [04:22:50]NVStorageSaveData ofd_packets/00044643 [04:22:50]File name is /storage/ofd_packets/00044643 [04:22:50]Write 565 bytes [04:22:50]NVStorageSaveData done [04:22:50]OFDSenderStorePacket done [04:22:50]KKMCreateOFDPacket done [04:22:50]NVStorageSaveData kkm_last_timestamp [04:22:50]File name is /storage/kkm_last_timestamp [04:22:50]Write 4 bytes [04:22:50]NVStorageSaveData done [04:22:50]ExternCall_PrintAddStr [04:22:50]wPrintStart [04:22:50]Write to MH i2c: 01 00 00 A3 02 A5 [04:22:50]Write i2c OK [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 07 00 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [04:22:50]RasterBufferAndPrint [04:22:50]line Счет N : (3)14535 [04:22:50]line ИНН: 02508201610067 [04:22:50]line Контрольно-Кассовый Чек [04:22:50]line ПРОДАЖА [04:22:50]line Товар: 5449000176448 [04:22:50]line Сок Piko Pulpy апельсин ПЭТ 1л [04:22:50]line 1.000 * 180.00 [04:22:50]line = 180.00 [04:22:50]line НДС 12% НСП 1% [04:22:50]line > о реализуемом товаре [04:22:50]line Товар: 5449000027450 [04:22:50]line Напиток FuzeTea чай манго,ром 0,5л [04:22:50]line 1.000 * 75.00 [04:22:50]line = 75.00 [04:22:50]line НДС 12% НСП 1% [04:22:50]line > о реализуемом товаре [04:22:50]line Товар: 48743570 [04:22:50]line Сигареты Winston XStyle Blue [04:22:50]line 2.000 * 140.00 [04:22:50]line = 280.00 [04:22:50]line НДС 12% НСП 1% [04:22:50]line > о реализуемом товаре [04:22:50]line ИТОГО: 535.00 [04:22:50]line НСП 1% : 4.73 [04:22:50]line НДС 12% : 56.80 [04:22:50]line Наличными: 535.00 [04:22:50]line Безнал.: 0.00 [04:22:50]line Место: АЗС № 128 "Партнер Нефть" [04:22:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:22:50]line СНО: Общий режим [04:22:50]line Чек 14 28.07.2024 04:22 [04:22:50]line Смена: 430 ФФД: 1.0 [04:22:50]line ЗНМ: 0300000045 [04:22:50]line РНМ: 0000000000092655 [04:22:50]line Версия ККМ: 001 [04:22:50]line ФМ: 0000000000874941 [04:22:50]OFD Sender: Processing packet 44643 [packets to send 7, broken 6] [04:22:50]line ФД: 44643 [04:22:50]ProducePacketName [04:22:50]line ФПД: 17385455794242 [04:22:50]name=ofd_packets/00044643 [04:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042245&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44643&fm=17385455794242&tin=02508201610067®Number=0000000000092655&sum=53500 [04:22:50]OFD Sender: To server: pG, [04:22:50]CommunicateWithHost lk.salyk.kg:30040 [04:22:50]line 0 [04:22:50]ConnectInit lk.salyk.kg [04:22:50]written 0, free lines is 4095 [04:22:50]Connected sock=10 [04:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 02 00 00 AB 7E 0F 02 96 02 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC Write to MH i2c: D0 01 00 00 00 00 00 D9 00 02 EB DB 03 [04:22:51]26 00 EF 03 0F 00 F6 03 01 00 01 F7 Write i2c OK [04:22:51]03 MH_I2C_Read... [04:22:51]06 00 D9 01 00 Read from MH i2c: 00 01 00 [04:22:51]00 MH_I2C_Read... [04:22:51]EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 Read from MH i2c: 00 01 F4 07 03 00 04 [04:22:51]00 MH_I2C_Read... [04:22:51]95 Read from MH i2c: C7 01 A5 07 66 00 0E D9 04 02 04 00 00 AE 01 00 00 B9 04 01 00 00 01 00 0D 00 04 00 10 72 00 0D 30 61 30 [04:22:51]30 RasterBufferAndPrint [04:22:51]30 30 30 30 30 30 30 30 39 line [04:22:51]32 line [04:22:51]36 line [04:22:51]35 line [04:22:51]35 11 04 10 00 30 30 30 30 30 line [04:22:51]30 30 written 0, free lines is 3816 [04:22:51]30 30 30 38 37 34 39 34 process_action close_receipt done [04:22:51]31 requested_data is exist [04:22:51]10 produce_requested_data [04:22:51]04 requested_item fm.sn is exist - process it [04:22:51]04 wFMCommunicate request_size=4 [04:22:51]00 MH_SAM_APDU [04:22:51]63 CAPDU: AE 80 00 11 00 00 35 04 06 00 0F CF DD EA B8 00 42 [04:22:51]06 Write to MH i2c: 8A E2 9C 08 85 00 24 E0 5A 02 0E 80 B6 11 [04:22:51]00 00 00 00 00 00 5C [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B0 [04:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:22:51]wFMCommunicate OK [04:22:51]requested_item fd.num is exist - process it [04:22:51]SAM_PROTO_GetFieldsCounters [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 13 00 00 [04:22:51]Write to MH i2c: E2 08 00 E1 02 80 13 00 00 00 00 00 00 5F [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A5 34 47 00 D7 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:51]04 Read from MH i2c: 00 E2 63 [04:22:51]AE MH_I2C_Read... [04:22:51]00 00 Read from MH i2c: F4 E2 03 62 04 00 00 [04:22:51]AD MH_I2C_Read... [04:22:51]73 A5 66 B6 04 Read from MH i2c: 01 E2 00 62 00 00 3C E1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 1B 30 0D 30 B5 30 2D B8 5B FF [04:22:51]CommunicateWithHost err = 0 [04:22:51]CheckOFDResponse [04:22:51]1017 (14) - 77093643461234 [04:22:51]1041 (16) - 0000000000874941 [04:22:51]30 1040 (4) - 44643 [04:22:51]30 1012 (4) - 27.07.2024 22:24 [04:22:51]30 1206 (1) - 0 [04:22:51]38 OFD Sender: Remove packet 44643 [04:22:51]37 ProducePacketName [04:22:51]34 name=ofd_packets/00044643 [04:22:51]39 NVStorageDeleteData [04:22:51]34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 63 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [04:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 63 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:52]wFMCommunicate OK [04:22:52]SAM_PROTO_GetFieldsCounters done [04:22:52]requested_item shift.num is exist - process it [04:22:52]requested_item shift.opened is exist - process it [04:22:52]req_shift_opened [04:22:52]FM_GetShiftState [04:22:52]SAM_PROTO_GetShiftState [04:22:52]wFMCommunicate request_size=4 [04:22:52]MH_SAM_APDU [04:22:52]CAPDU: 80 13 01 00 [04:22:52]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [04:22:52]Write i2c OK [04:22:52]MH_I2C_Read... [04:22:52]Read from MH i2c: E2 [04:22:52]MH_I2C_Read... [04:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:52]Read from MH i2c: E2 0E 00 [04:22:52]MH_I2C_Read... [04:22:52]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 FA [04:22:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:22:52]wFMCommunicate OK [04:22:52]SAM_PROTO_GetShiftState done [04:22:52]FM_GetShiftState done [04:22:52]req_shift_opened done [04:22:52]requested_item shift.open_date is exist - process it [04:22:52]req_shift_open_date [04:22:52]req_shift_open_date done [04:22:52]produce_requested_data done [04:22:52]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44643,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:22:52]process_action_free close_receipt [04:22:52]json_value_free [04:22:52]json_value_free done [04:22:52]process_json_proto returns [04:22:52]Send response to host [04:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44643,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:22:52]free response buf [04:22:52]execute_script done [04:22:52]execute_script returns [04:22:52]free content buf [04:22:52]Sock 7.Close socket [04:22:52]Sock 7.Thread stoped [04:22:52]OFD Sender: No OFD packet to send [04:22:53]int [04:22:53]Write to MH i2c: 01 00 00 E3 02 E5 [04:22:53]*** FLAG_PRN_KEY set [04:22:53]Write i2c OK [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 E3 02 00 08 00 00 00 FF 0F 02 [04:22:53]state=0 [04:22:53]Key pressed [04:22:53]Feed [04:22:53]Write to MH i2c: D8 00 00 E4 02 BD [04:22:53]Write i2c OK [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: D8 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: D8 01 00 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: D8 01 00 E4 02 00 BE [04:22:53]int line is 0 - check status [04:22:53]Write to MH i2c: 01 00 00 E5 02 E7 [04:22:53]Write i2c OK [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 E5 02 00 48 00 00 00 3C 00 72 [04:22:53]state=2 [04:22:53]Key pressed [04:22:53]int [04:22:53]Write to MH i2c: 01 00 00 E6 02 E8 [04:22:53]Write i2c OK [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 E6 02 00 48 00 00 00 3C 00 73 [04:22:53]state=2 [04:22:53]Key pressed [04:22:53]int [04:22:53]Write to MH i2c: 01 00 00 E7 02 E9 [04:22:53]*** FLAG_PRN_KEY reset [04:22:53]Write i2c OK [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 [04:22:53]MH_I2C_Read... [04:22:53]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [04:22:53]state=2 [04:22:53]Stop feed [04:22:57]OFD Sender: No OFD packet to send [04:23:00]accept exits with 9 [04:23:00]New connection [04:23:00]New thread 3067006308 created [04:23:00]Thread 3067149668 joined [04:23:00]Waiting for new connection... [04:23:00] Sock 9.Parse request [04:23:00]Sock 9.Check first char [04:23:00]Sock 9.First char is OK [04:23:00]request: POST /json_proto HTTP/1.0 [04:23:00]Method: POST [04:23:00]URL: /json_proto [04:23:00]Method is POST - this is cgi request [04:23:00]url: /json_proto [04:23:00]query_string will be loaded in cgi processing [04:23:00]execute_cgi json_proto POST (null) [04:23:00]execute_cgi path=json_proto method=POST [04:23:00]POST find Content-Length [04:23:00]Host: 172.17.45.196:8080 [04:23:00]Content-Length: 1358 [04:23:00]Content-Type: application/json [04:23:00] [04:23:00]POST finish read [04:23:00]Found Content-Length = 1358 [04:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14536", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 2.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 594.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:00]execute_script... [04:23:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14536", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 2.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 594.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:00]POST & json_proto [04:23:00]process_json_proto [04:23:00]json parsed OK: [04:23:00]protocol is kg_v1.0 [04:23:00]action value=close_receipt [04:23:00]process_action close_receipt [04:23:00]cmd_close_receipt [04:23:00]MH_GetDate [04:23:00]Write to MH i2c: F0 00 00 E8 02 D9 [04:23:00]Write i2c OK [04:23:00]MH_I2C_Read... [04:23:00]Read from MH i2c: F0 [04:23:00]MH_I2C_Read... [04:23:00]Read from MH i2c: F0 09 00 [04:23:00]MH_I2C_Read... [04:23:00]Read from MH i2c: F0 09 00 E8 02 00 A4 C7 A5 66 BB 03 A5 66 21 [04:23:00]GetLastDocTimeStamp 1722140565 [04:23:00]current date 1722140580 [04:23:00]FM_GetShiftState [04:23:00]SAM_PROTO_GetShiftState [04:23:00]wFMCommunicate request_size=4 [04:23:00]MH_SAM_APDU [04:23:00]CAPDU: 80 13 01 00 [04:23:00]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [04:23:00]Write i2c OK [04:23:00]MH_I2C_Read... [04:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:00]Read from MH i2c: E2 [04:23:00]MH_I2C_Read... [04:23:00]Read from MH i2c: E2 0E 00 [04:23:00]MH_I2C_Read... [04:23:00]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 01 [04:23:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:00]wFMCommunicate OK [04:23:00]SAM_PROTO_GetShiftState done [04:23:00]FM_GetShiftState done [04:23:00]opened in 1722126323 [04:23:00]opened+sec_in_day 1722212723 [04:23:00]quantity*price = 5000 [04:23:00]sum+1 = 5001 [04:23:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001061104 Коньяк Семетей 0,2л 2.000 * 270.00 = 540.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 594.00 НСП 1% : 5.25 НДС 12% : 63.07 Наличными: 0.00 Безнал.: 594.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 15 28.07.2024 04:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44644 ФПД: 134531809472439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042300&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44644&fm=134531809472439&tin=02508201610067®Number=0000000000092655&sum=59400 0 [04:23:02]StoreToDocumentArchive [04:23:02]shift 430 fd 44644 [04:23:02]save to /storage/0430/doc_00044644 [04:23:02]save last doc name /storage/0430/doc_00044644 to /storage/kkm_last_doc_name [04:23:02]save OK [04:23:02]Clear old archive folders... [04:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=488 [04:23:02]tlvbuf is 01FC8210 [04:23:02]SAM_PROTO_ClearQueue [04:23:02]wFMCommunicate request_size=4 [04:23:02]MH_SAM_APDU [04:23:02]CAPDU: 80 09 00 00 OFD Sender: No OFD packet to send [04:23:02] [04:23:02]Write to MH i2c: E2 08 00 F6 02 80 09 00 00 00 00 00 00 6A [04:23:02]Write i2c OK [04:23:02]MH_I2C_Read... [04:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:02]Read from MH i2c: E2 [04:23:02]MH_I2C_Read... [04:23:02]Read from MH i2c: E2 03 00 [04:23:02]MH_I2C_Read... [04:23:02]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [04:23:02]RAPDU: 90 00 [04:23:02]wFMCommunicate OK [04:23:02]SAM_PROTO_ClearQueue done [04:23:02]KKMCreateOFDPacket [04:23:02]OFDProtocolAddRootSTLVToBuf [04:23:02]FM_MakeSignedData [04:23:02]FM_MakeSignedData [04:23:02]SAM_PROTO_SignData [04:23:02]wFMCommunicate request_size=4 [04:23:02]MH_SAM_APDU [04:23:02]CAPDU: 80 0D 01 02 [04:23:02]Write to MH i2c: E2 08 00 F7 02 80 0D 01 02 00 00 00 00 72 [04:23:02]Write i2c OK [04:23:02]MH_I2C_Read... [04:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:02]Read from MH i2c: E2 [04:23:02]MH_I2C_Read... [04:23:02]Read from MH i2c: E2 03 00 [04:23:02]MH_I2C_Read... [04:23:02]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [04:23:02]RAPDU: 90 00 [04:23:02]wFMCommunicate OK [04:23:02]wFMCommunicate request_size=255 [04:23:02]MH_SAM_APDU [04:23:02]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA [04:23:03]Write to MH i2c: E2 02 01 F8 02 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA 00 00 D3 [04:23:03]Write i2c OK [04:23:03]MH_I2C_Read... [04:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:03]Read from MH i2c: E2 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: E2 03 00 [04:23:03]MH_I2C_Read... [04:23:03]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [04:23:03]RAPDU: 90 00 [04:23:03]wFMCommunicate OK [04:23:03]wFMCommunicate request_size=247 [04:23:03]MH_SAM_APDU [04:23:03]CAPDU: 80 0D 02 02 F2 D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 64 AE 00 00 35 04 06 00 7A 5B 20 B6 EF B7 [04:23:04]Write to MH i2c: E2 FA 00 F9 02 80 0D 02 02 F2 00 D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 64 AE 00 00 35 04 06 00 7A 5B 20 B6 EF B7 00 00 10 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [04:23:04]RAPDU: 90 00 [04:23:04]wFMCommunicate OK [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 0D 03 02 [04:23:04]Write to MH i2c: E2 08 00 FA 02 80 0D 03 02 00 00 00 00 77 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0B 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0B 00 FA 02 00 61 A7 2F 7C 85 AF 0D 95 90 00 01 [04:23:04]RAPDU: 61 A7 2F 7C 85 AF 0D 95 90 00 [04:23:04]wFMCommunicate OK [04:23:04]SAM_PROTO_SignData done [04:23:04]FM_MakeSignedData done [04:23:04]CreateOFDProtocolMessage [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 11 00 00 [04:23:04]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 17 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CB [04:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:05]wFMCommunicate OK [04:23:05]CreateOFDProtocolMessage done [04:23:05]OFDSenderStorePacket 44644 [04:23:05]StoreOFDPacket docnum=44644 [04:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 FC 01 00 00 1E 40 F4 01 89 AE 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A4 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 64 AE 00 00 35 04 06 00 7A 5B 20 B6 EF B7 61 A7 2F 7C 85 AF 0D 95 [04:23:05]CheckFolder [04:23:05]dirname=/storage/ofd_packets [04:23:05]CheckFolder done [04:23:05]ProducePacketName [04:23:05]name=ofd_packets/00044644 [04:23:05]NVStorageSaveData ofd_packets/00044644 [04:23:05]File name is /storage/ofd_packets/00044644 [04:23:05]Write 538 bytes [04:23:05]NVStorageSaveData done [04:23:05]OFDSenderStorePacket done [04:23:05]KKMCreateOFDPacket done [04:23:05]NVStorageSaveData kkm_last_timestamp [04:23:05]File name is /storage/kkm_last_timestamp [04:23:05]Write 4 bytes [04:23:05]NVStorageSaveData done [04:23:05]ExternCall_PrintAddStr [04:23:05]wPrintStart [04:23:05]Write to MH i2c: 01 00 00 FC 02 FE [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [04:23:05]RasterBufferAndPrint [04:23:05]line Счет N : (3)14536 [04:23:05]line ИНН: 02508201610067 [04:23:05]line Контрольно-Кассовый Чек [04:23:05]line ПРОДАЖА [04:23:05]line Товар: 5449000005489 [04:23:05]line Вода Бонаква 1л б/г [04:23:05]line 1.000 * 50.00 [04:23:05]line = 50.00 [04:23:05]line НДС 12% НСП 1% [04:23:05]OFD Sender: Processing packet 44644 [packets to send 7, broken 6] [04:23:05]line > о реализуемом товаре [04:23:05]ProducePacketName [04:23:05]name=ofd_packets/00044644 [04:23:05]line Товар: 4700001061104 [04:23:05]OFD Sender: To server: pG, [04:23:05]line Коньяк Семетей 0,2л [04:23:05]line 2.000 * 270.00 [04:23:05]line = 540.00 [04:23:05]line НДС 12% НСП 1% [04:23:05]line > о реализуемом товаре [04:23:05]line Товар: 2000031750019 [04:23:05]line Пакет Партнер Нефть [04:23:05]line 1.000 * 4.00 [04:23:05]CommunicateWithHost lk.salyk.kg:30040 [04:23:05]line = 4.00 [04:23:05]ConnectInit lk.salyk.kg [04:23:05]line НДС 12% НСП 1% [04:23:05]line > о реализуемом товаре [04:23:05]line ИТОГО: 594.00 [04:23:05]line НСП 1% : 5.25 [04:23:05]line НДС 12% : 63.07 [04:23:05]line Наличными: 0.00 [04:23:05]line Безнал.: 594.00 [04:23:05]line Место: АЗС № 128 "Партнер Нефть" [04:23:05]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:23:05]line СНО: Общий режим [04:23:05]line Чек 15 28.07.2024 04:23 [04:23:05]line Смена: 430 ФФД: 1.0 [04:23:05]line ЗНМ: 0300000045 [04:23:05]line РНМ: 0000000000092655 [04:23:05]line Версия ККМ: 001 [04:23:05]line Платежная система: Бакай Банк [04:23:05]line ФМ: 0000000000874941 [04:23:05]line ФД: 44644 [04:23:05]line ФПД: 134531809472439 [04:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042300&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44644&fm=134531809472439&tin=02508201610067®Number=0000000000092655&sum=59400 [04:23:05]line 0 [04:23:05]written 0, free lines is 4095 [04:23:05]Connected sock=10 [04:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 FC 01 00 00 1E 40 F4 01 89 AE 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 Write to MH i2c: 01 01 BC 00 04 00 01 00 01 FC 03 06 00 08 E8 32 03 00 35 00 [04:23:05]00 00 EB 03 26 00 EF 03 0F 00 Write i2c OK [04:23:05]F6 MH_I2C_Read... [04:23:06]03 01 00 01 F7 03 06 00 0D 02 00 00 Read from MH i2c: 00 01 00 [04:23:06]EE MH_I2C_Read... [04:23:06]03 Read from MH i2c: 0F 01 00 07 F2 00 03 [04:23:06]01 MH_I2C_Read... [04:23:06]00 01 F3 03 06 00 A3 18 00 00 00 Read from MH i2c: 00 01 07 07 04 00 06 32 00 03 00 00 00 00 00 00 00 00 00 00 20 00 0D 39 69 04 [04:23:06]06 RasterBufferAndPrint [04:23:06]00 line [04:23:06]08 line [04:23:06]E8 line [04:23:06]00 line [04:23:06]00 00 00 1F 04 02 00 01 00 line [04:23:06]12 written 0, free lines is 3605 [04:23:06]04 04 00 0F 00 00 00 F4 process_action close_receipt done [04:23:06]03 requested_data is exist [04:23:06]04 produce_requested_data [04:23:06]00 requested_item fm.sn is exist - process it [04:23:06]A4 wFMCommunicate request_size=4 [04:23:06]C7 A5 66 0E 04 04 00 AE MH_SAM_APDU [04:23:06]01 CAPDU: 00 80 11 00 00 B9 00 04 [04:23:06]01 Write to MH i2c: 00 E2 01 08 0D 00 04 39 10 03 00 80 30 11 30 00 30 00 30 00 30 00 30 00 30 00 30 B6 30 [04:23:06]30 30 39 32 36 35 35 11 04 10 00 Write i2c OK [04:23:06]30 MH_I2C_Read... [04:23:06]30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 Read from MH i2c: 04 E2 00 [04:23:06]64 MH_I2C_Read... [04:23:06]AE Read from MH i2c: 00 E2 00 17 35 00 04 [04:23:06]06 MH_I2C_Read... [04:23:06]00 7A 5B 20 Read from MH i2c: B6 E2 EF 17 B7 00 61 A7 2F 7C 85 AF 0D 95 [04:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:06]39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0A [04:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:06]wFMCommunicate OK [04:23:06]requested_item fd.num is exist - process it [04:23:06]SAM_PROTO_GetFieldsCounters [04:23:06]wFMCommunicate request_size=4 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 13 00 00 [04:23:06]Write to MH i2c: E2 08 00 3A 03 80 13 00 00 00 00 00 00 B9 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:06]31 4F 00 00 00 14 26 47 00 40 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 64 AE 00 00 F4 03 04 00 BC 73 A5 66 B6 04 01 00 00 0F ED C6 22 3F CB 60 A3 [04:23:06]CommunicateWithHost err = 0 [04:23:06]CheckOFDResponse [04:23:06]1017 (14) - 77093643461234 [04:23:06]1041 (16) - 0000000000874941 [04:23:06]1040 (4) - 44644 [04:23:06]1012 (4) - 27.07.2024 22:25 [04:23:06]1206 (1) - 0 [04:23:06]OFD Sender: Remove packet 44644 [04:23:06]ProducePacketName [04:23:06]name=ofd_packets/00044644 [04:23:06]NVStorageDeleteData [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 62 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 62 00 3A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 64 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [04:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 64 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:07]wFMCommunicate OK [04:23:07]SAM_PROTO_GetFieldsCounters done [04:23:07]requested_item shift.num is exist - process it [04:23:07]requested_item shift.opened is exist - process it [04:23:07]req_shift_opened [04:23:07]FM_GetShiftState [04:23:07]SAM_PROTO_GetShiftState [04:23:07]wFMCommunicate request_size=4 [04:23:07]MH_SAM_APDU [04:23:07]CAPDU: 80 13 01 00 [04:23:07]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:07]Read from MH i2c: E2 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 0E 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 54 [04:23:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:07]wFMCommunicate OK [04:23:07]SAM_PROTO_GetShiftState done [04:23:07]FM_GetShiftState done [04:23:07]req_shift_opened done [04:23:07]requested_item shift.open_date is exist - process it [04:23:07]req_shift_open_date [04:23:07]req_shift_open_date done [04:23:07]produce_requested_data done [04:23:07]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44644,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:23:07]process_action_free close_receipt [04:23:07]json_value_free [04:23:07]json_value_free done [04:23:07]process_json_proto returns [04:23:07]Send response to host [04:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44644,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:23:07]free response buf [04:23:07]execute_script done [04:23:07]execute_script returns [04:23:07]free content buf [04:23:07]Sock 9.Close socket [04:23:07]Sock 9.Thread stoped [04:23:07]OFD Sender: No OFD packet to send [04:23:07]int [04:23:07]Write to MH i2c: 01 00 00 *** FLAG_PRN_KEY set [04:23:07]3C 03 3F [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 3C 03 00 08 00 00 00 FF 0F 5C [04:23:08]state=0 [04:23:08]Key pressed [04:23:08]Feed [04:23:08]Write to MH i2c: D8 00 00 3D 03 17 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: D8 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: D8 01 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: D8 01 00 3D 03 00 18 [04:23:08]int line is 0 - check status [04:23:08]Write to MH i2c: 01 00 00 3E 03 41 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 3E 03 00 48 00 00 00 3C 00 CC [04:23:08]state=2 [04:23:08]Key pressed [04:23:08]int [04:23:08]Write to MH i2c: 01 00 00 3F 03 42 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 3F 03 00 48 00 00 00 3C 00 CD [04:23:08]state=2 [04:23:08]Key pressed [04:23:08]int [04:23:08]*** FLAG_PRN_KEY reset [04:23:08]Write to MH i2c: 01 00 00 40 03 43 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [04:23:08]state=2 [04:23:08]Stop feed [04:23:08]accept exits with 7 [04:23:08]New connection [04:23:08]New thread 3067149668 created [04:23:08]Thread 3067006308 joined [04:23:08]Waiting for new connection... [04:23:08] Sock 7.Parse request [04:23:08]Sock 7.Check first char [04:23:08]Sock 7.First char is OK [04:23:08]request: POST /json_proto HTTP/1.0 [04:23:08]Method: POST [04:23:08]URL: /json_proto [04:23:08]Method is POST - this is cgi request [04:23:08]url: /json_proto [04:23:08]query_string will be loaded in cgi processing [04:23:08]execute_cgi json_proto POST (null) [04:23:08]execute_cgi path=json_proto method=POST [04:23:08]POST find Content-Length [04:23:08]Host: 172.17.45.196:8080 [04:23:08]Content-Length: 960 [04:23:08]Content-Type: application/json [04:23:08] [04:23:08]POST finish read [04:23:08]Found Content-Length = 960 [04:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14537", "tax_sys" : 0, "items" : [ { "code": "4860001120475", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041D\u0430\u0442\u0430\u0445\u0442\u0430\u0440\u0438 \u0421\u0430\u043F\u0435\u0440\u0430\u0432\u0438 0,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:08]execute_script... [04:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14537", "tax_sys" : 0, "items" : [ { "code": "4860001120475", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041D\u0430\u0442\u0430\u0445\u0442\u0430\u0440\u0438 \u0421\u0430\u043F\u0435\u0440\u0430\u0432\u0438 0,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:08]POST & json_proto [04:23:08]process_json_proto [04:23:08]json parsed OK: [04:23:08]protocol is kg_v1.0 [04:23:08]action value=close_receipt [04:23:08]process_action close_receipt [04:23:08]cmd_close_receipt [04:23:08]MH_GetDate [04:23:08]Write to MH i2c: F0 00 00 41 03 33 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: F0 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: F0 09 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: F0 09 00 41 03 00 AD C7 A5 66 BB 03 A5 66 84 [04:23:09]GetLastDocTimeStamp 1722140580 [04:23:09]current date 1722140589 [04:23:09]FM_GetShiftState [04:23:09]SAM_PROTO_GetShiftState [04:23:09]wFMCommunicate request_size=4 [04:23:09]MH_SAM_APDU [04:23:09]CAPDU: 80 13 01 00 [04:23:09]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [04:23:09]Write i2c OK [04:23:09]MH_I2C_Read... [04:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:09]Read from MH i2c: E2 [04:23:09]MH_I2C_Read... [04:23:09]Read from MH i2c: E2 0E 00 [04:23:09]MH_I2C_Read... [04:23:09]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5B [04:23:09]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:09]wFMCommunicate OK [04:23:09]SAM_PROTO_GetShiftState done [04:23:09]FM_GetShiftState done [04:23:09]opened in 1722126323 [04:23:09]opened+sec_in_day 1722212723 [04:23:09]quantity*price = 15500 [04:23:09]sum+1 = 15501 [04:23:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000066473 Вода Бонаква 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 16 28.07.2024 04:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44645 ФПД: 84771720311513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042309&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44645&fm=84771720311513&tin=02508201610067®Number=0000000000092655&sum=20500 0 [04:23:11]StoreToDocumentArchive [04:23:11]shift 430 fd 44645 [04:23:11]save to /storage/0430/doc_00044645 [04:23:11]save last doc name /storage/0430/doc_00044645 to /storage/kkm_last_doc_name [04:23:11]save OK [04:23:11]Clear old archive folders... [04:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=397 [04:23:11]tlvbuf is 02123900 [04:23:11]SAM_PROTO_ClearQueue [04:23:11]wFMCommunicate request_size=4 [04:23:11]MH_SAM_APDU [04:23:11]CAPDU: 80 09 00 00 [04:23:11]Write to MH i2c: E2 08 00 4F 03 80 09 00 00 00 00 00 00 C4 [04:23:11]Write i2c OK [04:23:11]MH_I2C_Read... [04:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:11]Read from MH i2c: E2 [04:23:11]MH_I2C_Read... [04:23:11]Read from MH i2c: E2 03 00 [04:23:11]MH_I2C_Read... [04:23:11]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [04:23:11]RAPDU: 90 00 [04:23:11]wFMCommunicate OK [04:23:11]SAM_PROTO_ClearQueue done [04:23:11]KKMCreateOFDPacket [04:23:11]OFDProtocolAddRootSTLVToBuf [04:23:11]FM_MakeSignedData [04:23:11]FM_MakeSignedData [04:23:11]SAM_PROTO_SignData [04:23:11]wFMCommunicate request_size=4 [04:23:11]MH_SAM_APDU [04:23:11]CAPDU: 80 0D 01 02 [04:23:11]Write to MH i2c: E2 08 00 50 03 80 0D 01 02 00 00 00 00 CC [04:23:11]Write i2c OK [04:23:11]MH_I2C_Read... [04:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:11]Read from MH i2c: E2 [04:23:11]MH_I2C_Read... [04:23:11]Read from MH i2c: E2 03 00 [04:23:11]MH_I2C_Read... [04:23:11]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [04:23:11]RAPDU: 90 00 [04:23:11]wFMCommunicate OK [04:23:11]wFMCommunicate request_size=255 [04:23:11]MH_SAM_APDU [04:23:11]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 36 30 30 30 31 31 32 30 34 37 35 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9D D0 B0 D1 82 D0 B0 D1 85 D1 82 D0 B0 D1 80 D0 B8 20 D0 A1 D0 B0 D0 BF D0 B5 D1 80 D0 B0 D0 B2 D0 B8 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 [04:23:12]Write to MH i2c: E2 02 01 51 03 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 36 30 30 30 31 31 32 30 34 37 35 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9D D0 B0 D1 82 D0 B0 D1 85 D1 82 D0 B0 D1 80 D0 B8 20 D0 A1 D0 B0 D0 BF D0 B5 D1 80 D0 B0 D0 B2 D0 B8 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 00 00 D0 [04:23:12]Write i2c OK [04:23:12]MH_I2C_Read... [04:23:12]OFD Sender: No OFD packet to send [04:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:12]Read from MH i2c: E2 [04:23:12]MH_I2C_Read... [04:23:12]Read from MH i2c: E2 03 00 [04:23:12]MH_I2C_Read... [04:23:12]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [04:23:12]RAPDU: 90 00 [04:23:12]wFMCommunicate OK [04:23:12]wFMCommunicate request_size=156 [04:23:12]MH_SAM_APDU [04:23:12]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 65 AE 00 00 35 04 06 00 4D 19 74 46 B2 D9 [04:23:12]Write to MH i2c: E2 9F 00 52 03 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 65 AE 00 00 35 04 06 00 4D 19 74 46 B2 D9 00 00 C7 [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:13]Read from MH i2c: E2 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 03 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [04:23:13]RAPDU: 90 00 [04:23:13]wFMCommunicate OK [04:23:13]wFMCommunicate request_size=4 [04:23:13]MH_SAM_APDU [04:23:13]CAPDU: 80 0D 03 02 [04:23:13]Write to MH i2c: E2 08 00 53 03 80 0D 03 02 00 00 00 00 D1 [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:13]Read from MH i2c: E2 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 0B 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 0B 00 53 03 00 0F CA B1 EB 76 E1 CA DF 90 00 47 [04:23:13]RAPDU: 0F CA B1 EB 76 E1 CA DF 90 00 [04:23:13]wFMCommunicate OK [04:23:13]SAM_PROTO_SignData done [04:23:13]FM_MakeSignedData done [04:23:13]CreateOFDProtocolMessage [04:23:13]wFMCommunicate request_size=4 [04:23:13]MH_SAM_APDU [04:23:13]CAPDU: 80 11 00 00 [04:23:13]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:13]Read from MH i2c: E2 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 17 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 25 [04:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:13]wFMCommunicate OK [04:23:13]CreateOFDProtocolMessage done [04:23:13]OFDSenderStorePacket 44645 [04:23:13]StoreOFDPacket docnum=44645 [04:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A1 01 00 00 E1 8B 99 01 ED 57 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 36 30 30 30 31 31 32 30 34 37 35 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9D D0 B0 D1 82 D0 B0 D1 85 D1 82 D0 B0 D1 80 D0 B8 20 D0 A1 D0 B0 D0 BF D0 B5 D1 80 D0 B0 D0 B2 D0 B8 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 AD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 65 AE 00 00 35 04 06 00 4D 19 74 46 B2 D9 0F CA B1 EB 76 E1 CA DF [04:23:13]CheckFolder [04:23:13]dirname=/storage/ofd_packets [04:23:13]CheckFolder done [04:23:13]ProducePacketName [04:23:13]name=ofd_packets/00044645 [04:23:13]NVStorageSaveData ofd_packets/00044645 [04:23:13]File name is /storage/ofd_packets/00044645 [04:23:13]Write 447 bytes [04:23:13]NVStorageSaveData done [04:23:13]OFDSenderStorePacket done [04:23:13]KKMCreateOFDPacket done [04:23:13]NVStorageSaveData kkm_last_timestamp [04:23:13]File name is /storage/kkm_last_timestamp [04:23:13]Write 4 bytes [04:23:13]NVStorageSaveData done [04:23:13]ExternCall_PrintAddStr [04:23:13]wPrintStart [04:23:13]Write to MH i2c: 01 OFD Sender: Processing packet 44645 [packets to send 7, broken 6] [04:23:13]00 ProducePacketName [04:23:13]00 name=ofd_packets/00044645 [04:23:13]55 OFD Sender: To server: pG, [04:23:13]03 CommunicateWithHost lk.salyk.kg:30040 [04:23:13]58 ConnectInit lk.salyk.kg [04:23:13] [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: 01 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: 01 07 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [04:23:13]RasterBufferAndPrint [04:23:13]line Счет N : (3)14537 [04:23:13]line ИНН: 02508201610067 [04:23:13]line Контрольно-Кассовый Чек [04:23:13]line ПРОДАЖА [04:23:13]line Товар: 4860001120475 [04:23:13]line Напиток Натахтари Саперави 0,5л [04:23:13]line 1.000 * 155.00 [04:23:13]line = 155.00 [04:23:13]line НДС 12% НСП 1% [04:23:13]line > о реализуемом товаре [04:23:13]line Товар: 5449000066473 [04:23:13]line Вода Бонаква 1л [04:23:13]line 1.000 * 50.00 [04:23:13]line = 50.00 [04:23:13]line НДС 12% НСП 1% [04:23:13]line > о реализуемом товаре [04:23:13]line ИТОГО: 205.00 [04:23:13]line НСП 1% : 1.81 [04:23:13]line НДС 12% : 21.77 [04:23:13]line Наличными: 205.00 [04:23:13]line Безнал.: 0.00 [04:23:13]line Место: АЗС № 128 "Партнер Нефть" [04:23:13]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:23:13]line СНО: Общий режим [04:23:13]line Чек 16 28.07.2024 04:23 [04:23:13]line Смена: 430 ФФД: 1.0 [04:23:13]line ЗНМ: 0300000045 [04:23:13]line РНМ: 0000000000092655 [04:23:13]line Версия ККМ: 001 [04:23:13]line ФМ: 0000000000874941 [04:23:13]line ФД: 44645 [04:23:13]line ФПД: 84771720311513 [04:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042309&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44645&fm=84771720311513&tin=02508201610067®Number=0000000000092655&sum=20500 [04:23:13]line 0 [04:23:13]written 0, free lines is 4095 [04:23:13]Connected sock=5 [04:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A1 01 00 00 E1 8B 99 01 ED 57 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 36 30 30 30 31 31 32 30 34 37 35 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9D D0 B0 D1 82 D0 B0 D1 85 D1 82 D0 B0 D1 80 D0 B8 20 D0 A1 D0 B0 D0 BF D0 B5 D1 80 D0 B0 D0 B2 D0 B8 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 Write to MH i2c: 00 01 00 00 00 00 84 03 87 [04:23:14]F4 03 04 00 AD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 Write i2c OK [04:23:14]30 MH_I2C_Read... [04:23:14]30 Read from MH i2c: 30 01 30 [04:23:14]30 MH_I2C_Read... [04:23:14]30 30 30 30 30 30 39 32 36 35 Read from MH i2c: 35 01 11 07 04 00 10 [04:23:14]00 MH_I2C_Read... [04:23:14]30 30 30 30 30 30 30 30 30 30 38 Read from MH i2c: 37 01 34 07 39 00 34 84 31 03 00 10 00 04 00 04 00 00 00 65 AE 00 00 35 1B 04 0D 06 B6 00 [04:23:14]4D RasterBufferAndPrint [04:23:14]19 line [04:23:14]74 line [04:23:14]46 line [04:23:14]B2 line [04:23:14]D9 line [04:23:14]0F CA written 0, free lines is 3666 [04:23:14]B1 EB 76 E1 CA DF [04:23:14]process_action close_receipt done [04:23:14]requested_data is exist [04:23:14]produce_requested_data [04:23:14]requested_item fm.sn is exist - process it [04:23:14]wFMCommunicate request_size=4 [04:23:14]MH_SAM_APDU [04:23:14]CAPDU: 80 11 00 00 [04:23:14]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [04:23:14]Write i2c OK [04:23:14]MH_I2C_Read... [04:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:14]Read from MH i2c: E2 [04:23:14]MH_I2C_Read... [04:23:14]Read from MH i2c: E2 17 00 [04:23:14]MH_I2C_Read... [04:23:14]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5C [04:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:14]wFMCommunicate OK [04:23:14]requested_item fd.num is exist - process it [04:23:14]SAM_PROTO_GetFieldsCounters [04:23:14]wFMCommunicate request_size=4 [04:23:14]MH_SAM_APDU [04:23:14]Received data: CAPDU: 87 80 95 13 F6 00 70 47 00 2C 01 [04:23:14]Write to MH i2c: E2 08 00 8C 03 80 00 13 30 00 30 00 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 47 AB 47 00 6F 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 00 30 00 30 00 30 00 0B [04:23:15]30 30 38 37 34 39 34 31 10 04 04 00 65 AE 00 00 F4 03 04 00 C4 73 A5 66 B6 04 01 00 00 0B 93 86 9D 8F 7D 3D 5E [04:23:15]CommunicateWithHost err = 0 [04:23:15]CheckOFDResponse [04:23:15]1017 (14) - 77093643461234 [04:23:15]1041 (16) - 0000000000874941 [04:23:15]1040 (4) - 44645 [04:23:15]1012 (4) - 27.07.2024 22:25 [04:23:15]1206 (1) - 0 [04:23:15]OFD Sender: Remove packet 44645 [04:23:15]ProducePacketName [04:23:15]name=ofd_packets/00044645 [04:23:15]NVStorageDeleteData [04:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 62 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 62 00 8C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 65 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [04:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 65 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:15]wFMCommunicate OK [04:23:15]SAM_PROTO_GetFieldsCounters done [04:23:15]requested_item shift.num is exist - process it [04:23:15]requested_item shift.opened is exist - process it [04:23:15]req_shift_opened [04:23:15]FM_GetShiftState [04:23:15]SAM_PROTO_GetShiftState [04:23:15]wFMCommunicate request_size=4 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 13 01 00 [04:23:15]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 0E 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A6 [04:23:15]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:15]wFMCommunicate OK [04:23:15]SAM_PROTO_GetShiftState done [04:23:15]FM_GetShiftState done [04:23:15]req_shift_opened done [04:23:15]requested_item shift.open_date is exist - process it [04:23:15]req_shift_open_date [04:23:15]req_shift_open_date done [04:23:15]produce_requested_data done [04:23:15]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44645,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:23:15]process_action_free close_receipt [04:23:15]json_value_free [04:23:15]json_value_free done [04:23:15]process_json_proto returns [04:23:15]Send response to host [04:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44645,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:23:15]free response buf [04:23:15]execute_script done [04:23:15]execute_script returns [04:23:15]free content buf [04:23:15]Sock 7.Close socket [04:23:15]Sock 7.Thread stoped [04:23:15]OFD Sender: No OFD packet to send [04:23:16]accept exits with 9 [04:23:16]New connection [04:23:16]New thread 3067006308 created [04:23:16]Thread 3067149668 joined [04:23:16]Waiting for new connection... [04:23:16] Sock 9.Parse request [04:23:16]Sock 9.Check first char [04:23:16]Sock 9.First char is OK [04:23:16]request: POST /json_proto HTTP/1.0 [04:23:16]Method: POST [04:23:16]URL: /json_proto [04:23:16]Method is POST - this is cgi request [04:23:16]url: /json_proto [04:23:16]query_string will be loaded in cgi processing [04:23:16]execute_cgi json_proto POST (null) [04:23:16]execute_cgi path=json_proto method=POST [04:23:16]POST find Content-Length [04:23:16]Host: 172.17.45.196:8080 [04:23:16]Content-Length: 845 [04:23:16]Content-Type: application/json [04:23:16] [04:23:16]POST finish read [04:23:16]Found Content-Length = 845 [04:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14538", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:16]execute_script... [04:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14538", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:16]POST & json_proto [04:23:16]process_json_proto [04:23:16]json parsed OK: [04:23:16]protocol is kg_v1.0 [04:23:16]action value=close_receipt [04:23:16]process_action close_receipt [04:23:16]cmd_close_receipt [04:23:16]MH_GetDate [04:23:16]Write to MH i2c: F0 00 00 8E 03 80 [04:23:16]Write i2c OK [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: F0 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: F0 09 00 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: F0 09 00 8E 03 00 B4 C7 A5 66 BB 03 A5 66 D8 [04:23:16]GetLastDocTimeStamp 1722140589 [04:23:16]current date 1722140596 [04:23:16]FM_GetShiftState [04:23:16]SAM_PROTO_GetShiftState [04:23:16]wFMCommunicate request_size=4 [04:23:16]MH_SAM_APDU [04:23:16]CAPDU: 80 13 01 00 [04:23:16]Write to MH i2c: E2 08 00 8F 03 80 13 01 00 00 00 00 00 0F [04:23:16]Write i2c OK [04:23:16]MH_I2C_Read... [04:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:16]Read from MH i2c: E2 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: E2 0E 00 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: E2 0E 00 8F 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A8 [04:23:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:16]wFMCommunicate OK [04:23:16]SAM_PROTO_GetShiftState done [04:23:16]FM_GetShiftState done [04:23:16]opened in 1722126323 [04:23:16]opened+sec_in_day 1722212723 [04:23:16]quantity*price = 10700 [04:23:16]sum+1 = 10701 [04:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 0.00 Безнал.: 107.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 17 28.07.2024 04:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44646 ФПД: 60770331962467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042317&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44646&fm=60770331962467&tin=02508201610067®Number=0000000000092655&sum=10700 0 [04:23:19]StoreToDocumentArchive [04:23:19]shift 430 fd 44646 [04:23:19]save to /storage/0430/doc_00044646 [04:23:19]save last doc name /storage/0430/doc_00044646 to /storage/kkm_last_doc_name [04:23:19]save OK [04:23:19]Clear old archive folders... [04:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=285 [04:23:19]tlvbuf is 02131260 [04:23:19]SAM_PROTO_ClearQueue [04:23:19]wFMCommunicate request_size=4 [04:23:19]MH_SAM_APDU [04:23:19]CAPDU: 80 09 00 00 [04:23:19]Write to MH i2c: E2 08 00 9C 03 80 09 00 00 00 00 00 00 11 [04:23:19]Write i2c OK [04:23:19]MH_I2C_Read... [04:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:19]Read from MH i2c: E2 [04:23:19]MH_I2C_Read... [04:23:19]Read from MH i2c: E2 03 00 [04:23:19]MH_I2C_Read... [04:23:19]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [04:23:19]RAPDU: 90 00 [04:23:19]wFMCommunicate OK [04:23:19]SAM_PROTO_ClearQueue done [04:23:19]KKMCreateOFDPacket [04:23:19]OFDProtocolAddRootSTLVToBuf [04:23:19]FM_MakeSignedData [04:23:19]FM_MakeSignedData [04:23:19]SAM_PROTO_SignData [04:23:19]wFMCommunicate request_size=4 [04:23:19]MH_SAM_APDU [04:23:19]CAPDU: 80 0D 01 02 [04:23:19]Write to MH i2c: E2 08 00 9D 03 80 0D 01 02 00 00 00 00 19 [04:23:19]Write i2c OK [04:23:19]MH_I2C_Read... [04:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:19]Read from MH i2c: E2 [04:23:19]MH_I2C_Read... [04:23:19]Read from MH i2c: E2 03 00 [04:23:19]MH_I2C_Read... [04:23:19]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [04:23:19]RAPDU: 90 00 [04:23:19]wFMCommunicate OK [04:23:19]wFMCommunicate request_size=255 [04:23:19]MH_SAM_APDU [04:23:19]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B5 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 [04:23:19]Write to MH i2c: E2 02 01 9E 03 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B5 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 00 00 C6 [04:23:20]Write i2c OK [04:23:20]MH_I2C_Read... [04:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:20]Read from MH i2c: E2 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 03 00 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [04:23:20]RAPDU: 90 00 [04:23:20]wFMCommunicate OK [04:23:20]wFMCommunicate request_size=44 [04:23:20]MH_SAM_APDU [04:23:20]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 66 AE 00 00 35 04 06 00 37 45 32 0C AC 63 [04:23:20]Write to MH i2c: E2 2F 00 9F 03 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 66 AE 00 00 35 04 06 00 37 45 32 0C AC 63 00 00 19 [04:23:20]Write i2c OK [04:23:20]MH_I2C_Read... [04:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:20]Read from MH i2c: E2 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 03 00 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [04:23:20]RAPDU: 90 00 [04:23:20]wFMCommunicate OK [04:23:20]wFMCommunicate request_size=4 [04:23:20]MH_SAM_APDU [04:23:20]CAPDU: 80 0D 03 02 [04:23:20]Write to MH i2c: E2 08 00 A0 03 80 0D 03 02 00 00 00 00 1E [04:23:20]OFD Sender: No OFD packet to send [04:23:20]Write i2c OK [04:23:20]MH_I2C_Read... [04:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:20]Read from MH i2c: E2 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 0B 00 [04:23:20]MH_I2C_Read... [04:23:20]Read from MH i2c: E2 0B 00 A0 03 00 5D A7 47 42 6E C0 0E AD 90 00 95 [04:23:21]RAPDU: 5D A7 47 42 6E C0 0E AD 90 00 [04:23:21]wFMCommunicate OK [04:23:21]SAM_PROTO_SignData done [04:23:21]FM_MakeSignedData done [04:23:21]CreateOFDProtocolMessage [04:23:21]wFMCommunicate request_size=4 [04:23:21]MH_SAM_APDU [04:23:21]CAPDU: 80 11 00 00 [04:23:21]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [04:23:21]Write i2c OK [04:23:21]MH_I2C_Read... [04:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:21]Read from MH i2c: E2 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: E2 17 00 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 72 [04:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:21]wFMCommunicate OK [04:23:21]CreateOFDProtocolMessage done [04:23:21]OFDSenderStorePacket 44646 [04:23:21]StoreOFDPacket docnum=44646 [04:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 B4 56 29 01 26 76 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B5 C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 66 AE 00 00 35 04 06 00 37 45 32 0C AC 63 5D A7 47 42 6E C0 0E AD [04:23:21]CheckFolder [04:23:21]dirname=/storage/ofd_packets [04:23:21]CheckFolder done [04:23:21]ProducePacketName [04:23:21]name=ofd_packets/00044646 [04:23:21]NVStorageSaveData ofd_packets/00044646 [04:23:21]File name is /storage/ofd_packets/00044646 [04:23:21]Write 335 bytes [04:23:21]NVStorageSaveData done [04:23:21]OFDSenderStorePacket done [04:23:21]KKMCreateOFDPacket done [04:23:21]NVStorageSaveData kkm_last_timestamp [04:23:21]File name is /storage/kkm_last_timestamp [04:23:21]Write 4 bytes [04:23:21]NVStorageSaveData done [04:23:21]ExternCall_PrintAddStr [04:23:21]wPrintStart [04:23:21]Write to MH i2c: 01 00 00 A2 03 A5 [04:23:21]Write i2c OK [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: 01 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: 01 07 00 [04:23:21]MH_I2C_Read... [04:23:21]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 FF 0F BA [04:23:21]RasterBufferAndPrint [04:23:21]line Счет N : (3)14538 [04:23:21]line ИНН: 02508201610067 [04:23:21]line Контрольно-Кассовый Чек [04:23:21]line ПРОДАЖА [04:23:21]line Товар: 5449000189318 [04:23:21]line Холодный чай Fuse лимон 1л [04:23:21]line 1.000 * 107.00 [04:23:21]line = 107.00 [04:23:21]line НДС 12% НСП 1% [04:23:21]line > о реализуемом товаре [04:23:21]line ИТОГО: 107.00 [04:23:21]line НСП 1% : 0.95 [04:23:21]line НДС 12% : 11.36 [04:23:21]line Наличными: 0.00 [04:23:21]line Безнал.: 107.00 [04:23:21]line Место: АЗС № 128 "Партнер Нефть" [04:23:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:23:21]line СНО: Общий режим [04:23:21]line Чек 17 28.07.2024 04:23 [04:23:21]line Смена: 430 ФФД: 1.0 [04:23:21]line ЗНМ: 0300000045 [04:23:21]line РНМ: 0000000000092655 [04:23:21]line Версия ККМ: 001 [04:23:21]line Платежная система: Бакай Банк [04:23:21]line ФМ: 0000000000874941 [04:23:21]line ФД: 44646 [04:23:21]line ФПД: 60770331962467 [04:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042317&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44646&fm=60770331962467&tin=02508201610067®Number=0000000000092655&sum=10700 [04:23:21]line 0 [04:23:21]OFD Sender: Processing packet 44646 [packets to send 7, broken 6] [04:23:21]ProducePacketName [04:23:21]name=ofd_packets/00044646 [04:23:21]OFD Sender: To server: pG, [04:23:21]CommunicateWithHost lk.salyk.kg:30040 [04:23:21]ConnectInit lk.salyk.kg [04:23:21]written 0, free lines is 4095 [04:23:21]Connected sock=10 [04:23:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 B4 56 29 01 26 76 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 Write to MH i2c: 00 01 70 00 04 00 00 CC 00 03 00 CF 00 07 04 06 00 00 00 00 [04:23:21]00 Write i2c OK [04:23:21]00 MH_I2C_Read... [04:23:21]00 39 04 06 00 CC 29 00 Read from MH i2c: 00 01 00 [04:23:21]00 MH_I2C_Read... [04:23:21]1F 04 02 00 01 00 12 Read from MH i2c: 04 01 04 07 00 00 11 [04:23:22]00 MH_I2C_Read... [04:23:22]00 00 F4 03 04 00 B5 C7 A5 Read from MH i2c: 66 01 0E 07 04 00 04 CC 00 03 AE 00 01 00 00 B9 04 01 00 01 00 0D 00 04 00 10 00 00 7A 30 0D 30 5D 30 30 30 30 30 30 30 30 [04:23:22]30 RasterBufferAndPrint [04:23:22]39 line [04:23:22]32 36 35 35 11 04 10 00 line [04:23:22]30 line [04:23:22]30 line [04:23:22]30 line [04:23:22]30 written 0, free lines is 3714 [04:23:22]30 30 30 30 30 30 38 process_action close_receipt done [04:23:22]37 requested_data is exist [04:23:22]34 produce_requested_data [04:23:22]39 requested_item fm.sn is exist - process it [04:23:22]34 wFMCommunicate request_size=4 [04:23:22]31 MH_SAM_APDU [04:23:22]10 CAPDU: 04 80 04 00 66 AE 00 00 35 04 06 00 37 45 32 0C AC 63 5D A7 47 42 6E C0 0E AD [04:23:22]11 00 00 [04:23:22]Write to MH i2c: E2 08 00 D3 03 80 11 00 00 00 00 00 00 50 [04:23:22]Write i2c OK [04:23:22]MH_I2C_Read... [04:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:22]Read from MH i2c: E2 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 17 00 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 17 00 D3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A4 [04:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:22]wFMCommunicate OK [04:23:22]requested_item fd.num is exist - process it [04:23:22]SAM_PROTO_GetFieldsCounters [04:23:22]wFMCommunicate request_size=4 [04:23:22]MH_SAM_APDU [04:23:22]CAPDU: 80 13 00 00 [04:23:22]Write to MH i2c: E2 08 00 D4 03 80 13 00 00 00 00 00 00 53 [04:23:22]Received data: 87 95 Write i2c OK [04:23:22]F6 MH_I2C_Read... [04:23:22]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 29 FA 47 00 25 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:22]30 Read from MH i2c: 30 E2 30 [04:23:22]30 30 30 38 37 34 39 34 MH_I2C_Read... [04:23:22]31 Read from MH i2c: 10 E2 04 62 04 00 00 [04:23:22]66 MH_I2C_Read... [04:23:22]AE 00 00 F4 03 04 00 CB Read from MH i2c: 73 E2 A5 62 66 B6 04 01 00 00 B8 7F 00 44 D4 9C 03 EC 00 33 5D 8E 00 A4 B9 [04:23:22]CommunicateWithHost err = 0 [04:23:22]CheckOFDResponse [04:23:22]1017 (14) - 77093643461234 [04:23:22]1041 (16) - 0000000000874941 [04:23:22]1040 (4) - 44646 [04:23:22]1012 (4) - 27.07.2024 22:25 [04:23:22]04 1206 (1) - 0 [04:23:22]01 OFD Sender: Remove packet 44646 [04:23:22]00 ProducePacketName [04:23:22]01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 66 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 name=ofd_packets/00044646 [04:23:23]00 NVStorageDeleteData [04:23:23]00 00 00 00 90 00 6D [04:23:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 66 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:23]wFMCommunicate OK [04:23:23]SAM_PROTO_GetFieldsCounters done [04:23:23]requested_item shift.num is exist - process it [04:23:23]requested_item shift.opened is exist - process it [04:23:23]req_shift_opened [04:23:23]FM_GetShiftState [04:23:23]SAM_PROTO_GetShiftState [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 13 01 00 [04:23:23]Write to MH i2c: E2 08 00 D5 03 80 13 01 00 00 00 00 00 55 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 0E 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 0E 00 D5 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 EE [04:23:23]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:23]wFMCommunicate OK [04:23:23]SAM_PROTO_GetShiftState done [04:23:23]FM_GetShiftState done [04:23:23]req_shift_opened done [04:23:23]requested_item shift.open_date is exist - process it [04:23:23]req_shift_open_date [04:23:23]req_shift_open_date done [04:23:23]produce_requested_data done [04:23:23]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44646,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:23:23]process_action_free close_receipt [04:23:23]json_value_free [04:23:23]json_value_free done [04:23:23]process_json_proto returns [04:23:23]Send response to host [04:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44646,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:23:23]free response buf [04:23:23]execute_script done [04:23:23]execute_script returns [04:23:23]free content buf [04:23:23]Sock 9.Close socket [04:23:23]Sock 9.Thread stoped [04:23:23]OFD Sender: No OFD packet to send [04:23:24]accept exits with 5 [04:23:24]New connection [04:23:24]New thread 3067149668 created [04:23:24]Thread 3067006308 joined [04:23:24]Waiting for new connection... [04:23:24] Sock 5.Parse request [04:23:24]Sock 5.Check first char [04:23:24]Sock 5.First char is OK [04:23:24]request: POST /json_proto HTTP/1.0 [04:23:24]Method: POST [04:23:24]URL: /json_proto [04:23:24]Method is POST - this is cgi request [04:23:24]url: /json_proto [04:23:24]query_string will be loaded in cgi processing [04:23:24]execute_cgi json_proto POST (null) [04:23:24]execute_cgi path=json_proto method=POST [04:23:24]POST find Content-Length [04:23:24]Host: 172.17.45.196:8080 [04:23:24]Content-Length: 629 [04:23:24]Content-Type: application/json [04:23:24] [04:23:24]POST finish read [04:23:24]Found Content-Length = 629 [04:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14539", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:24]execute_script... [04:23:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14539", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:24]POST & json_proto [04:23:24]process_json_proto [04:23:24]json parsed OK: [04:23:24]protocol is kg_v1.0 [04:23:24]action value=close_receipt [04:23:24]process_action close_receipt [04:23:24]cmd_close_receipt [04:23:24]MH_GetDate [04:23:24]Write to MH i2c: F0 00 00 D6 03 C8 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: F0 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: F0 09 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: F0 09 00 D6 03 00 BC C7 A5 66 BB 03 A5 66 28 [04:23:24]GetLastDocTimeStamp 1722140597 [04:23:24]current date 1722140604 [04:23:24]FM_GetShiftState [04:23:24]SAM_PROTO_GetShiftState [04:23:24]wFMCommunicate request_size=4 [04:23:24]MH_SAM_APDU [04:23:24]CAPDU: 80 13 01 00 [04:23:24]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:24]Read from MH i2c: E2 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 0E 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F0 [04:23:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:24]wFMCommunicate OK [04:23:24]SAM_PROTO_GetShiftState done [04:23:24]FM_GetShiftState done [04:23:24]opened in 1722126323 [04:23:24]opened+sec_in_day 1722212723 [04:23:24]quantity*price = 10000 [04:23:24]sum+1 = 10001 [04:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 18 28.07.2024 04:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44647 ФПД: 152320423950599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042325&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44647&fm=152320423950599&tin=02508201610067®Number=0000000000092655&sum=10000 0 [04:23:27]StoreToDocumentArchive [04:23:27]shift 430 fd 44647 [04:23:27]save to /storage/0430/doc_00044647 [04:23:27]save last doc name /storage/0430/doc_00044647 to /storage/kkm_last_doc_name [04:23:27]save OK [04:23:27]Clear old archive folders... [04:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=270 [04:23:27]tlvbuf is 02157EB0 [04:23:27]SAM_PROTO_ClearQueue [04:23:27]wFMCommunicate request_size=4 [04:23:27]MH_SAM_APDU [04:23:27]CAPDU: 80 09 00 00 [04:23:27]Write to MH i2c: E2 08 00 E4 03 80 09 00 00 00 00 00 00 59 [04:23:27]Write i2c OK [04:23:27]MH_I2C_Read... [04:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:27]Read from MH i2c: E2 [04:23:27]MH_I2C_Read... [04:23:27]Read from MH i2c: E2 03 00 [04:23:27]MH_I2C_Read... [04:23:27]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [04:23:27]RAPDU: 90 00 [04:23:27]wFMCommunicate OK [04:23:27]SAM_PROTO_ClearQueue done [04:23:27]KKMCreateOFDPacket [04:23:27]OFDProtocolAddRootSTLVToBuf [04:23:27]FM_MakeSignedData [04:23:27]FM_MakeSignedData [04:23:27]SAM_PROTO_SignData [04:23:27]wFMCommunicate request_size=4 [04:23:27]MH_SAM_APDU [04:23:27]CAPDU: 80 0D 01 02 [04:23:27]Write to MH i2c: E2 08 00 E5 03 80 0D 01 02 00 00 00 00 61 [04:23:27]Write i2c OK [04:23:27]MH_I2C_Read... [04:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:27]Read from MH i2c: E2 [04:23:27]MH_I2C_Read... [04:23:27]Read from MH i2c: E2 03 00 [04:23:27]MH_I2C_Read... [04:23:27]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [04:23:27]RAPDU: 90 00 [04:23:27]wFMCommunicate OK [04:23:27]wFMCommunicate request_size=255 [04:23:27]MH_SAM_APDU [04:23:27]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [04:23:27]Write to MH i2c: E2 02 01 E6 03 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 EF [04:23:28]Write i2c OK [04:23:28]MH_I2C_Read... [04:23:28]OFD Sender: No OFD packet to send [04:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:28]Read from MH i2c: E2 [04:23:28]MH_I2C_Read... [04:23:28]Read from MH i2c: E2 03 00 [04:23:28]MH_I2C_Read... [04:23:28]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [04:23:28]RAPDU: 90 00 [04:23:28]wFMCommunicate OK [04:23:28]wFMCommunicate request_size=29 [04:23:28]MH_SAM_APDU [04:23:28]CAPDU: 80 0D 02 02 18 38 37 34 39 34 31 10 04 04 00 67 AE 00 00 35 04 06 00 8A 88 DC C2 F9 07 [04:23:28]Write to MH i2c: E2 20 00 E7 03 80 0D 02 02 18 00 38 37 34 39 34 31 10 04 04 00 67 AE 00 00 35 04 06 00 8A 88 DC C2 F9 07 00 00 F1 [04:23:28]Write i2c OK [04:23:28]MH_I2C_Read... [04:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:28]Read from MH i2c: E2 [04:23:28]MH_I2C_Read... [04:23:28]Read from MH i2c: E2 03 00 [04:23:28]MH_I2C_Read... [04:23:28]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [04:23:28]RAPDU: 90 00 [04:23:28]wFMCommunicate OK [04:23:28]wFMCommunicate request_size=4 [04:23:28]MH_SAM_APDU [04:23:28]CAPDU: 80 0D 03 02 [04:23:28]Write to MH i2c: E2 08 00 E8 03 80 0D 03 02 00 00 00 00 66 [04:23:28]Write i2c OK [04:23:28]MH_I2C_Read... [04:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:29]Read from MH i2c: E2 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: E2 0B 00 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: E2 0B 00 E8 03 00 A0 F2 3F 32 0E FC 24 B7 90 00 4F [04:23:29]RAPDU: A0 F2 3F 32 0E FC 24 B7 90 00 [04:23:29]wFMCommunicate OK [04:23:29]SAM_PROTO_SignData done [04:23:29]FM_MakeSignedData done [04:23:29]CreateOFDProtocolMessage [04:23:29]wFMCommunicate request_size=4 [04:23:29]MH_SAM_APDU [04:23:29]CAPDU: 80 11 00 00 [04:23:29]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [04:23:29]Write i2c OK [04:23:29]MH_I2C_Read... [04:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:29]Read from MH i2c: E2 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: E2 17 00 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BA [04:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:29]wFMCommunicate OK [04:23:29]CreateOFDProtocolMessage done [04:23:29]OFDSenderStorePacket 44647 [04:23:29]StoreOFDPacket docnum=44647 [04:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 0E 5F 1A 01 D2 1B 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 BD C7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 67 AE 00 00 35 04 06 00 8A 88 DC C2 F9 07 A0 F2 3F 32 0E FC 24 B7 [04:23:29]CheckFolder [04:23:29]dirname=/storage/ofd_packets [04:23:29]CheckFolder done [04:23:29]ProducePacketName [04:23:29]name=ofd_packets/00044647 [04:23:29]NVStorageSaveData ofd_packets/00044647 [04:23:29]File name is /storage/ofd_packets/00044647 [04:23:29]Write 320 bytes [04:23:29]NVStorageSaveData done [04:23:29]OFDSenderStorePacket done [04:23:29]KKMCreateOFDPacket done [04:23:29]NVStorageSaveData kkm_last_timestamp [04:23:29]File name is /storage/kkm_last_timestamp [04:23:29]Write 4 bytes [04:23:29]NVStorageSaveData done [04:23:29]ExternCall_PrintAddStr [04:23:29]wPrintStart [04:23:29]Write to MH i2c: 01 00 00 EA 03 ED [04:23:29]Write i2c OK [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: 01 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: 01 07 00 [04:23:29]MH_I2C_Read... [04:23:29]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [04:23:29]RasterBufferAndPrint [04:23:29]line Счет N : (3)14539 [04:23:29]line ИНН: 02508201610067 [04:23:29]line Контрольно-Кассовый Чек [04:23:29]line ПРОДАЖА [04:23:29]line Товар: 4700000480814 [04:23:29]line Пиво Живое 0,5 ст [04:23:29]line 1.000 * 100.00 [04:23:29]line = 100.00 [04:23:29]line НДС 12% НСП 1% [04:23:29]line > о реализуемом товаре [04:23:29]line ИТОГО: 100.00 [04:23:29]line НСП 1% : 0.88 [04:23:29]line НДС 12% : 10.62 [04:23:29]line Наличными: 100.00 [04:23:29]line Безнал.: 0.00 [04:23:29]line Место: АЗС № 128 "Партнер Нефть" [04:23:29]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [04:23:29]OFD Sender: Processing packet 44647 [packets to send 7, broken 6] [04:23:29]ProducePacketName [04:23:29]name=ofd_packets/00044647 [04:23:29]OFD Sender: To server: pG, [04:23:29]CommunicateWithHost lk.salyk.kg:30040 [04:23:29]ConnectInit lk.salyk.kg [04:23:29]line СНО: Общий режим [04:23:29]line Чек 18 28.07.2024 04:23 [04:23:29]line Смена: 430 ФФД: 1.0 [04:23:29]line ЗНМ: 0300000045 [04:23:29]line РНМ: 0000000000092655 [04:23:29]line Версия ККМ: 001 [04:23:29]line ФМ: 0000000000874941 [04:23:29]line ФД: 44647 [04:23:29]line ФПД: 152320423950599 [04:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T042325&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44647&fm=152320423950599&tin=02508201610067®Number=0000000000092655&sum=10000 [04:23:29]line 0 [04:23:29]written 0, free lines is 4095 [04:23:29]Connected sock=10 [04:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 0E 5F 1A 01 D2 1B 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 Write to MH i2c: 03 01 04 00 00 00 BD 12 C7 04 A5 16 66 [04:23:30]0E Write i2c OK [04:23:30]04 MH_I2C_Read... [04:23:30]04 00 AE 01 00 00 B9 Read from MH i2c: 04 01 01 [04:23:30]00 MH_I2C_Read... [04:23:30]01 0D 04 10 00 30 Read from MH i2c: 30 01 30 07 30 30 30 30 30 30 30 30 00 39 [04:23:30]32 MH_I2C_Read... [04:23:30]36 35 35 11 04 10 00 30 Read from MH i2c: 30 01 30 07 30 30 30 30 30 30 30 38 00 37 12 34 04 39 34 31 10 04 04 00 67 00 AE 00 00 00 00 35 04 06 00 8A 88 DC 00 C2 00 F9 40 07 A0 F2 3F 32 0E FC 0E 24 6B B7 [04:23:30] [04:23:30]RasterBufferAndPrint [04:23:30]line [04:23:30]line [04:23:30]line [04:23:30]line [04:23:30]line [04:23:30]written 0, free lines is 3908 [04:23:30]process_action close_receipt done [04:23:30]requested_data is exist [04:23:30]produce_requested_data [04:23:30]requested_item fm.sn is exist - process it [04:23:30]wFMCommunicate request_size=4 [04:23:30]MH_SAM_APDU [04:23:30]CAPDU: 80 11 00 00 [04:23:30]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [04:23:30]Write i2c OK [04:23:30]MH_I2C_Read... [04:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:30]Read from MH i2c: E2 [04:23:30]MH_I2C_Read... [04:23:30]Read from MH i2c: E2 17 00 [04:23:30]MH_I2C_Read... [04:23:30]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EB [04:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [04:23:30]wFMCommunicate OK [04:23:30]requested_item fd.num is exist - process it [04:23:30]SAM_PROTO_GetFieldsCounters [04:23:30]wFMCommunicate request_size=4 [04:23:30]MH_SAM_APDU [04:23:30]CAPDU: 80 13 00 00 [04:23:30]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [04:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 46 FA 47 00 EB Write i2c OK [04:23:30]41 MH_I2C_Read... [04:23:30]A5 07 01 00 07 00 3B 00 F9 03 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:30]0E 00 37 37 30 39 33 36 34 33 34 36 31 Read from MH i2c: 32 E2 33 [04:23:30]34 MH_I2C_Read... [04:23:30]11 Read from MH i2c: 04 E2 10 62 00 00 30 [04:23:30]30 30 30 30 30 30 30 30 30 38 37 34 39 MH_I2C_Read... [04:23:30]34 31 Read from MH i2c: 10 E2 04 62 04 00 00 1A 67 AE 00 00 F4 03 04 00 D3 73 A5 66 B6 04 01 00 00 56 40 45 68 40 81 8D 10 [04:23:30]CommunicateWithHost err = 0 [04:23:30]CheckOFDResponse [04:23:30]1017 (14) - 77093643461234 [04:23:30]1041 (16) - 0000000000874941 [04:23:30]1040 (4) - 44647 [04:23:30]1012 (4) - 27.07.2024 22:25 [04:23:30]1206 (1) - 0 [04:23:30]OFD Sender: Remove packet 44647 [04:23:30]ProducePacketName [04:23:30]name=ofd_packets/00044647 [04:23:30]NVStorageDeleteData [04:23:30]04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 67 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [04:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 67 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:31]wFMCommunicate OK [04:23:31]SAM_PROTO_GetFieldsCounters done [04:23:31]requested_item shift.num is exist - process it [04:23:31]requested_item shift.opened is exist - process it [04:23:31]req_shift_opened [04:23:31]FM_GetShiftState [04:23:31]SAM_PROTO_GetShiftState [04:23:31]wFMCommunicate request_size=4 [04:23:31]MH_SAM_APDU [04:23:31]CAPDU: 80 13 01 00 [04:23:31]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [04:23:31]Write i2c OK [04:23:31]MH_I2C_Read... [04:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:31]Read from MH i2c: E2 [04:23:31]MH_I2C_Read... [04:23:31]Read from MH i2c: E2 0E 00 [04:23:31]MH_I2C_Read... [04:23:31]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 35 [04:23:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [04:23:31]wFMCommunicate OK [04:23:31]SAM_PROTO_GetShiftState done [04:23:31]FM_GetShiftState done [04:23:31]req_shift_opened done [04:23:31]requested_item shift.open_date is exist - process it [04:23:31]req_shift_open_date [04:23:31]req_shift_open_date done [04:23:31]produce_requested_data done [04:23:31]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44647,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [04:23:31]process_action_free close_receipt [04:23:31]json_value_free [04:23:31]OFD Sender: No OFD packet to send [04:23:31]json_value_free done [04:23:31]process_json_proto returns [04:23:31]Send response to host [04:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44647,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [04:23:31]free response buf [04:23:31]execute_script done [04:23:31]execute_script returns [04:23:31]free content buf [04:23:31]Sock 5.Close socket [04:23:31]Sock 5.Thread stoped [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:45:00]ConnectInit Can't connect to host [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:54:42]ConnectInit Can't connect to host [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [07:35:01]ConnectInit Can't connect to host [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:10]00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: *** [00:00:10]A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 62190+1722090427=1722152617 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 A9 F6 A5 66 BB 03 A5 66 72 [07:43:37]Current date/time: 28.07.2024 07:43 [07:43:37]FM_Init [07:43:37]wFMConnect [07:43:37]MH_SAM_On [07:43:37]Write to MH i2c: E0 00 00 08 00 E7 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_init finished! [07:43:37]*** atr: [07:43:37]*** 0F 3B D5 18 FF 81 91 FE [07:43:37]*** 1F C3 80 73 C8 21 10 0A [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]*** 00 00 00 00 00 00 00 00 [07:43:37]Read from MH i2c: E0 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E0 10 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:43:37]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:43:37]wFMCommunicate request_size=10 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:43:37]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 11 00 00 [07:43:37]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [07:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:37]wFMCommunicate OK [07:43:37]Detected FM SN is 0000000000874941 [07:43:37]Stored FM SN is 0000000000874941 [07:43:37]wFMCommunicate request_size=9 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 16 00 00 04 FA 44 01 00 [07:43:37]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]FM PIN OK [07:43:37]wFMCommunicate request_size=8 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 14 04 00 03 02 00 01 [07:43:37]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=13 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:43:37]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:43:37]RAPDU: 90 00 [07:43:37]wFMCommunicate OK [07:43:37]wFMCommunicate request_size=4 [07:43:37]MH_SAM_APDU [07:43:37]CAPDU: 80 11 00 00 [07:43:37]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:37]Read from MH i2c: E2 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [07:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:37]wFMCommunicate OK [07:43:37]DocumentArchiveInit [07:43:37]Start Httpd... [07:43:37]Httpd thread 3067276644 created [07:43:37]Write to MH i2c: 01 00 00 0F 00 0F [07:43:37]Write i2c OK [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 [07:43:37]MH_I2C_Read... [07:43:37]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:43:37]MH Int Process started [07:43:37]Allocated Socket 8 [07:43:37]Bind OK [07:43:37]Listen OK [07:43:37]httpd running on port 8080 [07:43:37]Waiting for new connection... [07:43:37]OFD Sender: No OFD packet to send [07:43:39]accept exits with 6 [07:43:39]New connection [07:43:39]New thread 3066989924 created [07:43:39]Waiting for new connection... [07:43:39] Sock 6.Parse request [07:43:39]Sock 6.Check first char [07:43:39]Sock 6.First char is OK [07:43:39]request: POST /json_proto HTTP/1.0 [07:43:39]Method: POST [07:43:39]URL: /json_proto [07:43:39]Method is POST - this is cgi request [07:43:39]url: /json_proto [07:43:39]query_string will be loaded in cgi processing [07:43:39]execute_cgi json_proto POST (null) [07:43:39]execute_cgi path=json_proto method=POST [07:43:39]POST find Content-Length [07:43:39]Host: 172.17.45.196:8080 [07:43:39]Content-Length: 215 [07:43:39]Content-Type: application/json [07:43:39] [07:43:39]POST finish read [07:43:39]Found Content-Length = 215 [07:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:39]execute_script... [07:43:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:39]POST & json_proto [07:43:39]process_json_proto [07:43:39]json parsed OK: [07:43:39]protocol is kg_v1.0 [07:43:39]action value=get_value [07:43:39]process_action get_value [07:43:39]cmd_get_value [07:43:39]process_action get_value done [07:43:39]requested_data is exist [07:43:39]produce_requested_data [07:43:39]requested_item kkm.sn is exist - process it [07:43:39]requested_item kkm.ver is exist - process it [07:43:39]requested_item fm.sn is exist - process it [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 11 00 00 [07:43:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 17 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [07:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:39]wFMCommunicate OK [07:43:39]requested_item fd.num is exist - process it [07:43:39]SAM_PROTO_GetFieldsCounters [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 00 00 [07:43:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 67 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [07:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 67 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetFieldsCounters done [07:43:39]requested_item shift.num is exist - process it [07:43:39]requested_item shift.opened is exist - process it [07:43:39]req_shift_opened [07:43:39]FM_GetShiftState [07:43:39]SAM_PROTO_GetShiftState [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 01 00 [07:43:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [07:43:39]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:39]wFMCommunicate OK [07:43:39]SAM_PROTO_GetShiftState done [07:43:39]FM_GetShiftState done [07:43:39]req_shift_opened done [07:43:39]requested_item shift.open_date is exist - process it [07:43:39]req_shift_open_date [07:43:39]req_shift_open_date done [07:43:39]produce_requested_data done [07:43:39]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44647,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:43:39]process_action_free get_value [07:43:39]json_value_free [07:43:39]json_value_free done [07:43:39]process_json_proto returns [07:43:39]Send response to host [07:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44647,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:43:39]free response buf [07:43:39]execute_script done [07:43:39]execute_script returns [07:43:39]free content buf [07:43:39]Sock 6.Close socket [07:43:39]Sock 6.Thread stoped [07:43:39]accept exits with 9 [07:43:39]New connection [07:43:39]New thread 3066846564 created [07:43:39]Thread 3066989924 joined [07:43:39]Waiting for new connection... [07:43:39] Sock 9.Parse request [07:43:39]Sock 9.Check first char [07:43:39]Sock 9.First char is OK [07:43:39]request: POST /json_proto HTTP/1.0 [07:43:39]Method: POST [07:43:39]URL: /json_proto [07:43:39]Method is POST - this is cgi request [07:43:39]url: /json_proto [07:43:39]query_string will be loaded in cgi processing [07:43:39]execute_cgi json_proto POST (null) [07:43:39]execute_cgi path=json_proto method=POST [07:43:39]POST find Content-Length [07:43:39]Host: 172.17.45.196:8080 [07:43:39]Content-Length: 331 [07:43:39]Content-Type: application/json [07:43:39] [07:43:39]POST finish read [07:43:39]Found Content-Length = 331 [07:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:43:39]execute_script... [07:43:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:43:39]POST & json_proto [07:43:39]process_json_proto [07:43:39]json parsed OK: [07:43:39]protocol is kg_v1.0 [07:43:39]action value=get_value [07:43:39]process_action get_value [07:43:39]cmd_get_value [07:43:39]process_action get_value done [07:43:39]requested_data is exist [07:43:39]produce_requested_data [07:43:39]requested_item fm.sale.total is exist - process it [07:43:39]SAM_PROTO_GetFMData [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 13 03 00 [07:43:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:43:39]Read from MH i2c: E2 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 FD 00 [07:43:39]MH_I2C_Read... [07:43:39]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 0B AB 00 00 69 04 A0 00 6F 04 04 00 7C AA 00 00 B1 04 04 00 99 EE 0D 40 70 04 04 00 58 32 A3 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 67 CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FA 09 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 8E [07:43:39]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 0B AB 00 00 69 04 A0 00 6F 04 04 00 7C AA 00 00 B1 04 04 00 99 EE 0D 40 70 04 04 00 58 32 A3 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 67 CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FA 09 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [07:43:39]wFMCommunicate OK [07:43:39]wFMCommunicate request_size=4 [07:43:39]MH_SAM_APDU [07:43:39]CAPDU: 80 17 00 00 [07:43:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:43:39]Write i2c OK [07:43:39]MH_I2C_Read... [07:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:40]Read from MH i2c: E2 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [07:43:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [07:43:40]wFMCommunicate OK [07:43:40]wFMCommunicate request_size=4 [07:43:40]MH_SAM_APDU [07:43:40]CAPDU: 80 17 00 00 [07:43:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:43:40]Write i2c OK [07:43:40]MH_I2C_Read... [07:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:40]Read from MH i2c: E2 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [07:43:40]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [07:43:40]wFMCommunicate OK [07:43:40]wFMCommunicate request_size=4 [07:43:40]MH_SAM_APDU [07:43:40]CAPDU: 80 17 00 00 [07:43:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:43:40]Write i2c OK [07:43:40]MH_I2C_Read... [07:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:40]Read from MH i2c: E2 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [07:43:40]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [07:43:40]wFMCommunicate OK [07:43:40]wFMCommunicate request_size=4 [07:43:40]MH_SAM_APDU [07:43:40]CAPDU: 80 17 00 00 [07:43:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:43:40]Write i2c OK [07:43:40]MH_I2C_Read... [07:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [07:43:40]Read from MH i2c: E2 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 DF 00 [07:43:40]MH_I2C_Read... [07:43:40]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [07:43:40]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:43:40]wFMCommunicate OK [07:43:40]SAM_PROTO_GetFMData done [07:43:40]requested_item fm.sale_refund.total is exist - process it [07:43:40]requested_item fm.buy.total is exist - process it [07:43:40]requested_item shift.sale.total is exist - process it [07:43:40]SAM_PROTO_GetShiftData [07:43:40]wFMCommunicate request_size=4 [07:43:40]MH_SAM_APDU [07:43:40]CAPDU: 80 13 02 00 [07:43:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:43:40]Write i2c OK [07:43:40]MH_I2C_Read... [07:43:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:43:41]Read from MH i2c: E2 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 12 00 00 00 69 04 9A 00 6F 04 04 00 12 00 00 00 B1 04 03 00 54 2C 07 70 04 03 00 10 03 06 72 04 03 00 44 29 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD C2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 10 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 91 [07:43:41]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 12 00 00 00 69 04 9A 00 6F 04 04 00 12 00 00 00 B1 04 03 00 54 2C 07 70 04 03 00 10 03 06 72 04 03 00 44 29 01 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD C2 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3C 10 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [07:43:41]wFMCommunicate OK [07:43:41]wFMCommunicate request_size=4 [07:43:41]MH_SAM_APDU [07:43:41]CAPDU: 80 17 00 00 [07:43:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:43:41]Write i2c OK [07:43:41]MH_I2C_Read... [07:43:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:41]Read from MH i2c: E2 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 AB [07:43:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [07:43:41]wFMCommunicate OK [07:43:41]wFMCommunicate request_size=4 [07:43:41]MH_SAM_APDU [07:43:41]CAPDU: 80 17 00 00 [07:43:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:43:41]Write i2c OK [07:43:41]MH_I2C_Read... [07:43:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:41]Read from MH i2c: E2 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 [07:43:41]MH_I2C_Read... [07:43:41]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [07:43:41]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [07:43:42]wFMCommunicate OK [07:43:42]wFMCommunicate request_size=4 [07:43:42]MH_SAM_APDU [07:43:42]CAPDU: 80 17 00 00 [07:43:42]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:43:42]Write i2c OK [07:43:42]MH_I2C_Read... [07:43:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:43:42]Read from MH i2c: E2 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 FD 00 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [07:43:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [07:43:42]wFMCommunicate OK [07:43:42]wFMCommunicate request_size=4 [07:43:42]MH_SAM_APDU [07:43:42]CAPDU: 80 17 00 00 [07:43:42]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:43:42]Write i2c OK [07:43:42]MH_I2C_Read... [07:43:42]OFD Sender: No OFD packet to send [07:43:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [07:43:42]Read from MH i2c: E2 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 CA 00 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 CA 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [07:43:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:43:42]wFMCommunicate OK [07:43:42]SAM_PROTO_GetShiftData done [07:43:42]requested_item shift.sale.total_cash is exist - process it [07:43:42]requested_item shift.sale_refund.total is exist - process it [07:43:42]requested_item shift.sale_refund.total_cash is exist - process it [07:43:42]requested_item shift.buy.total is exist - process it [07:43:42]requested_item shift.buy.total_cash is exist - process it [07:43:42]produce_requested_data done [07:43:42]produce_requested_data return {"fm.sale.total":10746548.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":4701.00,"shift.sale.total_cash":3940.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:43:42]process_action_free get_value [07:43:42]json_value_free [07:43:42]json_value_free done [07:43:42]process_json_proto returns [07:43:42]Send response to host [07:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10746548.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":4701.00,"shift.sale.total_cash":3940.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:43:42]free response buf [07:43:42]execute_script done [07:43:42]execute_script returns [07:43:42]free content buf [07:43:42]Sock 9.Close socket [07:43:42]Sock 9.Thread stoped [07:43:43]accept exits with 6 [07:43:43]New connection [07:43:43]New thread 3066989924 created [07:43:43]Thread 3066846564 joined [07:43:43]Waiting for new connection... [07:43:43] Sock 6.Parse request [07:43:43]Sock 6.Check first char [07:43:43]Sock 6.First char is OK [07:43:43]request: POST /json_proto HTTP/1.0 [07:43:43]Method: POST [07:43:43]URL: /json_proto [07:43:43]Method is POST - this is cgi request [07:43:43]url: /json_proto [07:43:43]query_string will be loaded in cgi processing [07:43:43]execute_cgi json_proto POST (null) [07:43:43]execute_cgi path=json_proto method=POST [07:43:43]POST find Content-Length [07:43:43]Host: 172.17.45.196:8080 [07:43:43]Content-Length: 653 [07:43:43]Content-Type: application/json [07:43:43] [07:43:43]POST finish read [07:43:43]Found Content-Length = 653 [07:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14540", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:43]execute_script... [07:43:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14540", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:43]POST & json_proto [07:43:43]process_json_proto [07:43:43]json parsed OK: [07:43:43]protocol is kg_v1.0 [07:43:43]action value=close_receipt [07:43:43]process_action close_receipt [07:43:43]cmd_close_receipt [07:43:43]MH_GetDate [07:43:43]Write to MH i2c: F0 00 00 1D 00 0C [07:43:43]Write i2c OK [07:43:43]MH_I2C_Read... [07:43:43]Read from MH i2c: F0 [07:43:43]MH_I2C_Read... [07:43:43]Read from MH i2c: F0 09 00 [07:43:43]MH_I2C_Read... [07:43:43]Read from MH i2c: F0 09 00 1D 00 00 B0 F6 A5 66 BB 03 A5 66 8F [07:43:43]GetLastDocTimeStamp 1722140605 [07:43:43]current date 1722152624 [07:43:43]FM_GetShiftState [07:43:43]SAM_PROTO_GetShiftState [07:43:43]wFMCommunicate request_size=4 [07:43:43]MH_SAM_APDU [07:43:43]CAPDU: 80 13 01 00 [07:43:43]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:43:43]Write i2c OK [07:43:43]MH_I2C_Read... [07:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:43]Read from MH i2c: E2 [07:43:43]MH_I2C_Read... [07:43:43]Read from MH i2c: E2 0E 00 [07:43:43]MH_I2C_Read... [07:43:43]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [07:43:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:43]wFMCommunicate OK [07:43:43]SAM_PROTO_GetShiftState done [07:43:43]FM_GetShiftState done [07:43:43]opened in 1722126323 [07:43:43]opened+sec_in_day 1722212723 [07:43:43]quantity*price = 9500 [07:43:43]sum+1 = 9501 [07:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 19 28.07.2024 07:43 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44648 ФПД: 104041661430749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074344&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44648&fm=104041661430749&tin=02508201610067®Number=0000000000092655&sum=9500 0 [07:43:44]StoreToDocumentArchive [07:43:44]shift 430 fd 44648 [07:43:44]save to /storage/0430/doc_00044648 [07:43:44]save last doc name /storage/0430/doc_00044648 to /storage/kkm_last_doc_name [07:43:44]save OK [07:43:44]Clear old archive folders... [07:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=293 [07:43:44]tlvbuf is 017C5C90 [07:43:44]SAM_PROTO_ClearQueue [07:43:44]wFMCommunicate request_size=4 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 09 00 00 [07:43:44]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]SAM_PROTO_ClearQueue done [07:43:44]KKMCreateOFDPacket [07:43:44]OFDProtocolAddRootSTLVToBuf [07:43:44]FM_MakeSignedData [07:43:44]FM_MakeSignedData [07:43:44]SAM_PROTO_SignData [07:43:44]wFMCommunicate request_size=4 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 01 02 [07:43:44]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]wFMCommunicate request_size=255 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B0 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [07:43:45]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B0 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 B8 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:45]Read from MH i2c: E2 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 03 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:43:45]RAPDU: 90 00 [07:43:45]wFMCommunicate OK [07:43:45]wFMCommunicate request_size=52 [07:43:45]MH_SAM_APDU [07:43:45]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 68 AE 00 00 35 04 06 00 5E A0 16 45 7B DD [07:43:45]Write to MH i2c: E2 37 00 2E 00 80 0D 02 02 2F 00 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 68 AE 00 00 35 04 06 00 5E A0 16 45 7B DD 00 00 35 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:45]Read from MH i2c: E2 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 03 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:43:45]RAPDU: 90 00 [07:43:45]wFMCommunicate OK [07:43:45]wFMCommunicate request_size=4 [07:43:45]MH_SAM_APDU [07:43:45]CAPDU: 80 0D 03 02 [07:43:45]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:45]Read from MH i2c: E2 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 0B 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 0B 00 2F 00 00 97 89 88 46 80 B5 50 C0 90 00 DE [07:43:45]RAPDU: 97 89 88 46 80 B5 50 C0 90 00 [07:43:45]wFMCommunicate OK [07:43:45]SAM_PROTO_SignData done [07:43:45]FM_MakeSignedData done [07:43:45]CreateOFDProtocolMessage [07:43:45]wFMCommunicate request_size=4 [07:43:45]MH_SAM_APDU [07:43:45]CAPDU: 80 11 00 00 [07:43:45]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:45]Read from MH i2c: E2 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 17 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [07:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:45]wFMCommunicate OK [07:43:45]CreateOFDProtocolMessage done [07:43:45]OFDSenderStorePacket 44648 [07:43:45]StoreOFDPacket docnum=44648 [07:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 39 01 00 00 0E 4B 31 01 49 27 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B0 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 68 AE 00 00 35 04 06 00 5E A0 16 45 7B DD 97 89 88 46 80 B5 50 C0 [07:43:45]CheckFolder [07:43:45]dirname=/storage/ofd_packets [07:43:45]CheckFolder done [07:43:45]ProducePacketName [07:43:45]name=ofd_packets/00044648 [07:43:45]NVStorageSaveData ofd_packets/00044648 [07:43:45]File name is /storage/ofd_packets/00044648 [07:43:45]Write 343 bytes [07:43:45]NVStorageSaveData done [07:43:45]OFDSenderStorePacket done [07:43:45]KKMCreateOFDPacket done [07:43:45]NVStorageSaveData kkm_last_timestamp [07:43:45]File name is /storage/kkm_last_timestamp [07:43:45]Write 4 bytes [07:43:45]NVStorageSaveData done [07:43:45]ExternCall_PrintAddStr [07:43:45]wPrintStart [07:43:45]Write to MH i2c: 01 00 00 31 00 31 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 07 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:43:45]RasterBufferAndPrint [07:43:45]line Счет N : (3)14540 [07:43:45]line ИНН: 02508201610067 [07:43:45]line Контрольно-Кассовый Чек [07:43:45]line ПРОДАЖА [07:43:45]line Товар: 4700000480050 [07:43:45]line Напиток Nitro Energy эн green ж/б 0,45л [07:43:45]OFD Sender: Processing packet 44648 [packets to send 7, broken 6] [07:43:45]ProducePacketName [07:43:45]name=ofd_packets/00044648 [07:43:45]OFD Sender: To server: pG, [07:43:45]CommunicateWithHost lk.salyk.kg:30040 [07:43:45]ConnectInit lk.salyk.kg [07:43:45]line 1.000 * 95.00 [07:43:45]line = 95.00 [07:43:45]line НДС 12% НСП 1% [07:43:45]line > о реализуемом товаре [07:43:45]line ИТОГО: 95.00 [07:43:45]line НСП 1% : 0.84 [07:43:45]line НДС 12% : 10.09 [07:43:45]line Наличными: 95.00 [07:43:45]line Безнал.: 0.00 [07:43:45]line Место: АЗС № 128 "Партнер Нефть" [07:43:45]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:43:45]line СНО: Общий режим [07:43:45]line Чек 19 28.07.2024 07:43 [07:43:45]line Смена: 430 ФФД: 1.0 [07:43:45]line ЗНМ: 0300000045 [07:43:45]line РНМ: 0000000000092655 [07:43:45]line Версия ККМ: 001 [07:43:45]line ФМ: 0000000000874941 [07:43:45]line ФД: 44648 [07:43:45]line ФПД: 104041661430749 [07:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074344&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44648&fm=104041661430749&tin=02508201610067®Number=0000000000092655&sum=9500 [07:43:45]line 0 [07:43:45]written 0, free lines is 4095 [07:43:45]Connected sock=10 [07:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 39 01 00 00 0E 4B 31 01 49 27 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 B0 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 68 AE 00 00 35 04 06 00 5E A0 16 45 7B DD 97 89 88 46 80 B5 50 C0 [07:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 2F 88 47 00 53 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 68 AE 00 00 F4 03 04 00 C3 A2 A5 66 B6 04 01 00 00 E1 9D 9B 13 91 82 F4 7E [07:43:46]CommunicateWithHost err = 0 [07:43:46]CheckOFDResponse [07:43:46]1017 (14) - 77093643461234 [07:43:46]1041 (16) - 0000000000874941 [07:43:46]1040 (4) - 44648 [07:43:46]1012 (4) - 28.07.2024 01:45 [07:43:46]1206 (1) - 0 [07:43:46]OFD Sender: Remove packet 44648 [07:43:46]ProducePacketName [07:43:46]name=ofd_packets/00044648 [07:43:46]NVStorageDeleteData [07:43:46]Write to MH i2c: 01 00 00 5A 00 5A [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: 01 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: 01 07 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 26 0D 94 [07:43:46]RasterBufferAndPrint [07:43:46]line [07:43:46]line [07:43:46]line [07:43:46]line [07:43:46]line [07:43:46]written 0, free lines is 3388 [07:43:46]process_action close_receipt done [07:43:46]requested_data is exist [07:43:46]produce_requested_data [07:43:46]requested_item fm.sn is exist - process it [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 11 00 00 [07:43:46]Write to MH i2c: E2 08 00 61 00 80 11 00 00 00 00 00 00 DB [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 17 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 17 00 61 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2F [07:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:46]wFMCommunicate OK [07:43:46]requested_item fd.num is exist - process it [07:43:46]SAM_PROTO_GetFieldsCounters [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 13 00 00 [07:43:46]Write to MH i2c: E2 08 00 62 00 80 13 00 00 00 00 00 00 DE [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 62 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 62 00 62 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 68 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [07:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 68 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:46]wFMCommunicate OK [07:43:46]SAM_PROTO_GetFieldsCounters done [07:43:46]requested_item shift.num is exist - process it [07:43:46]requested_item shift.opened is exist - process it [07:43:46]req_shift_opened [07:43:46]FM_GetShiftState [07:43:46]SAM_PROTO_GetShiftState [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 13 01 00 [07:43:46]Write to MH i2c: E2 08 00 63 00 80 13 01 00 00 00 00 00 E0 [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 0E 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 0E 00 63 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 79 [07:43:46]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:46]wFMCommunicate OK [07:43:46]SAM_PROTO_GetShiftState done [07:43:46]FM_GetShiftState done [07:43:46]req_shift_opened done [07:43:46]requested_item shift.open_date is exist - process it [07:43:46]req_shift_open_date [07:43:46]req_shift_open_date done [07:43:46]produce_requested_data done [07:43:46]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44648,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:43:46]process_action_free close_receipt [07:43:46]json_value_free [07:43:46]json_value_free done [07:43:46]process_json_proto returns [07:43:46]Send response to host [07:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44648,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:43:46]free response buf [07:43:46]execute_script done [07:43:46]execute_script returns [07:43:46]free content buf [07:43:46]Sock 6.Close socket [07:43:46]Sock 6.Thread stoped [07:43:46]OFD Sender: No OFD packet to send [07:43:47]accept exits with 9 [07:43:47]New connection [07:43:47]New thread 3066846564 created [07:43:47]Thread 3066989924 joined [07:43:47]Waiting for new connection... [07:43:47] Sock 9.Parse request [07:43:47]Sock 9.Check first char [07:43:47]Sock 9.First char is OK [07:43:47]request: POST /json_proto HTTP/1.0 [07:43:47]Method: POST [07:43:47]URL: /json_proto [07:43:47]Method is POST - this is cgi request [07:43:47]url: /json_proto [07:43:47]query_string will be loaded in cgi processing [07:43:47]execute_cgi json_proto POST (null) [07:43:47]execute_cgi path=json_proto method=POST [07:43:47]POST find Content-Length [07:43:47]Host: 172.17.45.196:8080 [07:43:47]Content-Length: 620 [07:43:47]Content-Type: application/json [07:43:47] [07:43:47]POST finish read [07:43:47]Found Content-Length = 620 [07:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14541", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:47]execute_script... [07:43:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14541", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:47]POST & json_proto [07:43:47]process_json_proto [07:43:47]json parsed OK: [07:43:47]protocol is kg_v1.0 [07:43:47]action value=close_receipt [07:43:47]process_action close_receipt [07:43:47]cmd_close_receipt [07:43:47]MH_GetDate [07:43:47]Write to MH i2c: F0 00 00 64 00 53 [07:43:47]Write i2c OK [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 09 00 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 09 00 64 00 00 B4 F6 A5 66 BB 03 A5 66 DA [07:43:47]GetLastDocTimeStamp 1722152624 [07:43:47]current date 1722152628 [07:43:47]FM_GetShiftState [07:43:47]SAM_PROTO_GetShiftState [07:43:47]wFMCommunicate request_size=4 [07:43:47]MH_SAM_APDU [07:43:47]CAPDU: 80 13 01 00 [07:43:47]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [07:43:47]Write i2c OK [07:43:47]MH_I2C_Read... [07:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:47]Read from MH i2c: E2 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: E2 0E 00 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7B [07:43:47]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:47]wFMCommunicate OK [07:43:47]SAM_PROTO_GetShiftState done [07:43:47]FM_GetShiftState done [07:43:47]opened in 1722126323 [07:43:47]opened+sec_in_day 1722212723 [07:43:47]quantity*price = 14000 [07:43:47]sum+1 = 14001 [07:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 20 28.07.2024 07:43 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44649 ФПД: 240958149944071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074348&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44649&fm=240958149944071&tin=02508201610067®Number=0000000000092655&sum=14000 0 [07:43:49]StoreToDocumentArchive [07:43:49]shift 430 fd 44649 [07:43:49]save to /storage/0430/doc_00044649 [07:43:49]save last doc name /storage/0430/doc_00044649 to /storage/kkm_last_doc_name [07:43:49]save OK [07:43:49]Clear old archive folders... [07:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:43:49]tlvbuf is 017C5B60 [07:43:49]SAM_PROTO_ClearQueue [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 09 00 00 [07:43:49]Write to MH i2c: E2 08 00 72 00 80 09 00 00 00 00 00 00 E4 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [07:43:49]RAPDU: 90 00 [07:43:49]wFMCommunicate OK [07:43:49]SAM_PROTO_ClearQueue done [07:43:49]KKMCreateOFDPacket [07:43:49]OFDProtocolAddRootSTLVToBuf [07:43:49]FM_MakeSignedData [07:43:49]FM_MakeSignedData [07:43:49]SAM_PROTO_SignData [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 0D 01 02 [07:43:49]Write to MH i2c: E2 08 00 73 00 80 0D 01 02 00 00 00 00 EC [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [07:43:49]RAPDU: 90 00 [07:43:49]wFMCommunicate OK [07:43:49]wFMCommunicate request_size=255 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 [07:43:49]Write to MH i2c: E2 02 01 74 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 47 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [07:43:49]RAPDU: 90 00 [07:43:49]wFMCommunicate OK [07:43:49]wFMCommunicate request_size=32 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 31 10 04 04 00 69 AE 00 00 35 04 06 00 DB 26 70 EE E3 07 [07:43:49]Write to MH i2c: E2 23 00 75 00 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 31 10 04 04 00 69 AE 00 00 35 04 06 00 DB 26 70 EE E3 07 00 00 AD [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [07:43:49]RAPDU: 90 00 [07:43:49]wFMCommunicate OK [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 0D 03 02 [07:43:49]Write to MH i2c: E2 08 00 76 00 80 0D 03 02 00 00 00 00 F1 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 0B 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 0B 00 76 00 00 13 B6 AE 5A 01 B5 3B 5F 90 00 13 [07:43:49]RAPDU: 13 B6 AE 5A 01 B5 3B 5F 90 00 [07:43:49]wFMCommunicate OK [07:43:49]SAM_PROTO_SignData done [07:43:49]FM_MakeSignedData done [07:43:49]CreateOFDProtocolMessage [07:43:49]wFMCommunicate request_size=4 [07:43:49]MH_SAM_APDU [07:43:49]CAPDU: 80 11 00 00 [07:43:49]Write to MH i2c: E2 08 00 77 00 80 11 00 00 00 00 00 00 F1 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:49]Read from MH i2c: E2 17 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 17 00 77 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 45 [07:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:49]wFMCommunicate OK [07:43:49]CreateOFDProtocolMessage done [07:43:49]OFDSenderStorePacket 44649 [07:43:49]StoreOFDPacket docnum=44649 [07:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 C2 79 1D 01 72 F6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 69 AE 00 00 35 04 06 00 DB 26 70 EE E3 07 13 B6 AE 5A 01 B5 3B 5F [07:43:49]CheckFolder [07:43:49]dirname=/storage/ofd_packets [07:43:49]CheckFolder done [07:43:49]ProducePacketName [07:43:49]name=ofd_packets/00044649 [07:43:49]NVStorageSaveData ofd_packets/00044649 [07:43:49]File name is /storage/ofd_packets/00044649 [07:43:49]Write 323 bytes [07:43:49]NVStorageSaveData done [07:43:49]OFDSenderStorePacket done [07:43:49]KKMCreateOFDPacket done [07:43:49]NVStorageSaveData kkm_last_timestamp [07:43:49]File name is /storage/kkm_last_timestamp [07:43:49]Write 4 bytes [07:43:49]NVStorageSaveData done [07:43:49]ExternCall_PrintAddStr [07:43:49]wPrintStart [07:43:49]Write to MH i2c: 01 00 00 78 00 78 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 78 00 00 00 00 00 00 FF 0F 8D [07:43:49]RasterBufferAndPrint [07:43:49]line Счет N : (3)14541 [07:43:49]line ИНН: 02508201610067 [07:43:49]line Контрольно-Кассовый Чек [07:43:49]line ПРОДАЖА [07:43:49]line Товар: 48747059 [07:43:49]line Сигареты Winston Legend Blue [07:43:49]line 1.000 * 140.00 [07:43:49]line = 140.00 [07:43:49]line НДС 12% НСП 1% [07:43:49]line > о реализуемом товаре [07:43:49]line ИТОГО: 140.00 [07:43:49]line НСП 1% : 1.24 [07:43:49]line НДС 12% : 14.87 [07:43:49]line Наличными: 140.00 [07:43:50]line Безнал.: 0.00 [07:43:50]line Место: АЗС № 128 "Партнер Нефть" [07:43:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:43:50]line СНО: Общий режим [07:43:50]line Чек 20 28.07.2024 07:43 [07:43:50]line Смена: 430 ФФД: 1.0 [07:43:50]line ЗНМ: 0300000045 [07:43:50]line РНМ: 0000000000092655 [07:43:50]line Версия ККМ: 001 [07:43:50]line ФМ: 0000000000874941 [07:43:50]line ФД: 44649 [07:43:50]line ФПД: 240958149944071 [07:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074348&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44649&fm=240958149944071&tin=02508201610067®Number=0000000000092655&sum=14000 [07:43:50]line 0 [07:43:50]written 0, free lines is 4095 [07:43:50]OFD Sender: Processing packet 44649 [packets to send 7, broken 6] [07:43:50]ProducePacketName [07:43:50]name=ofd_packets/00044649 [07:43:50]OFD Sender: To server: pG, [07:43:50]CommunicateWithHost lk.salyk.kg:30040 [07:43:50]ConnectInit lk.salyk.kg [07:43:50]Connected sock=10 [07:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 C2 79 1D 01 72 F6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 69 AE 00 00 35 04 06 00 DB 26 70 EE E3 07 13 B6 AE 5A 01 B5 3B 5F [07:43:50]Write to MH i2c: 01 00 00 A1 00 A1 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 07 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 EC 0C A0 [07:43:50]RasterBufferAndPrint [07:43:50]line [07:43:50]line [07:43:50]line [07:43:50]line [07:43:50]line [07:43:50]written 0, free lines is 3337 [07:43:50]process_action close_receipt done [07:43:50]requested_data is exist [07:43:50]produce_requested_data [07:43:50]requested_item fm.sn is exist - process it [07:43:50]wFMCommunicate request_size=4 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 11 00 00 [07:43:50]Write to MH i2c: E2 08 00 A8 00 80 11 00 00 00 00 00 00 22 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 59 89 47 00 21 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 69 AE 00 00 F4 03 04 00 C8 A2 A5 66 B6 04 01 00 00 45 A1 0F FD B4 3E 72 EF [07:43:50]CommunicateWithHost err = 0 [07:43:50]CheckOFDResponse [07:43:50]1017 (14) - 77093643461234 [07:43:50]1041 (16) - 0000000000874941 [07:43:50]1040 (4) - 44649 [07:43:50]1012 (4) - 28.07.2024 01:45 [07:43:50]1206 (1) - 0 [07:43:50]OFD Sender: Remove packet 44649 [07:43:50]ProducePacketName [07:43:50]name=ofd_packets/00044649 [07:43:50]NVStorageDeleteData [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 17 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 17 00 A8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 76 [07:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:50]wFMCommunicate OK [07:43:50]requested_item fd.num is exist - process it [07:43:50]SAM_PROTO_GetFieldsCounters [07:43:50]wFMCommunicate request_size=4 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 13 00 00 [07:43:50]Write to MH i2c: E2 08 00 A9 00 80 13 00 00 00 00 00 00 25 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 62 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 62 00 A9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 69 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [07:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 69 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:50]wFMCommunicate OK [07:43:50]SAM_PROTO_GetFieldsCounters done [07:43:50]requested_item shift.num is exist - process it [07:43:50]requested_item shift.opened is exist - process it [07:43:50]req_shift_opened [07:43:50]FM_GetShiftState [07:43:50]SAM_PROTO_GetShiftState [07:43:50]wFMCommunicate request_size=4 [07:43:50]MH_SAM_APDU [07:43:50]CAPDU: 80 13 01 00 [07:43:50]Write to MH i2c: E2 08 00 AA 00 80 13 01 00 00 00 00 00 27 [07:43:50]Write i2c OK [07:43:50]MH_I2C_Read... [07:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:50]Read from MH i2c: E2 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 0E 00 [07:43:50]MH_I2C_Read... [07:43:50]Read from MH i2c: E2 0E 00 AA 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C0 [07:43:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:50]wFMCommunicate OK [07:43:50]SAM_PROTO_GetShiftState done [07:43:50]FM_GetShiftState done [07:43:50]req_shift_opened done [07:43:50]requested_item shift.open_date is exist - process it [07:43:50]req_shift_open_date [07:43:50]req_shift_open_date done [07:43:50]produce_requested_data done [07:43:50]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44649,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:43:50]process_action_free close_receipt [07:43:50]json_value_free [07:43:50]json_value_free done [07:43:50]process_json_proto returns [07:43:50]Send response to host [07:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44649,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:43:51]free response buf [07:43:51]execute_script done [07:43:51]execute_script returns [07:43:51]free content buf [07:43:51]Sock 9.Close socket [07:43:51]Sock 9.Thread stoped [07:43:51]OFD Sender: No OFD packet to send [07:43:52]accept exits with 7 [07:43:52]New connection [07:43:52]New thread 3066989924 created [07:43:52]Thread 3066846564 joined [07:43:52]Waiting for new connection... [07:43:52] Sock 7.Parse request [07:43:52]Sock 7.Check first char [07:43:52]Sock 7.First char is OK [07:43:52]request: POST /json_proto HTTP/1.0 [07:43:52]Method: POST [07:43:52]URL: /json_proto [07:43:52]Method is POST - this is cgi request [07:43:52]url: /json_proto [07:43:52]query_string will be loaded in cgi processing [07:43:52]execute_cgi json_proto POST (null) [07:43:52]execute_cgi path=json_proto method=POST [07:43:52]POST find Content-Length [07:43:52]Host: 172.17.45.196:8080 [07:43:52]Content-Length: 643 [07:43:52]Content-Type: application/json [07:43:52] [07:43:52]POST finish read [07:43:52]Found Content-Length = 643 [07:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14542", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:52]execute_script... [07:43:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14542", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:52]POST & json_proto [07:43:52]process_json_proto [07:43:52]json parsed OK: [07:43:52]protocol is kg_v1.0 [07:43:52]action value=close_receipt [07:43:52]process_action close_receipt [07:43:52]cmd_close_receipt [07:43:52]MH_GetDate [07:43:52]Write to MH i2c: F0 00 00 AB 00 9A [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 09 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 09 00 AB 00 00 B9 F6 A5 66 BB 03 A5 66 26 [07:43:52]GetLastDocTimeStamp 1722152628 [07:43:52]current date 1722152633 [07:43:52]FM_GetShiftState [07:43:52]SAM_PROTO_GetShiftState [07:43:52]wFMCommunicate request_size=4 [07:43:52]MH_SAM_APDU [07:43:52]CAPDU: 80 13 01 00 [07:43:52]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:52]Read from MH i2c: E2 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C2 [07:43:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:52]wFMCommunicate OK [07:43:52]SAM_PROTO_GetShiftState done [07:43:52]FM_GetShiftState done [07:43:52]opened in 1722126323 [07:43:52]opened+sec_in_day 1722212723 [07:43:52]quantity*price = 23000 [07:43:52]sum+1 = 23001 [07:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 21 28.07.2024 07:43 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44650 ФПД: 144767134797575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074353&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44650&fm=144767134797575&tin=02508201610067®Number=0000000000092655&sum=23000 0 [07:43:53]StoreToDocumentArchive [07:43:53]shift 430 fd 44650 [07:43:53]save to /storage/0430/doc_00044650 [07:43:53]save last doc name /storage/0430/doc_00044650 to /storage/kkm_last_doc_name [07:43:53]save OK [07:43:53]Clear old archive folders... [07:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:43:53]tlvbuf is 01788870 [07:43:53]SAM_PROTO_ClearQueue [07:43:53]wFMCommunicate request_size=4 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 09 00 00 [07:43:53]Write to MH i2c: E2 08 00 B9 00 80 09 00 00 00 00 00 00 2B [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:53]Read from MH i2c: E2 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [07:43:53]RAPDU: 90 00 [07:43:53]wFMCommunicate OK [07:43:53]SAM_PROTO_ClearQueue done [07:43:53]KKMCreateOFDPacket [07:43:53]OFDProtocolAddRootSTLVToBuf [07:43:53]FM_MakeSignedData [07:43:53]FM_MakeSignedData [07:43:53]SAM_PROTO_SignData [07:43:53]wFMCommunicate request_size=4 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 0D 01 02 [07:43:53]Write to MH i2c: E2 08 00 BA 00 80 0D 01 02 00 00 00 00 33 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [07:43:54]RAPDU: 90 00 [07:43:54]wFMCommunicate OK [07:43:54]wFMCommunicate request_size=255 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B9 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 [07:43:54]Write to MH i2c: E2 02 01 BB 00 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B9 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 00 00 59 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [07:43:54]RAPDU: 90 00 [07:43:54]wFMCommunicate OK [07:43:54]wFMCommunicate request_size=39 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6A AE 00 00 35 04 06 00 83 AA 39 A5 0F 07 [07:43:54]Write to MH i2c: E2 2A 00 BC 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6A AE 00 00 35 04 06 00 83 AA 39 A5 0F 07 00 00 2B [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [07:43:54]RAPDU: 90 00 [07:43:54]wFMCommunicate OK [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 0D 03 02 [07:43:54]Write to MH i2c: E2 08 00 BD 00 80 0D 03 02 00 00 00 00 38 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 0B 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 0B 00 BD 00 00 E8 33 16 61 4B 6E 18 11 90 00 AD [07:43:54]RAPDU: E8 33 16 61 4B 6E 18 11 90 00 [07:43:54]wFMCommunicate OK [07:43:54]SAM_PROTO_SignData done [07:43:54]FM_MakeSignedData done [07:43:54]CreateOFDProtocolMessage [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 11 00 00 [07:43:54]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 17 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8C [07:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:54]wFMCommunicate OK [07:43:54]CreateOFDProtocolMessage done [07:43:54]OFDSenderStorePacket 44650 [07:43:54]StoreOFDPacket docnum=44650 [07:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 1E 63 24 01 97 4A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B9 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6A AE 00 00 35 04 06 00 83 AA 39 A5 0F 07 E8 33 16 61 4B 6E 18 11 [07:43:54]CheckFolder [07:43:54]dirname=/storage/ofd_packets [07:43:54]CheckFolder done [07:43:54]ProducePacketName [07:43:54]name=ofd_packets/00044650 [07:43:54]NVStorageSaveData ofd_packets/00044650 [07:43:54]File name is /storage/ofd_packets/00044650 [07:43:54]Write 330 bytes [07:43:54]NVStorageSaveData done [07:43:54]OFDSenderStorePacket done [07:43:54]KKMCreateOFDPacket done [07:43:54]NVStorageSaveData kkm_last_timestamp [07:43:54]File name is /storage/kkm_last_timestamp [07:43:54]OFD Sender: Processing packet 44650 [packets to send 7, broken 6] [07:43:54]ProducePacketName [07:43:54]name=ofd_packets/00044650 [07:43:54]OFD Sender: To server: pG, [07:43:54]CommunicateWithHost lk.salyk.kg:30040 [07:43:54]ConnectInit lk.salyk.kg [07:43:54]Write 4 bytes [07:43:54]NVStorageSaveData done [07:43:54]ExternCall_PrintAddStr [07:43:54]wPrintStart [07:43:54]Write to MH i2c: 01 00 00 BF 00 BF [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 BF 00 00 00 00 00 00 FF 0F D4 [07:43:54]RasterBufferAndPrint [07:43:54]line Счет N : (3)14542 [07:43:54]line ИНН: 02508201610067 [07:43:54]line Контрольно-Кассовый Чек [07:43:54]line ПРОДАЖА [07:43:54]line Товар: 2000036210013 [07:43:54]line Кофе Капучино (GABB TRADE) [07:43:54]line 2.000 * 115.00 [07:43:54]line = 230.00 [07:43:54]line НДС 12% НСП 1% [07:43:54]line > о реализуемом товаре [07:43:54]line ИТОГО: 230.00 [07:43:54]line НСП 1% : 2.03 [07:43:54]line НДС 12% : 24.42 [07:43:54]line Наличными: 230.00 [07:43:54]line Безнал.: 0.00 [07:43:54]line Место: АЗС № 128 "Партнер Нефть" [07:43:54]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:43:54]line СНО: Общий режим [07:43:54]line Чек 21 28.07.2024 07:43 [07:43:54]line Смена: 430 ФФД: 1.0 [07:43:54]line ЗНМ: 0300000045 [07:43:54]line РНМ: 0000000000092655 [07:43:54]line Версия ККМ: 001 [07:43:54]line ФМ: 0000000000874941 [07:43:54]line ФД: 44650 [07:43:54]line ФПД: 144767134797575 [07:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074353&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44650&fm=144767134797575&tin=02508201610067®Number=0000000000092655&sum=23000 [07:43:54]line 0 [07:43:54]written 0, free lines is 4095 [07:43:54]Connected sock=11 [07:43:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 1E 63 24 01 97 4A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B9 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6A AE 00 00 35 04 06 00 83 AA 39 A5 0F 07 E8 33 16 61 4B 6E 18 11 [07:43:55]Write to MH i2c: 01 00 00 E7 00 E7 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 07 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 22 0D 1D [07:43:55]RasterBufferAndPrint [07:43:55]line [07:43:55]line [07:43:55]line [07:43:55]line [07:43:55]line [07:43:55]written 0, free lines is 3394 [07:43:55]process_action close_receipt done [07:43:55]requested_data is exist [07:43:55]produce_requested_data [07:43:55]requested_item fm.sn is exist - process it [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 11 00 00 [07:43:55]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [07:43:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F4 A0 47 00 1C 2F A5 07 01 00 Write i2c OK [07:43:55]07 MH_I2C_Read... [07:43:55]00 Read from MH i2c: 3B E2 00 [07:43:55]F9 MH_I2C_Read... [07:43:55]03 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:55]0E Read from MH i2c: 00 E2 37 17 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 37 30 30 30 39 30 33 30 36 30 34 30 33 30 34 38 36 37 31 34 39 34 31 90 00 BC [07:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 32 30 33 30 34 30 11 38 04 10 37 00 34 30 39 30 34 30 31 30 90 30 00 30 [07:43:55]30 wFMCommunicate OK [07:43:55]30 requested_item fd.num is exist - process it [07:43:55]30 SAM_PROTO_GetFieldsCounters [07:43:55]30 wFMCommunicate request_size=4 [07:43:55]38 MH_SAM_APDU [07:43:55]37 CAPDU: 34 80 39 13 34 00 31 00 10 [07:43:55]04 Write to MH i2c: 04 E2 00 08 6A 00 AE EF 00 80 13 00 00 00 00 00 00 6B [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]00 00 F4 03 04 00 CD A2 A5 66 B6 04 01 00 00 94 1F E2 31 99 19 0C AA [07:43:55]CommunicateWithHost err = 0 [07:43:55]CheckOFDResponse [07:43:55]1017 (14) - 77093643461234 [07:43:55]1041 (16) - 0000000000874941 [07:43:55]1040 (4) - 44650 [07:43:55]1012 (4) - 28.07.2024 01:45 [07:43:55]1206 (1) - 0 [07:43:55]OFD Sender: Remove packet 44650 [07:43:55]ProducePacketName [07:43:55]name=ofd_packets/00044650 [07:43:55]NVStorageDeleteData [07:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 62 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [07:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_GetFieldsCounters done [07:43:55]requested_item shift.num is exist - process it [07:43:55]requested_item shift.opened is exist - process it [07:43:55]req_shift_opened [07:43:55]FM_GetShiftState [07:43:55]SAM_PROTO_GetShiftState [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 13 01 00 [07:43:55]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0E 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 06 [07:43:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_GetShiftState done [07:43:55]FM_GetShiftState done [07:43:55]req_shift_opened done [07:43:55]requested_item shift.open_date is exist - process it [07:43:55]req_shift_open_date [07:43:55]req_shift_open_date done [07:43:55]produce_requested_data done [07:43:55]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44650,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:43:55]process_action_free close_receipt [07:43:55]json_value_free [07:43:55]json_value_free done [07:43:55]process_json_proto returns [07:43:55]Send response to host [07:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44650,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:43:55]free response buf [07:43:55]execute_script done [07:43:55]execute_script returns [07:43:55]free content buf [07:43:55]Sock 7.Close socket [07:43:55]Sock 7.Thread stoped [07:43:56]OFD Sender: No OFD packet to send [07:43:57]accept exits with 9 [07:43:57]New connection [07:43:57]New thread 3066846564 created [07:43:57]Thread 3066989924 joined [07:43:57]Waiting for new connection... [07:43:57] Sock 9.Parse request [07:43:57]Sock 9.Check first char [07:43:57]Sock 9.First char is OK [07:43:57]request: POST /json_proto HTTP/1.0 [07:43:57]Method: POST [07:43:57]URL: /json_proto [07:43:57]Method is POST - this is cgi request [07:43:57]url: /json_proto [07:43:57]query_string will be loaded in cgi processing [07:43:57]execute_cgi json_proto POST (null) [07:43:57]execute_cgi path=json_proto method=POST [07:43:57]POST find Content-Length [07:43:57]Host: 172.17.45.196:8080 [07:43:57]Content-Length: 625 [07:43:57]Content-Type: application/json [07:43:57] [07:43:57]POST finish read [07:43:57]Found Content-Length = 625 [07:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14543", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:57]execute_script... [07:43:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14543", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:57]POST & json_proto [07:43:57]process_json_proto [07:43:57]json parsed OK: [07:43:57]protocol is kg_v1.0 [07:43:57]action value=close_receipt [07:43:57]process_action close_receipt [07:43:57]cmd_close_receipt [07:43:57]MH_GetDate [07:43:57]Write to MH i2c: F0 00 00 F1 00 E0 [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: F0 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: F0 09 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: F0 09 00 F1 00 00 BE F6 A5 66 BB 03 A5 66 71 [07:43:57]GetLastDocTimeStamp 1722152633 [07:43:57]current date 1722152638 [07:43:57]FM_GetShiftState [07:43:57]SAM_PROTO_GetShiftState [07:43:57]wFMCommunicate request_size=4 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 13 01 00 [07:43:57]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 0E 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 08 [07:43:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:43:57]wFMCommunicate OK [07:43:57]SAM_PROTO_GetShiftState done [07:43:57]FM_GetShiftState done [07:43:57]opened in 1722126323 [07:43:57]opened+sec_in_day 1722212723 [07:43:57]quantity*price = 15000 [07:43:57]sum+1 = 15001 [07:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 22 28.07.2024 07:43 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44651 ФПД: 114786345283284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074358&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44651&fm=114786345283284&tin=02508201610067®Number=0000000000092655&sum=15000 0 [07:43:58]StoreToDocumentArchive [07:43:58]shift 430 fd 44651 [07:43:58]save to /storage/0430/doc_00044651 [07:43:58]save last doc name /storage/0430/doc_00044651 to /storage/kkm_last_doc_name [07:43:58]save OK [07:43:58]Clear old archive folders... [07:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:43:58]tlvbuf is 01793E00 [07:43:58]SAM_PROTO_ClearQueue [07:43:58]wFMCommunicate request_size=4 [07:43:58]MH_SAM_APDU [07:43:58]CAPDU: 80 09 00 00 [07:43:58]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [07:43:59]RAPDU: 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_ClearQueue done [07:43:59]KKMCreateOFDPacket [07:43:59]OFDProtocolAddRootSTLVToBuf [07:43:59]FM_MakeSignedData [07:43:59]FM_MakeSignedData [07:43:59]SAM_PROTO_SignData [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 0D 01 02 [07:43:59]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [07:43:59]RAPDU: 90 00 [07:43:59]wFMCommunicate OK [07:43:59]wFMCommunicate request_size=255 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 [07:43:59]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 00 00 25 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [07:43:59]RAPDU: 90 00 [07:43:59]wFMCommunicate OK [07:43:59]wFMCommunicate request_size=37 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6B AE 00 00 35 04 06 00 68 65 C7 55 EE D4 [07:43:59]Write to MH i2c: E2 28 00 02 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6B AE 00 00 35 04 06 00 68 65 C7 55 EE D4 00 00 99 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [07:43:59]RAPDU: 90 00 [07:43:59]wFMCommunicate OK [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 0D 03 02 [07:43:59]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0B 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0B 00 03 01 00 65 31 9C DA 81 6D DB 91 90 00 E6 [07:43:59]RAPDU: 65 31 9C DA 81 6D DB 91 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_SignData done [07:43:59]FM_MakeSignedData done [07:43:59]CreateOFDProtocolMessage [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 11 00 00 [07:43:59]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D3 [07:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:43:59]wFMCommunicate OK [07:43:59]CreateOFDProtocolMessage done [07:43:59]OFDSenderStorePacket 44651 [07:43:59]StoreOFDPacket docnum=44651 [07:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 EC 0B 22 01 7A 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6B AE 00 00 35 04 06 00 68 65 C7 55 EE D4 65 31 9C DA 81 6D DB 91 [07:43:59]CheckFolder [07:43:59]dirname=/storage/ofd_packets [07:43:59]CheckFolder done [07:43:59]ProducePacketName [07:43:59]name=ofd_packets/00044651 [07:43:59]NVStorageSaveData ofd_packets/00044651 [07:43:59]File name is /storage/ofd_packets/00044651 [07:43:59]Write 328 bytes [07:43:59]NVStorageSaveData done [07:43:59]OFDSenderStorePacket done [07:43:59]KKMCreateOFDPacket done [07:43:59]NVStorageSaveData kkm_last_timestamp [07:43:59]File name is /storage/kkm_last_timestamp [07:43:59]Write 4 bytes [07:43:59]NVStorageSaveData done [07:43:59]ExternCall_PrintAddStr [07:43:59]wPrintStart [07:43:59]Write to MH i2c: 01 00 00 05 01 06 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [07:44:00]RasterBufferAndPrint [07:44:00]line Счет N : (3)14543 [07:44:00]line ИНН: 02508201610067 [07:44:00]line Контрольно-Кассовый Чек [07:44:00]line ПРОДАЖА [07:44:00]line Товар: 4640030092499 [07:44:00]line Сигареты ESSE SENSE Himalaya [07:44:00]line 1.000 * 150.00 [07:44:00]line = 150.00 [07:44:00]line НДС 12% НСП 1% [07:44:00]line > о реализуемом товаре [07:44:00]line ИТОГО: 150.00 [07:44:00]line НСП 1% : 1.33 [07:44:00]line НДС 12% : 15.93 [07:44:00]line Наличными: 150.00 [07:44:00]line Безнал.: 0.00 [07:44:00]line Место: АЗС № 128 "Партнер Нефть" [07:44:00]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:00]line СНО: Общий режим [07:44:00]line Чек 22 28.07.2024 07:43 [07:44:00]line Смена: 430 ФФД: 1.0 [07:44:00]line ЗНМ: 0300000045 [07:44:00]line РНМ: 0000000000092655 [07:44:00]line Версия ККМ: 001 [07:44:00]line ФМ: 0000000000874941 [07:44:00]line ФД: 44651 [07:44:00]line ФПД: 114786345283284 [07:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074358&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44651&fm=114786345283284&tin=02508201610067®Number=0000000000092655&sum=15000 [07:44:00]line 0 [07:44:00]written 0, free lines is 4095 [07:44:00]OFD Sender: Processing packet 44651 [packets to send 7, broken 6] [07:44:00]ProducePacketName [07:44:00]name=ofd_packets/00044651 [07:44:00]OFD Sender: To server: pG, [07:44:00]CommunicateWithHost lk.salyk.kg:30040 [07:44:00]ConnectInit lk.salyk.kg [07:44:00]Connected sock=7 [07:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 EC 0B 22 01 7A 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6B AE 00 00 35 04 06 00 68 65 C7 55 EE D4 65 31 9C DA 81 6D DB 91 [07:44:00]Write to MH i2c: 01 00 00 2E 01 2F [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FB 0C 3D [07:44:00]RasterBufferAndPrint [07:44:00]line [07:44:00]line [07:44:00]line [07:44:00]line [07:44:00]line [07:44:00]written 0, free lines is 3359 [07:44:00]process_action close_receipt done [07:44:00]requested_data is exist [07:44:00]produce_requested_data [07:44:00]requested_item fm.sn is exist - process it [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 11 00 00 [07:44:00]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 17 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 04 [07:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:00]wFMCommunicate OK [07:44:00]requested_item fd.num is exist - process it [07:44:00]SAM_PROTO_GetFieldsCounters [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 13 00 00 [07:44:00]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [07:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 17 0D 47 00 69 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6B AE 00 00 F4 03 04 00 D2 A2 A5 66 B6 04 01 00 00 2F 1D F9 DC 19 0B DB 9D [07:44:00]CommunicateWithHost err = 0 [07:44:00]CheckOFDResponse [07:44:00]1017 (14) - 77093643461234 [07:44:00]1041 (16) - 0000000000874941 [07:44:00]1040 (4) - 44651 [07:44:00]1012 (4) - 28.07.2024 01:45 [07:44:00]1206 (1) - 0 [07:44:00]OFD Sender: Remove packet 44651 [07:44:00]ProducePacketName [07:44:00]name=ofd_packets/00044651 [07:44:00]NVStorageDeleteData [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 62 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 62 00 36 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [07:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:00]wFMCommunicate OK [07:44:00]SAM_PROTO_GetFieldsCounters done [07:44:00]requested_item shift.num is exist - process it [07:44:00]requested_item shift.opened is exist - process it [07:44:00]req_shift_opened [07:44:00]FM_GetShiftState [07:44:00]SAM_PROTO_GetShiftState [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 13 01 00 [07:44:00]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 0E 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4E [07:44:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:01]wFMCommunicate OK [07:44:01]SAM_PROTO_GetShiftState done [07:44:01]FM_GetShiftState done [07:44:01]req_shift_opened done [07:44:01]requested_item shift.open_date is exist - process it [07:44:01]req_shift_open_date [07:44:01]req_shift_open_date done [07:44:01]produce_requested_data done [07:44:01]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44651,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:01]process_action_free close_receipt [07:44:01]json_value_free [07:44:01]json_value_free done [07:44:01]process_json_proto returns [07:44:01]Send response to host [07:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44651,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:01]free response buf [07:44:01]execute_script done [07:44:01]execute_script returns [07:44:01]free content buf [07:44:01]Sock 9.Close socket [07:44:01]Sock 9.Thread stoped [07:44:01]OFD Sender: No OFD packet to send [07:44:02]accept exits with 10 [07:44:02]New connection [07:44:03]New thread 3066989924 created [07:44:03]Thread 3066846564 joined [07:44:03]Waiting for new connection... [07:44:03] Sock 10.Parse request [07:44:03]Sock 10.Check first char [07:44:03]Sock 10.First char is OK [07:44:03]request: POST /json_proto HTTP/1.0 [07:44:03]Method: POST [07:44:03]URL: /json_proto [07:44:03]Method is POST - this is cgi request [07:44:03]url: /json_proto [07:44:03]query_string will be loaded in cgi processing [07:44:03]execute_cgi json_proto POST (null) [07:44:03]execute_cgi path=json_proto method=POST [07:44:03]POST find Content-Length [07:44:03]Host: 172.17.45.196:8080 [07:44:03]Content-Length: 1197 [07:44:03]Content-Type: application/json [07:44:03] [07:44:03]POST finish read [07:44:03]Found Content-Length = 1197 [07:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14544", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 534.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:03]execute_script... [07:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14544", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 534.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:03]POST & json_proto [07:44:03]process_json_proto [07:44:03]json parsed OK: [07:44:03]protocol is kg_v1.0 [07:44:03]action value=close_receipt [07:44:03]process_action close_receipt [07:44:03]cmd_close_receipt [07:44:03]MH_GetDate [07:44:03]Write to MH i2c: F0 00 00 38 01 28 [07:44:03]Write i2c OK [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: F0 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: F0 09 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: F0 09 00 38 01 00 C3 F6 A5 66 BB 03 A5 66 BE [07:44:03]GetLastDocTimeStamp 1722152638 [07:44:03]current date 1722152643 [07:44:03]FM_GetShiftState [07:44:03]SAM_PROTO_GetShiftState [07:44:03]wFMCommunicate request_size=4 [07:44:03]MH_SAM_APDU [07:44:03]CAPDU: 80 13 01 00 [07:44:03]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [07:44:03]Write i2c OK [07:44:03]MH_I2C_Read... [07:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:03]Read from MH i2c: E2 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 50 [07:44:03]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:03]wFMCommunicate OK [07:44:03]SAM_PROTO_GetShiftState done [07:44:03]FM_GetShiftState done [07:44:03]opened in 1722126323 [07:44:03]opened+sec_in_day 1722212723 [07:44:03]quantity*price = 45000 [07:44:03]sum+1 = 45001 [07:44:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 534.00 НСП 1% : 4.72 НДС 12% : 56.71 Наличными: 534.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 23 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44652 ФПД: 86065129642295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074404&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44652&fm=86065129642295&tin=02508201610067®Number=0000000000092655&sum=53400 0 [07:44:04]StoreToDocumentArchive [07:44:04]shift 430 fd 44652 [07:44:04]save to /storage/0430/doc_00044652 [07:44:04]save last doc name /storage/0430/doc_00044652 to /storage/kkm_last_doc_name [07:44:04]save OK [07:44:04]Clear old archive folders... [07:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=496 [07:44:04]tlvbuf is 01819850 [07:44:04]SAM_PROTO_ClearQueue [07:44:04]wFMCommunicate request_size=4 [07:44:04]MH_SAM_APDU [07:44:04]CAPDU: 80 09 00 00 [07:44:04]Write to MH i2c: E2 08 00 46 01 80 09 00 00 00 00 00 00 B9 [07:44:04]Write i2c OK [07:44:04]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]SAM_PROTO_ClearQueue done [07:44:05]KKMCreateOFDPacket [07:44:05]OFDProtocolAddRootSTLVToBuf [07:44:05]FM_MakeSignedData [07:44:05]FM_MakeSignedData [07:44:05]SAM_PROTO_SignData [07:44:05]wFMCommunicate request_size=4 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 01 02 [07:44:05]Write to MH i2c: E2 08 00 47 01 80 0D 01 02 00 00 00 00 C1 [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]wFMCommunicate request_size=255 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 [07:44:05]Write to MH i2c: E2 02 01 48 01 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 00 00 23 [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]wFMCommunicate request_size=255 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 02 02 FA 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6C AE 00 00 35 04 06 00 4E 46 99 7A D9 37 [07:44:05]Write to MH i2c: E2 02 01 49 01 80 0D 02 02 FA 00 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6C AE 00 00 35 04 06 00 4E 46 99 7A D9 37 00 00 0E [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]OFD Sender: No OFD packet to send [07:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:06]Read from MH i2c: E2 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 03 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [07:44:06]RAPDU: 90 00 [07:44:06]wFMCommunicate OK [07:44:06]wFMCommunicate request_size=4 [07:44:06]MH_SAM_APDU [07:44:06]CAPDU: 80 0D 03 02 [07:44:06]Write to MH i2c: E2 08 00 4A 01 80 0D 03 02 00 00 00 00 C6 [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:06]Read from MH i2c: E2 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 0B 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 0B 00 4A 01 00 83 AF E8 7C 42 8F B4 74 90 00 56 [07:44:06]RAPDU: 83 AF E8 7C 42 8F B4 74 90 00 [07:44:06]wFMCommunicate OK [07:44:06]SAM_PROTO_SignData done [07:44:06]FM_MakeSignedData done [07:44:06]CreateOFDProtocolMessage [07:44:06]wFMCommunicate request_size=4 [07:44:06]MH_SAM_APDU [07:44:06]CAPDU: 80 11 00 00 [07:44:06]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:06]Read from MH i2c: E2 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 17 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1A [07:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:06]wFMCommunicate OK [07:44:06]CreateOFDProtocolMessage done [07:44:06]OFDSenderStorePacket 44652 [07:44:06]StoreOFDPacket docnum=44652 [07:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 04 02 00 00 4F 98 FC 01 C1 8B 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6C AE 00 00 35 04 06 00 4E 46 99 7A D9 37 83 AF E8 7C 42 8F B4 74 [07:44:06]CheckFolder [07:44:06]dirname=/storage/ofd_packets [07:44:06]CheckFolder done [07:44:06]ProducePacketName [07:44:06]name=ofd_packets/00044652 [07:44:06]NVStorageSaveData ofd_packets/00044652 [07:44:06]File name is /storage/ofd_packets/00044652 [07:44:06]Write 546 bytes [07:44:06]NVStorageSaveData done [07:44:06]OFDSenderStorePacket done [07:44:06]KKMCreateOFDPacket done [07:44:06]NVStorageSaveData kkm_last_timestamp [07:44:06]File name is /storage/kkm_last_timestamp [07:44:06]Write 4 bytes [07:44:06]NVStorageSaveData done [07:44:06]ExternCall_PrintAddStr [07:44:06]wPrintStart [07:44:06]Write to MH i2c: 01 00 00 4C 01 4D [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 07 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [07:44:06]RasterBufferAndPrint [07:44:06]line Счет N : (3)14544 [07:44:06]line ИНН: 02508201610067 [07:44:06]line Контрольно-Кассовый Чек [07:44:06]line ПРОДАЖА [07:44:06]line Товар: 4700002083266 [07:44:06]line Водка Атилла Гунн 0,5л [07:44:06]line 1.000 * 450.00 [07:44:06]line = 450.00 [07:44:06]line НДС 12% НСП 1% [07:44:06]line > о реализуемом товаре [07:44:06]line Товар: 4700000310036 [07:44:06]line Вода Жалалабат 27 0,5л [07:44:06]line 2.000 * 40.00 [07:44:06]line = 80.00 [07:44:06]line НДС 12% НСП 1% [07:44:06]line > о реализуемом товаре [07:44:06]line Товар: 2000031750019 [07:44:06]line Пакет Партнер Нефть [07:44:06]line 1.000 * 4.00 [07:44:06]line = 4.00 [07:44:06]line НДС 12% НСП 1% [07:44:06]line > о реализуемом товаре [07:44:06]line ИТОГО: 534.00 [07:44:06]OFD Sender: Processing packet 44652 [packets to send 7, broken 6] [07:44:06]line НСП 1% : 4.72 [07:44:06]line НДС 12% : 56.71 [07:44:06]line Наличными: 534.00 [07:44:06]line Безнал.: 0.00 [07:44:06]line Место: АЗС № 128 "Партнер Нефть" [07:44:06]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:06]line СНО: Общий режим [07:44:06]line Чек 23 28.07.2024 07:44 [07:44:06]line Смена: 430 ФФД: 1.0 [07:44:06]line ЗНМ: 0300000045 [07:44:06]line РНМ: 0000000000092655 [07:44:06]line Версия ККМ: 001 [07:44:06]line ФМ: 0000000000874941 [07:44:06]line ФД: 44652 [07:44:06]line ФПД: 86065129642295 [07:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074404&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44652&fm=86065129642295&tin=02508201610067®Number=0000000000092655&sum=53400 [07:44:06]line 0 [07:44:06]ProducePacketName [07:44:06]name=ofd_packets/00044652 [07:44:06]OFD Sender: To server: pG, [07:44:06]CommunicateWithHost lk.salyk.kg:30040 [07:44:06]ConnectInit lk.salyk.kg [07:44:06]written 0, free lines is 4095 [07:44:06]Connected sock=7 [07:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 04 02 00 00 4F 98 FC 01 C1 8B 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C4 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6C AE 00 00 35 04 06 00 4E 46 99 7A D9 37 83 AF E8 7C 42 8F B4 74 [07:44:07]Write to MH i2c: 01 00 00 80 01 81 [07:44:07]Write i2c OK [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: 01 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: 01 07 00 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 16 0D AB [07:44:07]RasterBufferAndPrint [07:44:07]line [07:44:07]line [07:44:07]line [07:44:07]line [07:44:07]line [07:44:07]written 0, free lines is 3395 [07:44:07]process_action close_receipt done [07:44:07]requested_data is exist [07:44:07]produce_requested_data [07:44:07]requested_item fm.sn is exist - process it [07:44:07]wFMCommunicate request_size=4 [07:44:07]MH_SAM_APDU [07:44:07]CAPDU: 80 11 00 00 [07:44:07]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [07:44:07]Write i2c OK [07:44:07]MH_I2C_Read... [07:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:07]Read from MH i2c: E2 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: E2 17 00 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 56 [07:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:07]wFMCommunicate OK [07:44:07]requested_item fd.num is exist - process it [07:44:07]SAM_PROTO_GetFieldsCounters [07:44:07]wFMCommunicate request_size=4 [07:44:07]MH_SAM_APDU [07:44:07]CAPDU: 80 13 00 00 [07:44:07]Write to MH i2c: E2 08 00 88 01 80 13 00 00 00 00 00 00 05 [07:44:07]Write i2c OK [07:44:07]MH_I2C_Read... [07:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 93 2C 47 00 B1 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6C AE 00 00 F4 03 04 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:07]D9 A2 A5 66 B6 04 01 00 00 66 A3 40 D3 Read from MH i2c: 84 E2 B3 [07:44:07]39 MH_I2C_Read... [07:44:07]9B [07:44:07]CommunicateWithHost err = 0 [07:44:07]CheckOFDResponse [07:44:07]1017 (14) - 77093643461234 [07:44:07]1041 (16) - 0000000000874941 [07:44:07]Read from MH i2c: 1040 (4) - 44652 [07:44:07]E2 1012 (4) - 28.07.2024 01:46 [07:44:07]62 1206 (1) - 0 [07:44:07]00 OFD Sender: Remove packet 44652 [07:44:07] [07:44:07]ProducePacketName [07:44:07]MH_I2C_Read... [07:44:07]name=ofd_packets/00044652 [07:44:07]NVStorageDeleteData [07:44:07]Read from MH i2c: E2 62 00 88 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [07:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:07]wFMCommunicate OK [07:44:07]SAM_PROTO_GetFieldsCounters done [07:44:07]requested_item shift.num is exist - process it [07:44:07]requested_item shift.opened is exist - process it [07:44:07]req_shift_opened [07:44:07]FM_GetShiftState [07:44:07]SAM_PROTO_GetShiftState [07:44:07]wFMCommunicate request_size=4 [07:44:07]MH_SAM_APDU [07:44:07]CAPDU: 80 13 01 00 [07:44:07]Write to MH i2c: E2 08 00 89 01 80 13 01 00 00 00 00 00 07 [07:44:07]Write i2c OK [07:44:07]MH_I2C_Read... [07:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:07]Read from MH i2c: E2 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: E2 0E 00 [07:44:07]MH_I2C_Read... [07:44:07]Read from MH i2c: E2 0E 00 89 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A0 [07:44:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:07]wFMCommunicate OK [07:44:07]SAM_PROTO_GetShiftState done [07:44:07]FM_GetShiftState done [07:44:07]req_shift_opened done [07:44:07]requested_item shift.open_date is exist - process it [07:44:07]req_shift_open_date [07:44:07]req_shift_open_date done [07:44:07]produce_requested_data done [07:44:07]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44652,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:07]process_action_free close_receipt [07:44:07]json_value_free [07:44:07]json_value_free done [07:44:07]process_json_proto returns [07:44:07]Send response to host [07:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44652,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:07]free response buf [07:44:07]execute_script done [07:44:07]execute_script returns [07:44:07]free content buf [07:44:07]Sock 10.Close socket [07:44:07]Sock 10.Thread stoped [07:44:08]OFD Sender: No OFD packet to send [07:44:09]accept exits with 9 [07:44:09]New connection [07:44:09]New thread 3066846564 created [07:44:09]Thread 3066989924 joined [07:44:09]Waiting for new connection... [07:44:09] Sock 9.Parse request [07:44:09]Sock 9.Check first char [07:44:09]Sock 9.First char is OK [07:44:09]request: POST /json_proto HTTP/1.0 [07:44:09]Method: POST [07:44:09]URL: /json_proto [07:44:09]Method is POST - this is cgi request [07:44:09]url: /json_proto [07:44:09]query_string will be loaded in cgi processing [07:44:09]execute_cgi json_proto POST (null) [07:44:09]execute_cgi path=json_proto method=POST [07:44:09]POST find Content-Length [07:44:09]Host: 172.17.45.196:8080 [07:44:09]Content-Length: 1176 [07:44:09]Content-Type: application/json [07:44:09] [07:44:09]POST finish read [07:44:09]Found Content-Length = 1176 [07:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14545", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 361.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:09]execute_script... [07:44:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14545", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 361.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:09]POST & json_proto [07:44:09]process_json_proto [07:44:09]json parsed OK: [07:44:09]protocol is kg_v1.0 [07:44:09]action value=close_receipt [07:44:09]process_action close_receipt [07:44:09]cmd_close_receipt [07:44:09]MH_GetDate [07:44:09]Write to MH i2c: F0 00 00 8A 01 7A [07:44:09]Write i2c OK [07:44:09]MH_I2C_Read... [07:44:09]Read from MH i2c: F0 [07:44:09]MH_I2C_Read... [07:44:09]Read from MH i2c: F0 09 00 [07:44:09]MH_I2C_Read... [07:44:09]Read from MH i2c: F0 09 00 8A 01 00 CA F6 A5 66 BB 03 A5 66 17 [07:44:10]GetLastDocTimeStamp 1722152644 [07:44:10]current date 1722152650 [07:44:10]FM_GetShiftState [07:44:10]SAM_PROTO_GetShiftState [07:44:10]wFMCommunicate request_size=4 [07:44:10]MH_SAM_APDU [07:44:10]CAPDU: 80 13 01 00 [07:44:10]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [07:44:10]Write i2c OK [07:44:10]MH_I2C_Read... [07:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:10]Read from MH i2c: E2 [07:44:10]MH_I2C_Read... [07:44:10]Read from MH i2c: E2 0E 00 [07:44:10]MH_I2C_Read... [07:44:10]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A2 [07:44:10]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:10]wFMCommunicate OK [07:44:10]SAM_PROTO_GetShiftState done [07:44:10]FM_GetShiftState done [07:44:10]opened in 1722126323 [07:44:10]opened+sec_in_day 1722212723 [07:44:10]quantity*price = 12000 [07:44:10]sum+1 = 12001 [07:44:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 361.00 НСП 1% : 3.19 НДС 12% : 38.33 Наличными: 361.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 24 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44653 ФПД: 141549183283023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074410&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44653&fm=141549183283023&tin=02508201610067®Number=0000000000092655&sum=36100 0 [07:44:12]StoreToDocumentArchive [07:44:12]shift 430 fd 44653 [07:44:12]save to /storage/0430/doc_00044653 [07:44:12]save last doc name /storage/0430/doc_00044653 to /storage/kkm_last_doc_name [07:44:12]save OK [07:44:12]Clear old archive folders... [07:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=489 [07:44:12]tlvbuf is 018278B0 [07:44:12]SAM_PROTO_ClearQueue [07:44:12]wFMCommunicate request_size=4 [07:44:12]MH_SAM_APDU [07:44:12]CAPDU: 80 09 00 00 [07:44:12]Write to MH i2c: E2 08 00 98 01 80 09 00 00 00 00 00 00 0B [07:44:12]Write i2c OK [07:44:12]MH_I2C_Read... [07:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:12]Read from MH i2c: E2 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [07:44:12]RAPDU: 90 00 [07:44:12]wFMCommunicate OK [07:44:12]SAM_PROTO_ClearQueue done [07:44:12]KKMCreateOFDPacket [07:44:12]OFDProtocolAddRootSTLVToBuf [07:44:12]FM_MakeSignedData [07:44:12]FM_MakeSignedData [07:44:12]SAM_PROTO_SignData [07:44:12]wFMCommunicate request_size=4 [07:44:12]MH_SAM_APDU [07:44:12]CAPDU: 80 0D 01 02 [07:44:12]Write to MH i2c: E2 08 00 99 01 80 0D 01 02 00 00 00 00 13 [07:44:12]Write i2c OK [07:44:12]MH_I2C_Read... [07:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:12]Read from MH i2c: E2 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [07:44:12]RAPDU: 90 00 [07:44:12]wFMCommunicate OK [07:44:12]wFMCommunicate request_size=255 [07:44:12]MH_SAM_APDU [07:44:12]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 [07:44:12]Write to MH i2c: E2 02 01 9A 01 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 00 00 F9 [07:44:12]Write i2c OK [07:44:12]MH_I2C_Read... [07:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:12]Read from MH i2c: E2 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 [07:44:12]MH_I2C_Read... [07:44:12]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [07:44:12]RAPDU: 90 00 [07:44:12]wFMCommunicate OK [07:44:12]wFMCommunicate request_size=248 [07:44:12]MH_SAM_APDU [07:44:12]CAPDU: 80 0D 02 02 F3 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6D AE 00 00 35 04 06 00 80 BC FC C9 AF 4F [07:44:13]Write to MH i2c: E2 FB 00 9B 01 80 0D 02 02 F3 00 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 OFD Sender: No OFD packet to send [07:44:13]32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6D AE 00 00 35 04 06 00 80 BC FC C9 AF 4F 00 00 94 [07:44:13]Write i2c OK [07:44:13]MH_I2C_Read... [07:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:13]Read from MH i2c: E2 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 03 00 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [07:44:13]RAPDU: 90 00 [07:44:13]wFMCommunicate OK [07:44:13]wFMCommunicate request_size=4 [07:44:13]MH_SAM_APDU [07:44:13]CAPDU: 80 0D 03 02 [07:44:13]Write to MH i2c: E2 08 00 9C 01 80 0D 03 02 00 00 00 00 18 [07:44:13]Write i2c OK [07:44:13]MH_I2C_Read... [07:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:13]Read from MH i2c: E2 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 0B 00 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 0B 00 9C 01 00 C0 00 84 62 A5 7E DC 94 90 00 52 [07:44:13]RAPDU: C0 00 84 62 A5 7E DC 94 90 00 [07:44:13]wFMCommunicate OK [07:44:13]SAM_PROTO_SignData done [07:44:13]FM_MakeSignedData done [07:44:13]CreateOFDProtocolMessage [07:44:13]wFMCommunicate request_size=4 [07:44:13]MH_SAM_APDU [07:44:13]CAPDU: 80 11 00 00 [07:44:13]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [07:44:13]Write i2c OK [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 [07:44:13]MH_I2C_Read... [07:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:13]Read from MH i2c: E2 17 00 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6C [07:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:13]wFMCommunicate OK [07:44:13]CreateOFDProtocolMessage done [07:44:13]OFDSenderStorePacket 44653 [07:44:13]StoreOFDPacket docnum=44653 [07:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 FD 01 00 00 E5 54 F5 01 57 41 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6D AE 00 00 35 04 06 00 80 BC FC C9 AF 4F C0 00 84 62 A5 7E DC 94 [07:44:13]CheckFolder [07:44:13]dirname=/storage/ofd_packets [07:44:13]CheckFolder done [07:44:13]ProducePacketName [07:44:13]name=ofd_packets/00044653 [07:44:13]NVStorageSaveData ofd_packets/00044653 [07:44:13]File name is /storage/ofd_packets/00044653 [07:44:13]Write 539 bytes [07:44:13]NVStorageSaveData done [07:44:13]OFDSenderStorePacket done [07:44:13]KKMCreateOFDPacket done [07:44:13]NVStorageSaveData kkm_last_timestamp [07:44:13]File name is /storage/kkm_last_timestamp [07:44:13]Write 4 bytes [07:44:13]NVStorageSaveData done [07:44:13]ExternCall_PrintAddStr [07:44:13]wPrintStart [07:44:13]Write to MH i2c: 01 00 00 9E 01 9F [07:44:13]Write i2c OK [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: 01 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: 01 07 00 [07:44:13]MH_I2C_Read... [07:44:13]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [07:44:13]RasterBufferAndPrint [07:44:13]line Счет N : (3)14545 [07:44:13]line ИНН: 02508201610067 [07:44:13]line Контрольно-Кассовый Чек [07:44:13]line ПРОДАЖА [07:44:13]line Товар: 4630007400990 [07:44:13]line Семечки ДЖИНН Великан 100гр [07:44:13]line 1.000 * 120.00 [07:44:13]line = 120.00 [07:44:13]line НДС 12% НСП 1% [07:44:13]line > о реализуемом товаре [07:44:13]line Товар: 4630007400389 [07:44:13]line Семечки ДЖИНН 140г [07:44:13]line 1.000 * 130.00 [07:44:13]line = 130.00 [07:44:13]line НДС 12% НСП 1% [07:44:13]line > о реализуемом товаре [07:44:13]line Товар: 4870001570071 [07:44:13]line Напиток Pepsi 1л [07:44:13]line 1.000 * 111.00 [07:44:13]line = 111.00 [07:44:13]line НДС 12% НСП 1% [07:44:13]line > о реализуемом товаре [07:44:13]line ИТОГО: 361.00 [07:44:13]line НСП 1% : 3.19 [07:44:13]line НДС 12% : 38.33 [07:44:13]line Наличными: 361.00 [07:44:13]OFD Sender: Processing packet 44653 [packets to send 7, broken 6] [07:44:13]ProducePacketName [07:44:13]name=ofd_packets/00044653 [07:44:13]OFD Sender: To server: pG, [07:44:13]CommunicateWithHost lk.salyk.kg:30040 [07:44:13]ConnectInit lk.salyk.kg [07:44:13]line Безнал.: 0.00 [07:44:13]line Место: АЗС № 128 "Партнер Нефть" [07:44:13]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:13]line СНО: Общий режим [07:44:13]line Чек 24 28.07.2024 07:44 [07:44:13]line Смена: 430 ФФД: 1.0 [07:44:13]line ЗНМ: 0300000045 [07:44:13]line РНМ: 0000000000092655 [07:44:13]line Версия ККМ: 001 [07:44:13]line ФМ: 0000000000874941 [07:44:13]line ФД: 44653 [07:44:13]line ФПД: 141549183283023 [07:44:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074410&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44653&fm=141549183283023&tin=02508201610067®Number=0000000000092655&sum=36100 [07:44:13]line 0 [07:44:13]written 0, free lines is 4095 [07:44:14]Connected sock=11 [07:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 FD 01 00 00 E5 54 F5 01 57 41 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0E 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6D AE 00 00 35 04 06 00 80 BC FC C9 AF 4F C0 00 84 62 A5 7E DC 94 [07:44:14]Write to MH i2c: 01 00 00 D3 01 D4 [07:44:14]Write i2c OK [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: 01 [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: 01 07 00 [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 49 0C 30 [07:44:14]RasterBufferAndPrint [07:44:14]line [07:44:14]line [07:44:14]line [07:44:14]line [07:44:14]line [07:44:14]written 0, free lines is 3194 [07:44:14]process_action close_receipt done [07:44:14]requested_data is exist [07:44:14]produce_requested_data [07:44:14]requested_item fm.sn is exist - process it [07:44:14]wFMCommunicate request_size=4 [07:44:14]MH_SAM_APDU [07:44:14]CAPDU: 80 11 00 00 [07:44:14]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [07:44:14]Write i2c OK [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: E2 [07:44:14]MH_I2C_Read... [07:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:14]Read from MH i2c: E2 17 00 [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A9 [07:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:14]wFMCommunicate OK [07:44:14]requested_item fd.num is exist - process it [07:44:14]SAM_PROTO_GetFieldsCounters [07:44:14]wFMCommunicate request_size=4 [07:44:14]MH_SAM_APDU [07:44:14]CAPDU: 80 13 00 00 [07:44:14]Write to MH i2c: E2 08 00 DB 01 80 13 00 Received data: 00 87 00 95 00 F6 00 70 00 47 58 [07:44:14]2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 7E F1 47 00 6E 3C A5 Write i2c OK [07:44:14]07 MH_I2C_Read... [07:44:14]01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6D AE 00 00 F4 03 04 00 E0 A2 A5 66 B6 04 01 00 00 70 3E F3 14 02 2A D9 AE [07:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:14]CommunicateWithHost err = 0 [07:44:14]CheckOFDResponse [07:44:14]1017 (14) - 77093643461234 [07:44:14]1041 (16) - 0000000000874941 [07:44:14]1040 (4) - 44653 [07:44:14]1012 (4) - 28.07.2024 01:46 [07:44:14]1206 (1) - 0 [07:44:14]OFD Sender: Remove packet 44653 [07:44:14]ProducePacketName [07:44:14]name=ofd_packets/00044653 [07:44:14]NVStorageDeleteData [07:44:14]Read from MH i2c: E2 [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: E2 62 00 [07:44:14]MH_I2C_Read... [07:44:14]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [07:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:15]wFMCommunicate OK [07:44:15]SAM_PROTO_GetFieldsCounters done [07:44:15]requested_item shift.num is exist - process it [07:44:15]requested_item shift.opened is exist - process it [07:44:15]req_shift_opened [07:44:15]FM_GetShiftState [07:44:15]SAM_PROTO_GetShiftState [07:44:15]wFMCommunicate request_size=4 [07:44:15]MH_SAM_APDU [07:44:15]CAPDU: 80 13 01 00 [07:44:15]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [07:44:15]Write i2c OK [07:44:15]MH_I2C_Read... [07:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:15]Read from MH i2c: E2 [07:44:15]MH_I2C_Read... [07:44:15]Read from MH i2c: E2 0E 00 [07:44:15]MH_I2C_Read... [07:44:15]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F3 [07:44:15]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:15]wFMCommunicate OK [07:44:15]SAM_PROTO_GetShiftState done [07:44:15]FM_GetShiftState done [07:44:15]req_shift_opened done [07:44:15]requested_item shift.open_date is exist - process it [07:44:15]req_shift_open_date [07:44:15]req_shift_open_date done [07:44:15]produce_requested_data done [07:44:15]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44653,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:15]process_action_free close_receipt [07:44:15]json_value_free [07:44:15]json_value_free done [07:44:15]process_json_proto returns [07:44:15]Send response to host [07:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44653,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:15]free response buf [07:44:15]execute_script done [07:44:15]execute_script returns [07:44:15]free content buf [07:44:15]Sock 9.Close socket [07:44:15]Sock 9.Thread stoped [07:44:15]OFD Sender: No OFD packet to send [07:44:16]accept exits with 7 [07:44:16]New connection [07:44:16]New thread 3066989924 created [07:44:16]Thread 3066846564 joined [07:44:16]Waiting for new connection... [07:44:16] Sock 7.Parse request [07:44:16]Sock 7.Check first char [07:44:16]Sock 7.First char is OK [07:44:16]request: POST /json_proto HTTP/1.0 [07:44:16]Method: POST [07:44:16]URL: /json_proto [07:44:16]Method is POST - this is cgi request [07:44:16]url: /json_proto [07:44:16]query_string will be loaded in cgi processing [07:44:16]execute_cgi json_proto POST (null) [07:44:16]execute_cgi path=json_proto method=POST [07:44:16]POST find Content-Length [07:44:16]Host: 172.17.45.196:8080 [07:44:16]Content-Length: 574 [07:44:16]Content-Type: application/json [07:44:16] [07:44:16]POST finish read [07:44:16]Found Content-Length = 574 [07:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14546", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:16]execute_script... [07:44:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14546", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:16]POST & json_proto [07:44:16]process_json_proto [07:44:16]json parsed OK: [07:44:16]protocol is kg_v1.0 [07:44:16]action value=close_receipt [07:44:16]process_action close_receipt [07:44:16]cmd_close_receipt [07:44:16]MH_GetDate [07:44:16]Write to MH i2c: F0 00 00 DD 01 CD [07:44:16]Write i2c OK [07:44:16]MH_I2C_Read... [07:44:16]Read from MH i2c: F0 [07:44:16]MH_I2C_Read... [07:44:16]Read from MH i2c: F0 09 00 [07:44:16]MH_I2C_Read... [07:44:16]Read from MH i2c: F0 09 00 DD 01 00 D1 F6 A5 66 BB 03 A5 66 71 [07:44:16]GetLastDocTimeStamp 1722152650 [07:44:16]current date 1722152657 [07:44:16]FM_GetShiftState [07:44:16]SAM_PROTO_GetShiftState [07:44:16]wFMCommunicate request_size=4 [07:44:16]MH_SAM_APDU [07:44:16]CAPDU: 80 13 01 00 [07:44:16]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [07:44:16]Write i2c OK [07:44:16]MH_I2C_Read... [07:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:16]Read from MH i2c: E2 [07:44:16]MH_I2C_Read... [07:44:16]Read from MH i2c: E2 0E 00 [07:44:16]MH_I2C_Read... [07:44:16]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F5 [07:44:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:16]wFMCommunicate OK [07:44:16]SAM_PROTO_GetShiftState done [07:44:16]FM_GetShiftState done [07:44:16]opened in 1722126323 [07:44:16]opened+sec_in_day 1722212723 [07:44:16]quantity*price = 13000 [07:44:16]sum+1 = 13001 [07:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 25 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44654 ФПД: 130080328460497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074417&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44654&fm=130080328460497&tin=02508201610067®Number=0000000000092655&sum=13000 0 [07:44:18]StoreToDocumentArchive [07:44:18]shift 430 fd 44654 [07:44:18]save to /storage/0430/doc_00044654 [07:44:18]save last doc name /storage/0430/doc_00044654 to /storage/kkm_last_doc_name [07:44:18]save OK [07:44:18]Clear old archive folders... [07:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=259 [07:44:18]tlvbuf is 01888FB0 [07:44:18]SAM_PROTO_ClearQueue [07:44:18]wFMCommunicate request_size=4 [07:44:18]MH_SAM_APDU [07:44:18]CAPDU: 80 09 00 00 [07:44:18]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:18]Read from MH i2c: E2 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: E2 03 00 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [07:44:18]RAPDU: 90 00 [07:44:18]wFMCommunicate OK [07:44:18]SAM_PROTO_ClearQueue done [07:44:18]KKMCreateOFDPacket [07:44:18]OFDProtocolAddRootSTLVToBuf [07:44:18]FM_MakeSignedData [07:44:18]FM_MakeSignedData [07:44:18]SAM_PROTO_SignData [07:44:18]wFMCommunicate request_size=4 [07:44:18]MH_SAM_APDU [07:44:18]CAPDU: 80 0D 01 02 [07:44:18]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:18]Read from MH i2c: E2 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: E2 03 00 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [07:44:18]RAPDU: 90 00 [07:44:18]wFMCommunicate OK [07:44:18]wFMCommunicate request_size=255 [07:44:18]MH_SAM_APDU [07:44:18]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D1 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6E [07:44:19]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D1 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6E 00 00 62 [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 03 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [07:44:19]RAPDU: 90 00 [07:44:19]wFMCommunicate OK [07:44:19]wFMCommunicate request_size=18 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 0D 02 02 0D AE 00 00 35 04 06 00 76 4E AF C5 28 D1 [07:44:19]Write to MH i2c: E2 15 00 EE 01 80 0D 02 02 0D 00 AE 00 00 35 04 06 00 76 4E AF C5 28 D1 00 00 A1 [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 03 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [07:44:19]RAPDU: 90 00 [07:44:19]wFMCommunicate OK [07:44:19]wFMCommunicate request_size=4 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 0D 03 02 [07:44:19]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 0B 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 0B 00 EF 01 00 DD A3 3C 0D 72 EA 85 90 90 00 A6 [07:44:19]RAPDU: DD A3 3C 0D 72 EA 85 90 90 00 [07:44:19]wFMCommunicate OK [07:44:19]SAM_PROTO_SignData done [07:44:19]FM_MakeSignedData done [07:44:19]CreateOFDProtocolMessage [07:44:19]wFMCommunicate request_size=4 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 11 00 00 [07:44:19]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:20]Read from MH i2c: E2 [07:44:20]MH_I2C_Read... [07:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:20]Read from MH i2c: E2 17 00 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BF [07:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:20]wFMCommunicate OK [07:44:20]CreateOFDProtocolMessage done [07:44:20]OFDSenderStorePacket 44654 [07:44:20]StoreOFDPacket docnum=44654 [07:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 01 00 00 EB 43 0F 01 02 07 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D1 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6E AE 00 00 35 04 06 00 76 4E AF C5 28 D1 DD A3 3C 0D 72 EA 85 90 [07:44:20]CheckFolder [07:44:20]dirname=/storage/ofd_packets [07:44:20]CheckFolder done [07:44:20]ProducePacketName [07:44:20]name=ofd_packets/00044654 [07:44:20]NVStorageSaveData ofd_packets/00044654 [07:44:20]File name is /storage/ofd_packets/00044654 [07:44:20]Write 309 bytes [07:44:20]NVStorageSaveData done [07:44:20]OFDSenderStorePacket done [07:44:20]KKMCreateOFDPacket done [07:44:20]NVStorageSaveData kkm_last_timestamp [07:44:20]File name is /storage/kkm_last_timestamp [07:44:20]Write 4 bytes [07:44:20]NVStorageSaveData done [07:44:20]ExternCall_PrintAddStr [07:44:20]wPrintStart [07:44:20]Write to MH i2c: 01 00 00 F1 01 F2 [07:44:20]Write i2c OK [07:44:20]MH_I2C_Read... [07:44:20]OFD Sender: Processing packet 44654 [packets to send 7, broken 6] [07:44:20]ProducePacketName [07:44:20]name=ofd_packets/00044654 [07:44:20]OFD Sender: To server: pG, [07:44:20]CommunicateWithHost lk.salyk.kg:30040 [07:44:20]ConnectInit lk.salyk.kg [07:44:20]Read from MH i2c: 01 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: 01 07 00 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [07:44:20]RasterBufferAndPrint [07:44:20]line Счет N : (3)14546 [07:44:20]line ИНН: 02508201610067 [07:44:20]line Контрольно-Кассовый Чек [07:44:20]line ПРОДАЖА [07:44:20]line Товар: 46233820 [07:44:20]line LD Compact 100s Silver [07:44:20]line 1.000 * 130.00 [07:44:20]line = 130.00 [07:44:20]line НДС 12% НСП 1% [07:44:20]line > о реализуемом товаре [07:44:20]line ИТОГО: 130.00 [07:44:20]line НСП 1% : 1.15 [07:44:20]line НДС 12% : 13.80 [07:44:20]line Наличными: 130.00 [07:44:20]line Безнал.: 0.00 [07:44:20]line Место: АЗС № 128 "Партнер Нефть" [07:44:20]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:20]line СНО: Общий режим [07:44:20]line Чек 25 28.07.2024 07:44 [07:44:20]line Смена: 430 ФФД: 1.0 [07:44:20]line ЗНМ: 0300000045 [07:44:20]line РНМ: 0000000000092655 [07:44:20]line Версия ККМ: 001 [07:44:20]line ФМ: 0000000000874941 [07:44:20]line ФД: 44654 [07:44:20]line ФПД: 130080328460497 [07:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074417&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44654&fm=130080328460497&tin=02508201610067®Number=0000000000092655&sum=13000 [07:44:20]line 0 [07:44:20]written 0, free lines is 4095 [07:44:20]Connected sock=10 [07:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 01 00 00 EB 43 0F 01 02 07 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 D1 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6E AE 00 00 35 04 06 00 76 4E AF C5 28 D1 DD A3 3C 0D 72 EA 85 90 [07:44:20]Write to MH i2c: 01 00 00 19 02 1B [07:44:20]Write i2c OK [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: 01 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: 01 07 00 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 19 0D 48 [07:44:20]RasterBufferAndPrint [07:44:20]line [07:44:20]line [07:44:20]line [07:44:20]line [07:44:20]line [07:44:20]written 0, free lines is 3406 [07:44:20]process_action close_receipt done [07:44:20]requested_data is exist [07:44:20]produce_requested_data [07:44:20]requested_item fm.sn is exist - process it [07:44:20]wFMCommunicate request_size=4 [07:44:20]MH_SAM_APDU [07:44:20]CAPDU: 80 11 00 00 [07:44:20]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [07:44:20]Write i2c OK [07:44:20]MH_I2C_Read... [07:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:20]Read from MH i2c: E2 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: E2 17 00 [07:44:20]MH_I2C_Read... [07:44:20]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F0 [07:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:20]wFMCommunicate OK [07:44:20]requested_item fd.num is exist - process it [07:44:20]SAM_PROTO_GetFieldsCounters [07:44:20]wFMCommunicate request_size=4 [07:44:20]MH_SAM_APDU [07:44:20]CAPDU: 80 13 00 00 [07:44:20]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [07:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 58 4D 47 00 D8 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 Write i2c OK [07:44:21]39 MH_I2C_Read... [07:44:21]34 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:21]31 Read from MH i2c: 10 04 E2 [07:44:21]MH_I2C_Read... [07:44:21]04 00 6E AE 00 00 F4 03 04 00 E6 A2 A5 66 B6 04 01 00 00 BE 7C 1B EE 3E 56 E2 57 [07:44:21]CommunicateWithHost err = 0 [07:44:21]Read from MH i2c: CheckOFDResponse [07:44:21]E2 1017 (14) - 77093643461234 [07:44:21]62 1041 (16) - 0000000000874941 [07:44:21]00 1040 (4) - 44654 [07:44:21] [07:44:21]1012 (4) - 28.07.2024 01:46 [07:44:21]MH_I2C_Read... [07:44:21]1206 (1) - 0 [07:44:21]OFD Sender: Remove packet 44654 [07:44:21]ProducePacketName [07:44:21]name=ofd_packets/00044654 [07:44:21]NVStorageDeleteData [07:44:21]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [07:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:21]wFMCommunicate OK [07:44:21]SAM_PROTO_GetFieldsCounters done [07:44:21]requested_item shift.num is exist - process it [07:44:21]requested_item shift.opened is exist - process it [07:44:21]req_shift_opened [07:44:21]FM_GetShiftState [07:44:21]SAM_PROTO_GetShiftState [07:44:21]wFMCommunicate request_size=4 [07:44:21]MH_SAM_APDU [07:44:21]CAPDU: 80 13 01 00 [07:44:21]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [07:44:21]Write i2c OK [07:44:21]MH_I2C_Read... [07:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:21]Read from MH i2c: E2 [07:44:21]MH_I2C_Read... [07:44:21]Read from MH i2c: E2 0E 00 [07:44:21]MH_I2C_Read... [07:44:21]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3A [07:44:21]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:21]wFMCommunicate OK [07:44:21]SAM_PROTO_GetShiftState done [07:44:21]FM_GetShiftState done [07:44:21]req_shift_opened done [07:44:21]requested_item shift.open_date is exist - process it [07:44:21]req_shift_open_date [07:44:21]req_shift_open_date done [07:44:21]produce_requested_data done [07:44:21]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44654,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:21]process_action_free close_receipt [07:44:21]json_value_free [07:44:21]json_value_free done [07:44:21]process_json_proto returns [07:44:21]Send response to host [07:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44654,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:21]free response buf [07:44:21]execute_script done [07:44:21]execute_script returns [07:44:21]free content buf [07:44:21]Sock 7.Close socket [07:44:21]Sock 7.Thread stoped [07:44:21]OFD Sender: No OFD packet to send [07:44:22]accept exits with 9 [07:44:22]New connection [07:44:22]New thread 3066846564 created [07:44:22]Thread 3066989924 joined [07:44:22]Waiting for new connection... [07:44:22] Sock 9.Parse request [07:44:22]Sock 9.Check first char [07:44:22]Sock 9.First char is OK [07:44:22]request: POST /json_proto HTTP/1.0 [07:44:22]Method: POST [07:44:22]URL: /json_proto [07:44:22]Method is POST - this is cgi request [07:44:22]url: /json_proto [07:44:22]query_string will be loaded in cgi processing [07:44:22]execute_cgi json_proto POST (null) [07:44:22]execute_cgi path=json_proto method=POST [07:44:22]POST find Content-Length [07:44:22]Host: 172.17.45.196:8080 [07:44:22]Content-Length: 643 [07:44:22]Content-Type: application/json [07:44:22] [07:44:22]POST finish read [07:44:22]Found Content-Length = 643 [07:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14547", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:22]execute_script... [07:44:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14547", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:22]POST & json_proto [07:44:22]process_json_proto [07:44:22]json parsed OK: [07:44:22]protocol is kg_v1.0 [07:44:22]action value=close_receipt [07:44:22]process_action close_receipt [07:44:22]cmd_close_receipt [07:44:22]MH_GetDate [07:44:22]Write to MH i2c: F0 00 00 23 02 14 [07:44:22]Write i2c OK [07:44:22]MH_I2C_Read... [07:44:22]Read from MH i2c: F0 [07:44:22]MH_I2C_Read... [07:44:22]Read from MH i2c: F0 09 00 [07:44:22]MH_I2C_Read... [07:44:22]Read from MH i2c: F0 09 00 23 02 00 D7 F6 A5 66 BB 03 A5 66 BE [07:44:22]GetLastDocTimeStamp 1722152657 [07:44:22]current date 1722152663 [07:44:22]FM_GetShiftState [07:44:22]SAM_PROTO_GetShiftState [07:44:22]wFMCommunicate request_size=4 [07:44:22]MH_SAM_APDU [07:44:22]CAPDU: 80 13 01 00 [07:44:22]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [07:44:22]Write i2c OK [07:44:22]MH_I2C_Read... [07:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:22]Read from MH i2c: E2 [07:44:22]MH_I2C_Read... [07:44:22]Read from MH i2c: E2 0E 00 [07:44:22]MH_I2C_Read... [07:44:22]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3C [07:44:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:22]wFMCommunicate OK [07:44:22]SAM_PROTO_GetShiftState done [07:44:22]FM_GetShiftState done [07:44:22]opened in 1722126323 [07:44:22]opened+sec_in_day 1722212723 [07:44:22]quantity*price = 23000 [07:44:22]sum+1 = 23001 [07:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 26 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44655 ФПД: 48562331519639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074423&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44655&fm=48562331519639&tin=02508201610067®Number=0000000000092655&sum=23000 0 [07:44:24]StoreToDocumentArchive [07:44:24]shift 430 fd 44655 [07:44:24]save to /storage/0430/doc_00044655 [07:44:24]save last doc name /storage/0430/doc_00044655 to /storage/kkm_last_doc_name [07:44:24]save OK [07:44:24]Clear old archive folders... [07:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:44:24]tlvbuf is 0189C750 [07:44:24]SAM_PROTO_ClearQueue [07:44:24]wFMCommunicate request_size=4 [07:44:24]MH_SAM_APDU [07:44:24]CAPDU: 80 09 00 00 [07:44:24]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [07:44:24]Write i2c OK [07:44:24]MH_I2C_Read... [07:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:25]Read from MH i2c: E2 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [07:44:25]RAPDU: 90 00 [07:44:25]wFMCommunicate OK [07:44:25]SAM_PROTO_ClearQueue done [07:44:25]KKMCreateOFDPacket [07:44:25]OFDProtocolAddRootSTLVToBuf [07:44:25]FM_MakeSignedData [07:44:25]FM_MakeSignedData [07:44:25]SAM_PROTO_SignData [07:44:25]wFMCommunicate request_size=4 [07:44:25]MH_SAM_APDU [07:44:25]CAPDU: 80 0D 01 02 [07:44:25]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [07:44:25]Write i2c OK [07:44:25]MH_I2C_Read... [07:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:25]Read from MH i2c: E2 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [07:44:25]RAPDU: 90 00 [07:44:25]wFMCommunicate OK [07:44:25]wFMCommunicate request_size=255 [07:44:25]MH_SAM_APDU [07:44:25]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 [07:44:25]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 00 00 F6 [07:44:25]Write i2c OK [07:44:25]MH_I2C_Read... [07:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:25]Read from MH i2c: E2 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 [07:44:25]MH_I2C_Read... [07:44:25]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [07:44:25]RAPDU: 90 00 [07:44:25]wFMCommunicate OK [07:44:25]wFMCommunicate request_size=39 [07:44:25]MH_SAM_APDU [07:44:25]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6F AE 00 00 35 04 06 00 2C 2A CC 85 0A 97 [07:44:25]Write to MH i2c: E2 2A 00 34 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6F AE 00 00 35 04 06 00 2C 2A CC 85 0A 97 00 00 D1 [07:44:26]Write i2c OK [07:44:26]MH_I2C_Read... [07:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:26]Read from MH i2c: E2 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 03 00 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [07:44:26]RAPDU: 90 00 [07:44:26]wFMCommunicate OK [07:44:26]wFMCommunicate request_size=4 [07:44:26]MH_SAM_APDU [07:44:26]CAPDU: 80 0D 03 02 [07:44:26]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [07:44:26]Write i2c OK [07:44:26]MH_I2C_Read... [07:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:26]Read from MH i2c: E2 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 0B 00 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 0B 00 35 02 00 4B AD 12 FD A2 89 88 D1 90 00 3E [07:44:26]RAPDU: 4B AD 12 FD A2 89 88 D1 90 00 [07:44:26]wFMCommunicate OK [07:44:26]SAM_PROTO_SignData done [07:44:26]FM_MakeSignedData done [07:44:26]CreateOFDProtocolMessage [07:44:26]wFMCommunicate request_size=4 [07:44:26]MH_SAM_APDU [07:44:26]CAPDU: 80 11 00 00 [07:44:26]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [07:44:26]Write i2c OK [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 [07:44:26]MH_I2C_Read... [07:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:26]Read from MH i2c: E2 17 00 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 06 [07:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:26]wFMCommunicate OK [07:44:26]CreateOFDProtocolMessage done [07:44:26]OFDSenderStorePacket 44655 [07:44:26]StoreOFDPacket docnum=44655 [07:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 E7 8D 24 01 59 E2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6F AE 00 00 35 04 06 00 2C 2A CC 85 0A 97 4B AD 12 FD A2 89 88 D1 [07:44:26]CheckFolder [07:44:26]dirname=/storage/ofd_packets [07:44:26]CheckFolder done [07:44:26]ProducePacketName [07:44:26]name=ofd_packets/00044655 [07:44:26]NVStorageSaveData ofd_packets/00044655 [07:44:26]File name is /storage/ofd_packets/00044655 [07:44:26]Write 330 bytes [07:44:26]NVStorageSaveData done [07:44:26]OFDSenderStorePacket done [07:44:26]KKMCreateOFDPacket done [07:44:26]NVStorageSaveData kkm_last_timestamp [07:44:26]File name is /storage/kkm_last_timestamp [07:44:26]Write 4 bytes [07:44:26]NVStorageSaveData done [07:44:26]ExternCall_PrintAddStr [07:44:26]wPrintStart [07:44:26]Write to MH i2c: 01 00 00 37 02 39 [07:44:26]Write i2c OK [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 07 00 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [07:44:26]RasterBufferAndPrint [07:44:26]line Счет N : (3)14547 [07:44:26]line ИНН: 02508201610067 [07:44:26]line Контрольно-Кассовый Чек [07:44:26]line ПРОДАЖА [07:44:26]line Товар: 2000036210013 [07:44:26]line Кофе Капучино (GABB TRADE) [07:44:26]line 2.000 * 115.00 [07:44:26]line = 230.00 [07:44:26]line НДС 12% НСП 1% [07:44:26]line > о реализуемом товаре [07:44:26]line ИТОГО: 230.00 [07:44:26]line НСП 1% : 2.03 [07:44:26]line НДС 12% : 24.42 [07:44:26]line Наличными: 230.00 [07:44:26]line Безнал.: 0.00 [07:44:26]line Место: АЗС № 128 "Партнер Нефть" [07:44:26]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:26]line СНО: Общий режим [07:44:26]line Чек 26 28.07.2024 07:44 [07:44:26]line Смена: 430 ФФД: 1.0 [07:44:26]line ЗНМ: 0300000045 [07:44:26]line РНМ: 0000000000092655 [07:44:26]line Версия ККМ: 001 [07:44:26]line ФМ: 0000000000874941 [07:44:26]line ФД: 44655 [07:44:26]line ФПД: 48562331519639 [07:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074423&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44655&fm=48562331519639&tin=02508201610067®Number=0000000000092655&sum=23000 [07:44:26]line 0 [07:44:26]written 0, free lines is 4095 [07:44:26]OFD Sender: Processing packet 44655 [packets to send 7, broken 6] [07:44:26]ProducePacketName [07:44:26]name=ofd_packets/00044655 [07:44:26]OFD Sender: To server: pG, [07:44:26]CommunicateWithHost lk.salyk.kg:30040 [07:44:26]ConnectInit lk.salyk.kg [07:44:26]Connected sock=10 [07:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 E7 8D 24 01 59 E2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 6F AE 00 00 35 04 06 00 2C 2A CC 85 0A 97 4B AD 12 FD A2 89 88 D1 [07:44:26]Write to MH i2c: 01 00 00 5F 02 61 [07:44:26]Write i2c OK [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 07 00 [07:44:26]MH_I2C_Read... [07:44:26]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 78 0D ED [07:44:27]RasterBufferAndPrint [07:44:27]line [07:44:27]line [07:44:27]line [07:44:27]line [07:44:27]line [07:44:27]written 0, free lines is 3498 [07:44:27]process_action close_receipt done [07:44:27]requested_data is exist [07:44:27]produce_requested_data [07:44:27]requested_item fm.sn is exist - process it [07:44:27]wFMCommunicate request_size=4 [07:44:27]MH_SAM_APDU [07:44:27]CAPDU: 80 11 00 00 [07:44:27]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [07:44:27]Write i2c OK [07:44:27]MH_I2C_Read... [07:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:27]Read from MH i2c: E2 [07:44:27]MH_I2C_Read... [07:44:27]Read from MH i2c: E2 17 00 [07:44:27]MH_I2C_Read... [07:44:27]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 36 [07:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:27]wFMCommunicate OK [07:44:27]requested_item fd.num is exist - process it [07:44:27]SAM_PROTO_GetFieldsCounters [07:44:27]wFMCommunicate request_size=4 [07:44:27]MH_SAM_APDU [07:44:27]CAPDU: 80 13 00 00 [07:44:27]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [07:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 3D 1D 47 00 7B 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 Write i2c OK [07:44:27]30 MH_I2C_Read... [07:44:27]30 Read from MH i2c: 30 E2 30 [07:44:27]30 MH_I2C_Read... [07:44:27]30 30 30 38 37 34 39 34 31 10 04 04 00 6F AE 00 00 F4 03 04 00 EC A2 A5 66 B6 04 01 00 00 A9 30 1E AC 55 D3 20 67 [07:44:27]CommunicateWithHost err = 0 [07:44:27]Read from MH i2c: CheckOFDResponse [07:44:27]E2 1017 (14) - 77093643461234 [07:44:27]62 1041 (16) - 0000000000874941 [07:44:27]00 1040 (4) - 44655 [07:44:27] [07:44:27]MH_I2C_Read... [07:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:27]1012 (4) - 28.07.2024 01:46 [07:44:27]1206 (1) - 0 [07:44:27]Read from MH i2c: OFD Sender: Remove packet 44655 [07:44:27]E2 ProducePacketName [07:44:27]62 name=ofd_packets/00044655 [07:44:27]00 NVStorageDeleteData [07:44:27]67 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [07:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 6F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:27]wFMCommunicate OK [07:44:27]SAM_PROTO_GetFieldsCounters done [07:44:27]requested_item shift.num is exist - process it [07:44:27]requested_item shift.opened is exist - process it [07:44:27]req_shift_opened [07:44:27]FM_GetShiftState [07:44:27]SAM_PROTO_GetShiftState [07:44:27]wFMCommunicate request_size=4 [07:44:27]MH_SAM_APDU [07:44:27]CAPDU: 80 13 01 00 [07:44:27]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [07:44:27]Write i2c OK [07:44:27]MH_I2C_Read... [07:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:27]Read from MH i2c: E2 [07:44:27]MH_I2C_Read... [07:44:27]Read from MH i2c: E2 0E 00 [07:44:27]MH_I2C_Read... [07:44:27]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 80 [07:44:27]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:27]wFMCommunicate OK [07:44:27]SAM_PROTO_GetShiftState done [07:44:27]FM_GetShiftState done [07:44:27]req_shift_opened done [07:44:27]requested_item shift.open_date is exist - process it [07:44:27]req_shift_open_date [07:44:27]req_shift_open_date done [07:44:27]produce_requested_data done [07:44:27]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44655,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:27]process_action_free close_receipt [07:44:27]json_value_free [07:44:27]json_value_free done [07:44:27]process_json_proto returns [07:44:27]Send response to host [07:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44655,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:27]free response buf [07:44:27]execute_script done [07:44:27]execute_script returns [07:44:27]free content buf [07:44:27]Sock 9.Close socket [07:44:27]Sock 9.Thread stoped [07:44:28]OFD Sender: No OFD packet to send [07:44:29]accept exits with 7 [07:44:29]New connection [07:44:29]New thread 3066989924 created [07:44:29]Thread 3066846564 joined [07:44:29]Waiting for new connection... [07:44:29] Sock 7.Parse request [07:44:29]Sock 7.Check first char [07:44:29]Sock 7.First char is OK [07:44:29]request: POST /json_proto HTTP/1.0 [07:44:29]Method: POST [07:44:29]URL: /json_proto [07:44:29]Method is POST - this is cgi request [07:44:29]url: /json_proto [07:44:29]query_string will be loaded in cgi processing [07:44:29]execute_cgi json_proto POST (null) [07:44:29]execute_cgi path=json_proto method=POST [07:44:29]POST find Content-Length [07:44:29]Host: 172.17.45.196:8080 [07:44:29]Content-Length: 644 [07:44:29]Content-Type: application/json [07:44:29] [07:44:29]POST finish read [07:44:29]Found Content-Length = 644 [07:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14548", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:29]execute_script... [07:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14548", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:29]POST & json_proto [07:44:29]process_json_proto [07:44:29]json parsed OK: [07:44:29]protocol is kg_v1.0 [07:44:29]action value=close_receipt [07:44:29]process_action close_receipt [07:44:29]cmd_close_receipt [07:44:29]MH_GetDate [07:44:29]Write to MH i2c: F0 00 00 69 02 5A [07:44:29]Write i2c OK [07:44:29]MH_I2C_Read... [07:44:29]Read from MH i2c: F0 [07:44:29]MH_I2C_Read... [07:44:29]Read from MH i2c: F0 09 00 [07:44:29]MH_I2C_Read... [07:44:29]Read from MH i2c: F0 09 00 69 02 00 DE F6 A5 66 BB 03 A5 66 0B [07:44:29]GetLastDocTimeStamp 1722152663 [07:44:29]current date 1722152670 [07:44:29]FM_GetShiftState [07:44:29]SAM_PROTO_GetShiftState [07:44:29]wFMCommunicate request_size=4 [07:44:29]MH_SAM_APDU [07:44:29]CAPDU: 80 13 01 00 [07:44:29]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [07:44:29]Write i2c OK [07:44:29]MH_I2C_Read... [07:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:29]Read from MH i2c: E2 [07:44:29]MH_I2C_Read... [07:44:29]Read from MH i2c: E2 0E 00 [07:44:29]MH_I2C_Read... [07:44:29]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 82 [07:44:29]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:29]wFMCommunicate OK [07:44:29]SAM_PROTO_GetShiftState done [07:44:29]FM_GetShiftState done [07:44:29]opened in 1722126323 [07:44:29]opened+sec_in_day 1722212723 [07:44:29]quantity*price = 6500 [07:44:29]sum+1 = 6501 [07:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 27 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44656 ФПД: 113985842415086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074430&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44656&fm=113985842415086&tin=02508201610067®Number=0000000000092655&sum=6500 0 [07:44:31]StoreToDocumentArchive [07:44:31]shift 430 fd 44656 [07:44:31]save to /storage/0430/doc_00044656 [07:44:31]save last doc name /storage/0430/doc_00044656 to /storage/kkm_last_doc_name [07:44:31]save OK [07:44:31]Clear old archive folders... [07:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:44:31]tlvbuf is 0189C630 [07:44:31]SAM_PROTO_ClearQueue [07:44:31]wFMCommunicate request_size=4 [07:44:31]MH_SAM_APDU [07:44:31]CAPDU: 80 09 00 00 [07:44:31]Write to MH i2c: E2 08 00 77 02 80 09 00 00 00 00 00 00 EB [07:44:31]Write i2c OK [07:44:31]MH_I2C_Read... [07:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:31]Read from MH i2c: E2 [07:44:31]MH_I2C_Read... [07:44:31]Read from MH i2c: E2 03 00 [07:44:31]MH_I2C_Read... [07:44:31]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [07:44:31]RAPDU: 90 00 [07:44:31]wFMCommunicate OK [07:44:32]SAM_PROTO_ClearQueue done [07:44:32]KKMCreateOFDPacket [07:44:32]OFDProtocolAddRootSTLVToBuf [07:44:32]FM_MakeSignedData [07:44:32]FM_MakeSignedData [07:44:32]SAM_PROTO_SignData [07:44:32]wFMCommunicate request_size=4 [07:44:32]MH_SAM_APDU [07:44:32]CAPDU: 80 0D 01 02 [07:44:32]Write to MH i2c: E2 08 00 78 02 80 0D 01 02 00 00 00 00 F3 [07:44:32]Write i2c OK [07:44:32]MH_I2C_Read... [07:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:32]Read from MH i2c: E2 [07:44:32]MH_I2C_Read... [07:44:32]Read from MH i2c: E2 03 00 [07:44:32]MH_I2C_Read... [07:44:32]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [07:44:32]RAPDU: 90 00 [07:44:32]wFMCommunicate OK [07:44:32]wFMCommunicate request_size=255 [07:44:32]MH_SAM_APDU [07:44:32]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [07:44:32]Write to MH i2c: E2 02 01 79 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 EA [07:44:32]Write i2c OK [07:44:32]MH_I2C_Read... [07:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:32]Read from MH i2c: E2 [07:44:32]MH_I2C_Read... [07:44:32]Read from MH i2c: E2 03 00 [07:44:32]MH_I2C_Read... [07:44:32]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [07:44:32]RAPDU: 90 00 [07:44:32]wFMCommunicate OK [07:44:32]wFMCommunicate request_size=31 [07:44:32]MH_SAM_APDU [07:44:32]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 70 AE 00 00 35 04 06 00 67 AB 65 A5 85 EE [07:44:32]Write to MH i2c: E2 22 00 7A 02 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 70 AE 00 00 35 04 06 00 67 AB 65 A5 85 EE 00 00 CF [07:44:33]Write i2c OK [07:44:33]MH_I2C_Read... [07:44:33]OFD Sender: No OFD packet to send [07:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:33]Read from MH i2c: E2 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 03 00 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [07:44:33]RAPDU: 90 00 [07:44:33]wFMCommunicate OK [07:44:33]wFMCommunicate request_size=4 [07:44:33]MH_SAM_APDU [07:44:33]CAPDU: 80 0D 03 02 [07:44:33]Write to MH i2c: E2 08 00 7B 02 80 0D 03 02 00 00 00 00 F8 [07:44:33]Write i2c OK [07:44:33]MH_I2C_Read... [07:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:33]Read from MH i2c: E2 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 0B 00 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 0B 00 7B 02 00 E6 BF C1 76 5B D5 9D 82 90 00 24 [07:44:33]RAPDU: E6 BF C1 76 5B D5 9D 82 90 00 [07:44:33]wFMCommunicate OK [07:44:33]SAM_PROTO_SignData done [07:44:33]FM_MakeSignedData done [07:44:33]CreateOFDProtocolMessage [07:44:33]wFMCommunicate request_size=4 [07:44:33]MH_SAM_APDU [07:44:33]CAPDU: 80 11 00 00 [07:44:33]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [07:44:33]Write i2c OK [07:44:33]MH_I2C_Read... [07:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:33]Read from MH i2c: E2 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 17 00 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4C [07:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:33]wFMCommunicate OK [07:44:33]CreateOFDProtocolMessage done [07:44:33]OFDSenderStorePacket 44656 [07:44:33]StoreOFDPacket docnum=44656 [07:44:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 E4 07 1C 01 FC B1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 70 AE 00 00 35 04 06 00 67 AB 65 A5 85 EE E6 BF C1 76 5B D5 9D 82 [07:44:33]CheckFolder [07:44:33]dirname=/storage/ofd_packets [07:44:33]CheckFolder done [07:44:33]ProducePacketName [07:44:33]name=ofd_packets/00044656 [07:44:33]NVStorageSaveData ofd_packets/00044656 [07:44:33]File name is /storage/ofd_packets/00044656 [07:44:33]Write 322 bytes [07:44:33]NVStorageSaveData done [07:44:33]OFDSenderStorePacket done [07:44:33]KKMCreateOFDPacket done [07:44:33]NVStorageSaveData kkm_last_timestamp [07:44:33]File name is /storage/kkm_last_timestamp [07:44:33]Write 4 bytes [07:44:33]NVStorageSaveData done [07:44:33]ExternCall_PrintAddStr [07:44:33]wPrintStart [07:44:33]Write to MH i2c: 01 00 00 7D 02 7F [07:44:33]Write i2c OK [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: 01 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: 01 07 00 [07:44:33]MH_I2C_Read... [07:44:33]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [07:44:33]RasterBufferAndPrint [07:44:33]line Счет N : (3)14548 [07:44:33]line ИНН: 02508201610067 [07:44:33]line Контрольно-Кассовый Чек [07:44:33]line ПРОДАЖА [07:44:33]line Товар: 47011656 [07:44:33]line Водка Пшеничная 0,1л [07:44:33]line 1.000 * 65.00 [07:44:33]line = 65.00 [07:44:33]line НДС 12% НСП 1% [07:44:33]line > о реализуемом товаре [07:44:33]line ИТОГО: 65.00 [07:44:33]line НСП 1% : 0.57 [07:44:33]line НДС 12% : 6.90 [07:44:33]line Наличными: 65.00 [07:44:33]line Безнал.: 0.00 [07:44:33]line Место: АЗС № 128 "Партнер Нефть" [07:44:33]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:33]line СНО: Общий режим [07:44:33]line Чек 27 28.07.2024 07:44 [07:44:33]line Смена: 430 ФФД: 1.0 [07:44:33]line ЗНМ: 0300000045 [07:44:33]line РНМ: 0000000000092655 [07:44:33]line Версия ККМ: 001 [07:44:33]line ФМ: 0000000000874941 [07:44:33]line ФД: 44656 [07:44:33]line ФПД: 113985842415086 [07:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074430&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44656&fm=113985842415086&tin=02508201610067®Number=0000000000092655&sum=6500 [07:44:33]line 0 [07:44:33]OFD Sender: Processing packet 44656 [packets to send 7, broken 6] [07:44:33]ProducePacketName [07:44:33]name=ofd_packets/00044656 [07:44:33]OFD Sender: To server: pG, [07:44:33]CommunicateWithHost lk.salyk.kg:30040 [07:44:33]ConnectInit lk.salyk.kg [07:44:33]written 0, free lines is 4095 [07:44:33]Connected sock=10 [07:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 E4 07 1C 01 FC B1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DE F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 70 AE 00 00 35 04 06 00 67 AB 65 A5 85 EE E6 BF C1 76 5B D5 9D 82 [07:44:34]Write to MH i2c: 01 00 00 A5 02 A7 [07:44:34]Write i2c OK [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: 01 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: 01 07 00 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 B5 0D 70 [07:44:34]RasterBufferAndPrint [07:44:34]line [07:44:34]line [07:44:34]line [07:44:34]line [07:44:34]line [07:44:34]written 0, free lines is 3564 [07:44:34]process_action close_receipt done [07:44:34]requested_data is exist [07:44:34]produce_requested_data [07:44:34]requested_item fm.sn is exist - process it [07:44:34]wFMCommunicate request_size=4 [07:44:34]MH_SAM_APDU [07:44:34]CAPDU: 80 11 00 00 [07:44:34]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [07:44:34]Write i2c OK [07:44:34]MH_I2C_Read... [07:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:34]Read from MH i2c: E2 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: E2 17 00 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7C [07:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:34]wFMCommunicate OK [07:44:34]requested_item fd.num is exist - process it [07:44:34]SAM_PROTO_GetFieldsCounters [07:44:34]wFMCommunicate request_size=4 [07:44:34]MH_SAM_APDU [07:44:34]CAPDU: 80 13 00 00 [07:44:34]Write to MH i2c: E2 08 00 AD 02 80 13 00 00 00 00 00 00 2B [07:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A7 41 47 00 F0 44 A5 07 01 Write i2c OK [07:44:34]00 MH_I2C_Read... [07:44:34]07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:34]32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 Read from MH i2c: 34 E2 39 [07:44:34]34 MH_I2C_Read... [07:44:34]31 10 04 04 00 70 AE 00 00 F4 03 04 00 F4 A2 A5 66 B6 04 01 00 00 74 BC 4F 9D EF 54 BB C5 [07:44:34]CommunicateWithHost err = 0 [07:44:34]CheckOFDResponse [07:44:34]1017 (14) - 77093643461234 [07:44:34]1041 (16) - 0000000000874941 [07:44:34]1040 (4) - 44656 [07:44:34]1012 (4) - 28.07.2024 01:46 [07:44:34]1206 (1) - 0 [07:44:34]OFD Sender: Remove packet 44656 [07:44:34]ProducePacketName [07:44:34]name=ofd_packets/00044656 [07:44:34]NVStorageDeleteData [07:44:34]Read from MH i2c: E2 62 00 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: E2 62 00 AD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 70 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [07:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 70 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:34]wFMCommunicate OK [07:44:34]SAM_PROTO_GetFieldsCounters done [07:44:34]requested_item shift.num is exist - process it [07:44:34]requested_item shift.opened is exist - process it [07:44:34]req_shift_opened [07:44:34]FM_GetShiftState [07:44:34]SAM_PROTO_GetShiftState [07:44:34]wFMCommunicate request_size=4 [07:44:34]MH_SAM_APDU [07:44:34]CAPDU: 80 13 01 00 [07:44:34]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [07:44:34]Write i2c OK [07:44:34]MH_I2C_Read... [07:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:34]Read from MH i2c: E2 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: E2 0E 00 [07:44:34]MH_I2C_Read... [07:44:34]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C6 [07:44:34]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:35]wFMCommunicate OK [07:44:35]SAM_PROTO_GetShiftState done [07:44:35]FM_GetShiftState done [07:44:35]req_shift_opened done [07:44:35]requested_item shift.open_date is exist - process it [07:44:35]req_shift_open_date [07:44:35]req_shift_open_date done [07:44:35]produce_requested_data done [07:44:35]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44656,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:35]process_action_free close_receipt [07:44:35]json_value_free [07:44:35]json_value_free done [07:44:35]process_json_proto returns [07:44:35]Send response to host [07:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44656,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:35]free response buf [07:44:35]execute_script done [07:44:35]execute_script returns [07:44:35]free content buf [07:44:35]Sock 7.Close socket [07:44:35]Sock 7.Thread stoped [07:44:35]OFD Sender: No OFD packet to send [07:44:36]accept exits with 9 [07:44:36]New connection [07:44:36]New thread 3066846564 created [07:44:36]Thread 3066989924 joined [07:44:36]Waiting for new connection... [07:44:36] Sock 9.Parse request [07:44:36]Sock 9.Check first char [07:44:36]Sock 9.First char is OK [07:44:36]request: POST /json_proto HTTP/1.0 [07:44:36]Method: POST [07:44:36]URL: /json_proto [07:44:36]Method is POST - this is cgi request [07:44:36]url: /json_proto [07:44:36]query_string will be loaded in cgi processing [07:44:36]execute_cgi json_proto POST (null) [07:44:36]execute_cgi path=json_proto method=POST [07:44:36]POST find Content-Length [07:44:36]Host: 172.17.45.196:8080 [07:44:36]Content-Length: 641 [07:44:36]Content-Type: application/json [07:44:36] [07:44:36]POST finish read [07:44:36]Found Content-Length = 641 [07:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14549", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 7.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:36]execute_script... [07:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14549", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 7.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:36]POST & json_proto [07:44:36]process_json_proto [07:44:36]json parsed OK: [07:44:36]protocol is kg_v1.0 [07:44:36]action value=close_receipt [07:44:36]process_action close_receipt [07:44:36]cmd_close_receipt [07:44:36]MH_GetDate [07:44:36]Write to MH i2c: F0 00 00 AF 02 A0 [07:44:36]Write i2c OK [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 09 00 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 09 00 AF 02 00 E5 F6 A5 66 BB 03 A5 66 58 [07:44:36]GetLastDocTimeStamp 1722152670 [07:44:36]current date 1722152677 [07:44:36]FM_GetShiftState [07:44:36]SAM_PROTO_GetShiftState [07:44:36]wFMCommunicate request_size=4 [07:44:36]MH_SAM_APDU [07:44:36]CAPDU: 80 13 01 00 [07:44:36]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [07:44:36]Write i2c OK [07:44:36]MH_I2C_Read... [07:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:36]Read from MH i2c: E2 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: E2 0E 00 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C8 [07:44:36]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:36]wFMCommunicate OK [07:44:36]SAM_PROTO_GetShiftState done [07:44:36]FM_GetShiftState done [07:44:36]opened in 1722126323 [07:44:36]opened+sec_in_day 1722212723 [07:44:36]quantity*price = 126000 [07:44:36]sum+1 = 126001 [07:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1260.00 НСП 1% : 11.15 НДС 12% : 133.80 Наличными: 1260.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 28 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44657 ФПД: 32186671434764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074437&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44657&fm=32186671434764&tin=02508201610067®Number=0000000000092655&sum=126000 0 [07:44:38]StoreToDocumentArchive [07:44:38]shift 430 fd 44657 [07:44:38]save to /storage/0430/doc_00044657 [07:44:38]save last doc name /storage/0430/doc_00044657 to /storage/kkm_last_doc_name [07:44:38]save OK [07:44:38]Clear old archive folders... [07:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:44:38]tlvbuf is 017F95B0 [07:44:38]SAM_PROTO_ClearQueue [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 09 00 00 [07:44:38]Write to MH i2c: E2 08 00 BD 02 80 09 00 00 00 00 00 00 31 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]SAM_PROTO_ClearQueue done [07:44:38]KKMCreateOFDPacket [07:44:38]OFDProtocolAddRootSTLVToBuf [07:44:38]FM_MakeSignedData [07:44:38]FM_MakeSignedData [07:44:38]SAM_PROTO_SignData [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 0D 01 02 [07:44:38]Write to MH i2c: E2 08 00 BE 02 80 0D 01 02 00 00 00 00 39 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]wFMCommunicate request_size=255 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E5 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [07:44:39]Write to MH i2c: E2 02 01 BF 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E5 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A0 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:39]Read from MH i2c: E2 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: E2 03 00 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [07:44:39]RAPDU: 90 00 [07:44:39]wFMCommunicate OK [07:44:39]wFMCommunicate request_size=31 [07:44:39]MH_SAM_APDU [07:44:39]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 71 AE 00 00 35 04 06 00 1D 46 0B 1E 0C 0C [07:44:39]Write to MH i2c: E2 22 00 C0 02 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 71 AE 00 00 35 04 06 00 1D 46 0B 1E 0C 0C 00 00 2B [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:39]Read from MH i2c: E2 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: E2 03 00 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [07:44:39]RAPDU: 90 00 [07:44:39]wFMCommunicate OK [07:44:39]wFMCommunicate request_size=4 [07:44:39]MH_SAM_APDU [07:44:39]CAPDU: 80 0D 03 02 [07:44:39]Write to MH i2c: E2 08 00 C1 02 80 0D 03 02 00 00 00 00 3E [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:39]Read from MH i2c: E2 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: E2 0B 00 [07:44:39]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 0B 00 C1 02 00 48 05 2C D1 83 28 F3 12 90 00 39 [07:44:40]RAPDU: 48 05 2C D1 83 28 F3 12 90 00 [07:44:40]wFMCommunicate OK [07:44:40]SAM_PROTO_SignData done [07:44:40]FM_MakeSignedData done [07:44:40]CreateOFDProtocolMessage [07:44:40]wFMCommunicate request_size=4 [07:44:40]MH_SAM_APDU [07:44:40]CAPDU: 80 11 00 00 [07:44:40]Write to MH i2c: E2 08 00 C2 02 80 11 00 00 00 00 00 00 3E [07:44:40]Write i2c OK [07:44:40]MH_I2C_Read... [07:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:40]Read from MH i2c: E2 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 17 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 17 00 C2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 92 [07:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:40]wFMCommunicate OK [07:44:40]CreateOFDProtocolMessage done [07:44:40]OFDSenderStorePacket 44657 [07:44:40]StoreOFDPacket docnum=44657 [07:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 F4 48 1C 01 B0 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E5 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 71 AE 00 00 35 04 06 00 1D 46 0B 1E 0C 0C 48 05 2C D1 83 28 F3 12 [07:44:40]CheckFolder [07:44:40]dirname=/storage/ofd_packets [07:44:40]CheckFolder done [07:44:40]ProducePacketName [07:44:40]name=ofd_packets/00044657 [07:44:40]NVStorageSaveData ofd_packets/00044657 [07:44:40]File name is /storage/ofd_packets/00044657 [07:44:40]Write 322 bytes [07:44:40]NVStorageSaveData done [07:44:40]OFDSenderStorePacket done [07:44:40]KKMCreateOFDPacket done [07:44:40]NVStorageSaveData kkm_last_timestamp [07:44:40]File name is /storage/kkm_last_timestamp [07:44:40]OFD Sender: No OFD packet to send [07:44:40]Write 4 bytes [07:44:40]NVStorageSaveData done [07:44:40]ExternCall_PrintAddStr [07:44:40]wPrintStart [07:44:40]Write to MH i2c: 01 00 00 C3 02 C5 [07:44:40]Write i2c OK [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: 01 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: 01 07 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [07:44:40]RasterBufferAndPrint [07:44:40]line Счет N : (3)14549 [07:44:40]line ИНН: 02508201610067 [07:44:40]line Контрольно-Кассовый Чек [07:44:40]line ПРОДАЖА [07:44:40]line Товар: 4700000480517 [07:44:40]line Пиво Живое 1л ПЭТ [07:44:40]line 7.000 * 180.00 [07:44:40]line = 1260.00 [07:44:40]line НДС 12% НСП 1% [07:44:40]line > о реализуемом товаре [07:44:40]line ИТОГО: 1260.00 [07:44:40]line НСП 1% : 11.15 [07:44:40]line НДС 12% : 133.80 [07:44:40]line Наличными: 1260.00 [07:44:40]line Безнал.: 0.00 [07:44:40]line Место: АЗС № 128 "Партнер Нефть" [07:44:40]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:40]line СНО: Общий режим [07:44:40]line Чек 28 28.07.2024 07:44 [07:44:40]line Смена: 430 ФФД: 1.0 [07:44:40]line ЗНМ: 0300000045 [07:44:40]line РНМ: 0000000000092655 [07:44:40]line Версия ККМ: 001 [07:44:40]line ФМ: 0000000000874941 [07:44:40]line ФД: 44657 [07:44:40]line ФПД: 32186671434764 [07:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074437&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44657&fm=32186671434764&tin=02508201610067®Number=0000000000092655&sum=126000 [07:44:40]line 0 [07:44:40]written 0, free lines is 4095 [07:44:40]OFD Sender: Processing packet 44657 [packets to send 7, broken 6] [07:44:40]ProducePacketName [07:44:40]name=ofd_packets/00044657 [07:44:40]OFD Sender: To server: pG, [07:44:40]CommunicateWithHost lk.salyk.kg:30040 [07:44:40]ConnectInit lk.salyk.kg [07:44:40]Connected sock=10 [07:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 F4 48 1C 01 B0 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E5 F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 71 AE 00 00 35 04 06 00 1D 46 0B 1E 0C 0C 48 05 2C D1 83 28 F3 12 [07:44:41]Write to MH i2c: 01 00 00 EB 02 ED [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 07 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 68 0E 6A [07:44:41]RasterBufferAndPrint [07:44:41]line [07:44:41]line [07:44:41]line [07:44:41]line [07:44:41]line [07:44:41]written 0, free lines is 3758 [07:44:41]process_action close_receipt done [07:44:41]requested_data is exist [07:44:41]produce_requested_data [07:44:41]requested_item fm.sn is exist - process it [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 11 00 00 [07:44:41]Write to MH i2c: E2 08 00 F2 02 80 11 00 00 00 00 00 00 6E [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 17 00 F2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C2 [07:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:44:41]wFMCommunicate OK [07:44:41]requested_item fd.num is exist - process it [07:44:41]SAM_PROTO_GetFieldsCounters [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 13 00 00 [07:44:41]Write to MH i2c: E2 08 00 F3 02 80 13 00 00 00 00 00 00 71 [07:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 21 AB 47 00 FF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:41]30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 71 AE 00 00 F4 03 04 00 FA A2 A5 66 B6 04 01 00 00 08 F4 46 13 F7 AA 98 Write i2c OK [07:44:41]6A MH_I2C_Read... [07:44:41] [07:44:41]Read from MH i2c: CommunicateWithHost err = 0 [07:44:41]E2 CheckOFDResponse [07:44:41] [07:44:41]1017 (14) - 77093643461234 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 62 00 [07:44:41]MH_I2C_Read... [07:44:41]1041 (16) - 0000000000874941 [07:44:41]1040 (4) - 44657 [07:44:41]1012 (4) - 28.07.2024 01:46 [07:44:41]Read from MH i2c: 1206 (1) - 0 [07:44:41]E2 OFD Sender: Remove packet 44657 [07:44:41]ProducePacketName [07:44:41]name=ofd_packets/00044657 [07:44:41]NVStorageDeleteData [07:44:41]62 00 F3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 71 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [07:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 71 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:41]wFMCommunicate OK [07:44:41]SAM_PROTO_GetFieldsCounters done [07:44:41]requested_item shift.num is exist - process it [07:44:41]requested_item shift.opened is exist - process it [07:44:41]req_shift_opened [07:44:41]FM_GetShiftState [07:44:41]SAM_PROTO_GetShiftState [07:44:41]wFMCommunicate request_size=4 [07:44:41]MH_SAM_APDU [07:44:41]CAPDU: 80 13 01 00 [07:44:41]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [07:44:41]Write i2c OK [07:44:41]MH_I2C_Read... [07:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:41]Read from MH i2c: E2 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0E 00 [07:44:41]MH_I2C_Read... [07:44:41]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 0C [07:44:41]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:42]wFMCommunicate OK [07:44:42]SAM_PROTO_GetShiftState done [07:44:42]FM_GetShiftState done [07:44:42]req_shift_opened done [07:44:42]requested_item shift.open_date is exist - process it [07:44:42]req_shift_open_date [07:44:42]req_shift_open_date done [07:44:42]produce_requested_data done [07:44:42]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44657,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:44:42]process_action_free close_receipt [07:44:42]json_value_free [07:44:42]json_value_free done [07:44:42]process_json_proto returns [07:44:42]Send response to host [07:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44657,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:44:42]free response buf [07:44:42]execute_script done [07:44:42]execute_script returns [07:44:42]free content buf [07:44:42]Sock 9.Close socket [07:44:42]Sock 9.Thread stoped [07:44:42]OFD Sender: No OFD packet to send [07:44:46]accept exits with 7 [07:44:46]New connection [07:44:46]New thread 3066989924 created [07:44:46]Thread 3066846564 joined [07:44:46]Waiting for new connection... [07:44:46] Sock 7.Parse request [07:44:46]Sock 7.Check first char [07:44:46]Sock 7.First char is OK [07:44:46]request: POST /json_proto HTTP/1.0 [07:44:46]Method: POST [07:44:46]URL: /json_proto [07:44:46]Method is POST - this is cgi request [07:44:46]url: /json_proto [07:44:46]query_string will be loaded in cgi processing [07:44:46]execute_cgi json_proto POST (null) [07:44:46]execute_cgi path=json_proto method=POST [07:44:46]POST find Content-Length [07:44:46]Host: 172.17.45.196:8080 [07:44:46]Content-Length: 900 [07:44:46]Content-Type: application/json [07:44:46] [07:44:46]POST finish read [07:44:46]Found Content-Length = 900 [07:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14550", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:46]execute_script... [07:44:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14550", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:46]POST & json_proto [07:44:46]process_json_proto [07:44:46]json parsed OK: [07:44:46]protocol is kg_v1.0 [07:44:46]action value=close_receipt [07:44:46]process_action close_receipt [07:44:46]cmd_close_receipt [07:44:46]MH_GetDate [07:44:46]Write to MH i2c: F0 00 00 F5 02 E6 [07:44:46]Write i2c OK [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 09 00 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 09 00 F5 02 00 EF F6 A5 66 BB 03 A5 66 A8 [07:44:46]GetLastDocTimeStamp 1722152677 [07:44:46]current date 1722152687 [07:44:46]FM_GetShiftState [07:44:46]SAM_PROTO_GetShiftState [07:44:46]wFMCommunicate request_size=4 [07:44:46]MH_SAM_APDU [07:44:46]CAPDU: 80 13 01 00 [07:44:46]Write to MH i2c: E2 08 00 F6 02 80 13 01 00 00 00 00 00 75 [07:44:46]Write i2c OK [07:44:46]MH_I2C_Read... [07:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:46]Read from MH i2c: E2 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: E2 0E 00 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: E2 0E 00 F6 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 0E [07:44:46]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:44:47]wFMCommunicate OK [07:44:47]SAM_PROTO_GetShiftState done [07:44:47]FM_GetShiftState done [07:44:47]opened in 1722126323 [07:44:47]opened+sec_in_day 1722212723 [07:44:47]quantity*price = 10000 [07:44:47]sum+1 = 10001 [07:44:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002086380 Водка Сары челек 0,35л 1.000 * 260.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 29 28.07.2024 07:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44658 ФПД: 255627466507608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074447&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44658&fm=255627466507608&tin=02508201610067®Number=0000000000092655&sum=36000 0 [07:44:49]StoreToDocumentArchive [07:44:49]shift 430 fd 44658 [07:44:49]save to /storage/0430/doc_00044658 [07:44:49]save last doc name /storage/0430/doc_00044658 to /storage/kkm_last_doc_name [07:44:49]int [07:44:49]Write to MH i2c: 01 00 00 03 save OK [07:44:49]03 Clear old archive folders... [07:44:49]06 [07:44:49]*** FLAG_PRN_KEY set [07:44:49]Write i2c OK [07:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=379 [07:44:49]MH_I2C_Read... [07:44:49]tlvbuf is 017E7340 [07:44:49]SAM_PROTO_ClearQueue [07:44:49]wFMCommunicate request_size=4 [07:44:49]MH_SAM_APDU [07:44:49]CAPDU: 80 09 00 00 [07:44:49]Read from MH i2c: 01 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: 01 07 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: 01 07 00 03 03 00 08 00 00 00 FF 0F 23 [07:44:49]Write to MH i2c: state=0 [07:44:49]E2 Key pressed [07:44:49]08 Feed [07:44:49]00 04 03 80 09 00 00 00 00 00 00 79 [07:44:49]*** FLAG_PRN_KEY reset [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:49]Read from MH i2c: E2 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [07:44:49]RAPDU: 90 00 [07:44:49]wFMCommunicate OK [07:44:49]SAM_PROTO_ClearQueue done [07:44:49]KKMCreateOFDPacket [07:44:49]OFDProtocolAddRootSTLVToBuf [07:44:49]FM_MakeSignedData [07:44:49]FM_MakeSignedData [07:44:49]SAM_PROTO_SignData [07:44:49]wFMCommunicate request_size=4 [07:44:49]MH_SAM_APDU [07:44:49]CAPDU: 80 0D 01 02 [07:44:49]Write to MH i2c: D8 00 00 05 03 DF [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: D8 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: D8 01 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: D8 01 00 05 03 00 E0 [07:44:49]int line is 0 - check status [07:44:49]Write to MH i2c: 01 00 00 06 03 09 [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: 01 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: 01 07 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 F5 0F 14 [07:44:49]state=2 [07:44:49]Stop feed [07:44:49]*** FLAG_PRN_KEY set [07:44:49]int line is 0 - check status [07:44:49]Write to MH i2c: E2 08 00 07 03 80 0D 01 02 00 00 00 00 83 [07:44:49]Write i2c OK [07:44:49]MH_I2C_Read... [07:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:49]Read from MH i2c: E2 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 [07:44:49]MH_I2C_Read... [07:44:49]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [07:44:49]Write to MH i2c: RAPDU: 01 90 00 00 00 [07:44:49]08 wFMCommunicate OK [07:44:49]03 wFMCommunicate request_size=255 [07:44:49]0B MH_SAM_APDU [07:44:49] [07:44:49]CAPDU: 80 0D 02 02 Write i2c OK [07:44:49]FA MH_I2C_Read... [07:44:49]03 00 7B 01 Read from MH i2c: 1E 01 04 01 00 [07:44:49]01 MH_I2C_Read... [07:44:49]23 Read from MH i2c: 04 01 60 07 00 00 8A [07:44:49]04 MH_I2C_Read... [07:44:49]0D Read from MH i2c: 00 01 34 07 37 00 30 *** FLAG_PRN_KEY reset [07:44:49]30 08 30 03 30 00 30 34 08 38 00 30 00 38 00 31 34 06 04 1C 00 D0 9F D0 B8 FF D0 0F B2 28 D0 [07:44:49]BE 20 D0 96 D0 B8 D0 B2 D0 BE state=0 [07:44:49]D0 Key pressed [07:44:49]B5 Feed [07:44:49]20 Write to MH i2c: 30 D8 2C 00 00 09 03 E3 [07:44:49]35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 Write i2c OK [07:44:50]13 MH_I2C_Read... [07:44:50]04 06 00 10 27 Read from MH i2c: 00 D8 00 [07:44:50]00 MH_I2C_Read... [07:44:50]00 F2 03 01 00 01 F6 03 01 Read from MH i2c: 00 D8 01 01 BC 00 04 [07:44:50]01 MH_I2C_Read... [07:44:50]00 Read from MH i2c: 01 D8 23 01 04 00 69 09 00 03 8A 00 04 E4 0D [07:44:50]00 int line is 0 - check status [07:44:50]34 Write to MH i2c: 37 30 30 30 30 32 30 38 36 01 33 00 38 00 30 0A 06 04 25 00 D0 92 D0 BE D0 B4 03 D0 0D BA [07:44:50]D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B Write i2c OK [07:44:50]20 MH_I2C_Read... [07:44:50]D1 87 D0 B5 D0 Read from MH i2c: BB 01 D0 [07:44:50]B5 MH_I2C_Read... [07:44:50]D0 BA 20 30 2C 33 35 D0 BB Read from MH i2c: 01 FF 07 03 00 08 [07:44:50]00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 MH_I2C_Read... [07:44:50]03 Read from MH i2c: 06 01 00 07 3E 00 01 0A 00 03 00 00 00 00 [07:44:50]00 00 00 F5 0F 18 [07:44:50]state=2 [07:44:50]Write to MH i2c: Stop feed [07:44:50]E2 02 01 0B 03 80 0D 02 02 FA int [07:44:50]00 03 00 7B 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 *** FLAG_PRN_KEY set [07:44:50]33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 00 3A [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:51]Read from MH i2c: *** FLAG_PRN_KEY reset [07:44:51]E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [07:44:51]Write to MH i2c: RAPDU: 01 90 00 00 [07:44:51]wFMCommunicate OK [07:44:51]wFMCommunicate request_size=138 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 *** FLAG_PRN_KEY set [07:44:51]06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EF F6 A5 66 0E 04 04 00 AE 01 00 00 00 0C B9 03 04 0F 01 00 01 0D 04 10 00 30 30 [07:44:51]30 30 30 30 30 30 30 Write i2c OK [07:44:51]30 MH_I2C_Read... [07:44:51]30 39 32 36 35 Read from MH i2c: 35 01 11 [07:44:51]04 MH_I2C_Read... [07:44:51]10 00 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 38 37 34 39 34 31 10 04 04 [07:44:51]00 MH_I2C_Read... [07:44:51]72 *** FLAG_PRN_KEY reset [07:44:51]Read from MH i2c: AE 01 00 00 35 04 06 00 E8 7D E8 07 56 00 05 0C 58 03 [07:44:51]00 08 00 00 00 FF 0F 2C [07:44:51]state=0 [07:44:51]Write to MH i2c: Key pressed [07:44:51]E2 Feed [07:44:51]8D 00 0D 03 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EF F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 72 AE 00 00 35 04 06 00 E8 7D E8 56 05 58 00 00 C9 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:51]*** FLAG_PRN_KEY set [07:44:51]Read from MH i2c: E2 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [07:44:51]RAPDU: 90 00 [07:44:51]wFMCommunicate OK [07:44:51]wFMCommunicate request_size=4 [07:44:51]MH_SAM_APDU [07:44:51]CAPDU: 80 0D 03 02 [07:44:51]Write to MH i2c: D8 00 00 0E 03 E8 [07:44:51]Write i2c OK [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: D8 [07:44:51]MH_I2C_Read... [07:44:51]Read from MH i2c: D8 01 00 [07:44:51]MH_I2C_Read... [07:44:52]Read from MH i2c: D8 01 00 0E 03 00 E9 [07:44:52]int line is 0 - check status [07:44:52]Write to MH i2c: 01 00 00 0F 03 12 [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 0F 03 00 48 00 00 00 3C 00 9D [07:44:52]state=2 [07:44:52]Write to MH i2c: Key pressed [07:44:52]E2 int line is 0 - check status [07:44:52]08 00 10 03 80 0D 03 02 *** FLAG_PRN_KEY reset [07:44:52]00 00 00 00 8E [07:44:52]OFD Sender: No OFD packet to send [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:52]Read from MH i2c: E2 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 0B 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 0B 00 10 03 00 48 9D D3 2D DC 7E 40 8E 90 00 9C [07:44:52]Write to MH i2c: RAPDU: 01 48 00 9D 00 D3 11 2D 03 DC 14 7E [07:44:52]40 8E 90 00 [07:44:52]wFMCommunicate OK [07:44:52]SAM_PROTO_SignData done [07:44:52]FM_MakeSignedData done [07:44:52]CreateOFDProtocolMessage [07:44:52]wFMCommunicate request_size=4 [07:44:52]MH_SAM_APDU [07:44:52]CAPDU: 80 11 00 00 [07:44:52]Write i2c OK [07:44:52]*** FLAG_PRN_KEY set [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [07:44:52]Write to MH i2c: state=2 [07:44:52]E2 Stop feed [07:44:52]08 int line is 0 - check status [07:44:52]00 12 03 80 11 00 00 00 00 00 00 8F [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:52]Read from MH i2c: E2 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 17 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E3 [07:44:52]Write to MH i2c: RAPDU: 01 11 00 04 00 10 13 00 03 30 16 30 [07:44:52]30 30 30 30 30 Write i2c OK [07:44:52]30 MH_I2C_Read... [07:44:52]30 30 Read from MH i2c: 38 01 37 [07:44:52]34 MH_I2C_Read... [07:44:52]39 34 31 90 00 [07:44:52]wFMCommunicate OK [07:44:52]CreateOFDProtocolMessage done [07:44:52]OFDSenderStorePacket 44658 [07:44:52]Read from MH i2c: StoreOFDPacket docnum=44658 [07:44:52]01 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8F 01 00 00 F5 90 87 01 87 7A 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EF F6 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 72 AE 00 00 35 04 06 00 E8 7D E8 56 05 58 48 9D D3 2D DC 7E 40 8E 07 [07:44:52]00 CheckFolder [07:44:52]dirname=/storage/ofd_packets [07:44:52]CheckFolder done [07:44:52]ProducePacketName [07:44:52]name=ofd_packets/00044658 [07:44:52]NVStorageSaveData ofd_packets/00044658 [07:44:52]File name is /storage/ofd_packets/00044658 [07:44:52]Write 429 bytes [07:44:52]NVStorageSaveData done [07:44:52] [07:44:52]OFDSenderStorePacket done [07:44:52]MH_I2C_Read... [07:44:52]KKMCreateOFDPacket done [07:44:52]NVStorageSaveData kkm_last_timestamp [07:44:52]File name is /storage/kkm_last_timestamp [07:44:52]Write 4 bytes [07:44:52]Read from MH i2c: NVStorageSaveData done [07:44:52]01 ExternCall_PrintAddStr [07:44:52]07 wPrintStart [07:44:52]00 13 03 00 08 00 00 00 FF 0F 33 [07:44:52]state=0 [07:44:52]Key pressed [07:44:52]Feed [07:44:52]Write to MH i2c: D8 OFD Sender: Processing packet 44658 [packets to send 7, broken 6] [07:44:52]ProducePacketName [07:44:52]name=ofd_packets/00044658 [07:44:52]OFD Sender: To server: pG, [07:44:52]CommunicateWithHost lk.salyk.kg:30040 [07:44:52]ConnectInit lk.salyk.kg [07:44:52]00 00 14 03 EE [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D8 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D8 01 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: D8 01 00 14 03 00 EF [07:44:52]int line is 0 - check status [07:44:52]Write to MH i2c: 01 00 00 15 03 18 [07:44:52]Write i2c OK [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 [07:44:52]MH_I2C_Read... [07:44:52]Read from MH i2c: 01 07 00 15 03 00 48 00 00 00 3C 00 A3 [07:44:53]Write to MH i2c: state=2 [07:44:53]01 00 00 16 03 19 [07:44:53]Key pressed [07:44:53]Write i2c OK [07:44:53]MH_I2C_Read... [07:44:53]int [07:44:53]Read from MH i2c: 01 [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: 01 07 00 [07:44:53]MH_I2C_Read... [07:44:53]Connected sock=6 [07:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 Read from MH i2c: 38 01 37 07 34 00 39 16 34 03 00 48 00 00 00 3C 00 A4 31 [07:44:53]8F RasterBufferAndPrint [07:44:53]01 line Счет N : (3)14550 [07:44:53]00 line ИНН: 02508201610067 [07:44:53]line Контрольно-Кассовый Чек [07:44:53]line ПРОДАЖА [07:44:53]line Товар: 4700000480814 [07:44:53]line Пиво Живое 0,5 ст [07:44:53]line 1.000 * 100.00 [07:44:53]line = 100.00 [07:44:53]line НДС 12% НСП 1% [07:44:53]*** FLAG_PRN_KEY reset [07:44:53]line > о реализуемом товаре [07:44:53]00 line Товар: 4700002086380 [07:44:53]line Водка Сары челек 0,35л [07:44:53]line 1.000 * 260.00 [07:44:53]line = 260.00 [07:44:53]line НДС 12% НСП 1% [07:44:53]line > о реализуемом товаре [07:44:53]line ИТОГО: 360.00 [07:44:53]line НСП 1% : 3.18 [07:44:53]line НДС 12% : 38.23 [07:44:53]line Наличными: 360.00 [07:44:53]line Безнал.: 0.00 [07:44:53]line Место: АЗС № 128 "Партнер Нефть" [07:44:53]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:44:53]F5 line СНО: Общий режим [07:44:53]90 Write to MH i2c: 87 01 01 00 00 17 03 87 1A 7A [07:44:53]5A line Чек 29 28.07.2024 07:44 [07:44:53]03 line Смена: 430 ФФД: 1.0 [07:44:53]01 Write i2c OK [07:44:53]00 MH_I2C_Read... [07:44:53]line ЗНМ: 0300000045 [07:44:53]line РНМ: 0000000000092655 [07:44:53]line Версия ККМ: 001 [07:44:53]line ФМ: 0000000000874941 [07:44:53]03 line ФД: 44658 [07:44:53]00 line ФПД: 255627466507608 [07:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074447&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44658&fm=255627466507608&tin=02508201610067®Number=0000000000092655&sum=36000 [07:44:53]7B 01 line 0 [07:44:53]1E 04 Read from MH i2c: 01 01 [07:44:53]state=2 [07:44:53]Stop feed [07:44:53]int [07:44:53]00 01 23 04 60 Write i2c OK [07:44:53]00 MH_I2C_Read... [07:44:53]Read from MH i2c: DD [07:44:53]8A MH_I2C_Read... [07:44:53]04 0D 00 34 Read from MH i2c: 37 DD 30 05 30 00 30 30 30 [07:44:53]34 MH_I2C_Read... [07:44:53]38 30 38 Read from MH i2c: 31 34 06 04 1C 00 D0 9F DD D0 B8 D0 B2 D0 BE 20 05 D0 96 D0 B8 D0 B2 D0 BE 00 18 03 00 00 00 FF 0F D0 B5 20 30 2C 35 20 D1 0A [07:44:53]written 0, free lines is 4095 [07:44:53]Write to MH i2c: DD 7C 01 19 81 Write to MH i2c: D1 01 82 00 FF 00 03 19 08 03 00 1C 03 [07:44:53]E8 Write i2c OK [07:44:53]03 MH_I2C_Read... [07:44:53]00 Read from MH i2c: 00 01 00 [07:44:53]00 MH_I2C_Read... [07:44:53]00 Read from MH i2c: 37 01 04 07 06 00 00 [07:44:53]10 MH_I2C_Read... [07:44:53]27 Read from MH i2c: 00 01 00 07 00 00 00 19 13 03 04 00 06 00 00 00 10 00 27 00 00 FF 00 0F 00 31 00 [07:44:53]F2 state=0 [07:44:53]03 03 01 00 00 00 01 00 F6 00 03 21 01 00 00 00 01 00 BC 40 04 01 01 60 00 06 01 2B 23 0C 04 38 69 00 C0 F5 05 03 F0 07 80 E0 00 C0 8A FC 04 03 0D 7C 0F 01 FF 83 FF F8 2B 0C 00 10 34 00 37 C0 30 06 06 0F FC C0 C1 FF 03 FC 30 01 30 FC 30 2B 32 0C 00 00 E0 D7 07 1E 0E 01 30 81 38 07 36 01 33 83 38 1C 30 1F 06 C0 04 03 25 80 00 03 D0 8E 92 2B D0 BE D0 B4 D0 BA D0 B0 20 0C D0 10 A1 00 D0 C0 B0 D1 80 D1 8B 20 D1 87 D0 B5 13 D0 06 BB 38 D0 06 B5 D0 BA 20 30 2C 33 35 D0 E0 BB 80 FF 03 03 81 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 80 00 3F 01 07 FC 07 03 06 00 A0 8C 00 00 00 00 EB 2B 03 0C 26 00 00 00 EF 03 0F 00 F6 03 01 00 01 20 F7 12 03 00 06 70 00 3E 01 00 00 00 00 EE 03 00 0F 03 00 C0 F2 37 03 01 2C 00 F0 01 13 F3 00 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 10 00 0E 39 38 04 06 38 00 0F 00 80 00 FF 00 00 00 00 1F 04 02 00 FE 01 F0 00 67 12 0E 04 04 00 03 1D 80 00 2C 00 00 F4 03 04 00 EF F6 A5 C4 66 0E 04 04 00 AE 01 10 00 00 00 48 B9 51 04 01 00 01 01 0D E0 04 3F 10 E0 00 30 30 30 30 30 70 30 0E 30 00 30 80 30 E7 30 FE 30 FC 39 2C 32 C0 36 13 35 00 35 A0 11 53 04 01 10 78 00 F0 30 03 30 80 30 30 78 30 07 07 00 E0 C7 FF FE 2C C0 30 10 30 00 30 80 30 D8 01 70 70 38 7C 01 87 07 30 82 38 0F 37 2C 34 C0 10 00 88 E8 01 E0 38 3C 39 00 34 7E 31 10 03 04 00 04 03 00 80 72 07 AE 00 00 35 04 06 00 E8 7D E8 56 05 58 48 9D D3 2D DC 7E 40 8E [07:44:54]2C 10 10 00 80 D1 03 3C 1C 07 80 07 01 C0 03 8E 2C F0 10 00 80 09 00 1F F8 FF F8 1E 03 C0 06 2C 10 10 00 80 38 00 0F 0E 01 07 FF E0 2C F4 10 00 00 00 00 70 00 38 E0 00 0F 2B 00 10 00 20 3A 06 07 03 C0 00 07 00 87 07 2B 4C 00 00 C0 C1 03 38 06 70 80 03 C1 03 80 07 07 2B CC 10 00 C8 E1 07 1E 0E 78 10 03 0E 82 07 81 02 07 84 0F 03 8E 2B CC 00 00 E0 EF 07 0F FC 3F F0 01 83 FF 01 81 FF C0 03 FF 07 FE 01 FC 2B CC 10 00 C0 E0 07 03 F0 0F C0 01 80 FC 00 FC 01 F8 00 F8 21 EC 3B 00 E8 01 00 00 00 00 00 00 00 00 00 00 00 00 C0 00 03 21 00 00 00 00 00 21 00 00 00 40 01 60 06 00 00 00 C5 [07:44:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 Write i2c OK [07:44:54]45 MH_I2C_Read... [07:44:54]33 Read from MH i2c: 47 01 00 [07:44:54]F8 MH_I2C_Read... [07:44:54]0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 Read from MH i2c: 37 01 07 37 00 30 [07:44:54]39 answer for other command [01] [07:44:54]33 process_action_free close_receipt [07:44:54]36 json_value_free [07:44:54]34 33 34 36 31 32 33 34 11 json_value_free done [07:44:54]04 process_json_proto returns [07:44:54]10 Send response to host [07:44:55]00 {"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [07:44:55]30 free response buf [07:44:55]30 execute_script done [07:44:55]30 execute_script returns [07:44:55]30 30 30 30 30 30 30 38 37 free content buf [07:44:55]34 Sock 7.Close socket [07:44:55]39 Sock 7.Thread stoped [07:44:55]34 31 10 04 04 00 72 AE 00 00 F4 03 04 00 08 A3 A5 66 B6 04 01 00 00 1F 51 7B 97 E7 05 52 55 [07:44:55]CommunicateWithHost err = 0 [07:44:55]CheckOFDResponse [07:44:55]1017 (14) - 77093643461234 [07:44:55]1041 (16) - 0000000000874941 [07:44:55]1040 (4) - 44658 [07:44:55]1012 (4) - 28.07.2024 01:46 [07:44:55]1206 (1) - 0 [07:44:55]OFD Sender: Remove packet 44658 [07:44:55]ProducePacketName [07:44:55]name=ofd_packets/00044658 [07:44:55]NVStorageDeleteData [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:16]accept exits with 10 [07:45:16]New connection [07:45:16]New thread 3066846564 created [07:45:16]Thread 3066989924 joined [07:45:16]Waiting for new connection... [07:45:16] Sock 10.Parse request [07:45:16]Sock 10.Check first char [07:45:16]Sock 10.First char is OK [07:45:16]request: POST /json_proto HTTP/1.0 [07:45:16]Method: POST [07:45:16]URL: /json_proto [07:45:16]Method is POST - this is cgi request [07:45:16]url: /json_proto [07:45:16]query_string will be loaded in cgi processing [07:45:16]execute_cgi json_proto POST (null) [07:45:16]execute_cgi path=json_proto method=POST [07:45:16]POST find Content-Length [07:45:16]Host: 172.17.45.196:8080 [07:45:16]Content-Length: 215 [07:45:16]Content-Type: application/json [07:45:16] [07:45:16]POST finish read [07:45:16]Found Content-Length = 215 [07:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:16]execute_script... [07:45:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:16]POST & json_proto [07:45:16]process_json_proto [07:45:16]json parsed OK: [07:45:16]protocol is kg_v1.0 [07:45:16]action value=get_value [07:45:16]process_action get_value [07:45:16]cmd_get_value [07:45:16]process_action get_value done [07:45:16]requested_data is exist [07:45:16]produce_requested_data [07:45:16]requested_item kkm.sn is exist - process it [07:45:16]requested_item kkm.ver is exist - process it [07:45:16]requested_item fm.sn is exist - process it [07:45:16]wFMCommunicate request_size=4 [07:45:16]MH_SAM_APDU [07:45:16]CAPDU: 80 11 00 00 [07:45:16]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [07:45:16]Write i2c OK [07:45:16]MH_I2C_Read... [07:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:16]Read from MH i2c: E2 [07:45:16]MH_I2C_Read... [07:45:16]Read from MH i2c: E2 17 00 [07:45:16]MH_I2C_Read... [07:45:16]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EC [07:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:45:16]wFMCommunicate OK [07:45:16]requested_item fd.num is exist - process it [07:45:16]SAM_PROTO_GetFieldsCounters [07:45:16]wFMCommunicate request_size=4 [07:45:16]MH_SAM_APDU [07:45:16]CAPDU: 80 13 00 00 [07:45:16]Write to MH i2c: E2 08 00 1C 03 80 13 00 00 00 00 00 00 9B [07:45:16]Write i2c OK [07:45:16]MH_I2C_Read... [07:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:17]Read from MH i2c: E2 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 62 00 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 62 00 1C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 72 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [07:45:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 72 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:17]wFMCommunicate OK [07:45:17]SAM_PROTO_GetFieldsCounters done [07:45:17]requested_item shift.num is exist - process it [07:45:17]requested_item shift.opened is exist - process it [07:45:17]req_shift_opened [07:45:17]FM_GetShiftState [07:45:17]SAM_PROTO_GetShiftState [07:45:17]wFMCommunicate request_size=4 [07:45:17]MH_SAM_APDU [07:45:17]CAPDU: 80 13 01 00 [07:45:17]Write to MH i2c: E2 08 00 1D 03 80 13 01 00 00 00 00 00 9D [07:45:17]Write i2c OK [07:45:17]MH_I2C_Read... [07:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:17]Read from MH i2c: E2 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 0E 00 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 0E 00 1D 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 36 [07:45:17]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:45:17]wFMCommunicate OK [07:45:17]SAM_PROTO_GetShiftState done [07:45:17]FM_GetShiftState done [07:45:17]req_shift_opened done [07:45:17]requested_item shift.open_date is exist - process it [07:45:17]req_shift_open_date [07:45:17]req_shift_open_date done [07:45:17]produce_requested_data done [07:45:17]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44658,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:45:17]process_action_free get_value [07:45:17]json_value_free [07:45:17]json_value_free done [07:45:17]process_json_proto returns [07:45:17]Send response to host [07:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44658,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:45:17]free response buf [07:45:17]execute_script done [07:45:17]execute_script returns [07:45:17]free content buf [07:45:17]Sock 10.Close socket [07:45:17]Sock 10.Thread stoped [07:45:17]accept exits with 7 [07:45:17]New connection [07:45:17]New thread 3066989924 created [07:45:17]Thread 3066846564 joined [07:45:17]Waiting for new connection... [07:45:17] Sock 7.Parse request [07:45:17]Sock 7.Check first char [07:45:17]Sock 7.First char is OK [07:45:17]request: POST /json_proto HTTP/1.0 [07:45:17]Method: POST [07:45:17]URL: /json_proto [07:45:17]Method is POST - this is cgi request [07:45:17]url: /json_proto [07:45:17]query_string will be loaded in cgi processing [07:45:17]execute_cgi json_proto POST (null) [07:45:17]execute_cgi path=json_proto method=POST [07:45:17]POST find Content-Length [07:45:17]Host: 172.17.45.196:8080 [07:45:17]Content-Length: 331 [07:45:17]Content-Type: application/json [07:45:17] [07:45:17]POST finish read [07:45:17]Found Content-Length = 331 [07:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:45:17]execute_script... [07:45:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:45:17]POST & json_proto [07:45:17]process_json_proto [07:45:17]json parsed OK: [07:45:17]protocol is kg_v1.0 [07:45:17]action value=get_value [07:45:17]process_action get_value [07:45:17]cmd_get_value [07:45:17]process_action get_value done [07:45:17]requested_data is exist [07:45:17]produce_requested_data [07:45:17]requested_item fm.sale.total is exist - process it [07:45:17]SAM_PROTO_GetFMData [07:45:17]wFMCommunicate request_size=4 [07:45:17]MH_SAM_APDU [07:45:17]CAPDU: 80 13 03 00 [07:45:17]Write to MH i2c: E2 08 00 1E 03 80 13 03 00 00 00 00 00 A0 [07:45:17]Write i2c OK [07:45:17]MH_I2C_Read... [07:45:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:45:17]Read from MH i2c: E2 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 FD 00 [07:45:17]MH_I2C_Read... [07:45:17]Read from MH i2c: E2 FD 00 1E 03 00 C2 04 85 04 BE 04 6E 04 04 00 16 AB 00 00 69 04 A0 00 6F 04 04 00 87 AA 00 00 B1 04 04 00 45 5B 13 40 70 04 04 00 04 9F A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8D FA CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 41 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 4C [07:45:18]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 16 AB 00 00 69 04 A0 00 6F 04 04 00 87 AA 00 00 B1 04 04 00 45 5B 13 40 70 04 04 00 04 9F A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8D FA CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 41 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [07:45:18]wFMCommunicate OK [07:45:18]wFMCommunicate request_size=4 [07:45:18]MH_SAM_APDU [07:45:18]CAPDU: 80 17 00 00 [07:45:18]Write to MH i2c: E2 08 00 1F 03 80 17 00 00 00 00 00 00 A2 [07:45:18]Write i2c OK [07:45:18]MH_I2C_Read... [07:45:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:18]Read from MH i2c: E2 [07:45:18]MH_I2C_Read... [07:45:18]Read from MH i2c: E2 FD 00 [07:45:18]MH_I2C_Read... [07:45:18]Read from MH i2c: E2 FD 00 1F 03 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 4B [07:45:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [07:45:19]wFMCommunicate OK [07:45:19]wFMCommunicate request_size=4 [07:45:19]MH_SAM_APDU [07:45:19]CAPDU: 80 17 00 00 [07:45:19]Write to MH i2c: E2 08 00 20 03 80 17 00 00 00 00 00 00 A3 [07:45:19]Write i2c OK [07:45:19]MH_I2C_Read... [07:45:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:19]Read from MH i2c: E2 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: E2 FD 00 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: E2 FD 00 20 03 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 51 [07:45:20]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [07:45:20]wFMCommunicate OK [07:45:20]wFMCommunicate request_size=4 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 17 00 00 [07:45:20]Write to MH i2c: E2 08 00 21 03 80 17 00 00 00 00 00 00 A4 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:20]OFD Sender: No OFD packet to send [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 FD 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 FD 00 21 03 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 1F [07:45:20]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [07:45:21]wFMCommunicate OK [07:45:21]wFMCommunicate request_size=4 [07:45:21]MH_SAM_APDU [07:45:21]CAPDU: 80 17 00 00 [07:45:21]Write to MH i2c: E2 08 00 22 03 80 17 00 00 00 00 00 00 A5 [07:45:21]Write i2c OK [07:45:21]MH_I2C_Read... [07:45:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [07:45:21]Read from MH i2c: E2 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: E2 DF 00 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: E2 DF 00 22 03 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [07:45:21]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:45:22]wFMCommunicate OK [07:45:22]SAM_PROTO_GetFMData done [07:45:22]requested_item fm.sale_refund.total is exist - process it [07:45:22]requested_item fm.buy.total is exist - process it [07:45:22]requested_item shift.sale.total is exist - process it [07:45:22]SAM_PROTO_GetShiftData [07:45:22]wFMCommunicate request_size=4 [07:45:22]MH_SAM_APDU [07:45:22]CAPDU: 80 13 02 00 [07:45:22]Write to MH i2c: E2 08 00 23 03 80 13 02 00 00 00 00 00 A4 [07:45:22]Write i2c OK [07:45:22]MH_I2C_Read... [07:45:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:45:22]Read from MH i2c: E2 [07:45:22]MH_I2C_Read... [07:45:22]Read from MH i2c: E2 FD 00 [07:45:22]MH_I2C_Read... [07:45:22]Read from MH i2c: E2 FD 00 23 03 00 AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 00 99 0C 70 04 03 00 BC 6F 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 56 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 83 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 51 [07:45:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 00 99 0C 70 04 03 00 BC 6F 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 56 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 83 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:45:23]wFMCommunicate OK [07:45:23]wFMCommunicate request_size=4 [07:45:23]MH_SAM_APDU [07:45:23]CAPDU: 80 17 00 00 [07:45:23]Write to MH i2c: E2 08 00 24 03 80 17 00 00 00 00 00 00 A7 [07:45:23]Write i2c OK [07:45:23]MH_I2C_Read... [07:45:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:23]Read from MH i2c: E2 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 FD 00 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 FD 00 24 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C9 [07:45:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:45:24]wFMCommunicate OK [07:45:24]wFMCommunicate request_size=4 [07:45:24]MH_SAM_APDU [07:45:24]CAPDU: 80 17 00 00 [07:45:24]Write to MH i2c: E2 08 00 25 03 80 17 00 00 00 00 00 00 A8 [07:45:24]Write i2c OK [07:45:24]MH_I2C_Read... [07:45:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:24]Read from MH i2c: E2 [07:45:24]MH_I2C_Read... [07:45:24]Read from MH i2c: E2 FD 00 [07:45:24]MH_I2C_Read... [07:45:24]Read from MH i2c: E2 FD 00 25 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5F [07:45:24]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:45:25]wFMCommunicate OK [07:45:25]wFMCommunicate request_size=4 [07:45:25]MH_SAM_APDU [07:45:25]CAPDU: 80 17 00 00 [07:45:25]Write to MH i2c: E2 08 00 26 03 80 17 00 00 00 00 00 00 A9 [07:45:25]Write i2c OK [07:45:25]MH_I2C_Read... [07:45:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:45:25]Read from MH i2c: E2 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: E2 FD 00 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: E2 FD 00 26 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 OFD Sender: No OFD packet to send [07:45:25]09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1B [07:45:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:45:26]wFMCommunicate OK [07:45:26]wFMCommunicate request_size=4 [07:45:26]MH_SAM_APDU [07:45:26]CAPDU: 80 17 00 00 [07:45:26]Write to MH i2c: E2 08 00 27 03 80 17 00 00 00 00 00 00 AA [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:45:26]Read from MH i2c: E2 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 CB 00 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 CB 00 27 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [07:45:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:45:26]wFMCommunicate OK [07:45:26]SAM_PROTO_GetShiftData done [07:45:26]requested_item shift.sale.total_cash is exist - process it [07:45:26]requested_item shift.sale_refund.total is exist - process it [07:45:26]requested_item shift.sale_refund.total_cash is exist - process it [07:45:26]requested_item shift.buy.total is exist - process it [07:45:26]requested_item shift.buy.total_cash is exist - process it [07:45:26]produce_requested_data done [07:45:26]produce_requested_data return {"fm.sale.total":10750103.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8256.00,"shift.sale.total_cash":7495.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:45:26]process_action_free get_value [07:45:26]json_value_free [07:45:26]json_value_free done [07:45:26]process_json_proto returns [07:45:26]Send response to host [07:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10750103.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8256.00,"shift.sale.total_cash":7495.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:45:26]free response buf [07:45:26]execute_script done [07:45:26]execute_script returns [07:45:26]free content buf [07:45:26]Sock 7.Close socket [07:45:26]Sock 7.Thread stoped [07:45:28]accept exits with 9 [07:45:28]New connection [07:45:28]New thread 3066846564 created [07:45:28]Thread 3066989924 joined [07:45:28]Waiting for new connection... [07:45:28] Sock 9.Parse request [07:45:28]Sock 9.Check first char [07:45:28]Sock 9.First char is OK [07:45:28]request: POST /json_proto HTTP/1.0 [07:45:28]Method: POST [07:45:28]URL: /json_proto [07:45:28]Method is POST - this is cgi request [07:45:28]url: /json_proto [07:45:28]query_string will be loaded in cgi processing [07:45:28]execute_cgi json_proto POST (null) [07:45:28]execute_cgi path=json_proto method=POST [07:45:28]POST find Content-Length [07:45:28]Host: 172.17.45.196:8080 [07:45:28]Content-Length: 707 [07:45:28]Content-Type: application/json [07:45:28] [07:45:28]POST finish read [07:45:28]Found Content-Length = 707 [07:45:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14551", "tax_sys" : 0, "items" : [ { "code": "4650243871224", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B (\u041F\u0418\u0422\u0410\u0419\u042F \u0410\u041D\u0410\u041D\u0410\u0421", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:28]execute_script... [07:45:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14551", "tax_sys" : 0, "items" : [ { "code": "4650243871224", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B (\u041F\u0418\u0422\u0410\u0419\u042F \u0410\u041D\u0410\u041D\u0410\u0421", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:28]POST & json_proto [07:45:28]process_json_proto [07:45:28]json parsed OK: [07:45:28]protocol is kg_v1.0 [07:45:28]action value=close_receipt [07:45:28]process_action close_receipt [07:45:28]cmd_close_receipt [07:45:28]MH_GetDate [07:45:28]Write to MH i2c: F0 00 00 28 03 1A [07:45:28]Write i2c OK [07:45:28]MH_I2C_Read... [07:45:28]Read from MH i2c: F0 [07:45:28]MH_I2C_Read... [07:45:28]Read from MH i2c: F0 09 00 [07:45:28]MH_I2C_Read... [07:45:28]Read from MH i2c: F0 09 00 28 03 00 19 F7 A5 66 BB 03 A5 66 07 [07:45:28]GetLastDocTimeStamp 1722152687 [07:45:28]current date 1722152729 [07:45:28]FM_GetShiftState [07:45:28]SAM_PROTO_GetShiftState [07:45:28]wFMCommunicate request_size=4 [07:45:28]MH_SAM_APDU [07:45:28]CAPDU: 80 13 01 00 [07:45:28]Write to MH i2c: E2 08 00 29 03 80 13 01 00 00 00 00 00 A9 [07:45:28]Write i2c OK [07:45:28]MH_I2C_Read... [07:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:28]Read from MH i2c: E2 [07:45:28]MH_I2C_Read... [07:45:28]Read from MH i2c: E2 0E 00 [07:45:28]MH_I2C_Read... [07:45:28]Read from MH i2c: E2 0E 00 29 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 42 [07:45:28]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:45:28]wFMCommunicate OK [07:45:28]SAM_PROTO_GetShiftState done [07:45:28]FM_GetShiftState done [07:45:28]opened in 1722126323 [07:45:28]opened+sec_in_day 1722212723 [07:45:28]quantity*price = 11000 [07:45:28]sum+1 = 11001 [07:45:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 30 28.07.2024 07:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44659 ФПД: 112319534593684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074529&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44659&fm=112319534593684&tin=02508201610067®Number=0000000000092655&sum=11000 0 [07:45:30]StoreToDocumentArchive [07:45:30]shift 430 fd 44659 [07:45:30]save to /storage/0430/doc_00044659 [07:45:30]save last doc name /storage/0430/doc_00044659 to /storage/kkm_last_doc_name [07:45:30]save OK [07:45:30]Clear old archive folders... [07:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=304 [07:45:30]tlvbuf is 017B6F70 [07:45:30]SAM_PROTO_ClearQueue [07:45:31]wFMCommunicate request_size=4 [07:45:31]MH_SAM_APDU [07:45:31]CAPDU: 80 09 00 00 [07:45:31]Write to MH i2c: E2 08 00 36 03 80 09 00 00 00 00 00 00 AB [07:45:31]Write i2c OK [07:45:31]MH_I2C_Read... [07:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:31]Read from MH i2c: E2 [07:45:31]MH_I2C_Read... [07:45:31]Read from MH i2c: E2 03 00 [07:45:31]MH_I2C_Read... [07:45:31]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [07:45:31]RAPDU: 90 00 [07:45:31]wFMCommunicate OK [07:45:31]SAM_PROTO_ClearQueue done [07:45:31]KKMCreateOFDPacket [07:45:31]OFDProtocolAddRootSTLVToBuf [07:45:31]FM_MakeSignedData [07:45:31]FM_MakeSignedData [07:45:31]SAM_PROTO_SignData [07:45:31]wFMCommunicate request_size=4 [07:45:31]MH_SAM_APDU [07:45:31]CAPDU: 80 0D 01 02 [07:45:31]Write to MH i2c: E2 08 00 37 03 80 0D 01 02 00 00 00 00 B3 [07:45:31]Write i2c OK [07:45:31]MH_I2C_Read... [07:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:31]Read from MH i2c: E2 [07:45:31]MH_I2C_Read... [07:45:31]Read from MH i2c: E2 03 00 [07:45:31]MH_I2C_Read... [07:45:31]Read from MH i2c: E2 03 00 37 03 00 90 00 AE [07:45:31]RAPDU: 90 00 [07:45:31]wFMCommunicate OK [07:45:31]wFMCommunicate request_size=255 [07:45:31]MH_SAM_APDU [07:45:31]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 F7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 [07:45:31]Write to MH i2c: E2 02 01 38 03 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 F7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 00 00 8C [07:45:31]Write i2c OK [07:45:31]MH_I2C_Read... [07:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:32]Read from MH i2c: E2 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 03 00 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 03 00 38 03 00 90 00 AF [07:45:32]RAPDU: 90 00 [07:45:32]wFMCommunicate OK [07:45:32]wFMCommunicate request_size=63 [07:45:32]MH_SAM_APDU [07:45:32]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 73 AE 00 00 35 04 06 00 66 27 6D F5 F6 94 [07:45:32]Write to MH i2c: E2 42 00 39 03 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 73 AE 00 00 35 04 06 00 66 27 6D F5 F6 94 00 00 9D [07:45:32]Write i2c OK [07:45:32]MH_I2C_Read... [07:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:32]Read from MH i2c: E2 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 03 00 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [07:45:32]RAPDU: 90 00 [07:45:32]wFMCommunicate OK [07:45:32]wFMCommunicate request_size=4 [07:45:32]MH_SAM_APDU [07:45:32]CAPDU: 80 0D 03 02 [07:45:32]Write to MH i2c: E2 08 00 3A 03 80 0D 03 02 00 00 00 00 B8 [07:45:32]Write i2c OK [07:45:32]MH_I2C_Read... [07:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:32]Read from MH i2c: E2 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 0B 00 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 0B 00 3A 03 00 10 49 05 18 4B 36 A4 A2 90 00 F6 [07:45:32]RAPDU: 10 49 05 18 4B 36 A4 A2 90 00 [07:45:32]wFMCommunicate OK [07:45:32]SAM_PROTO_SignData done [07:45:32]FM_MakeSignedData done [07:45:32]CreateOFDProtocolMessage [07:45:32]wFMCommunicate request_size=4 [07:45:32]MH_SAM_APDU [07:45:32]CAPDU: 80 11 00 00 [07:45:32]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [07:45:32]Write i2c OK [07:45:32]MH_I2C_Read... [07:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:32]Read from MH i2c: E2 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 17 00 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0C [07:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:45:32]wFMCommunicate OK [07:45:32]CreateOFDProtocolMessage done [07:45:32]OFDSenderStorePacket 44659 [07:45:32]StoreOFDPacket docnum=44659 [07:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 44 01 00 00 08 56 3C 01 DA 55 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 F7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 73 AE 00 00 35 04 06 00 66 27 6D F5 F6 94 10 49 05 18 4B 36 A4 A2 [07:45:32]CheckFolder [07:45:32]dirname=/storage/ofd_packets [07:45:32]CheckFolder done [07:45:32]ProducePacketName [07:45:32]name=ofd_packets/00044659 [07:45:32]NVStorageSaveData ofd_packets/00044659 [07:45:32]File name is /storage/ofd_packets/00044659 [07:45:32]Write 354 bytes [07:45:32]NVStorageSaveData done [07:45:32]OFDSenderStorePacket done [07:45:32]KKMCreateOFDPacket done [07:45:32]NVStorageSaveData kkm_last_timestamp [07:45:32]File name is /storage/kkm_last_timestamp [07:45:32]Write 4 bytes [07:45:32]NVStorageSaveData done [07:45:32]ExternCall_PrintAddStr [07:45:32]wPrintStart [07:45:32]Write to MH i2c: 01 00 00 3C 03 3F [07:45:32]Write i2c OK [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: 01 [07:45:32]MH_I2C_Read... [07:45:32]OFD Sender: Processing packet 44659 [packets to send 7, broken 6] [07:45:32]ProducePacketName [07:45:32]name=ofd_packets/00044659 [07:45:32]OFD Sender: To server: pG, [07:45:32]CommunicateWithHost lk.salyk.kg:30040 [07:45:32]ConnectInit lk.salyk.kg [07:45:32]Read from MH i2c: 01 07 00 [07:45:32]MH_I2C_Read... [07:45:32]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 FF 0F 54 [07:45:32]RasterBufferAndPrint [07:45:32]line Счет N : (3)14551 [07:45:32]line ИНН: 02508201610067 [07:45:32]line Контрольно-Кассовый Чек [07:45:32]line ПРОДАЖА [07:45:32]line Товар: 4650243871224 [07:45:32]line Напиток Gorilla ж/б 0,45л (ПИТАЙЯ АНАНАС [07:45:32]line 1.000 * 110.00 [07:45:32]line = 110.00 [07:45:32]line НДС 12% НСП 1% [07:45:32]line > о реализуемом товаре [07:45:32]line ИТОГО: 110.00 [07:45:32]line НСП 1% : 0.97 [07:45:32]line НДС 12% : 11.68 [07:45:32]line Наличными: 110.00 [07:45:32]line Безнал.: 0.00 [07:45:32]line Место: АЗС № 128 "Партнер Нефть" [07:45:32]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [07:45:32]line СНО: Общий режим [07:45:32]line Чек 30 28.07.2024 07:45 [07:45:32]line Смена: 430 ФФД: 1.0 [07:45:32]line ЗНМ: 0300000045 [07:45:32]line РНМ: 0000000000092655 [07:45:32]line Версия ККМ: 001 [07:45:32]line ФМ: 0000000000874941 [07:45:32]line ФД: 44659 [07:45:32]line ФПД: 112319534593684 [07:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T074529&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44659&fm=112319534593684&tin=02508201610067®Number=0000000000092655&sum=11000 [07:45:32]line 0 [07:45:32]written 0, free lines is 4095 [07:45:32]Connected sock=10 [07:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 44 01 00 00 08 56 3C 01 DA 55 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 F7 A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 Write to MH i2c: 30 01 38 00 37 00 34 39 34 31 10 04 04 00 65 73 03 AE 68 00 [07:45:33]00 35 04 06 00 66 27 6D F5 Write i2c OK [07:45:33]F6 MH_I2C_Read... [07:45:33]94 10 49 05 Read from MH i2c: 18 01 4B [07:45:33]36 MH_I2C_Read... [07:45:33]A4 Read from MH i2c: A2 01 [07:45:33]07 00 [07:45:33]MH_I2C_Read... [07:45:33]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 80 0D FC [07:45:33]RasterBufferAndPrint [07:45:33]line [07:45:33]line [07:45:33]line [07:45:33]line [07:45:33]line [07:45:33]written 0, free lines is 3567 [07:45:33]process_action close_receipt done [07:45:33]requested_data is exist [07:45:33]produce_requested_data [07:45:33]requested_item fm.sn is exist - process it [07:45:33]wFMCommunicate request_size=4 [07:45:33]MH_SAM_APDU [07:45:33]CAPDU: 80 11 00 00 [07:45:33]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [07:45:33]Write i2c OK [07:45:33]MH_I2C_Read... [07:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:33]Read from MH i2c: E2 [07:45:33]MH_I2C_Read... [07:45:33]Read from MH i2c: E2 17 00 [07:45:33]MH_I2C_Read... [07:45:33]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3D [07:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 Received data: 30 87 30 95 38 F6 37 70 34 47 39 2C 34 01 31 00 90 30 00 30 [07:45:33]wFMCommunicate OK [07:45:33]requested_item fd.num is exist - process it [07:45:33]SAM_PROTO_GetFieldsCounters [07:45:33]wFMCommunicate request_size=4 [07:45:33]MH_SAM_APDU [07:45:33]CAPDU: 80 13 30 00 30 00 30 [07:45:33]Write to MH i2c: E2 08 00 6D 03 80 13 30 00 30 00 30 00 30 00 00 00 EC [07:45:33]30 38 37 34 39 34 31 4F 00 00 00 1D DF 47 00 C5 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:33]30 30 30 30 30 30 30 Write i2c OK [07:45:33]30 MH_I2C_Read... [07:45:33]30 Read from MH i2c: 30 E2 38 [07:45:34]37 MH_I2C_Read... [07:45:34]34 39 34 31 10 04 Read from MH i2c: 04 E2 00 62 73 00 AE [07:45:34]00 MH_I2C_Read... [07:45:34]00 F4 03 04 00 2F A3 A5 66 Read from MH i2c: B6 E2 04 62 01 00 00 6D 00 03 83 00 56 5D CB 00 D1 B9 05 04 43 B4 4D [07:45:34]CommunicateWithHost err = 0 [07:45:34]CheckOFDResponse [07:45:34]1017 (14) - 77093643461234 [07:45:34]1041 (16) - 0000000000874941 [07:45:34]1040 (4) - 44659 [07:45:34]01 1012 (4) - 28.07.2024 01:47 [07:45:34]00 1206 (1) - 0 [07:45:34]01 OFD Sender: Remove packet 44659 [07:45:34]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 ProducePacketName [07:45:34]00 name=ofd_packets/00044659 [07:45:34]00 NVStorageDeleteData [07:45:34]57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [07:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:34]wFMCommunicate OK [07:45:34]SAM_PROTO_GetFieldsCounters done [07:45:34]requested_item shift.num is exist - process it [07:45:34]requested_item shift.opened is exist - process it [07:45:34]req_shift_opened [07:45:34]FM_GetShiftState [07:45:34]SAM_PROTO_GetShiftState [07:45:34]wFMCommunicate request_size=4 [07:45:34]MH_SAM_APDU [07:45:34]CAPDU: 80 13 01 00 [07:45:34]Write to MH i2c: E2 08 00 6E 03 80 13 01 00 00 00 00 00 EE [07:45:34]Write i2c OK [07:45:34]MH_I2C_Read... [07:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:34]Read from MH i2c: E2 [07:45:34]MH_I2C_Read... [07:45:34]Read from MH i2c: E2 0E 00 [07:45:34]MH_I2C_Read... [07:45:34]Read from MH i2c: E2 0E 00 6E 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 87 [07:45:34]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:45:34]wFMCommunicate OK [07:45:34]SAM_PROTO_GetShiftState done [07:45:34]FM_GetShiftState done [07:45:34]req_shift_opened done [07:45:34]requested_item shift.open_date is exist - process it [07:45:34]req_shift_open_date [07:45:34]req_shift_open_date done [07:45:34]produce_requested_data done [07:45:34]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:45:34]process_action_free close_receipt [07:45:34]json_value_free [07:45:34]json_value_free done [07:45:34]process_json_proto returns [07:45:34]Send response to host [07:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:45:34]free response buf [07:45:34]execute_script done [07:45:34]execute_script returns [07:45:34]free content buf [07:45:34]Sock 9.Close socket [07:45:34]Sock 9.Thread stoped [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:13]int [07:54:13]Write to MH i2c: 01 00 00 6F 03 72 [07:54:13]*** FLAG_PRN_KEY set [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 6F 03 00 08 00 00 00 FF 0F 8F [07:54:13]state=0 [07:54:13]Key pressed [07:54:13]Feed [07:54:13]Write to MH i2c: D8 00 00 70 03 4A [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D8 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D8 01 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: D8 01 00 70 03 00 4B [07:54:13]int [07:54:13]Write to MH i2c: 01 00 00 71 03 74 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 71 03 00 48 00 00 00 3D 00 00 [07:54:13]state=2 [07:54:13]Key pressed [07:54:13]int [07:54:13]Write to MH i2c: 01 00 00 72 03 75 [07:54:13]*** FLAG_PRN_KEY reset [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 F7 0F 82 [07:54:13]state=2 [07:54:13]Stop feed [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:22]accept exits with 7 [07:54:22]New connection [07:54:22]New thread 3066989924 created [07:54:22]Thread 3066846564 joined [07:54:22]Waiting for new connection... [07:54:22] Sock 7.Parse request [07:54:22]Sock 7.Check first char [07:54:22]Sock 7.First char is OK [07:54:22]request: POST /json_proto HTTP/1.0 [07:54:22]Method: POST [07:54:22]URL: /json_proto [07:54:22]Method is POST - this is cgi request [07:54:22]url: /json_proto [07:54:22]query_string will be loaded in cgi processing [07:54:22]execute_cgi json_proto POST (null) [07:54:22]execute_cgi path=json_proto method=POST [07:54:22]POST find Content-Length [07:54:22]Host: 172.17.45.196:8080 [07:54:22]Content-Length: 215 [07:54:22]Content-Type: application/json [07:54:22] [07:54:22]POST finish read [07:54:22]Found Content-Length = 215 [07:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:22]execute_script... [07:54:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:22]POST & json_proto [07:54:22]process_json_proto [07:54:22]json parsed OK: [07:54:22]protocol is kg_v1.0 [07:54:22]action value=get_value [07:54:22]process_action get_value [07:54:22]cmd_get_value [07:54:22]process_action get_value done [07:54:22]requested_data is exist [07:54:22]produce_requested_data [07:54:22]requested_item kkm.sn is exist - process it [07:54:22]requested_item kkm.ver is exist - process it [07:54:22]requested_item fm.sn is exist - process it [07:54:22]wFMCommunicate request_size=4 [07:54:22]MH_SAM_APDU [07:54:22]CAPDU: 80 11 00 00 [07:54:22]Write to MH i2c: E2 08 00 73 03 80 11 00 00 00 00 00 00 F0 [07:54:22]Write i2c OK [07:54:22]MH_I2C_Read... [07:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:22]Read from MH i2c: E2 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 17 00 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 17 00 73 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 44 [07:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:54:22]wFMCommunicate OK [07:54:22]requested_item fd.num is exist - process it [07:54:22]SAM_PROTO_GetFieldsCounters [07:54:22]wFMCommunicate request_size=4 [07:54:22]MH_SAM_APDU [07:54:22]CAPDU: 80 13 00 00 [07:54:22]Write to MH i2c: E2 08 00 74 03 80 13 00 00 00 00 00 00 F3 [07:54:22]Write i2c OK [07:54:22]MH_I2C_Read... [07:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:22]Read from MH i2c: E2 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 62 00 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 62 00 74 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [07:54:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:22]wFMCommunicate OK [07:54:22]SAM_PROTO_GetFieldsCounters done [07:54:22]requested_item shift.num is exist - process it [07:54:22]requested_item shift.opened is exist - process it [07:54:22]req_shift_opened [07:54:22]FM_GetShiftState [07:54:22]SAM_PROTO_GetShiftState [07:54:22]wFMCommunicate request_size=4 [07:54:22]MH_SAM_APDU [07:54:22]CAPDU: 80 13 01 00 [07:54:22]Write to MH i2c: E2 08 00 75 03 80 13 01 00 00 00 00 00 F5 [07:54:22]Write i2c OK [07:54:22]MH_I2C_Read... [07:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:22]Read from MH i2c: E2 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 0E 00 [07:54:22]MH_I2C_Read... [07:54:22]Read from MH i2c: E2 0E 00 75 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 8E [07:54:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:54:22]wFMCommunicate OK [07:54:22]SAM_PROTO_GetShiftState done [07:54:22]FM_GetShiftState done [07:54:22]req_shift_opened done [07:54:22]requested_item shift.open_date is exist - process it [07:54:22]req_shift_open_date [07:54:22]req_shift_open_date done [07:54:22]produce_requested_data done [07:54:22]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:54:22]process_action_free get_value [07:54:22]json_value_free [07:54:22]json_value_free done [07:54:22]process_json_proto returns [07:54:22]Send response to host [07:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:54:22]free response buf [07:54:22]execute_script done [07:54:22]execute_script returns [07:54:22]free content buf [07:54:22]Sock 7.Close socket [07:54:22]Sock 7.Thread stoped [07:54:22]accept exits with 9 [07:54:22]New connection [07:54:22]New thread 3066846564 created [07:54:22]Thread 3066989924 joined [07:54:22]Waiting for new connection... [07:54:22] Sock 9.Parse request [07:54:22]Sock 9.Check first char [07:54:22]Sock 9.First char is OK [07:54:22]request: POST /json_proto HTTP/1.0 [07:54:22]Method: POST [07:54:22]URL: /json_proto [07:54:22]Method is POST - this is cgi request [07:54:22]url: /json_proto [07:54:22]query_string will be loaded in cgi processing [07:54:22]execute_cgi json_proto POST (null) [07:54:22]execute_cgi path=json_proto method=POST [07:54:22]POST find Content-Length [07:54:22]Host: 172.17.45.196:8080 [07:54:22]Content-Length: 331 [07:54:22]Content-Type: application/json [07:54:22] [07:54:22]POST finish read [07:54:22]Found Content-Length = 331 [07:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:54:22]execute_script... [07:54:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:54:22]POST & json_proto [07:54:22]process_json_proto [07:54:22]json parsed OK: [07:54:22]protocol is kg_v1.0 [07:54:22]action value=get_value [07:54:22]process_action get_value [07:54:22]cmd_get_value [07:54:22]process_action get_value done [07:54:22]requested_data is exist [07:54:22]produce_requested_data [07:54:22]requested_item fm.sale.total is exist - process it [07:54:22]SAM_PROTO_GetFMData [07:54:22]wFMCommunicate request_size=4 [07:54:22]MH_SAM_APDU [07:54:22]CAPDU: 80 13 03 00 [07:54:22]Write to MH i2c: E2 08 00 76 03 80 13 03 00 00 00 00 00 F8 [07:54:22]Write i2c OK [07:54:22]MH_I2C_Read... [07:54:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:54:23]Read from MH i2c: E2 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 76 03 00 C2 04 85 04 BE 04 6E 04 04 00 17 AB 00 00 69 04 A0 00 6F 04 04 00 88 AA 00 00 B1 04 04 00 3D 86 13 40 70 04 04 00 FC C9 A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D FF CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 E1 [07:54:23]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 17 AB 00 00 69 04 A0 00 6F 04 04 00 88 AA 00 00 B1 04 04 00 3D 86 13 40 70 04 04 00 FC C9 A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D FF CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [07:54:23]wFMCommunicate OK [07:54:23]wFMCommunicate request_size=4 [07:54:23]MH_SAM_APDU [07:54:23]CAPDU: 80 17 00 00 [07:54:23]Write to MH i2c: E2 08 00 77 03 80 17 00 00 00 00 00 00 FA [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:23]Read from MH i2c: E2 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 77 03 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 A3 [07:54:23]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [07:54:23]wFMCommunicate OK [07:54:23]wFMCommunicate request_size=4 [07:54:23]MH_SAM_APDU [07:54:23]CAPDU: 80 17 00 00 [07:54:23]Write to MH i2c: E2 08 00 78 03 80 17 00 00 00 00 00 00 FB [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:23]Read from MH i2c: E2 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 78 03 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 A9 [07:54:23]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [07:54:23]wFMCommunicate OK [07:54:23]wFMCommunicate request_size=4 [07:54:23]MH_SAM_APDU [07:54:23]CAPDU: 80 17 00 00 [07:54:23]Write to MH i2c: E2 08 00 79 03 80 17 00 00 00 00 00 00 FC [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:23]Read from MH i2c: E2 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 [07:54:23]MH_I2C_Read... [07:54:23]Read from MH i2c: E2 FD 00 79 03 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 77 [07:54:23]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [07:54:23]wFMCommunicate OK [07:54:23]wFMCommunicate request_size=4 [07:54:23]MH_SAM_APDU [07:54:23]CAPDU: 80 17 00 00 [07:54:23]Write to MH i2c: E2 08 00 7A 03 80 17 00 00 00 00 00 00 FD [07:54:23]Write i2c OK [07:54:23]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 DF 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 DF 00 7A 03 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DD [07:54:24]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:54:24]wFMCommunicate OK [07:54:24]SAM_PROTO_GetFMData done [07:54:24]requested_item fm.sale_refund.total is exist - process it [07:54:24]requested_item fm.buy.total is exist - process it [07:54:24]requested_item shift.sale.total is exist - process it [07:54:24]SAM_PROTO_GetShiftData [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 13 02 00 [07:54:24]Write to MH i2c: E2 08 00 7B 03 80 13 02 00 00 00 00 00 FC [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 FD 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 FD 00 7B 03 00 AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 F8 C3 0C 70 04 03 00 B4 9A 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E6 [07:54:24]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 F8 C3 0C 70 04 03 00 B4 9A 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:54:24]wFMCommunicate OK [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 17 00 00 [07:54:24]Write to MH i2c: E2 08 00 7C 03 80 17 00 00 00 00 00 00 FF [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 FD 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 FD 00 7C 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 21 [07:54:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:54:24]wFMCommunicate OK [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 17 00 00 [07:54:24]Write to MH i2c: E2 08 00 7D 03 80 17 00 00 00 00 00 00 00 [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 FD 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 FD 00 7D 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B7 [07:54:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:54:25]wFMCommunicate OK [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 17 00 00 [07:54:25]Write to MH i2c: E2 08 00 7E 03 80 17 00 00 00 00 00 00 01 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]OFD Sender: No OFD packet to send [07:54:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 FD 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 FD 00 7E 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 73 [07:54:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:54:25]wFMCommunicate OK [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 17 00 00 [07:54:25]Write to MH i2c: E2 08 00 7F 03 80 17 00 00 00 00 00 00 02 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 CB 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 CB 00 7F 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [07:54:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:54:25]wFMCommunicate OK [07:54:25]SAM_PROTO_GetShiftData done [07:54:25]requested_item shift.sale.total_cash is exist - process it [07:54:25]requested_item shift.sale_refund.total is exist - process it [07:54:25]requested_item shift.sale_refund.total_cash is exist - process it [07:54:25]requested_item shift.buy.total is exist - process it [07:54:25]requested_item shift.buy.total_cash is exist - process it [07:54:25]produce_requested_data done [07:54:25]produce_requested_data return {"fm.sale.total":10750213.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8366.00,"shift.sale.total_cash":7605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:54:25]process_action_free get_value [07:54:25]json_value_free [07:54:25]json_value_free done [07:54:25]process_json_proto returns [07:54:25]Send response to host [07:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10750213.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8366.00,"shift.sale.total_cash":7605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:54:25]free response buf [07:54:25]execute_script done [07:54:25]execute_script returns [07:54:25]free content buf [07:54:25]Sock 9.Close socket [07:54:25]Sock 9.Thread stoped [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:47]accept exits with 7 [07:54:47]New connection [07:54:47]New thread 3066989924 created [07:54:47]Thread 3066846564 joined [07:54:47]Waiting for new connection... [07:54:47] Sock 7.Parse request [07:54:47]Sock 7.Check first char [07:54:47]Sock 7.First char is OK [07:54:47]request: POST /json_proto HTTP/1.0 [07:54:47]Method: POST [07:54:47]URL: /json_proto [07:54:47]Method is POST - this is cgi request [07:54:47]url: /json_proto [07:54:47]query_string will be loaded in cgi processing [07:54:47]execute_cgi json_proto POST (null) [07:54:47]execute_cgi path=json_proto method=POST [07:54:47]POST find Content-Length [07:54:47]Host: 172.17.45.196:8080 [07:54:47]Content-Length: 215 [07:54:47]Content-Type: application/json [07:54:47] [07:54:47]POST finish read [07:54:47]Found Content-Length = 215 [07:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:47]execute_script... [07:54:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:47]POST & json_proto [07:54:47]process_json_proto [07:54:47]json parsed OK: [07:54:47]protocol is kg_v1.0 [07:54:47]action value=get_value [07:54:47]process_action get_value [07:54:47]cmd_get_value [07:54:47]process_action get_value done [07:54:47]requested_data is exist [07:54:47]produce_requested_data [07:54:47]requested_item kkm.sn is exist - process it [07:54:47]requested_item kkm.ver is exist - process it [07:54:47]requested_item fm.sn is exist - process it [07:54:47]wFMCommunicate request_size=4 [07:54:47]MH_SAM_APDU [07:54:47]CAPDU: 80 11 00 00 [07:54:47]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [07:54:47]Write i2c OK [07:54:47]MH_I2C_Read... [07:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:47]Read from MH i2c: E2 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 17 00 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 51 [07:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [07:54:47]wFMCommunicate OK [07:54:47]requested_item fd.num is exist - process it [07:54:47]SAM_PROTO_GetFieldsCounters [07:54:47]wFMCommunicate request_size=4 [07:54:47]MH_SAM_APDU [07:54:47]CAPDU: 80 13 00 00 [07:54:47]Write to MH i2c: E2 08 00 81 03 80 13 00 00 00 00 00 00 00 [07:54:47]Write i2c OK [07:54:47]MH_I2C_Read... [07:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:47]Read from MH i2c: E2 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 62 00 [07:54:47]MH_I2C_Read... [07:54:47]Read from MH i2c: E2 62 00 81 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [07:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 73 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:47]wFMCommunicate OK [07:54:47]SAM_PROTO_GetFieldsCounters done [07:54:47]requested_item shift.num is exist - process it [07:54:47]requested_item shift.opened is exist - process it [07:54:47]req_shift_opened [07:54:47]FM_GetShiftState [07:54:47]SAM_PROTO_GetShiftState [07:54:47]wFMCommunicate request_size=4 [07:54:47]MH_SAM_APDU [07:54:47]CAPDU: 80 13 01 00 [07:54:47]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [07:54:47]Write i2c OK [07:54:47]MH_I2C_Read... [07:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:48]Read from MH i2c: E2 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 0E 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 9B [07:54:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [07:54:48]wFMCommunicate OK [07:54:48]SAM_PROTO_GetShiftState done [07:54:48]FM_GetShiftState done [07:54:48]req_shift_opened done [07:54:48]requested_item shift.open_date is exist - process it [07:54:48]req_shift_open_date [07:54:48]req_shift_open_date done [07:54:48]produce_requested_data done [07:54:48]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [07:54:48]process_action_free get_value [07:54:48]json_value_free [07:54:48]json_value_free done [07:54:48]process_json_proto returns [07:54:48]Send response to host [07:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44659,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [07:54:48]free response buf [07:54:48]execute_script done [07:54:48]execute_script returns [07:54:48]free content buf [07:54:48]Sock 7.Close socket [07:54:48]Sock 7.Thread stoped [07:54:48]accept exits with 9 [07:54:48]New connection [07:54:48]New thread 3066846564 created [07:54:48]Thread 3066989924 joined [07:54:48]Waiting for new connection... [07:54:48] Sock 9.Parse request [07:54:48]Sock 9.Check first char [07:54:48]Sock 9.First char is OK [07:54:48]request: POST /json_proto HTTP/1.0 [07:54:48]Method: POST [07:54:48]URL: /json_proto [07:54:48]Method is POST - this is cgi request [07:54:48]url: /json_proto [07:54:48]query_string will be loaded in cgi processing [07:54:48]execute_cgi json_proto POST (null) [07:54:48]execute_cgi path=json_proto method=POST [07:54:48]POST find Content-Length [07:54:48]Host: 172.17.45.196:8080 [07:54:48]Content-Length: 331 [07:54:48]Content-Type: application/json [07:54:48] [07:54:48]POST finish read [07:54:48]Found Content-Length = 331 [07:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:54:48]execute_script... [07:54:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:54:48]POST & json_proto [07:54:48]process_json_proto [07:54:48]json parsed OK: [07:54:48]protocol is kg_v1.0 [07:54:48]action value=get_value [07:54:48]process_action get_value [07:54:48]cmd_get_value [07:54:48]process_action get_value done [07:54:48]requested_data is exist [07:54:48]produce_requested_data [07:54:48]requested_item fm.sale.total is exist - process it [07:54:48]SAM_PROTO_GetFMData [07:54:48]wFMCommunicate request_size=4 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 13 03 00 [07:54:48]Write to MH i2c: E2 08 00 83 03 80 13 03 00 00 00 00 00 05 [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:54:48]Read from MH i2c: E2 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 FD 00 [07:54:48]MH_I2C_Read... [07:54:48]Read from MH i2c: E2 FD 00 83 03 00 C2 04 85 04 BE 04 6E 04 04 00 17 AB 00 00 69 04 A0 00 6F 04 04 00 88 AA 00 00 B1 04 04 00 3D 86 13 40 70 04 04 00 FC C9 A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D FF CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 EE [07:54:48]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 17 AB 00 00 69 04 A0 00 6F 04 04 00 88 AA 00 00 B1 04 04 00 3D 86 13 40 70 04 04 00 FC C9 A8 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D FF CD 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 16 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [07:54:48]wFMCommunicate OK [07:54:48]wFMCommunicate request_size=4 [07:54:48]MH_SAM_APDU [07:54:48]CAPDU: 80 17 00 00 [07:54:48]Write to MH i2c: E2 08 00 84 03 80 17 00 00 00 00 00 00 07 [07:54:48]Write i2c OK [07:54:48]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 84 03 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 B0 [07:54:49]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 17 00 00 [07:54:49]Write to MH i2c: E2 08 00 85 03 80 17 00 00 00 00 00 00 08 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 85 03 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 B6 [07:54:49]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 17 00 00 [07:54:49]Write to MH i2c: E2 08 00 86 03 80 17 00 00 00 00 00 00 09 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 FD 00 86 03 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 84 [07:54:49]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [07:54:49]wFMCommunicate OK [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 17 00 00 [07:54:49]Write to MH i2c: E2 08 00 87 03 80 17 00 00 00 00 00 00 0A [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [07:54:49]Read from MH i2c: E2 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 DF 00 [07:54:49]MH_I2C_Read... [07:54:49]Read from MH i2c: E2 DF 00 87 03 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EA [07:54:49]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:54:49]wFMCommunicate OK [07:54:49]SAM_PROTO_GetFMData done [07:54:49]requested_item fm.sale_refund.total is exist - process it [07:54:49]requested_item fm.buy.total is exist - process it [07:54:49]requested_item shift.sale.total is exist - process it [07:54:49]SAM_PROTO_GetShiftData [07:54:49]wFMCommunicate request_size=4 [07:54:49]MH_SAM_APDU [07:54:49]CAPDU: 80 13 02 00 [07:54:49]Write to MH i2c: E2 08 00 88 03 80 13 02 00 00 00 00 00 09 [07:54:49]Write i2c OK [07:54:49]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 88 03 00 AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 F8 C3 0C 70 04 03 00 B4 9A 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F3 [07:54:50]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 F8 C3 0C 70 04 03 00 B4 9A 0B 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:54:50]wFMCommunicate OK [07:54:50]wFMCommunicate request_size=4 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 17 00 00 [07:54:50]Write to MH i2c: E2 08 00 89 03 80 17 00 00 00 00 00 00 0C [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]OFD Sender: No OFD packet to send [07:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 89 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2E [07:54:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:54:50]wFMCommunicate OK [07:54:50]wFMCommunicate request_size=4 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 17 00 00 [07:54:50]Write to MH i2c: E2 08 00 8A 03 80 17 00 00 00 00 00 00 0D [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:50]Read from MH i2c: E2 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 [07:54:50]MH_I2C_Read... [07:54:50]Read from MH i2c: E2 FD 00 8A 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C4 [07:54:50]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:54:50]wFMCommunicate OK [07:54:50]wFMCommunicate request_size=4 [07:54:50]MH_SAM_APDU [07:54:50]CAPDU: 80 17 00 00 [07:54:50]Write to MH i2c: E2 08 00 8B 03 80 17 00 00 00 00 00 00 0E [07:54:50]Write i2c OK [07:54:50]MH_I2C_Read... [07:54:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:54:51]Read from MH i2c: E2 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 FD 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 FD 00 8B 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 80 [07:54:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:54:51]wFMCommunicate OK [07:54:51]wFMCommunicate request_size=4 [07:54:51]MH_SAM_APDU [07:54:51]CAPDU: 80 17 00 00 [07:54:51]Write to MH i2c: E2 08 00 8C 03 80 17 00 00 00 00 00 00 0F [07:54:51]Write i2c OK [07:54:51]MH_I2C_Read... [07:54:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:54:51]Read from MH i2c: E2 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 CB 00 [07:54:51]MH_I2C_Read... [07:54:51]Read from MH i2c: E2 CB 00 8C 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F8 [07:54:51]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:54:51]wFMCommunicate OK [07:54:51]SAM_PROTO_GetShiftData done [07:54:51]requested_item shift.sale.total_cash is exist - process it [07:54:51]requested_item shift.sale_refund.total is exist - process it [07:54:51]requested_item shift.sale_refund.total_cash is exist - process it [07:54:51]requested_item shift.buy.total is exist - process it [07:54:51]requested_item shift.buy.total_cash is exist - process it [07:54:51]produce_requested_data done [07:54:51]produce_requested_data return {"fm.sale.total":10750213.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8366.00,"shift.sale.total_cash":7605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:54:51]process_action_free get_value [07:54:51]json_value_free [07:54:51]json_value_free done [07:54:51]process_json_proto returns [07:54:51]Send response to host [07:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10750213.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":8366.00,"shift.sale.total_cash":7605.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:54:51]free response buf [07:54:51]execute_script done [07:54:51]execute_script returns [07:54:51]free content buf [07:54:51]Sock 9.Close socket [07:54:51]Sock 9.Thread stoped [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:45]accept exits with 7 [08:08:45]New connection [08:08:45]New thread 3066989924 created [08:08:45]Thread 3066846564 joined [08:08:45]Waiting for new connection... [08:08:45] Sock 7.Parse request [08:08:45]Sock 7.Check first char [08:08:45]Sock 7.First char is OK [08:08:45]request: POST /json_proto HTTP/1.0 [08:08:45]Method: POST [08:08:45]URL: /json_proto [08:08:45]Method is POST - this is cgi request [08:08:45]url: /json_proto [08:08:45]query_string will be loaded in cgi processing [08:08:45]execute_cgi json_proto POST (null) [08:08:45]execute_cgi path=json_proto method=POST [08:08:45]POST find Content-Length [08:08:45]Host: 172.17.45.196:8080 [08:08:45]Content-Length: 646 [08:08:45]Content-Type: application/json [08:08:45] [08:08:45]POST finish read [08:08:45]Found Content-Length = 646 [08:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14552", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:45]execute_script... [08:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14552", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:45]POST & json_proto [08:08:45]process_json_proto [08:08:45]json parsed OK: [08:08:45]protocol is kg_v1.0 [08:08:45]action value=close_receipt [08:08:45]process_action close_receipt [08:08:45]cmd_close_receipt [08:08:45]MH_GetDate [08:08:45]Write to MH i2c: F0 00 00 8D 03 7F [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: F0 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: F0 09 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: F0 09 00 8D 03 00 8E FC A5 66 BB 03 A5 66 E6 [08:08:45]GetLastDocTimeStamp 1722152729 [08:08:45]current date 1722154126 [08:08:45]FM_GetShiftState [08:08:45]SAM_PROTO_GetShiftState [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 01 00 [08:08:45]Write to MH i2c: E2 08 00 8E 03 80 13 01 00 00 00 00 00 0E [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0E 00 8E 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A7 [08:08:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_GetShiftState done [08:08:45]FM_GetShiftState done [08:08:45]opened in 1722126323 [08:08:45]opened+sec_in_day 1722212723 [08:08:45]quantity*price = 13000 [08:08:45]sum+1 = 13001 [08:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 31 28.07.2024 08:08 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44660 ФПД: 64417624731340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080846&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44660&fm=64417624731340&tin=02508201610067®Number=0000000000092655&sum=13000 0 [08:08:46]StoreToDocumentArchive [08:08:46]shift 430 fd 44660 [08:08:46]save to /storage/0430/doc_00044660 [08:08:46]save last doc name /storage/0430/doc_00044660 to /storage/kkm_last_doc_name [08:08:46]save OK [08:08:46]Clear old archive folders... [08:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:08:46]tlvbuf is 01761350 [08:08:46]SAM_PROTO_ClearQueue [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 09 00 00 [08:08:46]Write to MH i2c: E2 08 00 9B 03 80 09 00 00 00 00 00 00 10 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [08:08:46]RAPDU: 90 00 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_ClearQueue done [08:08:46]KKMCreateOFDPacket [08:08:46]OFDProtocolAddRootSTLVToBuf [08:08:46]FM_MakeSignedData [08:08:46]FM_MakeSignedData [08:08:46]SAM_PROTO_SignData [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 0D 01 02 [08:08:46]Write to MH i2c: E2 08 00 9C 03 80 0D 01 02 00 00 00 00 18 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [08:08:46]RAPDU: 90 00 [08:08:46]wFMCommunicate OK [08:08:46]wFMCommunicate request_size=255 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8E FC A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [08:08:46]Write to MH i2c: E2 02 01 9D 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8E FC A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 1B [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [08:08:46]RAPDU: 90 00 [08:08:46]wFMCommunicate OK [08:08:46]wFMCommunicate request_size=31 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 74 AE 00 00 35 04 06 00 3A 96 65 A3 AE CC [08:08:46]Write to MH i2c: E2 22 00 9E 03 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 74 AE 00 00 35 04 06 00 3A 96 65 A3 AE CC 00 00 BB [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 03 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [08:08:47]RAPDU: 90 00 [08:08:47]wFMCommunicate OK [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 0D 03 02 [08:08:47]Write to MH i2c: E2 08 00 9F 03 80 0D 03 02 00 00 00 00 1D [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0B 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0B 00 9F 03 00 79 F3 A6 93 3E F4 B6 C3 90 00 6E [08:08:47]RAPDU: 79 F3 A6 93 3E F4 B6 C3 90 00 [08:08:47]wFMCommunicate OK [08:08:47]SAM_PROTO_SignData done [08:08:47]FM_MakeSignedData done [08:08:47]CreateOFDProtocolMessage [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 11 00 00 [08:08:47]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 71 [08:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:08:47]wFMCommunicate OK [08:08:47]CreateOFDProtocolMessage done [08:08:47]OFDSenderStorePacket 44660 [08:08:47]StoreOFDPacket docnum=44660 [08:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 F8 48 1C 01 06 47 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8E FC A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 74 AE 00 00 35 04 06 00 3A 96 65 A3 AE CC 79 F3 A6 93 3E F4 B6 C3 [08:08:47]CheckFolder [08:08:47]dirname=/storage/ofd_packets [08:08:47]CheckFolder done [08:08:47]ProducePacketName [08:08:47]name=ofd_packets/00044660 [08:08:47]NVStorageSaveData ofd_packets/00044660 [08:08:47]File name is /storage/ofd_packets/00044660 [08:08:47]Write 322 bytes [08:08:47]NVStorageSaveData done [08:08:47]OFDSenderStorePacket done [08:08:47]KKMCreateOFDPacket done [08:08:47]NVStorageSaveData kkm_last_timestamp [08:08:47]File name is /storage/kkm_last_timestamp [08:08:47]Write 4 bytes [08:08:47]NVStorageSaveData done [08:08:47]ExternCall_PrintAddStr [08:08:47]wPrintStart [08:08:47]Write to MH i2c: 01 00 00 A1 03 A4 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 07 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [08:08:47]RasterBufferAndPrint [08:08:47]line Счет N : (3)14552 [08:08:47]line ИНН: 02508201610067 [08:08:47]line Контрольно-Кассовый Чек [08:08:47]line ПРОДАЖА [08:08:47]line Товар: 47011656 [08:08:47]line Водка Пшеничная 0,1л [08:08:47]line 2.000 * 65.00 [08:08:47]line = 130.00 [08:08:47]line НДС 12% НСП 1% [08:08:47]line > о реализуемом товаре [08:08:47]line ИТОГО: 130.00 [08:08:47]line НСП 1% : 1.15 [08:08:47]line НДС 12% : 13.80 [08:08:47]line Наличными: 130.00 [08:08:47]line Безнал.: 0.00 [08:08:47]line Место: АЗС № 128 "Партнер Нефть" [08:08:47]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [08:08:47]line СНО: Общий режим [08:08:47]line Чек 31 28.07.2024 08:08 [08:08:47]line Смена: 430 ФФД: 1.0 [08:08:47]line ЗНМ: 0300000045 [08:08:47]line РНМ: 0000000000092655 [08:08:47]line Версия ККМ: 001 [08:08:47]line ФМ: 0000000000874941 [08:08:47]line ФД: 44660 [08:08:47]line ФПД: 64417624731340 [08:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T080846&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44660&fm=64417624731340&tin=02508201610067®Number=0000000000092655&sum=13000 [08:08:47]OFD Sender: Processing packet 44660 [packets to send 7, broken 6] [08:08:47]ProducePacketName [08:08:47]name=ofd_packets/00044660 [08:08:47]OFD Sender: To server: pG, [08:08:47]CommunicateWithHost lk.salyk.kg:30040 [08:08:47]ConnectInit lk.salyk.kg [08:08:47]line 0 [08:08:47]written 0, free lines is 4095 [08:08:47]Connected sock=10 [08:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 F8 48 1C 01 06 47 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8E FC A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 74 AE 00 00 35 04 06 00 3A 96 65 A3 AE CC 79 F3 A6 93 3E F4 B6 C3 [08:08:47]Write to MH i2c: 01 00 00 C9 03 CC [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 07 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 0C 0D EC [08:08:47]RasterBufferAndPrint [08:08:47]line [08:08:47]line [08:08:47]line [08:08:47]line [08:08:47]line [08:08:47]written 0, free lines is 3346 [08:08:47]process_action close_receipt done [08:08:47]requested_data is exist [08:08:47]produce_requested_data [08:08:47]requested_item fm.sn is exist - process it [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 11 00 00 [08:08:47]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A1 [08:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:08:47]wFMCommunicate OK [08:08:47]requested_item fd.num is exist - process it [08:08:47]SAM_PROTO_GetFieldsCounters [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 13 00 00 [08:08:47]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 45 BD 47 00 22 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 74 AE 00 00 F4 03 04 00 A1 A8 A5 66 B6 04 01 00 00 47 1B 8D B0 02 E2 BD 88 [08:08:47]CommunicateWithHost err = 0 [08:08:47]CheckOFDResponse [08:08:47]1017 (14) - 77093643461234 [08:08:47]1041 (16) - 0000000000874941 [08:08:47]1040 (4) - 44660 [08:08:47]1012 (4) - 28.07.2024 02:10 [08:08:47]1206 (1) - 0 [08:08:47]OFD Sender: Remove packet 44660 [08:08:47]ProducePacketName [08:08:47]name=ofd_packets/00044660 [08:08:47]NVStorageDeleteData [08:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 62 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 74 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [08:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 74 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_GetFieldsCounters done [08:08:48]requested_item shift.num is exist - process it [08:08:48]requested_item shift.opened is exist - process it [08:08:48]req_shift_opened [08:08:48]FM_GetShiftState [08:08:48]SAM_PROTO_GetShiftState [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 13 01 00 [08:08:48]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 EB [08:08:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_GetShiftState done [08:08:48]FM_GetShiftState done [08:08:48]req_shift_opened done [08:08:48]requested_item shift.open_date is exist - process it [08:08:48]req_shift_open_date [08:08:48]req_shift_open_date done [08:08:48]produce_requested_data done [08:08:48]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44660,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [08:08:48]process_action_free close_receipt [08:08:48]json_value_free [08:08:48]json_value_free done [08:08:48]process_json_proto returns [08:08:48]Send response to host [08:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44660,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [08:08:48]free response buf [08:08:48]execute_script done [08:08:48]execute_script returns [08:08:48]free content buf [08:08:48]Sock 7.Close socket [08:08:48]Sock 7.Thread stoped [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]int [08:16:33]Write to MH i2c: 01 00 00 D3 03 D6 [08:16:33]*** FLAG_PRN_KEY set [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 D3 03 00 08 00 00 00 FF 0F F3 [08:16:33]state=0 [08:16:33]Key pressed [08:16:33]Feed [08:16:33]Write to MH i2c: D8 00 00 D4 03 AE [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D8 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D8 01 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D8 01 00 D4 03 00 AF [08:16:33]int [08:16:33]Write to MH i2c: 01 00 00 D5 03 D8 [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 D5 03 00 48 00 00 00 3D 00 64 [08:16:33]state=2 [08:16:33]Key pressed [08:16:33]int [08:16:33]Write to MH i2c: 01 00 00 D6 03 D9 [08:16:33]*** FLAG_PRN_KEY reset [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 F7 0F E6 [08:16:33]state=2 [08:16:33]Stop feed [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:56]accept exits with 9 [08:18:56]New connection [08:18:56]New thread 3066846564 created [08:18:56]Thread 3066989924 joined [08:18:56]Waiting for new connection... [08:18:56] Sock 9.Parse request [08:18:56]Sock 9.Check first char [08:18:56]Sock 9.First char is OK [08:18:56]request: POST /json_proto HTTP/1.0 [08:18:56]Method: POST [08:18:56]URL: /json_proto [08:18:56]Method is POST - this is cgi request [08:18:56]url: /json_proto [08:18:56]query_string will be loaded in cgi processing [08:18:56]execute_cgi json_proto POST (null) [08:18:56]execute_cgi path=json_proto method=POST [08:18:56]POST find Content-Length [08:18:56]Host: 172.17.45.196:8080 [08:18:56]Content-Length: 1540 [08:18:56]Content-Type: application/json [08:18:56] [08:18:56]POST finish read [08:18:56]Found Content-Length = 1540 [08:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14553", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 826.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:56]execute_script... [08:18:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14553", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 826.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:56]POST & json_proto [08:18:56]process_json_proto [08:18:56]json parsed OK: [08:18:56]protocol is kg_v1.0 [08:18:56]action value=close_receipt [08:18:56]process_action close_receipt [08:18:56]cmd_close_receipt [08:18:56]MH_GetDate [08:18:56]Write to MH i2c: F0 00 00 D7 03 C9 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 09 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 09 00 D7 03 00 F1 FE A5 66 BB 03 A5 66 95 [08:18:56]GetLastDocTimeStamp 1722154126 [08:18:56]current date 1722154737 [08:18:56]FM_GetShiftState [08:18:56]SAM_PROTO_GetShiftState [08:18:56]wFMCommunicate request_size=4 [08:18:56]MH_SAM_APDU [08:18:56]CAPDU: 80 13 01 00 [08:18:56]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:56]Read from MH i2c: E2 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F1 [08:18:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:18:56]wFMCommunicate OK [08:18:56]SAM_PROTO_GetShiftState done [08:18:56]FM_GetShiftState done [08:18:56]opened in 1722126323 [08:18:56]opened+sec_in_day 1722212723 [08:18:56]quantity*price = 45000 [08:18:56]sum+1 = 45001 [08:18:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 826.00 НСП 1% : 7.30 НДС 12% : 87.71 Наличными: 826.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 32 28.07.2024 08:18 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44661 ФПД: 263848873953655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081857&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44661&fm=263848873953655&tin=02508201610067®Number=0000000000092655&sum=82600 0 [08:18:57]StoreToDocumentArchive [08:18:57]shift 430 fd 44661 [08:18:57]save to /storage/0430/doc_00044661 [08:18:57]save last doc name /storage/0430/doc_00044661 to /storage/kkm_last_doc_name [08:18:57]save OK [08:18:57]Clear old archive folders... [08:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=635 [08:18:57]tlvbuf is 017CCB70 [08:18:57]SAM_PROTO_ClearQueue [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 09 00 00 [08:18:57]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]SAM_PROTO_ClearQueue done [08:18:57]KKMCreateOFDPacket [08:18:57]OFDProtocolAddRootSTLVToBuf [08:18:57]FM_MakeSignedData [08:18:57]FM_MakeSignedData [08:18:57]SAM_PROTO_SignData [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 0D 01 02 [08:18:57]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]wFMCommunicate request_size=255 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 0D 02 02 FA 03 00 7B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 [08:18:57]Write to MH i2c: E2 02 01 E7 03 80 0D 02 02 FA 00 03 00 7B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 00 00 B5 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]wFMCommunicate request_size=255 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 0D 02 02 FA 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [08:18:57]Write to MH i2c: E2 02 01 E8 03 80 0D 02 02 FA 00 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 ED [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [08:18:58]RAPDU: 90 00 [08:18:58]wFMCommunicate OK [08:18:58]wFMCommunicate request_size=144 [08:18:58]MH_SAM_APDU [08:18:58]CAPDU: 80 0D 02 02 8B 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 22 00 00 00 00 07 04 06 00 A8 42 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F1 FE A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 75 AE 00 00 35 04 06 00 EF F8 1A 68 09 77 [08:18:58]Write to MH i2c: E2 93 00 E9 03 80 0D 02 02 8B 00 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 22 00 00 00 00 07 04 06 00 A8 42 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F1 FE A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 75 AE 00 00 35 04 06 00 EF F8 1A 68 09 77 00 00 AD [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [08:18:58]RAPDU: 90 00 [08:18:58]wFMCommunicate OK [08:18:58]wFMCommunicate request_size=4 [08:18:58]MH_SAM_APDU [08:18:58]CAPDU: 80 0D 03 02 [08:18:58]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 0B 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 0B 00 EA 03 00 AC 95 27 8E 20 EA AC 52 90 00 67 [08:18:58]RAPDU: AC 95 27 8E 20 EA AC 52 90 00 [08:18:58]wFMCommunicate OK [08:18:58]SAM_PROTO_SignData done [08:18:58]FM_MakeSignedData done [08:18:58]CreateOFDProtocolMessage [08:18:58]wFMCommunicate request_size=4 [08:18:58]MH_SAM_APDU [08:18:58]CAPDU: 80 11 00 00 [08:18:58]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 17 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BC [08:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:18:58]wFMCommunicate OK [08:18:58]CreateOFDProtocolMessage done [08:18:58]OFDSenderStorePacket 44661 [08:18:58]StoreOFDPacket docnum=44661 [08:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8F 02 00 00 47 A6 87 02 1F CC 5A 03 01 00 03 00 7B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 22 00 00 00 00 07 04 06 00 A8 42 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F1 FE A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 75 AE 00 00 35 04 06 00 EF F8 1A 68 09 77 AC 95 27 8E 20 EA AC 52 [08:18:58]CheckFolder [08:18:58]dirname=/storage/ofd_packets [08:18:58]CheckFolder done [08:18:58]ProducePacketName [08:18:58]name=ofd_packets/00044661 [08:18:58]NVStorageSaveData ofd_packets/00044661 [08:18:58]File name is /storage/ofd_packets/00044661 [08:18:58]Write 685 bytes [08:18:58]NVStorageSaveData done [08:18:58]OFDSenderStorePacket done [08:18:58]KKMCreateOFDPacket done [08:18:58]NVStorageSaveData kkm_last_timestamp [08:18:58]File name is /storage/kkm_last_timestamp [08:18:58]Write 4 bytes [08:18:58]NVStorageSaveData done [08:18:58]ExternCall_PrintAddStr [08:18:58]wPrintStart [08:18:58]Write to MH i2c: 01 00 00 EC 03 EF [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [08:18:58]RasterBufferAndPrint [08:18:58]line Счет N : (3)14553 [08:18:58]line ИНН: 02508201610067 [08:18:58]line Контрольно-Кассовый Чек [08:18:58]line ПРОДАЖА [08:18:58]line Товар: 4700002083266 [08:18:58]line Водка Атилла Гунн 0,5л [08:18:58]line 1.000 * 450.00 [08:18:58]line = 450.00 [08:18:58]line НДС 12% НСП 1% [08:18:58]line > о реализуемом товаре [08:18:58]line Товар: 90448300 [08:18:58]line Энерг напиток Red Bull 0,355л [08:18:58]line 1.000 * 265.00 [08:18:58]line = 265.00 [08:18:58]line НДС 12% НСП 1% [08:18:58]line > о реализуемом товаре [08:18:58]line Товар: 2000031750019 [08:18:58]line Пакет Партнер Нефть [08:18:58]line 1.000 * 4.00 [08:18:58]line = 4.00 [08:18:58]line НДС 12% НСП 1% [08:18:58]line > о реализуемом товаре [08:18:58]line Товар: 5449000027474 [08:18:58]line Напиток FuzeTea зел чай манго,ромашка 1л [08:18:58]line 1.000 * 107.00 [08:18:58]line = 107.00 [08:18:58]line НДС 12% НСП 1% [08:18:58]line > о реализуемом товаре [08:18:58]line ИТОГО: 826.00 [08:18:58]line НСП 1% : 7.30 [08:18:58]line НДС 12% : 87.71 [08:18:58]line Наличными: 826.00 [08:18:58]line Безнал.: 0.00 [08:18:58]line Место: АЗС № 128 "Партнер Нефть" [08:18:58]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [08:18:58]line СНО: Общий режим [08:18:58]line Чек 32 28.07.2024 08:18 [08:18:58]line Смена: 430 ФФД: 1.0 [08:18:58]line ЗНМ: 0300000045 [08:18:58]line РНМ: 0000000000092655 [08:18:58]line Версия ККМ: 001 [08:18:58]line ФМ: 0000000000874941 [08:18:58]line ФД: 44661 [08:18:58]line ФПД: 263848873953655 [08:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T081857&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44661&fm=263848873953655&tin=02508201610067®Number=0000000000092655&sum=82600 [08:18:58]OFD Sender: Processing packet 44661 [packets to send 7, broken 6] [08:18:58]ProducePacketName [08:18:58]name=ofd_packets/00044661 [08:18:58]OFD Sender: To server: pG, [08:18:58]CommunicateWithHost lk.salyk.kg:30040 [08:18:58]ConnectInit lk.salyk.kg [08:18:58]line 0 [08:18:58]written 0, free lines is 4095 [08:18:59]Connected sock=10 [08:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8F 02 00 00 47 A6 87 02 1F CC 5A 03 01 00 03 00 7B 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 22 00 00 00 00 07 04 06 00 A8 42 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F1 FE A5 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 75 AE 00 00 35 04 06 00 EF F8 1A 68 09 77 AC 95 27 8E 20 EA AC 52 [08:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 76 69 47 00 03 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 75 AE 00 00 F4 03 04 00 05 AB A5 66 B6 04 01 00 00 36 17 EB 94 22 2A 26 A6 [08:18:59]CommunicateWithHost err = 0 [08:18:59]CheckOFDResponse [08:18:59]1017 (14) - 77093643461234 [08:18:59]1041 (16) - 0000000000874941 [08:18:59]1040 (4) - 44661 [08:18:59]1012 (4) - 28.07.2024 02:20 [08:18:59]1206 (1) - 0 [08:18:59]OFD Sender: Remove packet 44661 [08:18:59]ProducePacketName [08:18:59]name=ofd_packets/00044661 [08:18:59]NVStorageDeleteData [08:18:59]Write to MH i2c: 01 00 00 27 04 2B [08:18:59]Write i2c OK [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: 01 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: 01 07 00 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 ED 0B 2A [08:18:59]RasterBufferAndPrint [08:18:59]line [08:18:59]line [08:18:59]line [08:18:59]line [08:18:59]line [08:18:59]written 0, free lines is 3061 [08:18:59]process_action close_receipt done [08:18:59]requested_data is exist [08:18:59]produce_requested_data [08:18:59]requested_item fm.sn is exist - process it [08:18:59]wFMCommunicate request_size=4 [08:18:59]MH_SAM_APDU [08:18:59]CAPDU: 80 11 00 00 [08:18:59]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [08:18:59]Write i2c OK [08:18:59]MH_I2C_Read... [08:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:59]Read from MH i2c: E2 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 17 00 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 00 [08:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:18:59]wFMCommunicate OK [08:18:59]requested_item fd.num is exist - process it [08:18:59]SAM_PROTO_GetFieldsCounters [08:18:59]wFMCommunicate request_size=4 [08:18:59]MH_SAM_APDU [08:18:59]CAPDU: 80 13 00 00 [08:18:59]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [08:18:59]Write i2c OK [08:18:59]MH_I2C_Read... [08:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:59]Read from MH i2c: E2 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 62 00 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 62 00 2F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 75 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [08:18:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 75 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:59]wFMCommunicate OK [08:18:59]SAM_PROTO_GetFieldsCounters done [08:18:59]requested_item shift.num is exist - process it [08:18:59]requested_item shift.opened is exist - process it [08:18:59]req_shift_opened [08:18:59]FM_GetShiftState [08:18:59]SAM_PROTO_GetShiftState [08:18:59]wFMCommunicate request_size=4 [08:18:59]MH_SAM_APDU [08:18:59]CAPDU: 80 13 01 00 [08:18:59]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [08:18:59]OFD Sender: No OFD packet to send [08:18:59]Write i2c OK [08:18:59]MH_I2C_Read... [08:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:59]Read from MH i2c: E2 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 0E 00 [08:18:59]MH_I2C_Read... [08:18:59]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4A [08:18:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:18:59]wFMCommunicate OK [08:18:59]SAM_PROTO_GetShiftState done [08:18:59]FM_GetShiftState done [08:18:59]req_shift_opened done [08:18:59]requested_item shift.open_date is exist - process it [08:18:59]req_shift_open_date [08:18:59]req_shift_open_date done [08:18:59]produce_requested_data done [08:18:59]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44661,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [08:18:59]process_action_free close_receipt [08:18:59]json_value_free [08:18:59]json_value_free done [08:18:59]process_json_proto returns [08:18:59]Send response to host [08:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44661,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [08:18:59]free response buf [08:18:59]execute_script done [08:18:59]execute_script returns [08:18:59]free content buf [08:18:59]Sock 9.Close socket [08:18:59]Sock 9.Thread stoped [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:36]accept exits with 7 [08:28:36]New connection [08:28:36]New thread 3066989924 created [08:28:36]Thread 3066846564 joined [08:28:36]Waiting for new connection... [08:28:36] Sock 7.Parse request [08:28:36]Sock 7.Check first char [08:28:36]Sock 7.First char is OK [08:28:36]request: POST /json_proto HTTP/1.0 [08:28:36]Method: POST [08:28:36]URL: /json_proto [08:28:36]Method is POST - this is cgi request [08:28:36]url: /json_proto [08:28:36]query_string will be loaded in cgi processing [08:28:36]execute_cgi json_proto POST (null) [08:28:36]execute_cgi path=json_proto method=POST [08:28:36]POST find Content-Length [08:28:36]Host: 172.17.45.196:8080 [08:28:36]Content-Length: 3929 [08:28:36]Content-Type: application/json [08:28:36] [08:28:36]POST finish read [08:28:36]Found Content-Length = 3929 [08:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14554", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077630996", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 2 CRACK \u043A\u0430\u043A\u0430\u043E-\u043E\u0440\u0435\u0445 235\u0433\u0440", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002235078", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46193513", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 Fruit-tella TEMPTIES\u043C\u0430\u043B \u043A\u043B\u0443\u043135\u0433", "price" : 81.00, "quantity" : 2.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066001268", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1146.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]execute_script... [08:28:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14554", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077630996", "name": "\u041A\u0440\u0435\u043A\u0435\u0440 2 CRACK \u043A\u0430\u043A\u0430\u043E-\u043E\u0440\u0435\u0445 235\u0433\u0440", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002235078", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46193513", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 Fruit-tella TEMPTIES\u043C\u0430\u043B \u043A\u043B\u0443\u043135\u0433", "price" : 81.00, "quantity" : 2.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066001268", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1146.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]POST & json_proto [08:28:37]process_json_proto [08:28:37]json parsed OK: [08:28:37]protocol is kg_v1.0 [08:28:37]action value=close_receipt [08:28:37]process_action close_receipt [08:28:37]cmd_close_receipt [08:28:37]MH_GetDate [08:28:37]Write to MH i2c: F0 00 00 31 04 24 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 09 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 09 00 31 04 00 36 01 A6 66 BB 03 A5 66 39 [08:28:37]GetLastDocTimeStamp 1722154737 [08:28:37]current date 1722155318 [08:28:37]FM_GetShiftState [08:28:37]SAM_PROTO_GetShiftState [08:28:37]wFMCommunicate request_size=4 [08:28:37]MH_SAM_APDU [08:28:37]CAPDU: 80 13 01 00 [08:28:37]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:37]Read from MH i2c: E2 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: E2 0E 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4C [08:28:37]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:28:37]wFMCommunicate OK [08:28:37]SAM_PROTO_GetShiftState done [08:28:37]FM_GetShiftState done [08:28:37]opened in 1722126323 [08:28:37]opened+sec_in_day 1722212723 [08:28:37]quantity*price = 6000 [08:28:37]sum+1 = 6001 [08:28:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077630996 Крекер 2 CRACK какао-орех 235гр 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002235078 Шок батончик ALBENI BITES 80гр 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46193513 Мармелад Fruit-tella TEMPTIESмал клуб35г 2.000 * 81.00 = 162.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870066001268 Палочки Алматинский Продукт соленые 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 1.000 * 17.00 = 17.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521247 Напиток MAXI чай 1,2 черн.персик 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46114709 Жев Ментос Тутти Фрутти 8*6*54г банка 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1146.00 НСП 1% : 10.13 НДС 12% : 121.68 Наличными: 1146.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 33 28.07.2024 08:28 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44662 ФПД: 205852213342882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082838&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44662&fm=205852213342882&tin=02508201610067®Number=0000000000092655&sum=114600 0 [08:28:39]StoreToDocumentArchive [08:28:39]shift 430 fd 44662 [08:28:39]save to /storage/0430/doc_00044662 [08:28:39]save last doc name /storage/0430/doc_00044662 to /storage/kkm_last_doc_name [08:28:39]save OK [08:28:39]Clear old archive folders... [08:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=1600 [08:28:39]tlvbuf is 018CBF90 [08:28:39]SAM_PROTO_ClearQueue [08:28:39]wFMCommunicate request_size=4 [08:28:39]MH_SAM_APDU [08:28:39]CAPDU: 80 09 00 00 [08:28:39]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:39]Read from MH i2c: E2 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [08:28:39]RAPDU: 90 00 [08:28:39]wFMCommunicate OK [08:28:39]SAM_PROTO_ClearQueue done [08:28:39]KKMCreateOFDPacket [08:28:39]OFDProtocolAddRootSTLVToBuf [08:28:39]FM_MakeSignedData [08:28:39]FM_MakeSignedData [08:28:39]SAM_PROTO_SignData [08:28:39]wFMCommunicate request_size=4 [08:28:39]MH_SAM_APDU [08:28:39]CAPDU: 80 0D 01 02 [08:28:39]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:39]Read from MH i2c: E2 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [08:28:39]RAPDU: 90 00 [08:28:39]wFMCommunicate OK [08:28:39]wFMCommunicate request_size=255 [08:28:39]MH_SAM_APDU [08:28:39]CAPDU: 80 0D 02 02 FA 03 00 40 06 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 30 39 39 36 06 04 30 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 32 20 43 52 41 43 4B 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BE D1 80 D0 B5 D1 85 20 32 33 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 [08:28:39]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 40 06 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 30 39 39 36 06 04 30 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 32 20 43 52 41 43 4B 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BE D1 80 D0 B5 D1 85 20 32 33 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 00 6D [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:39]Read from MH i2c: E2 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [08:28:39]RAPDU: 90 00 [08:28:39]wFMCommunicate OK [08:28:39]wFMCommunicate request_size=255 [08:28:39]MH_SAM_APDU [08:28:39]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 32 32 33 35 30 37 38 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 31 39 33 35 31 33 06 04 38 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 54 45 4D 50 54 49 45 53 D0 BC D0 B0 D0 BB 20 D0 BA D0 BB D1 83 D0 B1 33 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [08:28:39]Write to MH i2c: E2 02 01 42 04 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 32 32 33 35 30 37 38 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 31 39 33 35 31 33 06 04 38 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 54 45 4D 50 54 49 45 53 D0 BC D0 B0 D0 BB 20 D0 BA D0 BB D1 83 D0 B1 33 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 4D [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:39]Read from MH i2c: E2 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [08:28:39]RAPDU: 90 00 [08:28:39]wFMCommunicate OK [08:28:39]wFMCommunicate request_size=255 [08:28:39]MH_SAM_APDU [08:28:39]CAPDU: 80 0D 02 02 FA 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 [08:28:39]Write to MH i2c: E2 02 01 43 04 80 0D 02 02 FA 00 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 00 00 B3 [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:40]Read from MH i2c: E2 03 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [08:28:40]RAPDU: 90 00 [08:28:40]wFMCommunicate OK [08:28:40]wFMCommunicate request_size=255 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 0D 02 02 FA 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 [08:28:40]Write to MH i2c: E2 02 01 44 04 80 0D 02 02 FA 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 00 00 94 [08:28:40]OFD Sender: No OFD packet to send [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 03 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [08:28:40]RAPDU: 90 00 [08:28:40]wFMCommunicate OK [08:28:40]wFMCommunicate request_size=255 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 [08:28:40]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 00 00 35 [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 03 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [08:28:40]RAPDU: 90 00 [08:28:40]wFMCommunicate OK [08:28:40]wFMCommunicate request_size=255 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 0D 02 02 FA B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 BF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 2F 00 00 00 00 07 04 06 00 A8 BF 01 00 00 [08:28:40]Write to MH i2c: E2 02 01 46 04 80 0D 02 02 FA 00 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 BF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 2F 00 00 00 00 07 04 06 00 A8 BF 01 00 00 00 00 D4 [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 03 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [08:28:41]RAPDU: 90 00 [08:28:41]wFMCommunicate OK [08:28:41]wFMCommunicate request_size=109 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 0D 02 02 68 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 36 01 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 76 AE 00 00 35 04 06 00 BB 38 B4 0D 72 A2 [08:28:41]Write to MH i2c: E2 70 00 47 04 80 0D 02 02 68 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 36 01 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 76 AE 00 00 35 04 06 00 BB 38 B4 0D 72 A2 00 00 C0 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 03 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [08:28:41]RAPDU: 90 00 [08:28:41]wFMCommunicate OK [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 0D 03 02 [08:28:41]Write to MH i2c: E2 08 00 48 04 80 0D 03 02 00 00 00 00 C7 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0B 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0B 00 48 04 00 A7 0C 90 F5 EE 73 2C B8 90 00 45 [08:28:41]RAPDU: A7 0C 90 F5 EE 73 2C B8 90 00 [08:28:41]wFMCommunicate OK [08:28:41]SAM_PROTO_SignData done [08:28:41]FM_MakeSignedData done [08:28:41]CreateOFDProtocolMessage [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 11 00 00 [08:28:41]Write to MH i2c: E2 08 00 49 04 80 11 00 00 00 00 00 00 C7 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 17 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 17 00 49 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1B [08:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:28:41]wFMCommunicate OK [08:28:41]CreateOFDProtocolMessage done [08:28:41]OFDSenderStorePacket 44662 [08:28:41]StoreOFDPacket docnum=44662 [08:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 54 06 00 00 AF 4A 4C 06 48 CB 5A 03 01 00 03 00 40 06 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 30 39 39 36 06 04 30 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 32 20 43 52 41 43 4B 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BE D1 80 D0 B5 D1 85 20 32 33 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 32 32 33 35 30 37 38 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 31 39 33 35 31 33 06 04 38 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 54 45 4D 50 54 49 45 53 D0 BC D0 B0 D0 BB 20 D0 BA D0 BB D1 83 D0 B1 33 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 BF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 2F 00 00 00 00 07 04 06 00 A8 BF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 36 01 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 76 AE 00 00 35 04 06 00 BB 38 B4 0D 72 A2 A7 0C 90 F5 EE 73 2C B8 [08:28:41]CheckFolder [08:28:41]dirname=/storage/ofd_packets [08:28:41]CheckFolder done [08:28:41]ProducePacketName [08:28:41]name=ofd_packets/00044662 [08:28:41]NVStorageSaveData ofd_packets/00044662 [08:28:41]File name is /storage/ofd_packets/00044662 [08:28:41]Write 1650 bytes [08:28:41]NVStorageSaveData done [08:28:41]OFDSenderStorePacket done [08:28:41]KKMCreateOFDPacket done [08:28:41]NVStorageSaveData kkm_last_timestamp [08:28:41]File name is /storage/kkm_last_timestamp [08:28:41]Write 4 bytes [08:28:41]NVStorageSaveData done [08:28:41]ExternCall_PrintAddStr [08:28:41]wPrintStart [08:28:41]Write to MH i2c: 01 00 00 4A 04 4E [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: 01 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: 01 07 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 FF 0F 63 [08:28:41]RasterBufferAndPrint [08:28:41]line Счет N : (3)14554 [08:28:41]line ИНН: 02508201610067 [08:28:41]line Контрольно-Кассовый Чек [08:28:41]line ПРОДАЖА [08:28:41]line Товар: 4700000160792 [08:28:41]line Снек Курут классический (круглый) [08:28:41]line 1.000 * 60.00 [08:28:41]line = 60.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4823077630996 [08:28:41]line Крекер 2 CRACK какао-орех 235гр [08:28:41]line 1.000 * 200.00 [08:28:41]line = 200.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4870002235078 [08:28:41]line Шок батончик ALBENI BITES 80гр [08:28:41]line 1.000 * 75.00 [08:28:41]line = 75.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 46193513 [08:28:41]line Мармелад Fruit-tella TEMPTIESмал клуб35г [08:28:41]line 2.000 * 81.00 [08:28:41]line = 162.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4870066001268 [08:28:41]line Палочки Алматинский Продукт соленые 50г [08:28:41]line 1.000 * 27.00 [08:28:41]line = 27.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4620017451303 [08:28:41]line Кар.с жев.конф.Страйк 11.3г/50 [08:28:41]line 1.000 * 17.00 [08:28:41]line = 17.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4870202521247 [08:28:41]line Напиток MAXI чай 1,2 черн.персик [08:28:41]line 1.000 * 125.00 [08:28:41]line = 125.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 90162602 [08:28:41]line Энерг напиток Red bull 0,25л [08:28:41]line 1.000 * 157.00 [08:28:41]line = 157.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4700000310043 [08:28:41]line Вода Жалалабат 27 1л [08:28:41]line 1.000 * 60.00 [08:28:41]line = 60.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 4700000160358 [08:28:41]line Вода Легенда 1л [08:28:41]line 1.000 * 50.00 [08:28:41]line = 50.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 46114709 [08:28:41]line Жев Ментос Тутти Фрутти 8*6*54г банка [08:28:41]line 1.000 * 205.00 [08:28:41]line = 205.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line Товар: 2000031750019 [08:28:41]line Пакет Партнер Нефть [08:28:41]line 2.000 * 4.00 [08:28:41]line = 8.00 [08:28:41]line НДС 12% НСП 1% [08:28:41]line > о реализуемом товаре [08:28:41]line ИТОГО: 1146.00 [08:28:41]line НСП 1% : 10.13 [08:28:41]line НДС 12% : 121.68 [08:28:41]line Наличными: 1146.00 [08:28:41]line Безнал.: 0.00 [08:28:41]line Место: АЗС № 128 "Партнер Нефть" [08:28:41]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [08:28:41]line СНО: Общий режим [08:28:41]line Чек 33 28.07.2024 08:28 [08:28:41]line Смена: 430 ФФД: 1.0 [08:28:41]line ЗНМ: 0300000045 [08:28:41]line РНМ: 0000000000092655 [08:28:41]line Версия ККМ: 001 [08:28:41]line ФМ: 0000000000874941 [08:28:41]line ФД: 44662 [08:28:41]line ФПД: 205852213342882 [08:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T082838&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44662&fm=205852213342882&tin=02508201610067®Number=0000000000092655&sum=114600 [08:28:42]line 0 [08:28:42]OFD Sender: Processing packet 44662 [packets to send 7, broken 6] [08:28:42]ProducePacketName [08:28:42]name=ofd_packets/00044662 [08:28:42]OFD Sender: To server: pG, [08:28:42]CommunicateWithHost lk.salyk.kg:30040 [08:28:42]ConnectInit lk.salyk.kg [08:28:42]written 0, free lines is 4095 [08:28:42]Connected sock=10 [08:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 54 06 00 00 AF 4A 4C 06 48 CB 5A 03 01 00 03 00 40 06 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 30 39 39 36 06 04 30 00 D0 9A D1 80 D0 B5 D0 BA D0 B5 D1 80 20 32 20 43 52 41 43 4B 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BE D1 80 D0 B5 D1 85 20 32 33 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 32 32 33 35 30 37 38 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 31 39 33 35 31 33 06 04 38 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 54 45 4D 50 54 49 45 53 D0 BC D0 B0 D0 BB 20 D0 BA D0 BB D1 83 D0 B1 33 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 BF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 2F 00 00 00 00 07 04 06 00 A8 BF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 36 01 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 76 AE 00 00 35 04 06 00 BB 38 B4 0D 72 A2 A7 0C 90 F5 EE 73 2C B8 [08:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 23 82 47 00 54 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 76 AE 00 00 F4 03 04 00 4C AD A5 66 B6 04 01 00 00 B7 F4 E2 3F 66 0A 71 47 [08:28:42]CommunicateWithHost err = 0 [08:28:42]CheckOFDResponse [08:28:42]1017 (14) - 77093643461234 [08:28:42]1041 (16) - 0000000000874941 [08:28:42]1040 (4) - 44662 [08:28:42]1012 (4) - 28.07.2024 02:30 [08:28:42]1206 (1) - 0 [08:28:42]OFD Sender: Remove packet 44662 [08:28:42]ProducePacketName [08:28:42]name=ofd_packets/00044662 [08:28:42]NVStorageDeleteData [08:28:43]Write to MH i2c: 01 00 00 BC 04 C0 [08:28:43]Write i2c OK [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: 01 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: 01 07 00 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 85 08 54 [08:28:43]RasterBufferAndPrint [08:28:43]line [08:28:43]line [08:28:43]line [08:28:43]line [08:28:43]line [08:28:43]written 0, free lines is 2196 [08:28:43]process_action close_receipt done [08:28:43]requested_data is exist [08:28:43]produce_requested_data [08:28:43]requested_item fm.sn is exist - process it [08:28:43]wFMCommunicate request_size=4 [08:28:43]MH_SAM_APDU [08:28:43]CAPDU: 80 11 00 00 [08:28:43]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [08:28:43]Write i2c OK [08:28:43]MH_I2C_Read... [08:28:43]OFD Sender: No OFD packet to send [08:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:43]Read from MH i2c: E2 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 17 00 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 95 [08:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:28:43]wFMCommunicate OK [08:28:43]requested_item fd.num is exist - process it [08:28:43]SAM_PROTO_GetFieldsCounters [08:28:43]wFMCommunicate request_size=4 [08:28:43]MH_SAM_APDU [08:28:43]CAPDU: 80 13 00 00 [08:28:43]Write to MH i2c: E2 08 00 C4 04 80 13 00 00 00 00 00 00 44 [08:28:43]Write i2c OK [08:28:43]MH_I2C_Read... [08:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:43]Read from MH i2c: E2 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 62 00 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 62 00 C4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 76 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [08:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 76 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:43]wFMCommunicate OK [08:28:43]SAM_PROTO_GetFieldsCounters done [08:28:43]requested_item shift.num is exist - process it [08:28:43]requested_item shift.opened is exist - process it [08:28:43]req_shift_opened [08:28:43]FM_GetShiftState [08:28:43]SAM_PROTO_GetShiftState [08:28:43]wFMCommunicate request_size=4 [08:28:43]MH_SAM_APDU [08:28:43]CAPDU: 80 13 01 00 [08:28:43]Write to MH i2c: E2 08 00 C5 04 80 13 01 00 00 00 00 00 46 [08:28:43]Write i2c OK [08:28:43]MH_I2C_Read... [08:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:43]Read from MH i2c: E2 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 0E 00 [08:28:43]MH_I2C_Read... [08:28:43]Read from MH i2c: E2 0E 00 C5 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 DF [08:28:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:28:43]wFMCommunicate OK [08:28:43]SAM_PROTO_GetShiftState done [08:28:43]FM_GetShiftState done [08:28:43]req_shift_opened done [08:28:43]requested_item shift.open_date is exist - process it [08:28:43]req_shift_open_date [08:28:43]req_shift_open_date done [08:28:43]produce_requested_data done [08:28:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44662,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [08:28:43]process_action_free close_receipt [08:28:43]json_value_free [08:28:43]json_value_free done [08:28:43]process_json_proto returns [08:28:43]Send response to host [08:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44662,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [08:28:43]free response buf [08:28:43]execute_script done [08:28:43]execute_script returns [08:28:43]free content buf [08:28:43]Sock 7.Close socket [08:28:43]Sock 7.Thread stoped [08:28:46]int [08:28:46]Write to MH i2c: 01 00 00 C6 04 CA [08:28:46]*** FLAG_PRN_KEY set [08:28:46]Write i2c OK [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 C6 04 00 08 00 00 00 FF 0F E7 [08:28:46]state=0 [08:28:46]Key pressed [08:28:46]Feed [08:28:46]Write to MH i2c: D8 00 00 C7 04 A2 [08:28:46]Write i2c OK [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: D8 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: D8 01 00 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: D8 01 00 C7 04 00 A3 [08:28:46]int [08:28:46]Write to MH i2c: 01 00 00 C8 04 CC [08:28:46]Write i2c OK [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 C8 04 00 48 00 00 00 3C 00 57 [08:28:46]state=2 [08:28:46]Key pressed [08:28:46]int [08:28:46]Write to MH i2c: 01 00 00 C9 04 CD [08:28:46]*** FLAG_PRN_KEY reset [08:28:46]Write i2c OK [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 [08:28:46]MH_I2C_Read... [08:28:46]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [08:28:46]state=2 [08:28:46]Stop feed [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 66008+1722090427=1722156435 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 94 05 A6 66 BB 03 A5 66 6D [08:47:16]Current date/time: 28.07.2024 08:47 [08:47:16]FM_Init [08:47:16]wFMConnect [08:47:16]MH_SAM_On [08:47:16]Write to MH i2c: E0 00 00 08 00 E7 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_init finished! [08:47:16]*** atr: [08:47:16]*** 0F 3B D5 18 FF 81 91 FE [08:47:16]*** 1F C3 80 73 C8 21 10 0A [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]*** 00 00 00 00 00 00 00 00 [08:47:16]Read from MH i2c: E0 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E0 10 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:47:16]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:47:16]wFMCommunicate request_size=10 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:47:16]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:47:16]RAPDU: 90 00 [08:47:16]wFMCommunicate OK [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 11 00 00 [08:47:16]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [08:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:47:16]wFMCommunicate OK [08:47:16]Detected FM SN is 0000000000874941 [08:47:16]Stored FM SN is 0000000000874941 [08:47:16]wFMCommunicate request_size=9 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 16 00 00 04 FA 44 01 00 [08:47:16]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:47:16]RAPDU: 90 00 [08:47:16]wFMCommunicate OK [08:47:16]FM PIN OK [08:47:16]wFMCommunicate request_size=8 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 14 04 00 03 02 00 01 [08:47:16]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:47:16]RAPDU: 90 00 [08:47:16]wFMCommunicate OK [08:47:16]wFMCommunicate request_size=13 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:47:16]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:47:16]RAPDU: 90 00 [08:47:16]wFMCommunicate OK [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 11 00 00 [08:47:16]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [08:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:47:16]wFMCommunicate OK [08:47:16]DocumentArchiveInit [08:47:16]Start Httpd... [08:47:16]Httpd thread 3067530596 created [08:47:16]Write to MH i2c: 01 00 00 0F 00 0F [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 07 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:47:16]MH Int Process started [08:47:16]Allocated Socket 8 [08:47:16]Bind OK [08:47:16]Listen OK [08:47:16]httpd running on port 8080 [08:47:16]Waiting for new connection... [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:38]accept exits with 9 [08:47:38]New connection [08:47:38]New thread 3067243876 created [08:47:38]Waiting for new connection... [08:47:38] Sock 9.Parse request [08:47:38]Sock 9.Check first char [08:47:38]Sock 9.First char is OK [08:47:38]request: POST /json_proto HTTP/1.0 [08:47:38]Method: POST [08:47:38]URL: /json_proto [08:47:38]Method is POST - this is cgi request [08:47:38]url: /json_proto [08:47:38]query_string will be loaded in cgi processing [08:47:38]execute_cgi json_proto POST (null) [08:47:38]execute_cgi path=json_proto method=POST [08:47:38]POST find Content-Length [08:47:38]Host: 172.17.45.196:8080 [08:47:38]Content-Length: 215 [08:47:38]Content-Type: application/json [08:47:38] [08:47:38]POST finish read [08:47:38]Found Content-Length = 215 [08:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:38]execute_script... [08:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:38]POST & json_proto [08:47:38]process_json_proto [08:47:38]json parsed OK: [08:47:38]protocol is kg_v1.0 [08:47:38]action value=get_value [08:47:38]process_action get_value [08:47:38]cmd_get_value [08:47:38]process_action get_value done [08:47:38]requested_data is exist [08:47:38]produce_requested_data [08:47:38]requested_item kkm.sn is exist - process it [08:47:38]requested_item kkm.ver is exist - process it [08:47:38]requested_item fm.sn is exist - process it [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 11 00 00 [08:47:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 17 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [08:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:47:38]wFMCommunicate OK [08:47:38]requested_item fd.num is exist - process it [08:47:38]SAM_PROTO_GetFieldsCounters [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 13 00 00 [08:47:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 62 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 76 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [08:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 76 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:38]wFMCommunicate OK [08:47:38]SAM_PROTO_GetFieldsCounters done [08:47:38]requested_item shift.num is exist - process it [08:47:38]requested_item shift.opened is exist - process it [08:47:38]req_shift_opened [08:47:38]FM_GetShiftState [08:47:38]SAM_PROTO_GetShiftState [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 13 01 00 [08:47:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 0E 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [08:47:38]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:47:38]wFMCommunicate OK [08:47:38]SAM_PROTO_GetShiftState done [08:47:38]FM_GetShiftState done [08:47:38]req_shift_opened done [08:47:38]requested_item shift.open_date is exist - process it [08:47:38]req_shift_open_date [08:47:38]req_shift_open_date done [08:47:38]produce_requested_data done [08:47:38]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44662,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [08:47:38]process_action_free get_value [08:47:38]json_value_free [08:47:38]json_value_free done [08:47:38]process_json_proto returns [08:47:38]Send response to host [08:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44662,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [08:47:38]free response buf [08:47:38]execute_script done [08:47:38]execute_script returns [08:47:38]free content buf [08:47:38]Sock 9.Close socket [08:47:38]Sock 9.Thread stoped [08:47:38]accept exits with 7 [08:47:38]New connection [08:47:38]New thread 3067100516 created [08:47:38]Thread 3067243876 joined [08:47:38]Waiting for new connection... [08:47:38] Sock 7.Parse request [08:47:38]Sock 7.Check first char [08:47:38]Sock 7.First char is OK [08:47:38]request: POST /json_proto HTTP/1.0 [08:47:38]Method: POST [08:47:38]URL: /json_proto [08:47:38]Method is POST - this is cgi request [08:47:38]url: /json_proto [08:47:38]query_string will be loaded in cgi processing [08:47:38]execute_cgi json_proto POST (null) [08:47:38]execute_cgi path=json_proto method=POST [08:47:38]POST find Content-Length [08:47:38]Host: 172.17.45.196:8080 [08:47:38]Content-Length: 331 [08:47:38]Content-Type: application/json [08:47:38] [08:47:38]POST finish read [08:47:38]Found Content-Length = 331 [08:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:47:38]execute_script... [08:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:47:39]POST & json_proto [08:47:39]process_json_proto [08:47:39]json parsed OK: [08:47:39]protocol is kg_v1.0 [08:47:39]action value=get_value [08:47:39]process_action get_value [08:47:39]cmd_get_value [08:47:39]process_action get_value done [08:47:39]requested_data is exist [08:47:39]produce_requested_data [08:47:39]requested_item fm.sale.total is exist - process it [08:47:39]SAM_PROTO_GetFMData [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 13 03 00 [08:47:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 1A AB 00 00 69 04 A0 00 6F 04 04 00 8B AA 00 00 B1 04 04 00 55 BB 16 40 70 04 04 00 14 FF AB 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4C 56 CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E4 1D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 F2 [08:47:39]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1A AB 00 00 69 04 A0 00 6F 04 04 00 8B AA 00 00 B1 04 04 00 55 BB 16 40 70 04 04 00 14 FF AB 3B 72 04 04 00 41 BC 6A 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4C 56 CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E4 1D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 17 00 00 [08:47:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [08:47:39]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 17 00 00 [08:47:39]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [08:47:39]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 17 00 00 [08:47:39]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 FD 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [08:47:40]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [08:47:40]wFMCommunicate OK [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 17 00 00 [08:47:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 DF 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [08:47:40]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:40]wFMCommunicate OK [08:47:40]SAM_PROTO_GetFMData done [08:47:40]requested_item fm.sale_refund.total is exist - process it [08:47:40]requested_item fm.buy.total is exist - process it [08:47:40]requested_item shift.sale.total is exist - process it [08:47:40]SAM_PROTO_GetShiftData [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 13 02 00 [08:47:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:47:40]Read from MH i2c: E2 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 FD 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 21 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 10 F9 0F 70 04 03 00 CC CF 0E 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 32 B2 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F7 [08:47:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 21 00 00 00 69 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 10 F9 0F 70 04 03 00 CC CF 0E 72 04 03 00 44 29 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 32 B2 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 26 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:47:40]wFMCommunicate OK [08:47:40]wFMCommunicate request_size=4 [08:47:40]MH_SAM_APDU [08:47:40]CAPDU: 80 17 00 00 [08:47:40]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [08:47:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:47:41]wFMCommunicate OK [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 17 00 00 [08:47:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]OFD Sender: No OFD packet to send [08:47:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [08:47:41]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:47:41]wFMCommunicate OK [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 17 00 00 [08:47:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [08:47:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:47:41]wFMCommunicate OK [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 17 00 00 [08:47:41]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:47:42]Read from MH i2c: E2 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 CB 00 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [08:47:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:42]wFMCommunicate OK [08:47:42]SAM_PROTO_GetShiftData done [08:47:42]requested_item shift.sale.total_cash is exist - process it [08:47:42]requested_item shift.sale_refund.total is exist - process it [08:47:42]requested_item shift.sale_refund.total_cash is exist - process it [08:47:42]requested_item shift.buy.total is exist - process it [08:47:42]requested_item shift.buy.total_cash is exist - process it [08:47:42]produce_requested_data done [08:47:42]produce_requested_data return {"fm.sale.total":10752315.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":10468.00,"shift.sale.total_cash":9707.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:47:42]process_action_free get_value [08:47:42]json_value_free [08:47:42]json_value_free done [08:47:42]process_json_proto returns [08:47:42]Send response to host [08:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10752315.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":10468.00,"shift.sale.total_cash":9707.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:47:42]free response buf [08:47:42]execute_script done [08:47:42]execute_script returns [08:47:42]free content buf [08:47:42]Sock 7.Close socket [08:47:42]Sock 7.Thread stoped [08:47:43]accept exits with 9 [08:47:43]New connection [08:47:43]New thread 3067243876 created [08:47:43]Thread 3067100516 joined [08:47:43]Waiting for new connection... [08:47:43] Sock 9.Parse request [08:47:43]Sock 9.Check first char [08:47:43]Sock 9.First char is OK [08:47:43]request: POST /json_proto HTTP/1.0 [08:47:43]Method: POST [08:47:43]URL: /json_proto [08:47:43]Method is POST - this is cgi request [08:47:43]url: /json_proto [08:47:43]query_string will be loaded in cgi processing [08:47:43]execute_cgi json_proto POST (null) [08:47:43]execute_cgi path=json_proto method=POST [08:47:43]POST find Content-Length [08:47:43]Host: 172.17.45.196:8080 [08:47:43]Content-Length: 855 [08:47:43]Content-Type: application/json [08:47:43] [08:47:43]POST finish read [08:47:43]Found Content-Length = 855 [08:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14555", "tax_sys" : 0, "items" : [ { "code": "4606532003630", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 FELIX CARBOX-40 \u043A\u0440\u0430\u0441\u043D\u044B\u0439 1\u043A\u0433", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:43]execute_script... [08:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14555", "tax_sys" : 0, "items" : [ { "code": "4606532003630", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 FELIX CARBOX-40 \u043A\u0440\u0430\u0441\u043D\u044B\u0439 1\u043A\u0433", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:43]POST & json_proto [08:47:43]process_json_proto [08:47:43]json parsed OK: [08:47:43]protocol is kg_v1.0 [08:47:43]action value=close_receipt [08:47:43]process_action close_receipt [08:47:43]cmd_close_receipt [08:47:43]MH_GetDate [08:47:43]Write to MH i2c: F0 00 00 1D 00 0C [08:47:43]Write i2c OK [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: F0 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: F0 09 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: F0 09 00 1D 00 00 AF 05 A6 66 BB 03 A5 66 9E [08:47:43]GetLastDocTimeStamp 1722155318 [08:47:43]current date 1722156463 [08:47:43]FM_GetShiftState [08:47:43]SAM_PROTO_GetShiftState [08:47:43]wFMCommunicate request_size=4 [08:47:43]MH_SAM_APDU [08:47:43]CAPDU: 80 13 01 00 [08:47:43]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:47:43]Write i2c OK [08:47:43]MH_I2C_Read... [08:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:43]Read from MH i2c: E2 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 0E 00 [08:47:43]MH_I2C_Read... [08:47:43]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [08:47:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:47:43]wFMCommunicate OK [08:47:43]SAM_PROTO_GetShiftState done [08:47:43]FM_GetShiftState done [08:47:43]opened in 1722126323 [08:47:43]opened+sec_in_day 1722212723 [08:47:43]quantity*price = 27000 [08:47:43]sum+1 = 27001 [08:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 0.00 Безнал.: 270.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 34 28.07.2024 08:47 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44663 ФПД: 156097133991577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084743&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44663&fm=156097133991577&tin=02508201610067®Number=0000000000092655&sum=27000 0 [08:47:44]StoreToDocumentArchive [08:47:44]shift 430 fd 44663 [08:47:44]save to /storage/0430/doc_00044663 [08:47:44]save last doc name /storage/0430/doc_00044663 to /storage/kkm_last_doc_name [08:47:44]save OK [08:47:44]Clear old archive folders... [08:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=295 [08:47:44]tlvbuf is 0116BED0 [08:47:44]SAM_PROTO_ClearQueue [08:47:44]wFMCommunicate request_size=4 [08:47:44]MH_SAM_APDU [08:47:44]CAPDU: 80 09 00 00 [08:47:44]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:47:44]Write i2c OK [08:47:44]MH_I2C_Read... [08:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:44]Read from MH i2c: E2 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:47:44]RAPDU: 90 00 [08:47:44]wFMCommunicate OK [08:47:44]SAM_PROTO_ClearQueue done [08:47:44]KKMCreateOFDPacket [08:47:44]OFDProtocolAddRootSTLVToBuf [08:47:44]FM_MakeSignedData [08:47:44]FM_MakeSignedData [08:47:44]SAM_PROTO_SignData [08:47:44]wFMCommunicate request_size=4 [08:47:44]MH_SAM_APDU [08:47:44]CAPDU: 80 0D 01 02 [08:47:44]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:47:44]Write i2c OK [08:47:44]MH_I2C_Read... [08:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:44]Read from MH i2c: E2 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:47:44]RAPDU: 90 00 [08:47:44]wFMCommunicate OK [08:47:44]wFMCommunicate request_size=255 [08:47:44]MH_SAM_APDU [08:47:44]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 33 36 33 30 06 04 35 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 46 45 4C 49 58 20 43 41 52 42 4F 58 2D 34 30 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 AF 05 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [08:47:44]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 33 36 33 30 06 04 35 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 46 45 4C 49 58 20 43 41 52 42 4F 58 2D 34 30 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 AF 05 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 E6 [08:47:44]Write i2c OK [08:47:44]MH_I2C_Read... [08:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:44]Read from MH i2c: E2 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 [08:47:44]MH_I2C_Read... [08:47:44]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:47:44]RAPDU: 90 00 [08:47:44]wFMCommunicate OK [08:47:44]wFMCommunicate request_size=54 [08:47:44]MH_SAM_APDU [08:47:44]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 77 AE 00 00 35 04 06 00 8D F8 32 38 D6 99 [08:47:44]Write to MH i2c: E2 39 00 2E 00 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 77 AE 00 00 35 04 06 00 8D F8 32 38 D6 99 00 00 55 [08:47:44]Write i2c OK [08:47:44]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 03 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:47:45]RAPDU: 90 00 [08:47:45]wFMCommunicate OK [08:47:45]wFMCommunicate request_size=4 [08:47:45]MH_SAM_APDU [08:47:45]CAPDU: 80 0D 03 02 [08:47:45]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 0B 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 0B 00 2F 00 00 4F B4 95 E1 32 25 FE 41 90 00 BA [08:47:45]RAPDU: 4F B4 95 E1 32 25 FE 41 90 00 [08:47:45]wFMCommunicate OK [08:47:45]SAM_PROTO_SignData done [08:47:45]FM_MakeSignedData done [08:47:45]CreateOFDProtocolMessage [08:47:45]wFMCommunicate request_size=4 [08:47:45]MH_SAM_APDU [08:47:45]CAPDU: 80 11 00 00 [08:47:45]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 17 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [08:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:47:45]wFMCommunicate OK [08:47:45]CreateOFDProtocolMessage done [08:47:45]OFDSenderStorePacket 44663 [08:47:45]StoreOFDPacket docnum=44663 [08:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3B 01 00 00 AC 8D 33 01 70 2F 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 33 36 33 30 06 04 35 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 46 45 4C 49 58 20 43 41 52 42 4F 58 2D 34 30 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 AF 05 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 77 AE 00 00 35 04 06 00 8D F8 32 38 D6 99 4F B4 95 E1 32 25 FE 41 [08:47:45]CheckFolder [08:47:45]dirname=/storage/ofd_packets [08:47:45]CheckFolder done [08:47:45]ProducePacketName [08:47:45]name=ofd_packets/00044663 [08:47:45]NVStorageSaveData ofd_packets/00044663 [08:47:45]File name is /storage/ofd_packets/00044663 [08:47:45]Write 345 bytes [08:47:45]NVStorageSaveData done [08:47:45]OFDSenderStorePacket done [08:47:45]KKMCreateOFDPacket done [08:47:45]NVStorageSaveData kkm_last_timestamp [08:47:45]File name is /storage/kkm_last_timestamp [08:47:45]Write 4 bytes [08:47:45]NVStorageSaveData done [08:47:45]ExternCall_PrintAddStr [08:47:45]wPrintStart [08:47:45]Write to MH i2c: 01 00 00 31 00 31 [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 [08:47:45]MH_I2C_Read... [08:47:45]OFD Sender: Processing packet 44663 [packets to send 7, broken 6] [08:47:45]ProducePacketName [08:47:45]name=ofd_packets/00044663 [08:47:45]OFD Sender: To server: pG, [08:47:45]CommunicateWithHost lk.salyk.kg:30040 [08:47:45]ConnectInit lk.salyk.kg [08:47:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:47:45]RasterBufferAndPrint [08:47:45]line Счет N : (3)14555 [08:47:45]line ИНН: 02508201610067 [08:47:45]line Контрольно-Кассовый Чек [08:47:45]line ПРОДАЖА [08:47:45]line Товар: 4606532003630 [08:47:45]line Антифриз FELIX CARBOX-40 красный 1кг [08:47:45]line 1.000 * 270.00 [08:47:45]line = 270.00 [08:47:45]line НДС 12% НСП 1% [08:47:45]line > о реализуемом товаре [08:47:45]line ИТОГО: 270.00 [08:47:45]line НСП 1% : 2.39 [08:47:45]line НДС 12% : 28.67 [08:47:45]line Наличными: 0.00 [08:47:45]line Безнал.: 270.00 [08:47:45]line Место: АЗС № 128 "Партнер Нефть" [08:47:45]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [08:47:45]line СНО: Общий режим [08:47:45]line Чек 34 28.07.2024 08:47 [08:47:45]line Смена: 430 ФФД: 1.0 [08:47:45]line ЗНМ: 0300000045 [08:47:45]line РНМ: 0000000000092655 [08:47:45]line Версия ККМ: 001 [08:47:45]line Платежная система: Бакай Банк [08:47:45]line ФМ: 0000000000874941 [08:47:45]line ФД: 44663 [08:47:45]line ФПД: 156097133991577 [08:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T084743&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44663&fm=156097133991577&tin=02508201610067®Number=0000000000092655&sum=27000 [08:47:45]line 0 [08:47:45]written 0, free lines is 4095 [08:47:45]Connected sock=10 [08:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3B 01 00 00 AC 8D 33 01 70 2F 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 33 36 33 30 06 04 35 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 46 45 4C 49 58 20 43 41 52 42 4F 58 2D 34 30 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 AF 05 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 77 AE 00 00 35 04 06 00 8D F8 32 38 D6 99 4F B4 95 E1 32 25 FE 41 [08:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 30 6D 47 00 33 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 77 AE 00 00 F4 03 04 00 C2 B1 A5 66 B6 04 01 00 00 73 A8 F0 2A 52 47 30 C5 [08:47:45]CommunicateWithHost err = 0 [08:47:45]CheckOFDResponse [08:47:45]1017 (14) - 77093643461234 [08:47:45]1041 (16) - 0000000000874941 [08:47:45]1040 (4) - 44663 [08:47:45]1012 (4) - 28.07.2024 02:49 [08:47:45]1206 (1) - 0 [08:47:45]OFD Sender: Remove packet 44663 [08:47:45]ProducePacketName [08:47:45]name=ofd_packets/00044663 [08:47:45]NVStorageDeleteData [08:47:45]Write to MH i2c: 01 00 00 5C 00 5C [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DE 0C 4D [08:47:45]RasterBufferAndPrint [08:47:45]line [08:47:45]line [08:47:45]line [08:47:45]line [08:47:45]line [08:47:45]written 0, free lines is 3312 [08:47:45]process_action close_receipt done [08:47:45]requested_data is exist [08:47:45]produce_requested_data [08:47:45]requested_item fm.sn is exist - process it [08:47:45]wFMCommunicate request_size=4 [08:47:45]MH_SAM_APDU [08:47:45]CAPDU: 80 11 00 00 [08:47:45]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 17 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 31 [08:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [08:47:45]wFMCommunicate OK [08:47:45]requested_item fd.num is exist - process it [08:47:45]SAM_PROTO_GetFieldsCounters [08:47:45]wFMCommunicate request_size=4 [08:47:45]MH_SAM_APDU [08:47:45]CAPDU: 80 13 00 00 [08:47:45]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 62 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 77 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [08:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 77 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:46]wFMCommunicate OK [08:47:46]SAM_PROTO_GetFieldsCounters done [08:47:46]requested_item shift.num is exist - process it [08:47:46]requested_item shift.opened is exist - process it [08:47:46]req_shift_opened [08:47:46]FM_GetShiftState [08:47:46]SAM_PROTO_GetShiftState [08:47:46]wFMCommunicate request_size=4 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 13 01 00 [08:47:46]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 0E 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7B [08:47:46]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [08:47:46]wFMCommunicate OK [08:47:46]SAM_PROTO_GetShiftState done [08:47:46]FM_GetShiftState done [08:47:46]req_shift_opened done [08:47:46]requested_item shift.open_date is exist - process it [08:47:46]req_shift_open_date [08:47:46]req_shift_open_date done [08:47:46]produce_requested_data done [08:47:46]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44663,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [08:47:46]process_action_free close_receipt [08:47:46]json_value_free [08:47:46]json_value_free done [08:47:46]process_json_proto returns [08:47:46]Send response to host [08:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44663,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [08:47:46]free response buf [08:47:46]execute_script done [08:47:46]execute_script returns [08:47:46]free content buf [08:47:46]Sock 9.Close socket [08:47:46]Sock 9.Thread stoped [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:48:58]int [08:48:58]Write to MH i2c: 01 00 00 66 00 66 [08:48:58]*** FLAG_PRN_KEY set [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 66 00 00 08 00 00 00 FF 0F 83 [08:48:58]state=0 [08:48:58]Key pressed [08:48:58]Feed [08:48:58]Write to MH i2c: D8 00 00 67 00 3E [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: D8 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: D8 01 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: D8 01 00 67 00 00 3F [08:48:58]int [08:48:58]Write to MH i2c: 01 00 00 68 00 68 [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 68 00 00 48 00 00 00 3D 00 F4 [08:48:58]state=2 [08:48:58]Key pressed [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 69 00 69 [08:48:59]*** FLAG_PRN_KEY reset [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 F6 0F 75 [08:48:59]state=2 [08:48:59]Stop feed [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 6A 00 6A [08:48:59]*** FLAG_PRN_KEY set [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 6A 00 00 08 00 00 00 FF 0F 87 [08:48:59]state=0 [08:48:59]Key pressed [08:48:59]Feed [08:48:59]Write to MH i2c: D8 00 00 6B 00 42 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 01 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 01 00 6B 00 00 43 [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 6C 00 6C [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 6C 00 00 48 00 00 00 3C 00 F7 [08:48:59]state=2 [08:48:59]Key pressed [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 6D 00 6D [08:48:59]*** FLAG_PRN_KEY reset [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 F6 0F 79 [08:48:59]state=2 [08:48:59]Stop feed [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 6E 00 6E [08:48:59]*** FLAG_PRN_KEY set [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 6E 00 00 08 00 00 00 FF 0F 8B [08:48:59]state=0 [08:48:59]Key pressed [08:48:59]Feed [08:48:59]Write to MH i2c: D8 00 00 6F 00 46 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 01 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D8 01 00 6F 00 00 47 [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 70 00 70 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 70 00 00 48 00 00 00 3C 00 FB [08:48:59]state=2 [08:48:59]Key pressed [08:48:59]int [08:48:59]Write to MH i2c: 01 00 00 71 00 71 [08:48:59]*** FLAG_PRN_KEY reset [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 F6 0F 7D [08:48:59]state=2 [08:48:59]Stop feed [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]accept exits with 7 [09:20:37]New connection [09:20:37]New thread 3067100516 created [09:20:37]Thread 3067243876 joined [09:20:37]Waiting for new connection... [09:20:37] Sock 7.Parse request [09:20:37]Sock 7.Check first char [09:20:37]Sock 7.First char is OK [09:20:37]request: POST /json_proto HTTP/1.0 [09:20:37]Method: POST [09:20:37]URL: /json_proto [09:20:37]Method is POST - this is cgi request [09:20:37]url: /json_proto [09:20:37]query_string will be loaded in cgi processing [09:20:37]execute_cgi json_proto POST (null) [09:20:37]execute_cgi path=json_proto method=POST [09:20:37]POST find Content-Length [09:20:37]Host: 172.17.45.196:8080 [09:20:37]Content-Length: 654 [09:20:37]Content-Type: application/json [09:20:37] [09:20:37]POST finish read [09:20:37]Found Content-Length = 654 [09:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14556", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:37]execute_script... [09:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14556", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:37]POST & json_proto [09:20:37]process_json_proto [09:20:37]json parsed OK: [09:20:37]protocol is kg_v1.0 [09:20:37]action value=close_receipt [09:20:37]process_action close_receipt [09:20:37]cmd_close_receipt [09:20:37]MH_GetDate [09:20:37]Write to MH i2c: F0 00 00 72 00 61 [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: F0 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: F0 09 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: F0 09 00 72 00 00 65 0D A6 66 BB 03 A5 66 B1 [09:20:37]GetLastDocTimeStamp 1722156463 [09:20:37]current date 1722158437 [09:20:37]FM_GetShiftState [09:20:37]SAM_PROTO_GetShiftState [09:20:37]wFMCommunicate request_size=4 [09:20:37]MH_SAM_APDU [09:20:37]CAPDU: 80 13 01 00 [09:20:37]Write to MH i2c: E2 08 00 73 00 80 13 01 00 00 00 00 00 F0 [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:37]Read from MH i2c: E2 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: E2 0E 00 73 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 89 [09:20:37]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:20:37]wFMCommunicate OK [09:20:37]SAM_PROTO_GetShiftState done [09:20:37]FM_GetShiftState done [09:20:37]opened in 1722126323 [09:20:37]opened+sec_in_day 1722212723 [09:20:37]quantity*price = 8500 [09:20:37]sum+1 = 8501 [09:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 35 28.07.2024 09:20 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44664 ФПД: 214628521675055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092037&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44664&fm=214628521675055&tin=02508201610067®Number=0000000000092655&sum=8500 0 [09:20:38]StoreToDocumentArchive [09:20:38]shift 430 fd 44664 [09:20:38]save to /storage/0430/doc_00044664 [09:20:38]save last doc name /storage/0430/doc_00044664 to /storage/kkm_last_doc_name [09:20:38]save OK [09:20:38]Clear old archive folders... [09:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:20:38]tlvbuf is 0115EF30 [09:20:38]SAM_PROTO_ClearQueue [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 09 00 00 [09:20:38]Write to MH i2c: E2 08 00 80 00 80 09 00 00 00 00 00 00 F2 [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_ClearQueue done [09:20:38]KKMCreateOFDPacket [09:20:38]OFDProtocolAddRootSTLVToBuf [09:20:38]FM_MakeSignedData [09:20:38]FM_MakeSignedData [09:20:38]SAM_PROTO_SignData [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 01 02 [09:20:38]Write to MH i2c: E2 08 00 81 00 80 0D 01 02 00 00 00 00 FA [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]wFMCommunicate request_size=255 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 65 0D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:20:38]Write to MH i2c: E2 02 01 82 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 65 0D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2E [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [09:20:38]RAPDU: 90 00 [09:20:38]wFMCommunicate OK [09:20:38]wFMCommunicate request_size=53 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 78 AE 00 00 35 04 06 00 C3 34 18 CB 09 2F [09:20:38]Write to MH i2c: E2 38 00 83 00 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 78 AE 00 00 35 04 06 00 C3 34 18 CB 09 2F 00 00 2D [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [09:20:39]RAPDU: 90 00 [09:20:39]wFMCommunicate OK [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 0D 03 02 [09:20:39]Write to MH i2c: E2 08 00 84 00 80 0D 03 02 00 00 00 00 FF [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0B 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0B 00 84 00 00 18 1B 32 40 18 50 F7 61 90 00 65 [09:20:39]RAPDU: 18 1B 32 40 18 50 F7 61 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_SignData done [09:20:39]FM_MakeSignedData done [09:20:39]CreateOFDProtocolMessage [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 11 00 00 [09:20:39]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 53 [09:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:20:39]wFMCommunicate OK [09:20:39]CreateOFDProtocolMessage done [09:20:39]OFDSenderStorePacket 44664 [09:20:39]StoreOFDPacket docnum=44664 [09:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3A 01 00 00 F7 50 32 01 6C 76 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 65 0D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 78 AE 00 00 35 04 06 00 C3 34 18 CB 09 2F 18 1B 32 40 18 50 F7 61 [09:20:39]CheckFolder [09:20:39]dirname=/storage/ofd_packets [09:20:39]CheckFolder done [09:20:39]ProducePacketName [09:20:39]name=ofd_packets/00044664 [09:20:39]NVStorageSaveData ofd_packets/00044664 [09:20:39]File name is /storage/ofd_packets/00044664 [09:20:39]Write 344 bytes [09:20:39]NVStorageSaveData done [09:20:39]OFDSenderStorePacket done [09:20:39]KKMCreateOFDPacket done [09:20:39]NVStorageSaveData kkm_last_timestamp [09:20:39]File name is /storage/kkm_last_timestamp [09:20:39]Write 4 bytes [09:20:39]NVStorageSaveData done [09:20:39]ExternCall_PrintAddStr [09:20:39]wPrintStart [09:20:39]Write to MH i2c: 01 00 00 86 00 86 [09:20:39]OFD Sender: Processing packet 44664 [packets to send 7, broken 6] [09:20:39]ProducePacketName [09:20:39]name=ofd_packets/00044664 [09:20:39]OFD Sender: To server: pG, [09:20:39]CommunicateWithHost lk.salyk.kg:30040 [09:20:39]ConnectInit lk.salyk.kg [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [09:20:39]RasterBufferAndPrint [09:20:39]line Счет N : (3)14556 [09:20:39]line ИНН: 02508201610067 [09:20:39]line Контрольно-Кассовый Чек [09:20:39]line ПРОДАЖА [09:20:39]line Товар: 4600682557456 [09:20:39]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:20:39]line 1.000 * 85.00 [09:20:39]line = 85.00 [09:20:39]line НДС 12% НСП 1% [09:20:39]line > о реализуемом товаре [09:20:39]line ИТОГО: 85.00 [09:20:39]line НСП 1% : 0.75 [09:20:39]line НДС 12% : 9.03 [09:20:39]line Наличными: 85.00 [09:20:39]line Безнал.: 0.00 [09:20:39]line Место: АЗС № 128 "Партнер Нефть" [09:20:39]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [09:20:39]line СНО: Общий режим [09:20:39]line Чек 35 28.07.2024 09:20 [09:20:39]line Смена: 430 ФФД: 1.0 [09:20:39]line ЗНМ: 0300000045 [09:20:39]line РНМ: 0000000000092655 [09:20:39]line Версия ККМ: 001 [09:20:39]line ФМ: 0000000000874941 [09:20:39]line ФД: 44664 [09:20:39]line ФПД: 214628521675055 [09:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092037&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44664&fm=214628521675055&tin=02508201610067®Number=0000000000092655&sum=8500 [09:20:39]line 0 [09:20:39]Connected sock=9 [09:20:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3A 01 00 00 F7 50 32 01 6C 76 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 65 0D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 78 AE 00 00 35 04 06 00 C3 34 18 CB 09 2F 18 1B 32 40 18 50 F7 61 [09:20:39]written 0, free lines is 4095 [09:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 BD 89 47 00 19 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 78 AE 00 00 F4 03 04 00 78 B9 A5 66 B6 04 01 00 00 97 36 F7 52 76 AA 92 01 [09:20:39]CommunicateWithHost err = 0 [09:20:39]CheckOFDResponse [09:20:39]1017 (14) - 77093643461234 [09:20:39]1041 (16) - 0000000000874941 [09:20:39]1040 (4) - 44664 [09:20:39]1012 (4) - 28.07.2024 03:22 [09:20:39]1206 (1) - 0 [09:20:39]OFD Sender: Remove packet 44664 [09:20:39]ProducePacketName [09:20:39]name=ofd_packets/00044664 [09:20:39]NVStorageDeleteData [09:20:39]Write to MH i2c: 01 00 00 AF 00 AF [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 E4 0C A6 [09:20:39]RasterBufferAndPrint [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]line [09:20:39]written 0, free lines is 3306 [09:20:39]process_action close_receipt done [09:20:39]requested_data is exist [09:20:39]produce_requested_data [09:20:39]requested_item fm.sn is exist - process it [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 11 00 00 [09:20:39]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 84 [09:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:20:39]wFMCommunicate OK [09:20:39]requested_item fd.num is exist - process it [09:20:39]SAM_PROTO_GetFieldsCounters [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 13 00 00 [09:20:39]Write to MH i2c: E2 08 00 B7 00 80 13 00 00 00 00 00 00 33 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 62 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 62 00 B7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 78 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 78 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:40]wFMCommunicate OK [09:20:40]SAM_PROTO_GetFieldsCounters done [09:20:40]requested_item shift.num is exist - process it [09:20:40]requested_item shift.opened is exist - process it [09:20:40]req_shift_opened [09:20:40]FM_GetShiftState [09:20:40]SAM_PROTO_GetShiftState [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 13 01 00 [09:20:40]Write to MH i2c: E2 08 00 B8 00 80 13 01 00 00 00 00 00 35 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:40]OFD Sender: No OFD packet to send [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 B8 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CE [09:20:40]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:20:40]wFMCommunicate OK [09:20:40]SAM_PROTO_GetShiftState done [09:20:40]FM_GetShiftState done [09:20:40]req_shift_opened done [09:20:40]requested_item shift.open_date is exist - process it [09:20:40]req_shift_open_date [09:20:40]req_shift_open_date done [09:20:40]produce_requested_data done [09:20:40]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44664,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [09:20:40]process_action_free close_receipt [09:20:40]json_value_free [09:20:40]json_value_free done [09:20:40]process_json_proto returns [09:20:40]Send response to host [09:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44664,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [09:20:40]free response buf [09:20:40]execute_script done [09:20:40]execute_script returns [09:20:40]free content buf [09:20:40]Sock 7.Close socket [09:20:40]Sock 7.Thread stoped [09:20:45]OFD Sender: No OFD packet to send [09:20:46]int [09:20:46]Write to MH i2c: 01 00 00 B9 00 B9 [09:20:46]*** FLAG_PRN_KEY set [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 B9 00 00 08 00 00 00 FF 0F D6 [09:20:46]state=0 [09:20:46]Key pressed [09:20:46]Feed [09:20:46]Write to MH i2c: D8 00 00 BA 00 91 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: D8 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: D8 01 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: D8 01 00 BA 00 00 92 [09:20:46]int [09:20:46]Write to MH i2c: 01 00 00 BB 00 BB [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 BB 00 00 48 00 00 00 3D 00 47 [09:20:46]state=2 [09:20:46]Key pressed [09:20:46]int [09:20:46]Write to MH i2c: 01 00 00 BC 00 BC [09:20:46]*** FLAG_PRN_KEY reset [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 BC 00 00 00 00 00 00 F9 0F CB [09:20:46]state=2 [09:20:46]Stop feed [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:53]accept exits with 10 [09:26:53]New connection [09:26:53]New thread 3067243876 created [09:26:53]Thread 3067100516 joined [09:26:53]Waiting for new connection... [09:26:53] Sock 10.Parse request [09:26:53]Sock 10.Check first char [09:26:53]Sock 10.First char is OK [09:26:53]request: POST /json_proto HTTP/1.0 [09:26:53]Method: POST [09:26:53]URL: /json_proto [09:26:53]Method is POST - this is cgi request [09:26:53]url: /json_proto [09:26:53]query_string will be loaded in cgi processing [09:26:53]execute_cgi json_proto POST (null) [09:26:53]execute_cgi path=json_proto method=POST [09:26:53]POST find Content-Length [09:26:53]Host: 172.17.45.196:8080 [09:26:53]Content-Length: 607 [09:26:53]Content-Type: application/json [09:26:53] [09:26:53]POST finish read [09:26:53]Found Content-Length = 607 [09:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14557", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:53]execute_script... [09:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14557", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:53]POST & json_proto [09:26:53]process_json_proto [09:26:53]json parsed OK: [09:26:53]protocol is kg_v1.0 [09:26:53]action value=close_receipt [09:26:53]process_action close_receipt [09:26:53]cmd_close_receipt [09:26:53]MH_GetDate [09:26:53]Write to MH i2c: F0 00 00 BD 00 AC [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: F0 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: F0 09 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: F0 09 00 BD 00 00 DD 0E A6 66 BB 03 A5 66 75 [09:26:53]GetLastDocTimeStamp 1722158437 [09:26:53]current date 1722158813 [09:26:53]FM_GetShiftState [09:26:53]SAM_PROTO_GetShiftState [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 01 00 [09:26:53]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D4 [09:26:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetShiftState done [09:26:53]FM_GetShiftState done [09:26:53]opened in 1722126323 [09:26:53]opened+sec_in_day 1722212723 [09:26:53]quantity*price = 1000 [09:26:53]sum+1 = 1001 [09:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 36 28.07.2024 09:26 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44665 ФПД: 268081788308294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092653&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44665&fm=268081788308294&tin=02508201610067®Number=0000000000092655&sum=1000 0 [09:26:54]StoreToDocumentArchive [09:26:54]shift 430 fd 44665 [09:26:54]save to /storage/0430/doc_00044665 [09:26:54]save last doc name /storage/0430/doc_00044665 to /storage/kkm_last_doc_name [09:26:54]save OK [09:26:54]Clear old archive folders... [09:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=267 [09:26:54]tlvbuf is B6F9F8C0 [09:26:54]SAM_PROTO_ClearQueue [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 09 00 00 [09:26:54]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [09:26:54]RAPDU: 90 00 [09:26:54]wFMCommunicate OK [09:26:54]SAM_PROTO_ClearQueue done [09:26:54]KKMCreateOFDPacket [09:26:54]OFDProtocolAddRootSTLVToBuf [09:26:54]FM_MakeSignedData [09:26:54]FM_MakeSignedData [09:26:54]SAM_PROTO_SignData [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 0D 01 02 [09:26:54]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [09:26:54]RAPDU: 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=255 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 DD 0E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [09:26:54]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 DD 0E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 A7 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [09:26:54]RAPDU: 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=26 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 0D 02 02 15 39 34 31 10 04 04 00 79 AE 00 00 35 04 06 00 F3 D1 A7 C3 4B 46 [09:26:54]Write to MH i2c: E2 1D 00 CE 00 80 0D 02 02 15 00 39 34 31 10 04 04 00 79 AE 00 00 35 04 06 00 F3 D1 A7 C3 4B 46 00 00 4D [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [09:26:54]RAPDU: 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 0D 03 02 [09:26:54]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0B 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0B 00 CF 00 00 70 BE D0 EA 67 2B F7 C0 90 00 7C [09:26:54]RAPDU: 70 BE D0 EA 67 2B F7 C0 90 00 [09:26:54]wFMCommunicate OK [09:26:54]SAM_PROTO_SignData done [09:26:54]FM_MakeSignedData done [09:26:54]CreateOFDProtocolMessage [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 11 00 00 [09:26:54]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 17 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9E [09:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:26:54]wFMCommunicate OK [09:26:54]CreateOFDProtocolMessage done [09:26:54]OFDSenderStorePacket 44665 [09:26:54]StoreOFDPacket docnum=44665 [09:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1F 01 00 00 12 90 17 01 DC D5 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 DD 0E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 79 AE 00 00 35 04 06 00 F3 D1 A7 C3 4B 46 70 BE D0 EA 67 2B F7 C0 [09:26:54]CheckFolder [09:26:54]dirname=/storage/ofd_packets [09:26:54]CheckFolder done [09:26:54]ProducePacketName [09:26:54]name=ofd_packets/00044665 [09:26:54]NVStorageSaveData ofd_packets/00044665 [09:26:54]File name is /storage/ofd_packets/00044665 [09:26:54]Write 317 bytes [09:26:54]NVStorageSaveData done [09:26:54]OFDSenderStorePacket done [09:26:54]KKMCreateOFDPacket done [09:26:54]NVStorageSaveData kkm_last_timestamp [09:26:54]File name is /storage/kkm_last_timestamp [09:26:54]Write 4 bytes [09:26:54]NVStorageSaveData done [09:26:54]ExternCall_PrintAddStr [09:26:54]wPrintStart [09:26:54]Write to MH i2c: 01 00 00 D1 00 D1 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: 01 [09:26:54]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 07 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [09:26:55]RasterBufferAndPrint [09:26:55]line Счет N : (3)14557 [09:26:55]line ИНН: 02508201610067 [09:26:55]line Контрольно-Кассовый Чек [09:26:55]line ПРОДАЖА [09:26:55]line Товар: 46231529 [09:26:55]line Mentos ПФ Арбуз 6*100*2 [09:26:55]line 1.000 * 10.00 [09:26:55]line = 10.00 [09:26:55]line НДС 12% НСП 1% [09:26:55]line > о реализуемом товаре [09:26:55]line ИТОГО: 10.00 [09:26:55]line НСП 1% : 0.09 [09:26:55]line НДС 12% : 1.06 [09:26:55]line Наличными: 10.00 [09:26:55]line Безнал.: 0.00 [09:26:55]line Место: АЗС № 128 "Партнер Нефть" [09:26:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [09:26:55]line СНО: Общий режим [09:26:55]line Чек 36 28.07.2024 09:26 [09:26:55]line Смена: 430 ФФД: 1.0 [09:26:55]line ЗНМ: 0300000045 [09:26:55]line РНМ: 0000000000092655 [09:26:55]line Версия ККМ: 001 [09:26:55]line ФМ: 0000000000874941 [09:26:55]line ФД: 44665 [09:26:55]line ФПД: 268081788308294 [09:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T092653&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44665&fm=268081788308294&tin=02508201610067®Number=0000000000092655&sum=1000 [09:26:55]line 0 [09:26:55]OFD Sender: Processing packet 44665 [packets to send 7, broken 6] [09:26:55]ProducePacketName [09:26:55]name=ofd_packets/00044665 [09:26:55]OFD Sender: To server: pG, [09:26:55]CommunicateWithHost lk.salyk.kg:30040 [09:26:55]ConnectInit lk.salyk.kg [09:26:55]written 0, free lines is 4095 [09:26:55]Connected sock=9 [09:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1F 01 00 00 12 90 17 01 DC D5 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 DD 0E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 79 AE 00 00 35 04 06 00 F3 D1 A7 C3 4B 46 70 BE D0 EA 67 2B F7 C0 [09:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 D9 4E 47 00 66 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 79 AE 00 00 F4 03 04 00 F0 BA A5 66 B6 04 01 00 00 CA 3C DE 74 4D 26 56 9E [09:26:55]CommunicateWithHost err = 0 [09:26:55]CheckOFDResponse [09:26:55]1017 (14) - 77093643461234 [09:26:55]1041 (16) - 0000000000874941 [09:26:55]1040 (4) - 44665 [09:26:55]1012 (4) - 28.07.2024 03:28 [09:26:55]1206 (1) - 0 [09:26:55]OFD Sender: Remove packet 44665 [09:26:55]ProducePacketName [09:26:55]name=ofd_packets/00044665 [09:26:55]NVStorageDeleteData [09:26:55]Write to MH i2c: 01 00 00 F9 00 F9 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 07 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FA 0C 06 [09:26:55]RasterBufferAndPrint [09:26:55]line [09:26:55]line [09:26:55]line [09:26:55]line [09:26:55]line [09:26:55]written 0, free lines is 3325 [09:26:55]process_action close_receipt done [09:26:55]requested_data is exist [09:26:55]produce_requested_data [09:26:55]requested_item fm.sn is exist - process it [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 11 00 00 [09:26:55]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 17 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CF [09:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:26:55]wFMCommunicate OK [09:26:55]requested_item fd.num is exist - process it [09:26:55]SAM_PROTO_GetFieldsCounters [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 00 00 [09:26:55]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 62 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 79 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [09:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 79 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetFieldsCounters done [09:26:55]requested_item shift.num is exist - process it [09:26:55]requested_item shift.opened is exist - process it [09:26:55]req_shift_opened [09:26:55]FM_GetShiftState [09:26:55]SAM_PROTO_GetShiftState [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 01 00 [09:26:55]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0E 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 19 [09:26:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:26:56]wFMCommunicate OK [09:26:56]SAM_PROTO_GetShiftState done [09:26:56]FM_GetShiftState done [09:26:56]req_shift_opened done [09:26:56]requested_item shift.open_date is exist - process it [09:26:56]req_shift_open_date [09:26:56]req_shift_open_date done [09:26:56]produce_requested_data done [09:26:56]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44665,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [09:26:56]process_action_free close_receipt [09:26:56]json_value_free [09:26:56]json_value_free done [09:26:56]process_json_proto returns [09:26:56]Send response to host [09:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44665,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [09:26:56]free response buf [09:26:56]execute_script done [09:26:56]execute_script returns [09:26:56]free content buf [09:26:56]Sock 10.Close socket [09:26:56]Sock 10.Thread stoped [09:26:56]OFD Sender: No OFD packet to send [09:26:59]int [09:26:59]Write to MH i2c: 01 00 00 03 01 04 [09:26:59]*** FLAG_PRN_KEY set [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 03 01 00 08 00 00 00 FF 0F 21 [09:26:59]state=0 [09:26:59]Key pressed [09:26:59]Feed [09:26:59]Write to MH i2c: D8 00 00 04 01 DC [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D8 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D8 01 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: D8 01 00 04 01 00 DD [09:26:59]int [09:26:59]Write to MH i2c: 01 00 00 05 01 06 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 05 01 00 48 00 00 00 3C 00 91 [09:26:59]state=2 [09:26:59]Key pressed [09:26:59]int [09:26:59]Write to MH i2c: 01 00 00 06 01 07 [09:26:59]*** FLAG_PRN_KEY reset [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: 01 07 00 06 01 00 00 00 00 00 F5 0F 12 [09:26:59]state=2 [09:26:59]Stop feed [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:42]accept exits with 7 [09:37:42]New connection [09:37:42]New thread 3067100516 created [09:37:42]Thread 3067243876 joined [09:37:42]Waiting for new connection... [09:37:42] Sock 7.Parse request [09:37:42]Sock 7.Check first char [09:37:42]Sock 7.First char is OK [09:37:42]request: POST /json_proto HTTP/1.0 [09:37:42]Method: POST [09:37:42]URL: /json_proto [09:37:42]Method is POST - this is cgi request [09:37:42]url: /json_proto [09:37:42]query_string will be loaded in cgi processing [09:37:42]execute_cgi json_proto POST (null) [09:37:42]execute_cgi path=json_proto method=POST [09:37:42]POST find Content-Length [09:37:42]Host: 172.17.45.196:8080 [09:37:42]Content-Length: 1001 [09:37:42]Content-Type: application/json [09:37:42] [09:37:42]POST finish read [09:37:42]Found Content-Length = 1001 [09:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14558", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:42]execute_script... [09:37:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14558", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 475.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:42]POST & json_proto [09:37:42]process_json_proto [09:37:42]json parsed OK: [09:37:42]protocol is kg_v1.0 [09:37:42]action value=close_receipt [09:37:42]process_action close_receipt [09:37:42]cmd_close_receipt [09:37:42]MH_GetDate [09:37:42]Write to MH i2c: F0 00 00 07 01 F7 [09:37:42]Write i2c OK [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: F0 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: F0 09 00 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: F0 09 00 07 01 00 66 11 A6 66 BB 03 A5 66 4C [09:37:42]GetLastDocTimeStamp 1722158813 [09:37:42]current date 1722159462 [09:37:42]FM_GetShiftState [09:37:42]SAM_PROTO_GetShiftState [09:37:42]wFMCommunicate request_size=4 [09:37:42]MH_SAM_APDU [09:37:42]CAPDU: 80 13 01 00 [09:37:42]Write to MH i2c: E2 08 00 08 01 80 13 01 00 00 00 00 00 86 [09:37:42]Write i2c OK [09:37:42]MH_I2C_Read... [09:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:42]Read from MH i2c: E2 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 0E 00 [09:37:42]MH_I2C_Read... [09:37:42]Read from MH i2c: E2 0E 00 08 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 1F [09:37:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:37:42]wFMCommunicate OK [09:37:42]SAM_PROTO_GetShiftState done [09:37:42]FM_GetShiftState done [09:37:42]opened in 1722126323 [09:37:42]opened+sec_in_day 1722212723 [09:37:42]quantity*price = 25000 [09:37:42]sum+1 = 25001 [09:37:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4670003190013 Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л 1.000 * 225.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 475.00 НСП 1% : 4.20 НДС 12% : 50.44 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 37 28.07.2024 09:37 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44666 ФПД: 8141940356453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093742&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44666&fm=8141940356453&tin=02508201610067®Number=0000000000092655&sum=47500 0 [09:37:43]StoreToDocumentArchive [09:37:43]shift 430 fd 44666 [09:37:43]save to /storage/0430/doc_00044666 [09:37:43]save last doc name /storage/0430/doc_00044666 to /storage/kkm_last_doc_name [09:37:43]save OK [09:37:43]Clear old archive folders... [09:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=428 [09:37:43]tlvbuf is 0111C6C0 [09:37:43]SAM_PROTO_ClearQueue [09:37:43]wFMCommunicate request_size=4 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 09 00 00 [09:37:43]Write to MH i2c: E2 08 00 15 01 80 09 00 00 00 00 00 00 88 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [09:37:43]RAPDU: 90 00 [09:37:43]wFMCommunicate OK [09:37:43]SAM_PROTO_ClearQueue done [09:37:43]KKMCreateOFDPacket [09:37:43]OFDProtocolAddRootSTLVToBuf [09:37:43]FM_MakeSignedData [09:37:43]FM_MakeSignedData [09:37:43]SAM_PROTO_SignData [09:37:43]wFMCommunicate request_size=4 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 0D 01 02 [09:37:43]Write to MH i2c: E2 08 00 16 01 80 0D 01 02 00 00 00 00 90 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [09:37:43]RAPDU: 90 00 [09:37:43]wFMCommunicate OK [09:37:43]wFMCommunicate request_size=255 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 0D 02 02 FA 03 00 AC 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 [09:37:43]Write to MH i2c: E2 02 01 17 01 80 0D 02 02 FA 00 03 00 AC 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 A1 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [09:37:44]RAPDU: 90 00 [09:37:44]wFMCommunicate OK [09:37:44]wFMCommunicate request_size=187 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 11 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7A AE 00 00 35 04 06 00 07 67 B1 76 75 65 [09:37:44]Write to MH i2c: E2 BE 00 18 01 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 11 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7A AE 00 00 35 04 06 00 07 67 B1 76 75 65 00 00 DC [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [09:37:44]RAPDU: 90 00 [09:37:44]wFMCommunicate OK [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 0D 03 02 [09:37:44]Write to MH i2c: E2 08 00 19 01 80 0D 03 02 00 00 00 00 95 [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0B 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0B 00 19 01 00 1E 3C 52 06 F7 E4 82 24 90 00 C9 [09:37:44]RAPDU: 1E 3C 52 06 F7 E4 82 24 90 00 [09:37:44]wFMCommunicate OK [09:37:44]SAM_PROTO_SignData done [09:37:44]FM_MakeSignedData done [09:37:44]CreateOFDProtocolMessage [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 11 00 00 [09:37:44]Write to MH i2c: E2 08 00 1A 01 80 11 00 00 00 00 00 00 95 [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 17 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 17 00 1A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E9 [09:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:37:44]wFMCommunicate OK [09:37:44]CreateOFDProtocolMessage done [09:37:44]OFDSenderStorePacket 44666 [09:37:44]StoreOFDPacket docnum=44666 [09:37:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 C0 01 00 00 B7 A2 B8 01 39 38 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 11 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7A AE 00 00 35 04 06 00 07 67 B1 76 75 65 1E 3C 52 06 F7 E4 82 24 [09:37:44]CheckFolder [09:37:44]dirname=/storage/ofd_packets [09:37:44]CheckFolder done [09:37:44]ProducePacketName [09:37:44]name=ofd_packets/00044666 [09:37:44]NVStorageSaveData ofd_packets/00044666 [09:37:44]File name is /storage/ofd_packets/00044666 [09:37:44]Write 478 bytes [09:37:44]NVStorageSaveData done [09:37:44]OFDSenderStorePacket done [09:37:44]KKMCreateOFDPacket done [09:37:44]NVStorageSaveData kkm_last_timestamp [09:37:44]File name is /storage/kkm_last_timestamp [09:37:44]Write 4 bytes [09:37:44]NVStorageSaveData done [09:37:44]ExternCall_PrintAddStr [09:37:44]wPrintStart [09:37:44]Write to MH i2c: 01 00 00 1B 01 1C [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: 01 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: 01 07 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 FF 0F 31 [09:37:44]RasterBufferAndPrint [09:37:44]line Счет N : (3)14558 [09:37:44]line ИНН: 02508201610067 [09:37:44]line Контрольно-Кассовый Чек [09:37:44]line ПРОДАЖА [09:37:44]line Товар: 4606532000189 [09:37:44]line Тормозная жидкость РосДот-4 0,455кг [09:37:44]line 1.000 * 250.00 [09:37:44]line = 250.00 [09:37:44]line НДС 12% НСП 1% [09:37:44]line > о реализуемом товаре [09:37:44]line Товар: 4670003190013 [09:37:44]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [09:37:44]line 1.000 * 225.00 [09:37:44]line = 225.00 [09:37:44]line НДС 12% НСП 1% [09:37:44]line > о реализуемом товаре [09:37:44]line ИТОГО: 475.00 [09:37:44]line НСП 1% : 4.20 [09:37:44]line НДС 12% : 50.44 [09:37:44]line Наличными: 475.00 [09:37:44]line Безнал.: 0.00 [09:37:44]line Место: АЗС № 128 "Партнер Нефть" [09:37:44]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [09:37:44]line СНО: Общий режим [09:37:44]line Чек 37 28.07.2024 09:37 [09:37:44]line Смена: 430 ФФД: 1.0 [09:37:44]line ЗНМ: 0300000045 [09:37:44]line РНМ: 0000000000092655 [09:37:44]line Версия ККМ: 001 [09:37:44]line ФМ: 0000000000874941 [09:37:44]line ФД: 44666 [09:37:44]line ФПД: 8141940356453 [09:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T093742&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44666&fm=8141940356453&tin=02508201610067®Number=0000000000092655&sum=47500 [09:37:44]line 0 [09:37:44]OFD Sender: Processing packet 44666 [packets to send 7, broken 6] [09:37:44]ProducePacketName [09:37:44]name=ofd_packets/00044666 [09:37:44]OFD Sender: To server: pG, [09:37:44]CommunicateWithHost lk.salyk.kg:30040 [09:37:44]ConnectInit lk.salyk.kg [09:37:44]written 0, free lines is 4095 [09:37:44]Connected sock=10 [09:37:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 C0 01 00 00 B7 A2 B8 01 39 38 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 11 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7A AE 00 00 35 04 06 00 07 67 B1 76 75 65 1E 3C 52 06 F7 E4 82 24 [09:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 32 77 47 00 65 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7A AE 00 00 F4 03 04 00 7A BD A5 66 B6 04 01 00 00 DE EF 50 27 23 32 5F C2 [09:37:45]CommunicateWithHost err = 0 [09:37:45]CheckOFDResponse [09:37:45]1017 (14) - 77093643461234 [09:37:45]1041 (16) - 0000000000874941 [09:37:45]1040 (4) - 44666 [09:37:45]1012 (4) - 28.07.2024 03:39 [09:37:45]1206 (1) - 0 [09:37:45]OFD Sender: Remove packet 44666 [09:37:45]ProducePacketName [09:37:45]name=ofd_packets/00044666 [09:37:45]NVStorageDeleteData [09:37:45]Write to MH i2c: 01 00 00 4B 01 4C [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 7C 0C DB [09:37:45]RasterBufferAndPrint [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]written 0, free lines is 3203 [09:37:45]process_action close_receipt done [09:37:45]requested_data is exist [09:37:45]produce_requested_data [09:37:45]requested_item fm.sn is exist - process it [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 11 00 00 [09:37:45]Write to MH i2c: E2 08 00 52 01 80 11 00 00 00 00 00 00 CD [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 52 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 21 [09:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:37:45]wFMCommunicate OK [09:37:45]requested_item fd.num is exist - process it [09:37:45]SAM_PROTO_GetFieldsCounters [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 13 00 00 [09:37:45]Write to MH i2c: E2 08 00 53 01 80 13 00 00 00 00 00 00 D0 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 62 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 62 00 53 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [09:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetFieldsCounters done [09:37:45]requested_item shift.num is exist - process it [09:37:45]requested_item shift.opened is exist - process it [09:37:45]req_shift_opened [09:37:45]FM_GetShiftState [09:37:45]SAM_PROTO_GetShiftState [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 13 01 00 [09:37:45]Write to MH i2c: E2 08 00 54 01 80 13 01 00 00 00 00 00 D2 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 54 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 6B [09:37:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetShiftState done [09:37:45]FM_GetShiftState done [09:37:45]req_shift_opened done [09:37:45]requested_item shift.open_date is exist - process it [09:37:45]req_shift_open_date [09:37:45]req_shift_open_date done [09:37:45]produce_requested_data done [09:37:45]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44666,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [09:37:45]process_action_free close_receipt [09:37:45]json_value_free [09:37:45]json_value_free done [09:37:45]process_json_proto returns [09:37:45]Send response to host [09:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44666,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [09:37:45]free response buf [09:37:45]execute_script done [09:37:45]execute_script returns [09:37:45]free content buf [09:37:45]Sock 7.Close socket [09:37:45]Sock 7.Thread stoped [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:38:56]int [09:38:56]Write to MH i2c: 01 00 00 55 01 56 [09:38:56]*** FLAG_PRN_KEY set [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 55 01 00 08 00 00 00 FF 0F 73 [09:38:56]state=0 [09:38:56]Key pressed [09:38:56]Feed [09:38:56]Write to MH i2c: D8 00 00 56 01 2E [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D8 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D8 01 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: D8 01 00 56 01 00 2F [09:38:56]int [09:38:56]Write to MH i2c: 01 00 00 57 01 58 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: 01 07 00 57 01 00 48 00 00 00 3D 00 E4 [09:38:56]state=2 [09:38:56]Key pressed [09:38:57]int [09:38:57]Write to MH i2c: 01 00 00 58 01 59 [09:38:57]*** FLAG_PRN_KEY reset [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 F6 0F 65 [09:38:57]state=2 [09:38:57]Stop feed [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:40]accept exits with 9 [09:49:40]New connection [09:49:40]New thread 3067243876 created [09:49:40]Thread 3067100516 joined [09:49:40]Waiting for new connection... [09:49:40] Sock 9.Parse request [09:49:40]Sock 9.Check first char [09:49:40]Sock 9.First char is OK [09:49:40]request: POST /json_proto HTTP/1.0 [09:49:40]Method: POST [09:49:40]URL: /json_proto [09:49:40]Method is POST - this is cgi request [09:49:40]url: /json_proto [09:49:40]query_string will be loaded in cgi processing [09:49:40]execute_cgi json_proto POST (null) [09:49:40]execute_cgi path=json_proto method=POST [09:49:40]POST find Content-Length [09:49:40]Host: 172.17.45.196:8080 [09:49:40]Content-Length: 724 [09:49:40]Content-Type: application/json [09:49:40] [09:49:40]POST finish read [09:49:40]Found Content-Length = 724 [09:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14559", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:40]execute_script... [09:49:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14559", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:40]POST & json_proto [09:49:40]process_json_proto [09:49:40]json parsed OK: [09:49:40]protocol is kg_v1.0 [09:49:40]action value=close_receipt [09:49:40]process_action close_receipt [09:49:40]cmd_close_receipt [09:49:40]MH_GetDate [09:49:40]Write to MH i2c: F0 00 00 59 01 49 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: F0 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: F0 09 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: F0 09 00 59 01 00 34 14 A6 66 BB 03 A5 66 6F [09:49:40]GetLastDocTimeStamp 1722159462 [09:49:40]current date 1722160180 [09:49:40]FM_GetShiftState [09:49:40]SAM_PROTO_GetShiftState [09:49:40]wFMCommunicate request_size=4 [09:49:40]MH_SAM_APDU [09:49:40]CAPDU: 80 13 01 00 [09:49:40]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:40]Read from MH i2c: E2 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 0E 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 71 [09:49:40]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:49:40]wFMCommunicate OK [09:49:40]SAM_PROTO_GetShiftState done [09:49:40]FM_GetShiftState done [09:49:40]opened in 1722126323 [09:49:40]opened+sec_in_day 1722212723 [09:49:40]quantity*price = 9000 [09:49:40]sum+1 = 9001 [09:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 38 28.07.2024 09:49 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44667 ФПД: 65609968593590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094940&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44667&fm=65609968593590&tin=02508201610067®Number=0000000000092655&sum=9000 0 [09:49:41]StoreToDocumentArchive [09:49:41]shift 430 fd 44667 [09:49:41]save to /storage/0430/doc_00044667 [09:49:41]save last doc name /storage/0430/doc_00044667 to /storage/kkm_last_doc_name [09:49:41]save OK [09:49:41]Clear old archive folders... [09:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=308 [09:49:41]tlvbuf is 0111C1B0 [09:49:41]SAM_PROTO_ClearQueue [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 09 00 00 [09:49:41]Write to MH i2c: E2 08 00 67 01 80 09 00 00 00 00 00 00 DA [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [09:49:41]RAPDU: 90 00 [09:49:41]wFMCommunicate OK [09:49:41]SAM_PROTO_ClearQueue done [09:49:41]KKMCreateOFDPacket [09:49:41]OFDProtocolAddRootSTLVToBuf [09:49:41]FM_MakeSignedData [09:49:41]FM_MakeSignedData [09:49:41]SAM_PROTO_SignData [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 0D 01 02 [09:49:41]Write to MH i2c: E2 08 00 68 01 80 0D 01 02 00 00 00 00 E2 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [09:49:41]RAPDU: 90 00 [09:49:41]wFMCommunicate OK [09:49:41]wFMCommunicate request_size=255 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 34 14 A6 66 0E 04 04 00 AE 01 00 00 B9 [09:49:41]Write to MH i2c: E2 02 01 69 01 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 34 14 A6 66 0E 04 04 00 AE 01 00 00 B9 00 00 5D [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [09:49:41]RAPDU: 90 00 [09:49:41]wFMCommunicate OK [09:49:41]wFMCommunicate request_size=67 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7B AE 00 00 35 04 06 00 3B AC 02 DF 2A B6 [09:49:41]Write to MH i2c: E2 46 00 6A 01 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7B AE 00 00 35 04 06 00 3B AC 02 DF 2A B6 00 00 11 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [09:49:41]RAPDU: 90 00 [09:49:41]wFMCommunicate OK [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 0D 03 02 [09:49:41]Write to MH i2c: E2 08 00 6B 01 80 0D 03 02 00 00 00 00 E7 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:41]Read from MH i2c: E2 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 0B 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: E2 0B 00 6B 01 00 1F BD 47 D6 2B 0F 7E E1 90 00 7A [09:49:41]RAPDU: 1F BD 47 D6 2B 0F 7E E1 90 00 [09:49:41]wFMCommunicate OK [09:49:41]SAM_PROTO_SignData done [09:49:41]FM_MakeSignedData done [09:49:41]CreateOFDProtocolMessage [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 11 00 00 [09:49:41]Write to MH i2c: E2 08 00 6C 01 80 11 00 00 00 00 00 00 E7 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:42]Read from MH i2c: E2 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 6C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3B [09:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:49:42]wFMCommunicate OK [09:49:42]CreateOFDProtocolMessage done [09:49:42]OFDSenderStorePacket 44667 [09:49:42]StoreOFDPacket docnum=44667 [09:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 EE 6B 40 01 24 F0 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 34 14 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7B AE 00 00 35 04 06 00 3B AC 02 DF 2A B6 1F BD 47 D6 2B 0F 7E E1 [09:49:42]CheckFolder [09:49:42]dirname=/storage/ofd_packets [09:49:42]CheckFolder done [09:49:42]ProducePacketName [09:49:42]name=ofd_packets/00044667 [09:49:42]NVStorageSaveData ofd_packets/00044667 [09:49:42]File name is /storage/ofd_packets/00044667 [09:49:42]Write 358 bytes [09:49:42]NVStorageSaveData done [09:49:42]OFDSenderStorePacket done [09:49:42]KKMCreateOFDPacket done [09:49:42]NVStorageSaveData kkm_last_timestamp [09:49:42]File name is /storage/kkm_last_timestamp [09:49:42]Write 4 bytes [09:49:42]NVStorageSaveData done [09:49:42]ExternCall_PrintAddStr [09:49:42]wPrintStart [09:49:42]Write to MH i2c: 01 00 00 6D 01 6E [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 07 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FF 0F 83 [09:49:42]RasterBufferAndPrint [09:49:42]line Счет N : (3)14559 [09:49:42]line ИНН: 02508201610067 [09:49:42]line Контрольно-Кассовый Чек [09:49:42]line ПРОДАЖА [09:49:42]line Товар: 4870235681062 [09:49:42]line Grizzly волнистые Колбаски с горчицей 55 [09:49:42]line 1.000 * 90.00 [09:49:42]line = 90.00 [09:49:42]line НДС 12% НСП 1% [09:49:42]line > о реализуемом товаре [09:49:42]line ИТОГО: 90.00 [09:49:42]line НСП 1% : 0.80 [09:49:42]line НДС 12% : 9.56 [09:49:42]line Наличными: 90.00 [09:49:42]line Безнал.: 0.00 [09:49:42]line Место: АЗС № 128 "Партнер Нефть" [09:49:42]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [09:49:42]line СНО: Общий режим [09:49:42]line Чек 38 28.07.2024 09:49 [09:49:42]line Смена: 430 ФФД: 1.0 [09:49:42]line ЗНМ: 0300000045 [09:49:42]line РНМ: 0000000000092655 [09:49:42]line Версия ККМ: 001 [09:49:42]line ФМ: 0000000000874941 [09:49:42]line ФД: 44667 [09:49:42]line ФПД: 65609968593590 [09:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094940&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44667&fm=65609968593590&tin=02508201610067®Number=0000000000092655&sum=9000 [09:49:42]line 0 [09:49:42]OFD Sender: Processing packet 44667 [packets to send 7, broken 6] [09:49:42]ProducePacketName [09:49:42]name=ofd_packets/00044667 [09:49:42]OFD Sender: To server: pG, [09:49:42]CommunicateWithHost lk.salyk.kg:30040 [09:49:42]ConnectInit lk.salyk.kg [09:49:42]written 0, free lines is 4095 [09:49:42]Connected sock=10 [09:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 EE 6B 40 01 24 F0 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 34 14 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7B AE 00 00 35 04 06 00 3B AC 02 DF 2A B6 1F BD 47 D6 2B 0F 7E E1 [09:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 64 1D 47 00 80 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7B AE 00 00 F4 03 04 00 47 C0 A5 66 B6 04 01 00 00 90 A0 7B 92 1B FC 59 D3 [09:49:42]CommunicateWithHost err = 0 [09:49:42]CheckOFDResponse [09:49:42]1017 (14) - 77093643461234 [09:49:42]1041 (16) - 0000000000874941 [09:49:42]1040 (4) - 44667 [09:49:42]1012 (4) - 28.07.2024 03:51 [09:49:42]1206 (1) - 0 [09:49:42]OFD Sender: Remove packet 44667 [09:49:42]ProducePacketName [09:49:42]name=ofd_packets/00044667 [09:49:42]NVStorageDeleteData [09:49:42]Write to MH i2c: 01 00 00 96 01 97 [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 07 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 DC 0C 86 [09:49:42]RasterBufferAndPrint [09:49:42]line [09:49:42]line [09:49:42]line [09:49:42]line [09:49:42]line [09:49:42]written 0, free lines is 3297 [09:49:42]process_action close_receipt done [09:49:42]requested_data is exist [09:49:42]produce_requested_data [09:49:42]requested_item fm.sn is exist - process it [09:49:42]wFMCommunicate request_size=4 [09:49:42]MH_SAM_APDU [09:49:42]CAPDU: 80 11 00 00 [09:49:42]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:42]Read from MH i2c: E2 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6C [09:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [09:49:42]wFMCommunicate OK [09:49:42]requested_item fd.num is exist - process it [09:49:42]SAM_PROTO_GetFieldsCounters [09:49:42]wFMCommunicate request_size=4 [09:49:42]MH_SAM_APDU [09:49:42]CAPDU: 80 13 00 00 [09:49:42]Write to MH i2c: E2 08 00 9E 01 80 13 00 00 00 00 00 00 1B [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:43]Read from MH i2c: E2 [09:49:43]MH_I2C_Read... [09:49:43]Read from MH i2c: E2 62 00 [09:49:43]MH_I2C_Read... [09:49:43]Read from MH i2c: E2 62 00 9E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:49:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:43]wFMCommunicate OK [09:49:43]SAM_PROTO_GetFieldsCounters done [09:49:43]requested_item shift.num is exist - process it [09:49:43]requested_item shift.opened is exist - process it [09:49:43]req_shift_opened [09:49:43]FM_GetShiftState [09:49:43]SAM_PROTO_GetShiftState [09:49:43]wFMCommunicate request_size=4 [09:49:43]MH_SAM_APDU [09:49:43]CAPDU: 80 13 01 00 [09:49:43]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [09:49:43]Write i2c OK [09:49:43]MH_I2C_Read... [09:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:43]Read from MH i2c: E2 [09:49:43]MH_I2C_Read... [09:49:43]Read from MH i2c: E2 0E 00 [09:49:43]MH_I2C_Read... [09:49:43]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B6 [09:49:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [09:49:43]wFMCommunicate OK [09:49:43]SAM_PROTO_GetShiftState done [09:49:43]FM_GetShiftState done [09:49:43]req_shift_opened done [09:49:43]requested_item shift.open_date is exist - process it [09:49:43]req_shift_open_date [09:49:43]req_shift_open_date done [09:49:43]produce_requested_data done [09:49:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44667,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [09:49:43]process_action_free close_receipt [09:49:43]json_value_free [09:49:43]json_value_free done [09:49:43]process_json_proto returns [09:49:43]Send response to host [09:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44667,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [09:49:43]free response buf [09:49:43]execute_script done [09:49:43]execute_script returns [09:49:43]free content buf [09:49:43]Sock 9.Close socket [09:49:43]Sock 9.Thread stoped [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]int [09:50:43]Write to MH i2c: 01 00 00 A0 01 A1 [09:50:43]*** FLAG_PRN_KEY set [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 A0 01 00 08 00 00 00 FF 0F BE [09:50:43]state=0 [09:50:43]Key pressed [09:50:43]Feed [09:50:43]Write to MH i2c: D8 00 00 A1 01 79 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D8 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D8 01 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D8 01 00 A1 01 00 7A [09:50:43]int [09:50:43]Write to MH i2c: 01 00 00 A2 01 A3 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 A2 01 00 48 00 00 00 3D 00 2F [09:50:43]state=2 [09:50:43]Key pressed [09:50:43]OFD Sender: No OFD packet to send [09:50:43]int [09:50:43]Write to MH i2c: 01 00 00 A3 01 A4 [09:50:43]*** FLAG_PRN_KEY reset [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 F6 0F B0 [09:50:43]state=2 [09:50:43]Stop feed [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:24]accept exits with 7 [10:32:24]New connection [10:32:24]New thread 3067100516 created [10:32:24]Thread 3067243876 joined [10:32:24]Waiting for new connection... [10:32:24] Sock 7.Parse request [10:32:24]Sock 7.Check first char [10:32:24]Sock 7.First char is OK [10:32:24]request: POST /json_proto HTTP/1.0 [10:32:24]Method: POST [10:32:24]URL: /json_proto [10:32:24]Method is POST - this is cgi request [10:32:24]url: /json_proto [10:32:24]query_string will be loaded in cgi processing [10:32:24]execute_cgi json_proto POST (null) [10:32:24]execute_cgi path=json_proto method=POST [10:32:24]POST find Content-Length [10:32:24]Host: 172.17.45.196:8080 [10:32:24]Content-Length: 868 [10:32:24]Content-Type: application/json [10:32:24] [10:32:24]POST finish read [10:32:24]Found Content-Length = 868 [10:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14560", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:24]execute_script... [10:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14560", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:24]POST & json_proto [10:32:24]process_json_proto [10:32:24]json parsed OK: [10:32:24]protocol is kg_v1.0 [10:32:24]action value=close_receipt [10:32:24]process_action close_receipt [10:32:24]cmd_close_receipt [10:32:24]MH_GetDate [10:32:24]Write to MH i2c: F0 00 00 A4 01 94 [10:32:24]Write i2c OK [10:32:24]MH_I2C_Read... [10:32:24]Read from MH i2c: F0 [10:32:24]MH_I2C_Read... [10:32:24]Read from MH i2c: F0 09 00 [10:32:24]MH_I2C_Read... [10:32:24]Read from MH i2c: F0 09 00 A4 01 00 38 1E A6 66 BB 03 A5 66 C8 [10:32:24]GetLastDocTimeStamp 1722160180 [10:32:24]current date 1722162744 [10:32:24]FM_GetShiftState [10:32:24]SAM_PROTO_GetShiftState [10:32:24]wFMCommunicate request_size=4 [10:32:24]MH_SAM_APDU [10:32:24]CAPDU: 80 13 01 00 [10:32:24]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [10:32:24]Write i2c OK [10:32:24]MH_I2C_Read... [10:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:24]Read from MH i2c: E2 [10:32:24]MH_I2C_Read... [10:32:24]Read from MH i2c: E2 0E 00 [10:32:24]MH_I2C_Read... [10:32:24]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 BC [10:32:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:32:24]wFMCommunicate OK [10:32:24]SAM_PROTO_GetShiftState done [10:32:24]FM_GetShiftState done [10:32:24]opened in 1722126323 [10:32:24]opened+sec_in_day 1722212723 [10:32:24]quantity*price = 5000 [10:32:24]sum+1 = 5001 [10:32:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 39 28.07.2024 10:32 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44668 ФПД: 221262553955519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103224&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44668&fm=221262553955519&tin=02508201610067®Number=0000000000092655&sum=20000 0 [10:32:25]StoreToDocumentArchive [10:32:25]shift 430 fd 44668 [10:32:25]save to /storage/0430/doc_00044668 [10:32:25]save last doc name /storage/0430/doc_00044668 to /storage/kkm_last_doc_name [10:32:25]save OK [10:32:25]Clear old archive folders... [10:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=373 [10:32:25]tlvbuf is 0111BAB0 [10:32:25]SAM_PROTO_ClearQueue [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 09 00 00 [10:32:25]Write to MH i2c: E2 08 00 B2 01 80 09 00 00 00 00 00 00 25 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_ClearQueue done [10:32:25]KKMCreateOFDPacket [10:32:25]OFDProtocolAddRootSTLVToBuf [10:32:25]FM_MakeSignedData [10:32:25]FM_MakeSignedData [10:32:25]SAM_PROTO_SignData [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 01 02 [10:32:25]Write to MH i2c: E2 08 00 B3 01 80 0D 01 02 00 00 00 00 2D [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=255 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 [10:32:25]Write to MH i2c: E2 02 01 B4 01 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 00 00 19 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=132 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7C AE 00 00 35 04 06 00 C9 3C B3 EE 3C BF [10:32:25]Write to MH i2c: E2 87 00 B5 01 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7C AE 00 00 35 04 06 00 C9 3C B3 EE 3C BF 00 00 31 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 03 02 [10:32:25]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0B 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0B 00 B6 01 00 1A E3 B6 24 63 66 FB 32 90 00 00 [10:32:25]RAPDU: 1A E3 B6 24 63 66 FB 32 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_SignData done [10:32:25]FM_MakeSignedData done [10:32:25]CreateOFDProtocolMessage [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 11 00 00 [10:32:25]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 86 [10:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:32:25]wFMCommunicate OK [10:32:25]CreateOFDProtocolMessage done [10:32:25]OFDSenderStorePacket 44668 [10:32:25]StoreOFDPacket docnum=44668 [10:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 89 01 00 00 27 1B 81 01 7B 5A 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7C AE 00 00 35 04 06 00 C9 3C B3 EE 3C BF 1A E3 B6 24 63 66 FB 32 [10:32:25]CheckFolder [10:32:25]dirname=/storage/ofd_packets [10:32:25]CheckFolder done [10:32:25]ProducePacketName [10:32:25]name=ofd_packets/00044668 [10:32:25]NVStorageSaveData ofd_packets/00044668 [10:32:25]File name is /storage/ofd_packets/00044668 [10:32:25]Write 423 bytes [10:32:25]NVStorageSaveData done [10:32:25]OFDSenderStorePacket done [10:32:25]KKMCreateOFDPacket done [10:32:25]NVStorageSaveData kkm_last_timestamp [10:32:25]File name is /storage/kkm_last_timestamp [10:32:25]Write 4 bytes [10:32:25]NVStorageSaveData done [10:32:25]ExternCall_PrintAddStr [10:32:25]wPrintStart [10:32:25]Write to MH i2c: 01 00 00 B8 01 B9 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [10:32:25]RasterBufferAndPrint [10:32:25]line Счет N : (3)14560 [10:32:25]line ИНН: 02508201610067 [10:32:25]line Контрольно-Кассовый Чек [10:32:25]line ПРОДАЖА [10:32:25]line Товар: 5449000066473 [10:32:25]line Вода Бонаква 1л [10:32:25]line 1.000 * 50.00 [10:32:25]line = 50.00 [10:32:25]line НДС 12% НСП 1% [10:32:25]line > о реализуемом товаре [10:32:25]line Товар: 46230614 [10:32:25]line Сигареты Richmond Red Edition [10:32:25]line 1.000 * 150.00 [10:32:25]line = 150.00 [10:32:25]line НДС 12% НСП 1% [10:32:26]line > о реализуемом товаре [10:32:26]line ИТОГО: 200.00 [10:32:26]line НСП 1% : 1.77 [10:32:26]line НДС 12% : 21.24 [10:32:26]line Наличными: 200.00 [10:32:26]line Безнал.: 0.00 [10:32:26]line Место: АЗС № 128 "Партнер Нефть" [10:32:26]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:32:26]line СНО: Общий режим [10:32:26]line Чек 39 28.07.2024 10:32 [10:32:26]line Смена: 430 ФФД: 1.0 [10:32:26]line ЗНМ: 0300000045 [10:32:26]line РНМ: 0000000000092655 [10:32:26]line Версия ККМ: 001 [10:32:26]line ФМ: 0000000000874941 [10:32:26]line ФД: 44668 [10:32:26]line ФПД: 221262553955519 [10:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103224&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44668&fm=221262553955519&tin=02508201610067®Number=0000000000092655&sum=20000 [10:32:26]line 0 [10:32:26]OFD Sender: Processing packet 44668 [packets to send 7, broken 6] [10:32:26]ProducePacketName [10:32:26]name=ofd_packets/00044668 [10:32:26]OFD Sender: To server: pG, [10:32:26]CommunicateWithHost lk.salyk.kg:30040 [10:32:26]ConnectInit lk.salyk.kg [10:32:26]written 0, free lines is 4095 [10:32:26]Connected sock=10 [10:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 89 01 00 00 27 1B 81 01 7B 5A 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 38 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7C AE 00 00 35 04 06 00 C9 3C B3 EE 3C BF 1A E3 B6 24 63 66 FB 32 [10:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 DD 15 47 00 BB 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7C AE 00 00 F4 03 04 00 4B CA A5 66 B6 04 01 00 00 B1 BD A3 EB 9F 1E 35 C9 [10:32:26]CommunicateWithHost err = 0 [10:32:26]CheckOFDResponse [10:32:26]1017 (14) - 77093643461234 [10:32:26]1041 (16) - 0000000000874941 [10:32:26]1040 (4) - 44668 [10:32:26]1012 (4) - 28.07.2024 04:34 [10:32:26]1206 (1) - 0 [10:32:26]OFD Sender: Remove packet 44668 [10:32:26]ProducePacketName [10:32:26]name=ofd_packets/00044668 [10:32:26]NVStorageDeleteData [10:32:26]Write to MH i2c: 01 00 00 E7 01 E8 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 07 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 8C 0C 87 [10:32:26]RasterBufferAndPrint [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]written 0, free lines is 3218 [10:32:26]process_action close_receipt done [10:32:26]requested_data is exist [10:32:26]produce_requested_data [10:32:26]requested_item fm.sn is exist - process it [10:32:26]wFMCommunicate request_size=4 [10:32:26]MH_SAM_APDU [10:32:26]CAPDU: 80 11 00 00 [10:32:26]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:26]Read from MH i2c: E2 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: E2 17 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BD [10:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:32:26]wFMCommunicate OK [10:32:26]requested_item fd.num is exist - process it [10:32:26]SAM_PROTO_GetFieldsCounters [10:32:26]wFMCommunicate request_size=4 [10:32:26]MH_SAM_APDU [10:32:26]CAPDU: 80 13 00 00 [10:32:26]Write to MH i2c: E2 08 00 EF 01 80 13 00 00 00 00 00 00 6C [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 62 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 62 00 EF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_GetFieldsCounters done [10:32:27]requested_item shift.num is exist - process it [10:32:27]requested_item shift.opened is exist - process it [10:32:27]req_shift_opened [10:32:27]FM_GetShiftState [10:32:27]SAM_PROTO_GetShiftState [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 13 01 00 [10:32:27]Write to MH i2c: E2 08 00 F0 01 80 13 01 00 00 00 00 00 6E [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 F0 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 07 [10:32:27]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_GetShiftState done [10:32:27]FM_GetShiftState done [10:32:27]req_shift_opened done [10:32:27]requested_item shift.open_date is exist - process it [10:32:27]req_shift_open_date [10:32:27]req_shift_open_date done [10:32:27]produce_requested_data done [10:32:27]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44668,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:32:27]process_action_free close_receipt [10:32:27]json_value_free [10:32:27]json_value_free done [10:32:27]process_json_proto returns [10:32:27]Send response to host [10:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44668,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:32:27]free response buf [10:32:27]execute_script done [10:32:27]execute_script returns [10:32:27]free content buf [10:32:27]Sock 7.Close socket [10:32:27]Sock 7.Thread stoped [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:28]accept exits with 9 [10:33:28]New connection [10:33:28]New thread 3067243876 created [10:33:28]Thread 3067100516 joined [10:33:28]Waiting for new connection... [10:33:28] Sock 9.Parse request [10:33:28]Sock 9.Check first char [10:33:28]Sock 9.First char is OK [10:33:28]request: POST /json_proto HTTP/1.0 [10:33:28]Method: POST [10:33:28]URL: /json_proto [10:33:28]Method is POST - this is cgi request [10:33:28]url: /json_proto [10:33:28]query_string will be loaded in cgi processing [10:33:28]execute_cgi json_proto POST (null) [10:33:28]execute_cgi path=json_proto method=POST [10:33:28]POST find Content-Length [10:33:28]Host: 172.17.45.196:8080 [10:33:28]Content-Length: 677 [10:33:28]Content-Type: application/json [10:33:28] [10:33:28]POST finish read [10:33:28]Found Content-Length = 677 [10:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:28]execute_script... [10:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:28]POST & json_proto [10:33:28]process_json_proto [10:33:28]json parsed OK: [10:33:28]protocol is kg_v1.0 [10:33:28]action value=close_receipt [10:33:28]process_action close_receipt [10:33:28]cmd_close_receipt [10:33:28]MH_GetDate [10:33:28]Write to MH i2c: F0 00 00 F1 01 E1 [10:33:28]Write i2c OK [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 09 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 09 00 F1 01 00 78 1E A6 66 BB 03 A5 66 55 [10:33:28]GetLastDocTimeStamp 1722162744 [10:33:28]current date 1722162808 [10:33:28]FM_GetShiftState [10:33:28]SAM_PROTO_GetShiftState [10:33:28]wFMCommunicate request_size=4 [10:33:28]MH_SAM_APDU [10:33:28]CAPDU: 80 13 01 00 [10:33:28]Write to MH i2c: E2 08 00 F2 01 80 13 01 00 00 00 00 00 70 [10:33:28]Write i2c OK [10:33:28]MH_I2C_Read... [10:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:28]Read from MH i2c: E2 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 F2 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 09 [10:33:28]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:33:28]wFMCommunicate OK [10:33:28]SAM_PROTO_GetShiftState done [10:33:28]FM_GetShiftState done [10:33:28]opened in 1722126323 [10:33:28]opened+sec_in_day 1722212723 [10:33:28]quantity*price = 50036 [10:33:28]sum+1 = 50037 [10:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 40 28.07.2024 10:33 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44669 ФПД: 14499243724489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103328&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44669&fm=14499243724489&tin=02508201610067®Number=0000000000092655&sum=50000 [10:33:29]StoreToDocumentArchive [10:33:29]shift 430 fd 44669 [10:33:29]save to /storage/0430/doc_00044669 [10:33:29]save last doc name /storage/0430/doc_00044669 to /storage/kkm_last_doc_name [10:33:29]save OK [10:33:29]Clear old archive folders... [10:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:29]tlvbuf is 011A5FC0 [10:33:29]SAM_PROTO_ClearQueue [10:33:29]wFMCommunicate request_size=4 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 09 00 00 [10:33:29]Write to MH i2c: E2 08 00 FF 01 80 09 00 00 00 00 00 00 72 [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [10:33:29]RAPDU: 90 00 [10:33:29]wFMCommunicate OK [10:33:29]SAM_PROTO_ClearQueue done [10:33:29]KKMCreateOFDPacket [10:33:29]OFDProtocolAddRootSTLVToBuf [10:33:29]FM_MakeSignedData [10:33:29]FM_MakeSignedData [10:33:29]SAM_PROTO_SignData [10:33:29]wFMCommunicate request_size=4 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 0D 01 02 [10:33:29]Write to MH i2c: E2 08 00 00 02 80 0D 01 02 00 00 00 00 7B [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [10:33:29]RAPDU: 90 00 [10:33:29]wFMCommunicate OK [10:33:29]wFMCommunicate request_size=255 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 78 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7D AE 00 00 35 04 06 00 0D [10:33:29]Write to MH i2c: E2 02 01 01 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 78 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7D AE 00 00 35 04 06 00 0D 00 00 AB [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [10:33:29]RAPDU: 90 00 [10:33:29]wFMCommunicate OK [10:33:29]wFMCommunicate request_size=10 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 0D 02 02 05 2F DE 45 8E C9 [10:33:29]Write to MH i2c: E2 0D 00 02 02 80 0D 02 02 05 00 2F DE 45 8E C9 00 00 31 [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [10:33:29]RAPDU: 90 00 [10:33:29]wFMCommunicate OK [10:33:29]wFMCommunicate request_size=4 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 0D 03 02 [10:33:29]Write to MH i2c: E2 08 00 03 02 80 0D 03 02 00 00 00 00 80 [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 0B 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 0B 00 03 02 00 6B 0E 85 9E 36 88 F1 FC 90 00 C8 [10:33:29]RAPDU: 6B 0E 85 9E 36 88 F1 FC 90 00 [10:33:29]wFMCommunicate OK [10:33:29]SAM_PROTO_SignData done [10:33:29]FM_MakeSignedData done [10:33:29]CreateOFDProtocolMessage [10:33:29]wFMCommunicate request_size=4 [10:33:29]MH_SAM_APDU [10:33:29]CAPDU: 80 11 00 00 [10:33:29]Write to MH i2c: E2 08 00 04 02 80 11 00 00 00 00 00 00 80 [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:29]Read from MH i2c: E2 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 17 00 [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: E2 17 00 04 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D4 [10:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:33:29]wFMCommunicate OK [10:33:29]CreateOFDProtocolMessage done [10:33:29]OFDSenderStorePacket 44669 [10:33:29]StoreOFDPacket docnum=44669 [10:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0F 01 00 00 C0 3E 07 01 DD 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 78 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7D AE 00 00 35 04 06 00 0D 2F DE 45 8E C9 6B 0E 85 9E 36 88 F1 FC [10:33:29]CheckFolder [10:33:29]dirname=/storage/ofd_packets [10:33:29]CheckFolder done [10:33:29]ProducePacketName [10:33:29]name=ofd_packets/00044669 [10:33:29]NVStorageSaveData ofd_packets/00044669 [10:33:29]File name is /storage/ofd_packets/00044669 [10:33:29]Write 301 bytes [10:33:29]NVStorageSaveData done [10:33:29]OFDSenderStorePacket done [10:33:29]KKMCreateOFDPacket done [10:33:29]NVStorageSaveData kkm_last_timestamp [10:33:29]File name is /storage/kkm_last_timestamp [10:33:29]Write 4 bytes [10:33:29]NVStorageSaveData done [10:33:29]ExternCall_PrintAddStr [10:33:29]wPrintStart [10:33:29]Write to MH i2c: 01 00 00 05 02 07 [10:33:29]Write i2c OK [10:33:29]MH_I2C_Read... [10:33:29]Read from MH i2c: 01 [10:33:29]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 FF 0F 1C [10:33:30]RasterBufferAndPrint [10:33:30]line Счет N : (1)116122 [10:33:30]line ИНН: 02508201610067 [10:33:30]line Контрольно-Кассовый Чек [10:33:30]line ПРОДАЖА [10:33:30]line ТРК (МРК, ГНК) : 32 [10:33:30]line Товар: 2710124130 [10:33:30]line Аи-92-К-2 [10:33:30]line 7.380 * 67.80 [10:33:30]line = 500.36 [10:33:30]line НДС 12% НСП 1% [10:33:30]line > о реализуемом товаре [10:33:30]line ОКРУГЛЕНИЕ: -0.36 [10:33:30]line ИТОГО: 500.00 [10:33:30]line Внесено: 500.00 [10:33:30]line СДАЧА: 0.00 [10:33:30]line НСП 1% : 4.43 [10:33:30]line НДС 12% : 53.14 [10:33:30]line Наличными: 500.00 [10:33:30]line Безнал.: 0.00 [10:33:30]line Место: АЗС № 128 "Партнер Нефть" [10:33:30]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:33:30]line СНО: Общий режим [10:33:30]line Чек 40 28.07.2024 10:33 [10:33:30]line Смена: 430 ФФД: 1.0 [10:33:30]line ЗНМ: 0300000045 [10:33:30]line РНМ: 0000000000092655 [10:33:30]line Версия ККМ: 001 [10:33:30]line ФМ: 0000000000874941 [10:33:30]line ФД: 44669 [10:33:30]line ФПД: 14499243724489 [10:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103328&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44669&fm=14499243724489&tin=02508201610067®Number=0000000000092655&sum=50000 [10:33:30]written 0, free lines is 4095 [10:33:30]OFD Sender: Processing packet 44669 [packets to send 7, broken 6] [10:33:30]ProducePacketName [10:33:30]name=ofd_packets/00044669 [10:33:30]OFD Sender: To server: pG, [10:33:30]CommunicateWithHost lk.salyk.kg:30040 [10:33:30]ConnectInit lk.salyk.kg [10:33:30]Connected sock=11 [10:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0F 01 00 00 C0 3E 07 01 DD 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 78 1E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7D AE 00 00 35 04 06 00 0D 2F DE 45 8E C9 6B 0E 85 9E 36 88 F1 FC [10:33:30]Write to MH i2c: 01 00 00 30 02 32 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 DD 0C 22 [10:33:30]RasterBufferAndPrint [10:33:30]line [10:33:30]line [10:33:30]line [10:33:30]line [10:33:30]line [10:33:30]written 0, free lines is 3299 [10:33:30]process_action close_receipt done [10:33:30]requested_data is exist [10:33:30]produce_requested_data [10:33:30]requested_item fm.sn is exist - process it [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 11 00 00 [10:33:30]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 17 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 07 [10:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:33:30]wFMCommunicate OK [10:33:30]requested_item fd.num is exist - process it [10:33:30]SAM_PROTO_GetFieldsCounters [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 13 00 00 [10:33:30]Write to MH i2c: E2 08 00 38 02 80 13 00 00 00 00 00 00 B6 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 C2 55 47 00 AF 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7D AE 00 00 F4 03 04 00 8B CA A5 66 B6 04 01 00 00 4A 87 9E 1D 19 9F 2D 8D [10:33:30]CommunicateWithHost err = 0 [10:33:30]CheckOFDResponse [10:33:30]1017 (14) - 77093643461234 [10:33:30]1041 (16) - 0000000000874941 [10:33:30]1040 (4) - 44669 [10:33:30]1012 (4) - 28.07.2024 04:35 [10:33:30]1206 (1) - 0 [10:33:30]OFD Sender: Remove packet 44669 [10:33:30]ProducePacketName [10:33:30]name=ofd_packets/00044669 [10:33:30]NVStorageDeleteData [10:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 62 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 62 00 38 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [10:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:31]wFMCommunicate OK [10:33:31]SAM_PROTO_GetFieldsCounters done [10:33:31]requested_item shift.num is exist - process it [10:33:31]requested_item shift.opened is exist - process it [10:33:31]req_shift_opened [10:33:31]FM_GetShiftState [10:33:31]SAM_PROTO_GetShiftState [10:33:31]wFMCommunicate request_size=4 [10:33:31]MH_SAM_APDU [10:33:31]CAPDU: 80 13 01 00 [10:33:31]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:31]Read from MH i2c: E2 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 0E 00 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 51 [10:33:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:33:31]wFMCommunicate OK [10:33:31]SAM_PROTO_GetShiftState done [10:33:31]FM_GetShiftState done [10:33:31]req_shift_opened done [10:33:31]requested_item shift.open_date is exist - process it [10:33:31]req_shift_open_date [10:33:31]req_shift_open_date done [10:33:31]produce_requested_data done [10:33:31]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44669,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:33:31]process_action_free close_receipt [10:33:31]json_value_free [10:33:31]json_value_free done [10:33:31]process_json_proto returns [10:33:31]Send response to host [10:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44669,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:33:31]free response buf [10:33:31]execute_script done [10:33:31]execute_script returns [10:33:31]free content buf [10:33:31]Sock 9.Close socket [10:33:31]Sock 9.Thread stoped [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:49]accept exits with 7 [10:38:49]New connection [10:38:49]New thread 3067100516 created [10:38:49]Thread 3067243876 joined [10:38:49]Waiting for new connection... [10:38:49] Sock 7.Parse request [10:38:49]Sock 7.Check first char [10:38:49]Sock 7.First char is OK [10:38:49]request: POST /json_proto HTTP/1.0 [10:38:49]Method: POST [10:38:49]URL: /json_proto [10:38:49]Method is POST - this is cgi request [10:38:49]url: /json_proto [10:38:49]query_string will be loaded in cgi processing [10:38:49]execute_cgi json_proto POST (null) [10:38:49]execute_cgi path=json_proto method=POST [10:38:49]POST find Content-Length [10:38:49]Host: 172.17.45.196:8080 [10:38:49]Content-Length: 837 [10:38:49]Content-Type: application/json [10:38:49] [10:38:49]POST finish read [10:38:49]Found Content-Length = 837 [10:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14561", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:49]execute_script... [10:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14561", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:49]POST & json_proto [10:38:49]process_json_proto [10:38:49]json parsed OK: [10:38:49]protocol is kg_v1.0 [10:38:49]action value=close_receipt [10:38:49]process_action close_receipt [10:38:49]cmd_close_receipt [10:38:49]MH_GetDate [10:38:49]Write to MH i2c: F0 00 00 3A 02 2B [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 09 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 09 00 3A 02 00 B9 1F A6 66 BB 03 A5 66 E1 [10:38:49]GetLastDocTimeStamp 1722162808 [10:38:49]current date 1722163129 [10:38:49]FM_GetShiftState [10:38:49]SAM_PROTO_GetShiftState [10:38:49]wFMCommunicate request_size=4 [10:38:49]MH_SAM_APDU [10:38:49]CAPDU: 80 13 01 00 [10:38:49]Write to MH i2c: E2 08 00 3B 02 80 13 01 00 00 00 00 00 BA [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:49]Read from MH i2c: E2 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: E2 0E 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: E2 0E 00 3B 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 53 [10:38:49]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:38:49]wFMCommunicate OK [10:38:49]SAM_PROTO_GetShiftState done [10:38:49]FM_GetShiftState done [10:38:49]opened in 1722126323 [10:38:49]opened+sec_in_day 1722212723 [10:38:49]quantity*price = 5000 [10:38:49]sum+1 = 5001 [10:38:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 41 28.07.2024 10:38 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44670 ФПД: 101162571047249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103850&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44670&fm=101162571047249&tin=02508201610067®Number=0000000000092655&sum=9500 0 [10:38:50]StoreToDocumentArchive [10:38:50]shift 430 fd 44670 [10:38:50]save to /storage/0430/doc_00044670 [10:38:50]save last doc name /storage/0430/doc_00044670 to /storage/kkm_last_doc_name [10:38:50]save OK [10:38:50]Clear old archive folders... [10:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=365 [10:38:50]tlvbuf is 01181640 [10:38:50]SAM_PROTO_ClearQueue [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 09 00 00 [10:38:50]Write to MH i2c: E2 08 00 48 02 80 09 00 00 00 00 00 00 BC [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [10:38:50]RAPDU: 90 00 [10:38:50]wFMCommunicate OK [10:38:50]SAM_PROTO_ClearQueue done [10:38:50]KKMCreateOFDPacket [10:38:50]OFDProtocolAddRootSTLVToBuf [10:38:50]FM_MakeSignedData [10:38:50]FM_MakeSignedData [10:38:50]SAM_PROTO_SignData [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 0D 01 02 [10:38:50]Write to MH i2c: E2 08 00 49 02 80 0D 01 02 00 00 00 00 C4 [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [10:38:50]RAPDU: 90 00 [10:38:50]wFMCommunicate OK [10:38:50]wFMCommunicate request_size=255 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [10:38:50]Write to MH i2c: E2 02 01 4A 02 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 84 [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [10:38:50]RAPDU: 90 00 [10:38:50]wFMCommunicate OK [10:38:50]wFMCommunicate request_size=124 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 0D 02 02 77 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BA 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7E AE 00 00 35 04 06 00 5C 01 BF 1C A1 51 [10:38:50]Write to MH i2c: E2 7F 00 4B 02 80 0D 02 02 77 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BA 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7E AE 00 00 35 04 06 00 5C 01 BF 1C A1 51 00 00 3A [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [10:38:51]RAPDU: 90 00 [10:38:51]wFMCommunicate OK [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 0D 03 02 [10:38:51]Write to MH i2c: E2 08 00 4C 02 80 0D 03 02 00 00 00 00 C9 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0B 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0B 00 4C 02 00 D4 41 D6 E6 83 11 63 D3 90 00 65 [10:38:51]RAPDU: D4 41 D6 E6 83 11 63 D3 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_SignData done [10:38:51]FM_MakeSignedData done [10:38:51]CreateOFDProtocolMessage [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 11 00 00 [10:38:51]Write to MH i2c: E2 08 00 4D 02 80 11 00 00 00 00 00 00 C9 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 4D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1D [10:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:38:51]wFMCommunicate OK [10:38:51]CreateOFDProtocolMessage done [10:38:51]OFDSenderStorePacket 44670 [10:38:51]StoreOFDPacket docnum=44670 [10:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 81 01 00 00 55 E3 79 01 C1 82 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BA 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7E AE 00 00 35 04 06 00 5C 01 BF 1C A1 51 D4 41 D6 E6 83 11 63 D3 [10:38:51]CheckFolder [10:38:51]dirname=/storage/ofd_packets [10:38:51]CheckFolder done [10:38:51]ProducePacketName [10:38:51]name=ofd_packets/00044670 [10:38:51]NVStorageSaveData ofd_packets/00044670 [10:38:51]File name is /storage/ofd_packets/00044670 [10:38:51]Write 415 bytes [10:38:51]NVStorageSaveData done [10:38:51]OFDSenderStorePacket done [10:38:51]KKMCreateOFDPacket done [10:38:51]NVStorageSaveData kkm_last_timestamp [10:38:51]File name is /storage/kkm_last_timestamp [10:38:51]Write 4 bytes [10:38:51]NVStorageSaveData done [10:38:51]ExternCall_PrintAddStr [10:38:51]wPrintStart [10:38:51]Write to MH i2c: 01 00 00 4E 02 50 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 4E 02 00 00 00 00 00 FF 0F 65 [10:38:51]RasterBufferAndPrint [10:38:51]line Счет N : (3)14561 [10:38:51]line ИНН: 02508201610067 [10:38:51]line Контрольно-Кассовый Чек [10:38:51]line ПРОДАЖА [10:38:51]line Товар: 4700000160358 [10:38:51]line Вода Легенда 1л [10:38:51]line 1.000 * 50.00 [10:38:51]line = 50.00 [10:38:51]line НДС 12% НСП 1% [10:38:51]line > о реализуемом товаре [10:38:51]line Товар: 46141538 [10:38:51]line Р/ж Orbit Bubblemint 13,6г [10:38:51]line 1.000 * 45.00 [10:38:51]line = 45.00 [10:38:51]line НДС 12% НСП 1% [10:38:51]line > о реализуемом товаре [10:38:51]line ИТОГО: 95.00 [10:38:51]line НСП 1% : 0.84 [10:38:51]line НДС 12% : 10.09 [10:38:51]line Наличными: 95.00 [10:38:51]line Безнал.: 0.00 [10:38:51]line Место: АЗС № 128 "Партнер Нефть" [10:38:51]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:38:51]line СНО: Общий режим [10:38:51]line Чек 41 28.07.2024 10:38 [10:38:51]line Смена: 430 ФФД: 1.0 [10:38:51]line ЗНМ: 0300000045 [10:38:51]line РНМ: 0000000000092655 [10:38:51]line Версия ККМ: 001 [10:38:51]line ФМ: 0000000000874941 [10:38:51]line ФД: 44670 [10:38:51]line ФПД: 101162571047249 [10:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103850&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44670&fm=101162571047249&tin=02508201610067®Number=0000000000092655&sum=9500 [10:38:51]line 0 [10:38:51]OFD Sender: Processing packet 44670 [packets to send 7, broken 6] [10:38:51]ProducePacketName [10:38:51]name=ofd_packets/00044670 [10:38:51]OFD Sender: To server: pG, [10:38:51]CommunicateWithHost lk.salyk.kg:30040 [10:38:51]ConnectInit lk.salyk.kg [10:38:51]written 0, free lines is 4095 [10:38:51]Connected sock=11 [10:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 81 01 00 00 55 E3 79 01 C1 82 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 BA 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7E AE 00 00 35 04 06 00 5C 01 BF 1C A1 51 D4 41 D6 E6 83 11 63 D3 [10:38:52]Write to MH i2c: 01 00 00 7C 02 7E [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 07 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 A1 0C 32 [10:38:52]RasterBufferAndPrint [10:38:52]line [10:38:52]line [10:38:52]line [10:38:52]line [10:38:52]line [10:38:52]written 0, free lines is 3238 [10:38:52]process_action close_receipt done [10:38:52]requested_data is exist [10:38:52]produce_requested_data [10:38:52]requested_item fm.sn is exist - process it [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 11 00 00 [10:38:52]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 17 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 53 [10:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:38:52]wFMCommunicate OK [10:38:52]requested_item fd.num is exist - process it [10:38:52]SAM_PROTO_GetFieldsCounters [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 13 00 00 [10:38:52]Write to MH i2c: E2 08 00 84 02 80 13 00 00 00 00 00 00 02 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 DB 08 47 00 D9 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7E AE 00 00 F4 03 04 00 CD CB A5 66 B6 04 01 00 00 30 C7 F8 7C F0 BE 2B 06 [10:38:52]CommunicateWithHost err = 0 [10:38:52]CheckOFDResponse [10:38:52]1017 (14) - 77093643461234 [10:38:52]1041 (16) - 0000000000874941 [10:38:52]1040 (4) - 44670 [10:38:52]1012 (4) - 28.07.2024 04:40 [10:38:52]1206 (1) - 0 [10:38:52]OFD Sender: Remove packet 44670 [10:38:52]ProducePacketName [10:38:52]name=ofd_packets/00044670 [10:38:52]NVStorageDeleteData [10:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 62 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 62 00 84 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_GetFieldsCounters done [10:38:52]requested_item shift.num is exist - process it [10:38:52]requested_item shift.opened is exist - process it [10:38:52]req_shift_opened [10:38:52]FM_GetShiftState [10:38:52]SAM_PROTO_GetShiftState [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 13 01 00 [10:38:52]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 9D [10:38:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_GetShiftState done [10:38:52]FM_GetShiftState done [10:38:52]req_shift_opened done [10:38:52]requested_item shift.open_date is exist - process it [10:38:52]req_shift_open_date [10:38:52]req_shift_open_date done [10:38:52]produce_requested_data done [10:38:52]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44670,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:38:52]process_action_free close_receipt [10:38:52]json_value_free [10:38:52]json_value_free done [10:38:52]process_json_proto returns [10:38:52]Send response to host [10:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44670,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:38:52]free response buf [10:38:52]execute_script done [10:38:52]execute_script returns [10:38:52]free content buf [10:38:52]Sock 7.Close socket [10:38:52]Sock 7.Thread stoped [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]accept exits with 9 [10:39:47]New connection [10:39:47]New thread 3067243876 created [10:39:47]Thread 3067100516 joined [10:39:47]Waiting for new connection... [10:39:47] Sock 9.Parse request [10:39:47]Sock 9.Check first char [10:39:47]Sock 9.First char is OK [10:39:47]request: POST /json_proto HTTP/1.0 [10:39:47]Method: POST [10:39:47]URL: /json_proto [10:39:47]Method is POST - this is cgi request [10:39:47]url: /json_proto [10:39:47]query_string will be loaded in cgi processing [10:39:47]execute_cgi json_proto POST (null) [10:39:47]execute_cgi path=json_proto method=POST [10:39:47]POST find Content-Length [10:39:47]Host: 172.17.45.196:8080 [10:39:47]Content-Length: 645 [10:39:47]Content-Type: application/json [10:39:47] [10:39:47]POST finish read [10:39:47]Found Content-Length = 645 [10:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14562", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:47]execute_script... [10:39:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14562", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:47]POST & json_proto [10:39:47]process_json_proto [10:39:47]json parsed OK: [10:39:47]protocol is kg_v1.0 [10:39:47]action value=close_receipt [10:39:47]process_action close_receipt [10:39:47]cmd_close_receipt [10:39:47]MH_GetDate [10:39:47]Write to MH i2c: F0 00 00 86 02 77 [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: F0 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: F0 09 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: F0 09 00 86 02 00 F3 1F A6 66 BB 03 A5 66 67 [10:39:47]GetLastDocTimeStamp 1722163130 [10:39:47]current date 1722163187 [10:39:47]FM_GetShiftState [10:39:47]SAM_PROTO_GetShiftState [10:39:47]wFMCommunicate request_size=4 [10:39:47]MH_SAM_APDU [10:39:47]CAPDU: 80 13 01 00 [10:39:47]Write to MH i2c: E2 08 00 87 02 80 13 01 00 00 00 00 00 06 [10:39:47]Write i2c OK [10:39:47]MH_I2C_Read... [10:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:47]Read from MH i2c: E2 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 0E 00 [10:39:47]MH_I2C_Read... [10:39:47]Read from MH i2c: E2 0E 00 87 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 9F [10:39:47]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:39:47]wFMCommunicate OK [10:39:47]SAM_PROTO_GetShiftState done [10:39:47]FM_GetShiftState done [10:39:47]opened in 1722126323 [10:39:47]opened+sec_in_day 1722212723 [10:39:47]quantity*price = 13000 [10:39:47]sum+1 = 13001 [10:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 42 28.07.2024 10:39 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44671 ФПД: 272687606069537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103947&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44671&fm=272687606069537&tin=02508201610067®Number=0000000000092655&sum=13000 0 [10:39:48]StoreToDocumentArchive [10:39:48]shift 430 fd 44671 [10:39:48]save to /storage/0430/doc_00044671 [10:39:48]save last doc name /storage/0430/doc_00044671 to /storage/kkm_last_doc_name [10:39:48]save OK [10:39:48]Clear old archive folders... [10:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:39:48]tlvbuf is 011A12E0 [10:39:48]SAM_PROTO_ClearQueue [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 09 00 00 [10:39:48]Write to MH i2c: E2 08 00 94 02 80 09 00 00 00 00 00 00 08 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_ClearQueue done [10:39:48]KKMCreateOFDPacket [10:39:48]OFDProtocolAddRootSTLVToBuf [10:39:48]FM_MakeSignedData [10:39:48]FM_MakeSignedData [10:39:48]SAM_PROTO_SignData [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 01 02 [10:39:48]Write to MH i2c: E2 08 00 95 02 80 0D 01 02 00 00 00 00 10 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=255 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 [10:39:48]Write to MH i2c: E2 02 01 96 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 00 00 18 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=41 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7F AE 00 00 35 04 06 00 F8 02 07 E4 F9 21 [10:39:48]Write to MH i2c: E2 2C 00 97 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7F AE 00 00 35 04 06 00 F8 02 07 E4 F9 21 00 00 0F [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [10:39:48]RAPDU: 90 00 [10:39:48]wFMCommunicate OK [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 0D 03 02 [10:39:48]Write to MH i2c: E2 08 00 98 02 80 0D 03 02 00 00 00 00 15 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0B 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0B 00 98 02 00 B5 73 3A 59 46 D6 5B 83 90 00 CB [10:39:48]RAPDU: B5 73 3A 59 46 D6 5B 83 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_SignData done [10:39:48]FM_MakeSignedData done [10:39:48]CreateOFDProtocolMessage [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 11 00 00 [10:39:48]Write to MH i2c: E2 08 00 99 02 80 11 00 00 00 00 00 00 15 [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 17 00 99 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 69 [10:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:39:48]wFMCommunicate OK [10:39:48]CreateOFDProtocolMessage done [10:39:48]OFDSenderStorePacket 44671 [10:39:48]StoreOFDPacket docnum=44671 [10:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2E 01 00 00 C8 36 26 01 18 F7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7F AE 00 00 35 04 06 00 F8 02 07 E4 F9 21 B5 73 3A 59 46 D6 5B 83 [10:39:48]CheckFolder [10:39:48]dirname=/storage/ofd_packets [10:39:48]CheckFolder done [10:39:48]ProducePacketName [10:39:48]name=ofd_packets/00044671 [10:39:48]NVStorageSaveData ofd_packets/00044671 [10:39:48]File name is /storage/ofd_packets/00044671 [10:39:48]Write 332 bytes [10:39:48]NVStorageSaveData done [10:39:48]OFDSenderStorePacket done [10:39:48]KKMCreateOFDPacket done [10:39:48]NVStorageSaveData kkm_last_timestamp [10:39:48]File name is /storage/kkm_last_timestamp [10:39:48]Write 4 bytes [10:39:48]NVStorageSaveData done [10:39:48]ExternCall_PrintAddStr [10:39:48]wPrintStart [10:39:48]Write to MH i2c: 01 00 00 9A 02 9C [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 07 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [10:39:48]RasterBufferAndPrint [10:39:48]line Счет N : (3)14562 [10:39:48]line ИНН: 02508201610067 [10:39:48]line Контрольно-Кассовый Чек [10:39:48]line ПРОДАЖА [10:39:48]line Товар: 2000036220012 [10:39:48]line Кофе Капучино XL(GABB TRADE) [10:39:48]line 1.000 * 130.00 [10:39:48]line = 130.00 [10:39:48]line НДС 12% НСП 1% [10:39:48]line > о реализуемом товаре [10:39:48]line ИТОГО: 130.00 [10:39:48]line НСП 1% : 1.15 [10:39:48]line НДС 12% : 13.80 [10:39:48]line Наличными: 130.00 [10:39:48]line Безнал.: 0.00 [10:39:48]line Место: АЗС № 128 "Партнер Нефть" [10:39:48]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:39:48]line СНО: Общий режим [10:39:48]line Чек 42 28.07.2024 10:39 [10:39:48]line Смена: 430 ФФД: 1.0 [10:39:48]line ЗНМ: 0300000045 [10:39:48]line РНМ: 0000000000092655 [10:39:48]line Версия ККМ: 001 [10:39:48]line ФМ: 0000000000874941 [10:39:48]line ФД: 44671 [10:39:48]line ФПД: 272687606069537 [10:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T103947&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44671&fm=272687606069537&tin=02508201610067®Number=0000000000092655&sum=13000 [10:39:49]line 0 [10:39:49]OFD Sender: Processing packet 44671 [packets to send 7, broken 6] [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00044671 [10:39:49]OFD Sender: To server: pG, [10:39:49]CommunicateWithHost lk.salyk.kg:30040 [10:39:49]ConnectInit lk.salyk.kg [10:39:49]written 0, free lines is 4095 [10:39:49]Connected sock=10 [10:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2E 01 00 00 C8 36 26 01 18 F7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 1F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7F AE 00 00 35 04 06 00 F8 02 07 E4 F9 21 B5 73 3A 59 46 D6 5B 83 [10:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 7B EC 47 00 8B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 7F AE 00 00 F4 03 04 00 06 CC A5 66 B6 04 01 00 00 9F 14 C0 86 A7 46 84 FE [10:39:49]CommunicateWithHost err = 0 [10:39:49]CheckOFDResponse [10:39:49]1017 (14) - 77093643461234 [10:39:49]1041 (16) - 0000000000874941 [10:39:49]1040 (4) - 44671 [10:39:49]1012 (4) - 28.07.2024 04:41 [10:39:49]1206 (1) - 0 [10:39:49]OFD Sender: Remove packet 44671 [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00044671 [10:39:49]NVStorageDeleteData [10:39:49]Write to MH i2c: 01 00 00 C3 02 C5 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 F1 0C C9 [10:39:49]RasterBufferAndPrint [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]written 0, free lines is 3319 [10:39:49]process_action close_receipt done [10:39:49]requested_data is exist [10:39:49]produce_requested_data [10:39:49]requested_item fm.sn is exist - process it [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 11 00 00 [10:39:49]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 17 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9A [10:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:39:49]wFMCommunicate OK [10:39:49]requested_item fd.num is exist - process it [10:39:49]SAM_PROTO_GetFieldsCounters [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 13 00 00 [10:39:49]Write to MH i2c: E2 08 00 CB 02 80 13 00 00 00 00 00 00 49 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 62 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 62 00 CB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [10:39:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 7F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:49]wFMCommunicate OK [10:39:49]SAM_PROTO_GetFieldsCounters done [10:39:49]requested_item shift.num is exist - process it [10:39:49]requested_item shift.opened is exist - process it [10:39:49]req_shift_opened [10:39:49]FM_GetShiftState [10:39:49]SAM_PROTO_GetShiftState [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 13 01 00 [10:39:49]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 0E 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 E4 [10:39:49]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:39:49]wFMCommunicate OK [10:39:49]SAM_PROTO_GetShiftState done [10:39:49]FM_GetShiftState done [10:39:49]req_shift_opened done [10:39:49]requested_item shift.open_date is exist - process it [10:39:49]req_shift_open_date [10:39:49]req_shift_open_date done [10:39:49]produce_requested_data done [10:39:49]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44671,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:39:49]process_action_free close_receipt [10:39:49]json_value_free [10:39:49]json_value_free done [10:39:49]process_json_proto returns [10:39:49]Send response to host [10:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44671,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:39:49]free response buf [10:39:49]execute_script done [10:39:49]execute_script returns [10:39:49]free content buf [10:39:49]Sock 9.Close socket [10:39:49]Sock 9.Thread stoped [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 CD 02 CF [10:41:57]*** FLAG_PRN_KEY set [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 CD 02 00 08 00 00 00 FF 0F EC [10:41:57]state=0 [10:41:57]Key pressed [10:41:57]Feed [10:41:57]Write to MH i2c: D8 00 00 CE 02 A7 [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 01 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 01 00 CE 02 00 A8 [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 CF 02 D1 [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 CF 02 00 48 00 00 00 3D 00 5D [10:41:57]state=2 [10:41:57]Key pressed [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 D0 02 D2 [10:41:57]*** FLAG_PRN_KEY reset [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 F6 0F DE [10:41:57]state=2 [10:41:57]Stop feed [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 D1 02 D3 [10:41:57]*** FLAG_PRN_KEY set [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 D1 02 00 08 00 00 00 FF 0F F0 [10:41:57]state=0 [10:41:57]Key pressed [10:41:57]Feed [10:41:57]Write to MH i2c: D8 00 00 D2 02 AB [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 01 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: D8 01 00 D2 02 00 AC [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 D3 02 D5 [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 D3 02 00 48 00 00 00 3C 00 60 [10:41:57]state=2 [10:41:57]Key pressed [10:41:57]int [10:41:57]Write to MH i2c: 01 00 00 D4 02 D6 [10:41:57]*** FLAG_PRN_KEY reset [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 [10:41:57]MH_I2C_Read... [10:41:57]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 F5 0F E1 [10:41:57]state=2 [10:41:57]Stop feed [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]accept exits with 7 [10:48:45]New connection [10:48:45]New thread 3067100516 created [10:48:45]Thread 3067243876 joined [10:48:45]Waiting for new connection... [10:48:45] Sock 7.Parse request [10:48:45]Sock 7.Check first char [10:48:45]Sock 7.First char is OK [10:48:45]request: POST /json_proto HTTP/1.0 [10:48:45]Method: POST [10:48:45]URL: /json_proto [10:48:45]Method is POST - this is cgi request [10:48:45]url: /json_proto [10:48:45]query_string will be loaded in cgi processing [10:48:45]execute_cgi json_proto POST (null) [10:48:45]execute_cgi path=json_proto method=POST [10:48:45]POST find Content-Length [10:48:45]Host: 172.17.45.196:8080 [10:48:45]Content-Length: 697 [10:48:45]Content-Type: application/json [10:48:45] [10:48:45]POST finish read [10:48:45]Found Content-Length = 697 [10:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14563", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:45]execute_script... [10:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14563", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:45]POST & json_proto [10:48:45]process_json_proto [10:48:45]json parsed OK: [10:48:45]protocol is kg_v1.0 [10:48:45]action value=close_receipt [10:48:45]process_action close_receipt [10:48:45]cmd_close_receipt [10:48:45]MH_GetDate [10:48:45]Write to MH i2c: F0 00 00 D5 02 C6 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 09 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: F0 09 00 D5 02 00 0D 22 A6 66 BB 03 A5 66 D3 [10:48:45]GetLastDocTimeStamp 1722163187 [10:48:45]current date 1722163725 [10:48:45]FM_GetShiftState [10:48:45]SAM_PROTO_GetShiftState [10:48:45]wFMCommunicate request_size=4 [10:48:45]MH_SAM_APDU [10:48:45]CAPDU: 80 13 01 00 [10:48:45]Write to MH i2c: E2 08 00 D6 02 80 13 01 00 00 00 00 00 55 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:45]Read from MH i2c: E2 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 0E 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: E2 0E 00 D6 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 EE [10:48:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:48:45]wFMCommunicate OK [10:48:45]SAM_PROTO_GetShiftState done [10:48:45]FM_GetShiftState done [10:48:45]opened in 1722126323 [10:48:45]opened+sec_in_day 1722212723 [10:48:45]quantity*price = 10000 [10:48:45]sum+1 = 10001 [10:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 43 28.07.2024 10:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44672 ФПД: 100997378116211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104845&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44672&fm=100997378116211&tin=02508201610067®Number=0000000000092655&sum=10000 0 [10:48:46]StoreToDocumentArchive [10:48:46]shift 430 fd 44672 [10:48:46]save to /storage/0430/doc_00044672 [10:48:46]save last doc name /storage/0430/doc_00044672 to /storage/kkm_last_doc_name [10:48:46]save OK [10:48:46]Clear old archive folders... [10:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=298 [10:48:46]tlvbuf is 01183B80 [10:48:46]SAM_PROTO_ClearQueue [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 09 00 00 [10:48:46]Write to MH i2c: E2 08 00 E3 02 80 09 00 00 00 00 00 00 57 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [10:48:46]RAPDU: 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_ClearQueue done [10:48:46]KKMCreateOFDPacket [10:48:46]OFDProtocolAddRootSTLVToBuf [10:48:46]FM_MakeSignedData [10:48:46]FM_MakeSignedData [10:48:46]SAM_PROTO_SignData [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 0D 01 02 [10:48:46]Write to MH i2c: E2 08 00 E4 02 80 0D 01 02 00 00 00 00 5F [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [10:48:46]RAPDU: 90 00 [10:48:46]wFMCommunicate OK [10:48:46]wFMCommunicate request_size=255 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0D 22 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [10:48:46]Write to MH i2c: E2 02 01 E5 02 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0D 22 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 DD [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [10:48:46]RAPDU: 90 00 [10:48:46]wFMCommunicate OK [10:48:46]wFMCommunicate request_size=57 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 80 AE 00 00 35 04 06 00 5B DB 48 D8 8A 73 [10:48:46]Write to MH i2c: E2 3C 00 E6 02 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 80 AE 00 00 35 04 06 00 5B DB 48 D8 8A 73 00 00 A3 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [10:48:46]RAPDU: 90 00 [10:48:46]wFMCommunicate OK [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 0D 03 02 [10:48:46]Write to MH i2c: E2 08 00 E7 02 80 0D 03 02 00 00 00 00 64 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0B 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0B 00 E7 02 00 96 CE EB BC 94 3F 6C FF 90 00 AE [10:48:46]RAPDU: 96 CE EB BC 94 3F 6C FF 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_SignData done [10:48:46]FM_MakeSignedData done [10:48:46]CreateOFDProtocolMessage [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 11 00 00 [10:48:46]Write to MH i2c: E2 08 00 E8 02 80 11 00 00 00 00 00 00 64 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 E8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B8 [10:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:48:47]wFMCommunicate OK [10:48:47]CreateOFDProtocolMessage done [10:48:47]OFDSenderStorePacket 44672 [10:48:47]StoreOFDPacket docnum=44672 [10:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 F1 1A 36 01 FA 4B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0D 22 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 80 AE 00 00 35 04 06 00 5B DB 48 D8 8A 73 96 CE EB BC 94 3F 6C FF [10:48:47]CheckFolder [10:48:47]dirname=/storage/ofd_packets [10:48:47]CheckFolder done [10:48:47]ProducePacketName [10:48:47]name=ofd_packets/00044672 [10:48:47]NVStorageSaveData ofd_packets/00044672 [10:48:47]File name is /storage/ofd_packets/00044672 [10:48:47]Write 348 bytes [10:48:47]NVStorageSaveData done [10:48:47]OFDSenderStorePacket done [10:48:47]KKMCreateOFDPacket done [10:48:47]NVStorageSaveData kkm_last_timestamp [10:48:47]File name is /storage/kkm_last_timestamp [10:48:47]Write 4 bytes [10:48:47]NVStorageSaveData done [10:48:47]ExternCall_PrintAddStr [10:48:47]wPrintStart [10:48:47]Write to MH i2c: 01 00 00 E9 02 EB [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [10:48:47]RasterBufferAndPrint [10:48:47]line Счет N : (3)14563 [10:48:47]line ИНН: 02508201610067 [10:48:47]line Контрольно-Кассовый Чек [10:48:47]line ПРОДАЖА [10:48:47]line Товар: 4870001571528 [10:48:47]line Вода ASU пит н.газ персик ПЭТ 1,0 л [10:48:47]line 1.000 * 100.00 [10:48:47]line = 100.00 [10:48:47]line НДС 12% НСП 1% [10:48:47]line > о реализуемом товаре [10:48:47]line ИТОГО: 100.00 [10:48:47]line НСП 1% : 0.88 [10:48:47]line НДС 12% : 10.62 [10:48:47]line Наличными: 100.00 [10:48:47]line Безнал.: 0.00 [10:48:47]line Место: АЗС № 128 "Партнер Нефть" [10:48:47]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:48:47]line СНО: Общий режим [10:48:47]line Чек 43 28.07.2024 10:48 [10:48:47]line Смена: 430 ФФД: 1.0 [10:48:47]line ЗНМ: 0300000045 [10:48:47]line РНМ: 0000000000092655 [10:48:47]line Версия ККМ: 001 [10:48:47]line ФМ: 0000000000874941 [10:48:47]line ФД: 44672 [10:48:47]line ФПД: 100997378116211 [10:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104845&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44672&fm=100997378116211&tin=02508201610067®Number=0000000000092655&sum=10000 [10:48:47]line 0 [10:48:47]OFD Sender: Processing packet 44672 [packets to send 7, broken 6] [10:48:47]ProducePacketName [10:48:47]name=ofd_packets/00044672 [10:48:47]OFD Sender: To server: pG, [10:48:47]CommunicateWithHost lk.salyk.kg:30040 [10:48:47]ConnectInit lk.salyk.kg [10:48:47]written 0, free lines is 4095 [10:48:47]Connected sock=10 [10:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 F1 1A 36 01 FA 4B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 0D 22 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 80 AE 00 00 35 04 06 00 5B DB 48 D8 8A 73 96 CE EB BC 94 3F 6C FF [10:48:47]Write to MH i2c: 01 00 00 12 03 15 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 CA 0C F2 [10:48:47]RasterBufferAndPrint [10:48:47]line [10:48:47]line [10:48:47]line [10:48:47]line [10:48:47]line [10:48:47]written 0, free lines is 3279 [10:48:47]process_action close_receipt done [10:48:47]requested_data is exist [10:48:47]produce_requested_data [10:48:47]requested_item fm.sn is exist - process it [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 11 00 00 [10:48:47]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EA [10:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:48:47]wFMCommunicate OK [10:48:47]requested_item fd.num is exist - process it [10:48:47]SAM_PROTO_GetFieldsCounters [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 13 00 00 [10:48:47]Write to MH i2c: E2 08 00 1A 03 80 13 00 00 00 00 00 00 99 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 B7 CE 47 00 AD 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 80 AE 00 00 F4 03 04 00 21 CE A5 66 B6 04 01 00 00 E6 C6 58 28 43 08 43 BC [10:48:47]CommunicateWithHost err = 0 [10:48:47]CheckOFDResponse [10:48:47]1017 (14) - 77093643461234 [10:48:47]1041 (16) - 0000000000874941 [10:48:47]1040 (4) - 44672 [10:48:47]1012 (4) - 28.07.2024 04:50 [10:48:47]1206 (1) - 0 [10:48:47]OFD Sender: Remove packet 44672 [10:48:47]ProducePacketName [10:48:47]name=ofd_packets/00044672 [10:48:47]NVStorageDeleteData [10:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 62 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 62 00 1A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 80 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 80 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:47]wFMCommunicate OK [10:48:47]SAM_PROTO_GetFieldsCounters done [10:48:47]requested_item shift.num is exist - process it [10:48:47]requested_item shift.opened is exist - process it [10:48:47]req_shift_opened [10:48:47]FM_GetShiftState [10:48:47]SAM_PROTO_GetShiftState [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 13 01 00 [10:48:47]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0E 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [10:48:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:48:48]wFMCommunicate OK [10:48:48]SAM_PROTO_GetShiftState done [10:48:48]FM_GetShiftState done [10:48:48]req_shift_opened done [10:48:48]requested_item shift.open_date is exist - process it [10:48:48]req_shift_open_date [10:48:48]req_shift_open_date done [10:48:48]produce_requested_data done [10:48:48]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44672,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:48:48]process_action_free close_receipt [10:48:48]json_value_free [10:48:48]json_value_free done [10:48:48]process_json_proto returns [10:48:48]Send response to host [10:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44672,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:48:48]free response buf [10:48:48]execute_script done [10:48:48]execute_script returns [10:48:48]free content buf [10:48:48]Sock 7.Close socket [10:48:48]Sock 7.Thread stoped [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:56]int [10:48:56]Write to MH i2c: 01 00 00 1C 03 1F [10:48:56]*** FLAG_PRN_KEY set [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 1C 03 00 08 00 00 00 FF 0F 3C [10:48:56]state=0 [10:48:56]Key pressed [10:48:56]Feed [10:48:56]Write to MH i2c: D8 00 00 1D 03 F7 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D8 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D8 01 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D8 01 00 1D 03 00 F8 [10:48:56]int [10:48:56]Write to MH i2c: 01 00 00 1E 03 21 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 1E 03 00 48 00 00 00 3D 00 AD [10:48:56]state=2 [10:48:56]Key pressed [10:48:56]int [10:48:56]Write to MH i2c: 01 00 00 1F 03 22 [10:48:56]*** FLAG_PRN_KEY reset [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [10:48:56]state=2 [10:48:56]Stop feed [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]accept exits with 9 [10:57:48]New connection [10:57:48]New thread 3067243876 created [10:57:48]Thread 3067100516 joined [10:57:48]Waiting for new connection... [10:57:48] Sock 9.Parse request [10:57:48]Sock 9.Check first char [10:57:48]Sock 9.First char is OK [10:57:48]request: POST /json_proto HTTP/1.0 [10:57:48]Method: POST [10:57:48]URL: /json_proto [10:57:48]Method is POST - this is cgi request [10:57:48]url: /json_proto [10:57:48]query_string will be loaded in cgi processing [10:57:48]execute_cgi json_proto POST (null) [10:57:48]execute_cgi path=json_proto method=POST [10:57:48]POST find Content-Length [10:57:48]Host: 172.17.45.196:8080 [10:57:48]Content-Length: 868 [10:57:48]Content-Type: application/json [10:57:48] [10:57:48]POST finish read [10:57:48]Found Content-Length = 868 [10:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14564", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:48]execute_script... [10:57:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14564", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:48]POST & json_proto [10:57:48]process_json_proto [10:57:48]json parsed OK: [10:57:48]protocol is kg_v1.0 [10:57:48]action value=close_receipt [10:57:48]process_action close_receipt [10:57:48]cmd_close_receipt [10:57:48]MH_GetDate [10:57:48]Write to MH i2c: F0 00 00 20 03 12 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: F0 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: F0 09 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: F0 09 00 20 03 00 2D 24 A6 66 BB 03 A5 66 41 [10:57:48]GetLastDocTimeStamp 1722163725 [10:57:48]current date 1722164269 [10:57:48]FM_GetShiftState [10:57:48]SAM_PROTO_GetShiftState [10:57:48]wFMCommunicate request_size=4 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 13 01 00 [10:57:48]Write to MH i2c: E2 08 00 21 03 80 13 01 00 00 00 00 00 A1 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 0E 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 0E 00 21 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3A [10:57:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:57:48]wFMCommunicate OK [10:57:48]SAM_PROTO_GetShiftState done [10:57:48]FM_GetShiftState done [10:57:48]opened in 1722126323 [10:57:48]opened+sec_in_day 1722212723 [10:57:48]quantity*price = 23000 [10:57:48]sum+1 = 23001 [10:57:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 44 28.07.2024 10:57 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44673 ФПД: 63477438728638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105749&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44673&fm=63477438728638&tin=02508201610067®Number=0000000000092655&sum=24000 0 [10:57:49]StoreToDocumentArchive [10:57:49]shift 430 fd 44673 [10:57:49]save to /storage/0430/doc_00044673 [10:57:49]save last doc name /storage/0430/doc_00044673 to /storage/kkm_last_doc_name [10:57:49]save OK [10:57:49]Clear old archive folders... [10:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=377 [10:57:49]tlvbuf is 01183770 [10:57:49]SAM_PROTO_ClearQueue [10:57:49]wFMCommunicate request_size=4 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 09 00 00 [10:57:49]Write to MH i2c: E2 08 00 2E 03 80 09 00 00 00 00 00 00 A3 [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:49]Read from MH i2c: E2 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 03 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [10:57:49]RAPDU: 90 00 [10:57:49]wFMCommunicate OK [10:57:49]SAM_PROTO_ClearQueue done [10:57:49]KKMCreateOFDPacket [10:57:49]OFDProtocolAddRootSTLVToBuf [10:57:49]FM_MakeSignedData [10:57:49]FM_MakeSignedData [10:57:49]SAM_PROTO_SignData [10:57:49]wFMCommunicate request_size=4 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 0D 01 02 [10:57:49]Write to MH i2c: E2 08 00 2F 03 80 0D 01 02 00 00 00 00 AB [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:49]Read from MH i2c: E2 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 03 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [10:57:49]RAPDU: 90 00 [10:57:49]wFMCommunicate OK [10:57:49]wFMCommunicate request_size=255 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE [10:57:49]Write to MH i2c: E2 02 01 30 03 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 00 00 F0 [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 03 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 03 00 30 03 00 90 00 A7 [10:57:50]RAPDU: 90 00 [10:57:50]wFMCommunicate OK [10:57:50]wFMCommunicate request_size=136 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2D 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 81 AE 00 00 35 04 06 00 39 BB 7E 2F C9 BE [10:57:50]Write to MH i2c: E2 8B 00 31 03 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2D 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 81 AE 00 00 35 04 06 00 39 BB 7E 2F C9 BE 00 00 9F [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 03 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 03 00 31 03 00 90 00 A8 [10:57:50]RAPDU: 90 00 [10:57:50]wFMCommunicate OK [10:57:50]wFMCommunicate request_size=4 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 0D 03 02 [10:57:50]Write to MH i2c: E2 08 00 32 03 80 0D 03 02 00 00 00 00 B0 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 0B 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 0B 00 32 03 00 77 6E 6A 3C 0C 5B C3 A6 90 00 0C [10:57:50]RAPDU: 77 6E 6A 3C 0C 5B C3 A6 90 00 [10:57:50]wFMCommunicate OK [10:57:50]SAM_PROTO_SignData done [10:57:50]FM_MakeSignedData done [10:57:50]CreateOFDProtocolMessage [10:57:50]wFMCommunicate request_size=4 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 11 00 00 [10:57:50]Write to MH i2c: E2 08 00 33 03 80 11 00 00 00 00 00 00 B0 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 17 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 17 00 33 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 04 [10:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:57:50]wFMCommunicate OK [10:57:50]CreateOFDProtocolMessage done [10:57:50]OFDSenderStorePacket 44673 [10:57:50]StoreOFDPacket docnum=44673 [10:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8D 01 00 00 48 15 85 01 07 98 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2D 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 81 AE 00 00 35 04 06 00 39 BB 7E 2F C9 BE 77 6E 6A 3C 0C 5B C3 A6 [10:57:50]CheckFolder [10:57:50]dirname=/storage/ofd_packets [10:57:50]CheckFolder done [10:57:50]ProducePacketName [10:57:50]name=ofd_packets/00044673 [10:57:50]NVStorageSaveData ofd_packets/00044673 [10:57:50]File name is /storage/ofd_packets/00044673 [10:57:50]Write 427 bytes [10:57:50]NVStorageSaveData done [10:57:50]OFDSenderStorePacket done [10:57:50]KKMCreateOFDPacket done [10:57:50]NVStorageSaveData kkm_last_timestamp [10:57:50]File name is /storage/kkm_last_timestamp [10:57:50]Write 4 bytes [10:57:50]NVStorageSaveData done [10:57:50]ExternCall_PrintAddStr [10:57:50]wPrintStart [10:57:50]Write to MH i2c: 01 00 00 34 03 37 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: 01 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: 01 07 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 FF 0F 4C [10:57:50]RasterBufferAndPrint [10:57:50]line Счет N : (3)14564 [10:57:50]line ИНН: 02508201610067 [10:57:50]line Контрольно-Кассовый Чек [10:57:50]line ПРОДАЖА [10:57:50]line Товар: 2000036210013 [10:57:50]line Кофе Капучино (GABB TRADE) [10:57:50]line 2.000 * 115.00 [10:57:50]line = 230.00 [10:57:50]line НДС 12% НСП 1% [10:57:50]line > о реализуемом товаре [10:57:50]line Товар: 46231529 [10:57:50]line Mentos ПФ Арбуз 6*100*2 [10:57:50]line 1.000 * 10.00 [10:57:50]line = 10.00 [10:57:50]line НДС 12% НСП 1% [10:57:50]line > о реализуемом товаре [10:57:50]line ИТОГО: 240.00 [10:57:50]line НСП 1% : 2.12 [10:57:50]line НДС 12% : 25.48 [10:57:50]line Наличными: 240.00 [10:57:50]line Безнал.: 0.00 [10:57:50]line Место: АЗС № 128 "Партнер Нефть" [10:57:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:57:50]line СНО: Общий режим [10:57:50]line Чек 44 28.07.2024 10:57 [10:57:50]line Смена: 430 ФФД: 1.0 [10:57:50]line ЗНМ: 0300000045 [10:57:50]line РНМ: 0000000000092655 [10:57:50]line Версия ККМ: 001 [10:57:50]line ФМ: 0000000000874941 [10:57:50]line ФД: 44673 [10:57:50]line ФПД: 63477438728638 [10:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105749&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44673&fm=63477438728638&tin=02508201610067®Number=0000000000092655&sum=24000 [10:57:50]line 0 [10:57:50]OFD Sender: Processing packet 44673 [packets to send 7, broken 6] [10:57:50]ProducePacketName [10:57:50]name=ofd_packets/00044673 [10:57:50]OFD Sender: To server: pG, [10:57:50]CommunicateWithHost lk.salyk.kg:30040 [10:57:50]ConnectInit lk.salyk.kg [10:57:50]written 0, free lines is 4095 [10:57:50]Connected sock=11 [10:57:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8D 01 00 00 48 15 85 01 07 98 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 2D 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 81 AE 00 00 35 04 06 00 39 BB 7E 2F C9 BE 77 6E 6A 3C 0C 5B C3 A6 [10:57:51]Write to MH i2c: 01 00 00 62 03 65 [10:57:51]Write i2c OK [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: 01 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: 01 07 00 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 97 0C 0F [10:57:51]RasterBufferAndPrint [10:57:51]line [10:57:51]line [10:57:51]line [10:57:51]line [10:57:51]line [10:57:51]written 0, free lines is 3228 [10:57:51]process_action close_receipt done [10:57:51]requested_data is exist [10:57:51]produce_requested_data [10:57:51]requested_item fm.sn is exist - process it [10:57:51]wFMCommunicate request_size=4 [10:57:51]MH_SAM_APDU [10:57:51]CAPDU: 80 11 00 00 [10:57:51]Write to MH i2c: E2 08 00 69 03 80 11 00 00 00 00 00 00 E6 [10:57:51]Write i2c OK [10:57:51]MH_I2C_Read... [10:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 D4 6E 47 00 9A 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 81 AE 00 00 F4 03 04 00 40 D0 A5 66 B6 04 01 00 00 20 C0 65 49 44 4D 78 24 [10:57:51]CommunicateWithHost err = 0 [10:57:51]CheckOFDResponse [10:57:51]1017 (14) - 77093643461234 [10:57:51]1041 (16) - 0000000000874941 [10:57:51]1040 (4) - 44673 [10:57:51]1012 (4) - 28.07.2024 04:59 [10:57:51]1206 (1) - 0 [10:57:51]OFD Sender: Remove packet 44673 [10:57:51]ProducePacketName [10:57:51]name=ofd_packets/00044673 [10:57:51]NVStorageDeleteData [10:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:51]Read from MH i2c: E2 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 17 00 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 17 00 69 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3A [10:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:57:51]wFMCommunicate OK [10:57:51]requested_item fd.num is exist - process it [10:57:51]SAM_PROTO_GetFieldsCounters [10:57:51]wFMCommunicate request_size=4 [10:57:51]MH_SAM_APDU [10:57:51]CAPDU: 80 13 00 00 [10:57:51]Write to MH i2c: E2 08 00 6A 03 80 13 00 00 00 00 00 00 E9 [10:57:51]Write i2c OK [10:57:51]MH_I2C_Read... [10:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:51]Read from MH i2c: E2 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 62 00 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 62 00 6A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 81 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 81 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:51]wFMCommunicate OK [10:57:51]SAM_PROTO_GetFieldsCounters done [10:57:51]requested_item shift.num is exist - process it [10:57:51]requested_item shift.opened is exist - process it [10:57:51]req_shift_opened [10:57:51]FM_GetShiftState [10:57:51]SAM_PROTO_GetShiftState [10:57:51]wFMCommunicate request_size=4 [10:57:51]MH_SAM_APDU [10:57:51]CAPDU: 80 13 01 00 [10:57:51]Write to MH i2c: E2 08 00 6B 03 80 13 01 00 00 00 00 00 EB [10:57:51]Write i2c OK [10:57:51]MH_I2C_Read... [10:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:51]Read from MH i2c: E2 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 0E 00 [10:57:51]MH_I2C_Read... [10:57:51]Read from MH i2c: E2 0E 00 6B 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 84 [10:57:51]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:57:51]wFMCommunicate OK [10:57:51]SAM_PROTO_GetShiftState done [10:57:51]FM_GetShiftState done [10:57:51]req_shift_opened done [10:57:51]requested_item shift.open_date is exist - process it [10:57:51]req_shift_open_date [10:57:51]req_shift_open_date done [10:57:51]produce_requested_data done [10:57:51]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44673,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:57:51]process_action_free close_receipt [10:57:51]json_value_free [10:57:51]json_value_free done [10:57:51]process_json_proto returns [10:57:51]Send response to host [10:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44673,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:57:51]free response buf [10:57:51]execute_script done [10:57:51]execute_script returns [10:57:51]free content buf [10:57:51]Sock 9.Close socket [10:57:51]Sock 9.Thread stoped [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:23]accept exits with 7 [10:58:23]New connection [10:58:23]New thread 3067100516 created [10:58:23]Thread 3067243876 joined [10:58:23]Waiting for new connection... [10:58:23] Sock 7.Parse request [10:58:23]Sock 7.Check first char [10:58:23]Sock 7.First char is OK [10:58:23]request: POST /json_proto HTTP/1.0 [10:58:23]Method: POST [10:58:23]URL: /json_proto [10:58:23]Method is POST - this is cgi request [10:58:23]url: /json_proto [10:58:23]query_string will be loaded in cgi processing [10:58:23]execute_cgi json_proto POST (null) [10:58:23]execute_cgi path=json_proto method=POST [10:58:23]POST find Content-Length [10:58:23]Host: 172.17.45.196:8080 [10:58:23]Content-Length: 631 [10:58:23]Content-Type: application/json [10:58:23] [10:58:23]POST finish read [10:58:23]Found Content-Length = 631 [10:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14565", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]execute_script... [10:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14565", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:23]POST & json_proto [10:58:23]process_json_proto [10:58:23]json parsed OK: [10:58:23]protocol is kg_v1.0 [10:58:23]action value=close_receipt [10:58:23]process_action close_receipt [10:58:23]cmd_close_receipt [10:58:23]MH_GetDate [10:58:23]Write to MH i2c: F0 00 00 6C 03 5E [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 6C 03 00 4F 24 A6 66 BB 03 A5 66 AF [10:58:23]GetLastDocTimeStamp 1722164269 [10:58:23]current date 1722164303 [10:58:23]FM_GetShiftState [10:58:23]SAM_PROTO_GetShiftState [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 13 01 00 [10:58:23]Write to MH i2c: E2 08 00 6D 03 80 13 01 00 00 00 00 00 ED [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 6D 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 86 [10:58:23]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_GetShiftState done [10:58:23]FM_GetShiftState done [10:58:23]opened in 1722126323 [10:58:23]opened+sec_in_day 1722212723 [10:58:23]quantity*price = 14800 [10:58:23]sum+1 = 14801 [10:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 148.00 НСП 1% : 1.31 НДС 12% : 15.72 Наличными: 148.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 45 28.07.2024 10:58 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44674 ФПД: 259608332205958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105823&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44674&fm=259608332205958&tin=02508201610067®Number=0000000000092655&sum=14800 0 [10:58:24]StoreToDocumentArchive [10:58:24]shift 430 fd 44674 [10:58:24]save to /storage/0430/doc_00044674 [10:58:24]save last doc name /storage/0430/doc_00044674 to /storage/kkm_last_doc_name [10:58:24]save OK [10:58:24]Clear old archive folders... [10:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:58:24]tlvbuf is 01181A70 [10:58:24]SAM_PROTO_ClearQueue [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 09 00 00 [10:58:24]Write to MH i2c: E2 08 00 7A 03 80 09 00 00 00 00 00 00 EF [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_ClearQueue done [10:58:24]KKMCreateOFDPacket [10:58:24]OFDProtocolAddRootSTLVToBuf [10:58:24]FM_MakeSignedData [10:58:24]FM_MakeSignedData [10:58:24]SAM_PROTO_SignData [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 01 02 [10:58:24]Write to MH i2c: E2 08 00 7B 03 80 0D 01 02 00 00 00 00 F7 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=255 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4F 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 [10:58:24]Write to MH i2c: E2 02 01 7C 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4F 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 00 00 1C [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=35 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 82 AE 00 00 35 04 06 00 EC 1C C6 6B FF 86 [10:58:24]Write to MH i2c: E2 26 00 7D 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 82 AE 00 00 35 04 06 00 EC 1C C6 6B FF 86 00 00 DC [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 03 02 [10:58:24]Write to MH i2c: E2 08 00 7E 03 80 0D 03 02 00 00 00 00 FC [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 7E 03 00 5A D1 A3 7E F6 86 06 A7 90 00 72 [10:58:24]RAPDU: 5A D1 A3 7E F6 86 06 A7 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_SignData done [10:58:24]FM_MakeSignedData done [10:58:24]CreateOFDProtocolMessage [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 11 00 00 [10:58:24]Write to MH i2c: E2 08 00 7F 03 80 11 00 00 00 00 00 00 FC [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 17 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 17 00 7F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 50 [10:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:58:24]wFMCommunicate OK [10:58:24]CreateOFDProtocolMessage done [10:58:24]OFDSenderStorePacket 44674 [10:58:24]StoreOFDPacket docnum=44674 [10:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 28 01 00 00 77 68 20 01 C6 AA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4F 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 82 AE 00 00 35 04 06 00 EC 1C C6 6B FF 86 5A D1 A3 7E F6 86 06 A7 [10:58:24]CheckFolder [10:58:24]dirname=/storage/ofd_packets [10:58:24]CheckFolder done [10:58:24]ProducePacketName [10:58:24]name=ofd_packets/00044674 [10:58:24]NVStorageSaveData ofd_packets/00044674 [10:58:24]File name is /storage/ofd_packets/00044674 [10:58:24]Write 326 bytes [10:58:24]NVStorageSaveData done [10:58:24]OFDSenderStorePacket done [10:58:24]KKMCreateOFDPacket done [10:58:24]NVStorageSaveData kkm_last_timestamp [10:58:24]File name is /storage/kkm_last_timestamp [10:58:24]Write 4 bytes [10:58:24]NVStorageSaveData done [10:58:24]ExternCall_PrintAddStr [10:58:24]wPrintStart [10:58:24]Write to MH i2c: 01 00 00 80 03 83 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 07 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 FF 0F 98 [10:58:24]RasterBufferAndPrint [10:58:24]line Счет N : (3)14565 [10:58:24]line ИНН: 02508201610067 [10:58:24]line Контрольно-Кассовый Чек [10:58:24]line ПРОДАЖА [10:58:24]line Товар: 4780022460452 [10:58:24]line Антифриз Yumiko gold 1кг [10:58:24]line 1.000 * 148.00 [10:58:24]line = 148.00 [10:58:24]line НДС 12% НСП 1% [10:58:24]line > о реализуемом товаре [10:58:24]line ИТОГО: 148.00 [10:58:24]line НСП 1% : 1.31 [10:58:24]line НДС 12% : 15.72 [10:58:24]line Наличными: 148.00 [10:58:24]line Безнал.: 0.00 [10:58:24]line Место: АЗС № 128 "Партнер Нефть" [10:58:24]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [10:58:24]line СНО: Общий режим [10:58:24]line Чек 45 28.07.2024 10:58 [10:58:24]line Смена: 430 ФФД: 1.0 [10:58:24]line ЗНМ: 0300000045 [10:58:24]line РНМ: 0000000000092655 [10:58:24]line Версия ККМ: 001 [10:58:24]line ФМ: 0000000000874941 [10:58:24]line ФД: 44674 [10:58:24]line ФПД: 259608332205958 [10:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105823&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44674&fm=259608332205958&tin=02508201610067®Number=0000000000092655&sum=14800 [10:58:25]OFD Sender: Processing packet 44674 [packets to send 7, broken 6] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00044674 [10:58:25]OFD Sender: To server: pG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]line 0 [10:58:25]written 0, free lines is 4095 [10:58:25]Connected sock=9 [10:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 28 01 00 00 77 68 20 01 C6 AA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4F 24 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 82 AE 00 00 35 04 06 00 EC 1C C6 6B FF 86 5A D1 A3 7E F6 86 06 A7 [10:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F0 A7 47 00 28 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 82 AE 00 00 F4 03 04 00 62 D0 A5 66 B6 04 01 00 00 2F E0 D2 D8 FD B5 6E 48 [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000000874941 [10:58:25]1040 (4) - 44674 [10:58:25]1012 (4) - 28.07.2024 05:00 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 44674 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00044674 [10:58:25]NVStorageDeleteData [10:58:25]Write to MH i2c: 01 00 00 A8 03 AB [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 08 0D C7 [10:58:25]RasterBufferAndPrint [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]written 0, free lines is 3342 [10:58:25]process_action close_receipt done [10:58:25]requested_data is exist [10:58:25]produce_requested_data [10:58:25]requested_item fm.sn is exist - process it [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 11 00 00 [10:58:25]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 80 [10:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [10:58:25]wFMCommunicate OK [10:58:25]requested_item fd.num is exist - process it [10:58:25]SAM_PROTO_GetFieldsCounters [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 13 00 00 [10:58:25]Write to MH i2c: E2 08 00 B0 03 80 13 00 00 00 00 00 00 2F [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 62 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 62 00 B0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 82 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [10:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 82 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:25]wFMCommunicate OK [10:58:25]SAM_PROTO_GetFieldsCounters done [10:58:25]requested_item shift.num is exist - process it [10:58:25]requested_item shift.opened is exist - process it [10:58:25]req_shift_opened [10:58:25]FM_GetShiftState [10:58:25]SAM_PROTO_GetShiftState [10:58:25]wFMCommunicate request_size=4 [10:58:25]MH_SAM_APDU [10:58:25]CAPDU: 80 13 01 00 [10:58:25]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0E 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CA [10:58:25]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [10:58:25]wFMCommunicate OK [10:58:25]SAM_PROTO_GetShiftState done [10:58:25]FM_GetShiftState done [10:58:25]req_shift_opened done [10:58:25]requested_item shift.open_date is exist - process it [10:58:25]req_shift_open_date [10:58:25]req_shift_open_date done [10:58:25]produce_requested_data done [10:58:25]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44674,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [10:58:25]process_action_free close_receipt [10:58:25]json_value_free [10:58:25]json_value_free done [10:58:25]process_json_proto returns [10:58:25]Send response to host [10:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44674,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [10:58:25]free response buf [10:58:25]execute_script done [10:58:25]execute_script returns [10:58:25]free content buf [10:58:25]Sock 7.Close socket [10:58:25]Sock 7.Thread stoped [10:58:26]OFD Sender: No OFD packet to send [10:58:27]int [10:58:27]Write to MH i2c: 01 00 00 B2 03 B5 [10:58:27]*** FLAG_PRN_KEY set [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 B2 03 00 08 00 00 00 FF 0F D2 [10:58:27]state=0 [10:58:27]Key pressed [10:58:27]Feed [10:58:27]Write to MH i2c: D8 00 00 B3 03 8D [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: D8 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: D8 01 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: D8 01 00 B3 03 00 8E [10:58:27]int [10:58:27]Write to MH i2c: 01 00 00 B4 03 B7 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 B4 03 00 48 00 00 00 3C 00 42 [10:58:27]state=2 [10:58:27]Key pressed [10:58:27]int [10:58:27]Write to MH i2c: 01 00 00 B5 03 B8 [10:58:27]*** FLAG_PRN_KEY reset [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [10:58:27]state=2 [10:58:27]Stop feed [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:42]accept exits with 10 [11:12:42]New connection [11:12:42]New thread 3067243876 created [11:12:42]Thread 3067100516 joined [11:12:42]Waiting for new connection... [11:12:42] Sock 10.Parse request [11:12:42]Sock 10.Check first char [11:12:42]Sock 10.First char is OK [11:12:42]request: POST /json_proto HTTP/1.0 [11:12:42]Method: POST [11:12:42]URL: /json_proto [11:12:42]Method is POST - this is cgi request [11:12:42]url: /json_proto [11:12:42]query_string will be loaded in cgi processing [11:12:42]execute_cgi json_proto POST (null) [11:12:42]execute_cgi path=json_proto method=POST [11:12:42]POST find Content-Length [11:12:42]Host: 172.17.45.196:8080 [11:12:42]Content-Length: 710 [11:12:42]Content-Type: application/json [11:12:42] [11:12:42]POST finish read [11:12:42]Found Content-Length = 710 [11:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14566", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:42]execute_script... [11:12:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14566", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:42]POST & json_proto [11:12:42]process_json_proto [11:12:42]json parsed OK: [11:12:42]protocol is kg_v1.0 [11:12:42]action value=close_receipt [11:12:42]process_action close_receipt [11:12:42]cmd_close_receipt [11:12:42]MH_GetDate [11:12:42]Write to MH i2c: F0 00 00 B6 03 A8 [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: F0 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: F0 09 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: F0 09 00 B6 03 00 AA 27 A6 66 BB 03 A5 66 57 [11:12:42]GetLastDocTimeStamp 1722164303 [11:12:42]current date 1722165162 [11:12:42]FM_GetShiftState [11:12:42]SAM_PROTO_GetShiftState [11:12:42]wFMCommunicate request_size=4 [11:12:42]MH_SAM_APDU [11:12:42]CAPDU: 80 13 01 00 [11:12:42]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:42]Read from MH i2c: E2 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 0E 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D0 [11:12:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:12:42]wFMCommunicate OK [11:12:42]SAM_PROTO_GetShiftState done [11:12:42]FM_GetShiftState done [11:12:42]opened in 1722126323 [11:12:42]opened+sec_in_day 1722212723 [11:12:42]quantity*price = 8400 [11:12:42]sum+1 = 8401 [11:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 46 28.07.2024 11:12 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44675 ФПД: 228529210597766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111242&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44675&fm=228529210597766&tin=02508201610067®Number=0000000000092655&sum=8400 0 [11:12:43]StoreToDocumentArchive [11:12:43]shift 430 fd 44675 [11:12:43]save to /storage/0430/doc_00044675 [11:12:43]save last doc name /storage/0430/doc_00044675 to /storage/kkm_last_doc_name [11:12:43]save OK [11:12:43]Clear old archive folders... [11:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:12:43]tlvbuf is 011904D0 [11:12:43]SAM_PROTO_ClearQueue [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 09 00 00 [11:12:43]Write to MH i2c: E2 08 00 C4 03 80 09 00 00 00 00 00 00 39 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_ClearQueue done [11:12:43]KKMCreateOFDPacket [11:12:43]OFDProtocolAddRootSTLVToBuf [11:12:43]FM_MakeSignedData [11:12:43]FM_MakeSignedData [11:12:43]SAM_PROTO_SignData [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 01 02 [11:12:43]Write to MH i2c: E2 08 00 C5 03 80 0D 01 02 00 00 00 00 41 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=255 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 AA 27 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 [11:12:43]Write to MH i2c: E2 02 01 C6 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 AA 27 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 00 00 99 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=61 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 83 AE 00 00 35 04 06 00 CF D8 9A 6B 21 86 [11:12:43]Write to MH i2c: E2 40 00 C7 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 83 AE 00 00 35 04 06 00 CF D8 9A 6B 21 86 00 00 00 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 03 02 [11:12:43]Write to MH i2c: E2 08 00 C8 03 80 0D 03 02 00 00 00 00 46 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 C8 03 00 AC EB E2 02 24 B5 66 53 90 00 54 [11:12:43]RAPDU: AC EB E2 02 24 B5 66 53 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_SignData done [11:12:43]FM_MakeSignedData done [11:12:43]CreateOFDProtocolMessage [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 11 00 00 [11:12:43]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9A [11:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:12:43]wFMCommunicate OK [11:12:43]CreateOFDProtocolMessage done [11:12:43]OFDSenderStorePacket 44675 [11:12:43]StoreOFDPacket docnum=44675 [11:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 81 80 3A 01 7A 01 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 AA 27 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 83 AE 00 00 35 04 06 00 CF D8 9A 6B 21 86 AC EB E2 02 24 B5 66 53 [11:12:43]CheckFolder [11:12:43]dirname=/storage/ofd_packets [11:12:43]CheckFolder done [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00044675 [11:12:43]NVStorageSaveData ofd_packets/00044675 [11:12:43]File name is /storage/ofd_packets/00044675 [11:12:43]Write 352 bytes [11:12:43]NVStorageSaveData done [11:12:43]OFDSenderStorePacket done [11:12:43]KKMCreateOFDPacket done [11:12:43]NVStorageSaveData kkm_last_timestamp [11:12:43]File name is /storage/kkm_last_timestamp [11:12:43]Write 4 bytes [11:12:43]NVStorageSaveData done [11:12:43]ExternCall_PrintAddStr [11:12:43]wPrintStart [11:12:43]Write to MH i2c: 01 00 00 CA 03 CD [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 CA 03 00 00 00 00 00 FF 0F E2 [11:12:43]RasterBufferAndPrint [11:12:43]line Счет N : (3)14566 [11:12:43]line ИНН: 02508201610067 [11:12:43]line Контрольно-Кассовый Чек [11:12:43]line ПРОДАЖА [11:12:43]line Товар: 4870001571030 [11:12:43]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [11:12:43]line 1.000 * 84.00 [11:12:43]line = 84.00 [11:12:43]line НДС 12% НСП 1% [11:12:43]line > о реализуемом товаре [11:12:43]line ИТОГО: 84.00 [11:12:43]line НСП 1% : 0.74 [11:12:43]line НДС 12% : 8.92 [11:12:43]line Наличными: 84.00 [11:12:43]line Безнал.: 0.00 [11:12:43]line Место: АЗС № 128 "Партнер Нефть" [11:12:43]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [11:12:43]line СНО: Общий режим [11:12:43]line Чек 46 28.07.2024 11:12 [11:12:43]line Смена: 430 ФФД: 1.0 [11:12:43]line ЗНМ: 0300000045 [11:12:43]line РНМ: 0000000000092655 [11:12:43]line Версия ККМ: 001 [11:12:43]line ФМ: 0000000000874941 [11:12:43]line ФД: 44675 [11:12:43]line ФПД: 228529210597766 [11:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111242&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44675&fm=228529210597766&tin=02508201610067®Number=0000000000092655&sum=8400 [11:12:44]line 0 [11:12:44]OFD Sender: Processing packet 44675 [packets to send 7, broken 6] [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00044675 [11:12:44]OFD Sender: To server: pG, [11:12:44]CommunicateWithHost lk.salyk.kg:30040 [11:12:44]ConnectInit lk.salyk.kg [11:12:44]written 0, free lines is 4095 [11:12:44]Connected sock=11 [11:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 81 80 3A 01 7A 01 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 AA 27 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 83 AE 00 00 35 04 06 00 CF D8 9A 6B 21 86 AC EB E2 02 24 B5 66 53 [11:12:44]Write to MH i2c: 01 00 00 F3 03 F6 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 D8 0C E1 [11:12:44]RasterBufferAndPrint [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]written 0, free lines is 3294 [11:12:44]process_action close_receipt done [11:12:44]requested_data is exist [11:12:44]produce_requested_data [11:12:44]requested_item fm.sn is exist - process it [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 11 00 00 [11:12:44]Write to MH i2c: E2 08 00 FA 03 80 11 00 00 00 00 00 00 77 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 17 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 17 00 FA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CB [11:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:12:44]wFMCommunicate OK [11:12:44]requested_item fd.num is exist - process it [11:12:44]SAM_PROTO_GetFieldsCounters [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 13 00 00 [11:12:44]Write to MH i2c: E2 08 00 FB 03 80 13 00 00 00 00 00 00 7A [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A2 E1 47 00 74 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 83 AE 00 00 F4 03 04 00 BD D3 A5 66 B6 04 01 00 00 F8 F1 3A 36 CF D5 C2 5F [11:12:44]CommunicateWithHost err = 0 [11:12:44]CheckOFDResponse [11:12:44]1017 (14) - 77093643461234 [11:12:44]1041 (16) - 0000000000874941 [11:12:44]1040 (4) - 44675 [11:12:44]1012 (4) - 28.07.2024 05:14 [11:12:44]1206 (1) - 0 [11:12:44]OFD Sender: Remove packet 44675 [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00044675 [11:12:44]NVStorageDeleteData [11:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 62 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 62 00 FB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 83 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 83 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:44]wFMCommunicate OK [11:12:44]SAM_PROTO_GetFieldsCounters done [11:12:44]requested_item shift.num is exist - process it [11:12:44]requested_item shift.opened is exist - process it [11:12:44]req_shift_opened [11:12:44]FM_GetShiftState [11:12:44]SAM_PROTO_GetShiftState [11:12:44]wFMCommunicate request_size=4 [11:12:44]MH_SAM_APDU [11:12:44]CAPDU: 80 13 01 00 [11:12:44]Write to MH i2c: E2 08 00 FC 03 80 13 01 00 00 00 00 00 7C [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0E 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0E 00 FC 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 15 [11:12:44]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:12:44]wFMCommunicate OK [11:12:44]SAM_PROTO_GetShiftState done [11:12:44]FM_GetShiftState done [11:12:44]req_shift_opened done [11:12:44]requested_item shift.open_date is exist - process it [11:12:44]req_shift_open_date [11:12:44]req_shift_open_date done [11:12:44]produce_requested_data done [11:12:44]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44675,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [11:12:44]process_action_free close_receipt [11:12:44]json_value_free [11:12:44]json_value_free done [11:12:44]process_json_proto returns [11:12:44]Send response to host [11:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44675,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [11:12:44]free response buf [11:12:44]execute_script done [11:12:44]execute_script returns [11:12:44]free content buf [11:12:44]Sock 10.Close socket [11:12:44]Sock 10.Thread stoped [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:19]accept exits with 7 [11:32:19]New connection [11:32:19]New thread 3067100516 created [11:32:19]Thread 3067243876 joined [11:32:19]Waiting for new connection... [11:32:19] Sock 7.Parse request [11:32:19]Sock 7.Check first char [11:32:19]Sock 7.First char is OK [11:32:19]request: POST /json_proto HTTP/1.0 [11:32:19]Method: POST [11:32:19]URL: /json_proto [11:32:19]Method is POST - this is cgi request [11:32:19]url: /json_proto [11:32:19]query_string will be loaded in cgi processing [11:32:19]execute_cgi json_proto POST (null) [11:32:19]execute_cgi path=json_proto method=POST [11:32:19]POST find Content-Length [11:32:19]Host: 172.17.45.196:8080 [11:32:19]Content-Length: 622 [11:32:19]Content-Type: application/json [11:32:19] [11:32:19]POST finish read [11:32:19]Found Content-Length = 622 [11:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14567", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:19]execute_script... [11:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14567", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:19]POST & json_proto [11:32:19]process_json_proto [11:32:19]json parsed OK: [11:32:19]protocol is kg_v1.0 [11:32:19]action value=close_receipt [11:32:19]process_action close_receipt [11:32:19]cmd_close_receipt [11:32:19]MH_GetDate [11:32:19]Write to MH i2c: F0 00 00 FD 03 EF [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 09 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 09 00 FD 03 00 44 2C A6 66 BB 03 A5 66 3D [11:32:19]GetLastDocTimeStamp 1722165162 [11:32:19]current date 1722166340 [11:32:19]FM_GetShiftState [11:32:19]SAM_PROTO_GetShiftState [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 01 00 [11:32:19]Write to MH i2c: E2 08 00 FE 03 80 13 01 00 00 00 00 00 7E [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 FE 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 17 [11:32:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:32:19]wFMCommunicate OK [11:32:19]SAM_PROTO_GetShiftState done [11:32:19]FM_GetShiftState done [11:32:19]opened in 1722126323 [11:32:19]opened+sec_in_day 1722212723 [11:32:19]quantity*price = 14000 [11:32:19]sum+1 = 14001 [11:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 47 28.07.2024 11:32 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44676 ФПД: 150795247345829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113220&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44676&fm=150795247345829&tin=02508201610067®Number=0000000000092655&sum=14000 0 [11:32:20]StoreToDocumentArchive [11:32:20]shift 430 fd 44676 [11:32:20]save to /storage/0430/doc_00044676 [11:32:20]save last doc name /storage/0430/doc_00044676 to /storage/kkm_last_doc_name [11:32:20]save OK [11:32:20]Clear old archive folders... [11:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:32:20]tlvbuf is 011901C0 [11:32:20]SAM_PROTO_ClearQueue [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 09 00 00 [11:32:20]Write to MH i2c: E2 08 00 0B 04 80 09 00 00 00 00 00 00 81 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 03 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [11:32:20]RAPDU: 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_ClearQueue done [11:32:20]KKMCreateOFDPacket [11:32:20]OFDProtocolAddRootSTLVToBuf [11:32:20]FM_MakeSignedData [11:32:20]FM_MakeSignedData [11:32:20]SAM_PROTO_SignData [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 0D 01 02 [11:32:20]Write to MH i2c: E2 08 00 0C 04 80 0D 01 02 00 00 00 00 89 [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 03 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [11:32:20]RAPDU: 90 00 [11:32:20]wFMCommunicate OK [11:32:20]wFMCommunicate request_size=255 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 44 2C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [11:32:20]Write to MH i2c: E2 02 01 0D 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 44 2C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 75 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]OFD Sender: No OFD packet to send [11:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=34 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 84 AE 00 00 35 04 06 00 89 25 C1 26 E0 A5 [11:32:21]Write to MH i2c: E2 25 00 0E 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 84 AE 00 00 35 04 06 00 89 25 C1 26 E0 A5 00 00 9A [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 03 02 [11:32:21]Write to MH i2c: E2 08 00 0F 04 80 0D 03 02 00 00 00 00 8E [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 0B 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 0B 00 0F 04 00 C4 ED 0A A3 41 84 3E 65 90 00 55 [11:32:21]RAPDU: C4 ED 0A A3 41 84 3E 65 90 00 [11:32:21]wFMCommunicate OK [11:32:21]SAM_PROTO_SignData done [11:32:21]FM_MakeSignedData done [11:32:21]CreateOFDProtocolMessage [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 11 00 00 [11:32:21]Write to MH i2c: E2 08 00 10 04 80 11 00 00 00 00 00 00 8E [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 17 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 17 00 10 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E2 [11:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:32:21]wFMCommunicate OK [11:32:21]CreateOFDProtocolMessage done [11:32:21]OFDSenderStorePacket 44676 [11:32:21]StoreOFDPacket docnum=44676 [11:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 60 B3 1F 01 C9 4A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 44 2C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 84 AE 00 00 35 04 06 00 89 25 C1 26 E0 A5 C4 ED 0A A3 41 84 3E 65 [11:32:21]CheckFolder [11:32:21]dirname=/storage/ofd_packets [11:32:21]CheckFolder done [11:32:21]ProducePacketName [11:32:21]name=ofd_packets/00044676 [11:32:21]NVStorageSaveData ofd_packets/00044676 [11:32:21]File name is /storage/ofd_packets/00044676 [11:32:21]Write 325 bytes [11:32:21]NVStorageSaveData done [11:32:21]OFDSenderStorePacket done [11:32:21]KKMCreateOFDPacket done [11:32:21]NVStorageSaveData kkm_last_timestamp [11:32:21]File name is /storage/kkm_last_timestamp [11:32:21]Write 4 bytes [11:32:21]NVStorageSaveData done [11:32:21]ExternCall_PrintAddStr [11:32:21]wPrintStart [11:32:21]Write to MH i2c: 01 00 00 11 04 15 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 07 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [11:32:21]RasterBufferAndPrint [11:32:21]line Счет N : (3)14567 [11:32:21]line ИНН: 02508201610067 [11:32:21]line Контрольно-Кассовый Чек [11:32:21]line ПРОДАЖА [11:32:21]line Товар: 48743587 [11:32:21]line Сигареты Winston XStyle Silver [11:32:21]line 1.000 * 140.00 [11:32:21]line = 140.00 [11:32:21]line НДС 12% НСП 1% [11:32:21]line > о реализуемом товаре [11:32:21]line ИТОГО: 140.00 [11:32:21]line НСП 1% : 1.24 [11:32:21]line НДС 12% : 14.87 [11:32:21]line Наличными: 140.00 [11:32:21]line Безнал.: 0.00 [11:32:21]line Место: АЗС № 128 "Партнер Нефть" [11:32:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [11:32:21]line СНО: Общий режим [11:32:21]line Чек 47 28.07.2024 11:32 [11:32:21]line Смена: 430 ФФД: 1.0 [11:32:21]line ЗНМ: 0300000045 [11:32:21]line РНМ: 0000000000092655 [11:32:21]line Версия ККМ: 001 [11:32:21]line ФМ: 0000000000874941 [11:32:21]line ФД: 44676 [11:32:21]line ФПД: 150795247345829 [11:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113220&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44676&fm=150795247345829&tin=02508201610067®Number=0000000000092655&sum=14000 [11:32:21]line 0 [11:32:21]OFD Sender: Processing packet 44676 [packets to send 7, broken 6] [11:32:21]ProducePacketName [11:32:21]name=ofd_packets/00044676 [11:32:21]OFD Sender: To server: pG, [11:32:21]CommunicateWithHost lk.salyk.kg:30040 [11:32:21]ConnectInit lk.salyk.kg [11:32:21]written 0, free lines is 4095 [11:32:22]Write to MH i2c: 01 00 00 3A 04 3E [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 D4 0C 25 [11:32:22]RasterBufferAndPrint [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]written 0, free lines is 3290 [11:32:22]process_action close_receipt done [11:32:22]requested_data is exist [11:32:22]produce_requested_data [11:32:22]requested_item fm.sn is exist - process it [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 11 00 00 [11:32:22]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 17 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 13 [11:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:32:22]wFMCommunicate OK [11:32:22]requested_item fd.num is exist - process it [11:32:22]SAM_PROTO_GetFieldsCounters [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 13 00 00 [11:32:22]Write to MH i2c: E2 08 00 42 04 80 13 00 00 00 00 00 00 C2 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 62 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 62 00 42 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 84 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [11:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 84 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_GetFieldsCounters done [11:32:22]requested_item shift.num is exist - process it [11:32:22]requested_item shift.opened is exist - process it [11:32:22]req_shift_opened [11:32:22]FM_GetShiftState [11:32:22]SAM_PROTO_GetShiftState [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 13 01 00 [11:32:22]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Connected sock=10 [11:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 60 B3 1F 01 C9 4A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 44 2C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 84 AE 00 00 35 04 06 00 89 25 C1 26 E0 A5 C4 ED 0A A3 41 84 3E 65 [11:32:22]Read from MH i2c: E2 0E 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5D [11:32:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_GetShiftState done [11:32:22]FM_GetShiftState done [11:32:22]req_shift_opened done [11:32:22]requested_item shift.open_date is exist - process it [11:32:22]req_shift_open_date [11:32:22]req_shift_open_date done [11:32:22]produce_requested_data done [11:32:22]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44676,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [11:32:22]process_action_free close_receipt [11:32:22]json_value_free [11:32:22]json_value_free done [11:32:22]process_json_proto returns [11:32:22]Send response to host [11:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44676,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [11:32:22]free response buf [11:32:22]execute_script done [11:32:22]execute_script returns [11:32:22]free content buf [11:32:22]Sock 7.Close socket [11:32:22]Sock 7.Thread stoped [11:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F4 2D 47 00 57 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 84 AE 00 00 F4 03 04 00 57 D8 A5 66 B6 04 01 00 00 93 E3 D8 4C E9 0E C8 AA [11:32:22]CommunicateWithHost err = 0 [11:32:22]CheckOFDResponse [11:32:22]1017 (14) - 77093643461234 [11:32:22]1041 (16) - 0000000000874941 [11:32:22]1040 (4) - 44676 [11:32:22]1012 (4) - 28.07.2024 05:34 [11:32:22]1206 (1) - 0 [11:32:22]OFD Sender: Remove packet 44676 [11:32:22]ProducePacketName [11:32:22]name=ofd_packets/00044676 [11:32:22]NVStorageDeleteData [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:55]accept exits with 9 [11:35:55]New connection [11:35:55]New thread 3067243876 created [11:35:55]Thread 3067100516 joined [11:35:55]Waiting for new connection... [11:35:55] Sock 9.Parse request [11:35:55]Sock 9.Check first char [11:35:55]Sock 9.First char is OK [11:35:55]request: POST /json_proto HTTP/1.0 [11:35:55]Method: POST [11:35:55]URL: /json_proto [11:35:55]Method is POST - this is cgi request [11:35:55]url: /json_proto [11:35:55]query_string will be loaded in cgi processing [11:35:55]execute_cgi json_proto POST (null) [11:35:55]execute_cgi path=json_proto method=POST [11:35:55]POST find Content-Length [11:35:55]Host: 172.17.45.196:8080 [11:35:55]Content-Length: 667 [11:35:55]Content-Type: application/json [11:35:55] [11:35:55]POST finish read [11:35:55]Found Content-Length = 667 [11:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14568", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:55]execute_script... [11:35:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14568", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:55]POST & json_proto [11:35:55]process_json_proto [11:35:55]json parsed OK: [11:35:55]protocol is kg_v1.0 [11:35:55]action value=close_receipt [11:35:55]process_action close_receipt [11:35:55]cmd_close_receipt [11:35:55]MH_GetDate [11:35:55]Write to MH i2c: F0 00 00 44 04 37 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: F0 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: F0 09 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: F0 09 00 44 04 00 1C 2D A6 66 BB 03 A5 66 5E [11:35:55]GetLastDocTimeStamp 1722166340 [11:35:55]current date 1722166556 [11:35:55]FM_GetShiftState [11:35:55]SAM_PROTO_GetShiftState [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 13 01 00 [11:35:55]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0E 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5F [11:35:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:35:55]wFMCommunicate OK [11:35:55]SAM_PROTO_GetShiftState done [11:35:55]FM_GetShiftState done [11:35:55]opened in 1722126323 [11:35:55]opened+sec_in_day 1722212723 [11:35:55]quantity*price = 5900 [11:35:55]sum+1 = 5901 [11:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 48 28.07.2024 11:35 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44677 ФПД: 63070939550417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113556&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44677&fm=63070939550417&tin=02508201610067®Number=0000000000092655&sum=5900 0 [11:35:56]StoreToDocumentArchive [11:35:56]shift 430 fd 44677 [11:35:56]save to /storage/0430/doc_00044677 [11:35:56]save last doc name /storage/0430/doc_00044677 to /storage/kkm_last_doc_name [11:35:56]save OK [11:35:56]Clear old archive folders... [11:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=283 [11:35:56]tlvbuf is 011918D0 [11:35:56]SAM_PROTO_ClearQueue [11:35:56]wFMCommunicate request_size=4 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 09 00 00 [11:35:56]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [11:35:56]RAPDU: 90 00 [11:35:56]wFMCommunicate OK [11:35:56]SAM_PROTO_ClearQueue done [11:35:56]KKMCreateOFDPacket [11:35:56]OFDProtocolAddRootSTLVToBuf [11:35:56]FM_MakeSignedData [11:35:56]FM_MakeSignedData [11:35:56]SAM_PROTO_SignData [11:35:56]wFMCommunicate request_size=4 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 0D 01 02 [11:35:56]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [11:35:56]RAPDU: 90 00 [11:35:56]wFMCommunicate OK [11:35:56]wFMCommunicate request_size=255 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 [11:35:56]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 00 00 64 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [11:35:56]RAPDU: 90 00 [11:35:56]wFMCommunicate OK [11:35:56]wFMCommunicate request_size=42 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 85 AE 00 00 35 04 06 00 39 5C D8 F2 92 D1 [11:35:56]Write to MH i2c: E2 2D 00 55 04 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 85 AE 00 00 35 04 06 00 39 5C D8 F2 92 D1 00 00 9E [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [11:35:56]RAPDU: 90 00 [11:35:56]wFMCommunicate OK [11:35:56]wFMCommunicate request_size=4 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 0D 03 02 [11:35:56]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 0B 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 0B 00 56 04 00 76 B9 04 A2 42 27 0F C1 90 00 E4 [11:35:56]RAPDU: 76 B9 04 A2 42 27 0F C1 90 00 [11:35:56]wFMCommunicate OK [11:35:56]SAM_PROTO_SignData done [11:35:56]FM_MakeSignedData done [11:35:56]CreateOFDProtocolMessage [11:35:56]wFMCommunicate request_size=4 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 11 00 00 [11:35:56]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 17 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 29 [11:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:35:56]wFMCommunicate OK [11:35:56]CreateOFDProtocolMessage done [11:35:56]OFDSenderStorePacket 44677 [11:35:56]StoreOFDPacket docnum=44677 [11:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 B8 AF 27 01 EF 03 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 85 AE 00 00 35 04 06 00 39 5C D8 F2 92 D1 76 B9 04 A2 42 27 0F C1 [11:35:56]CheckFolder [11:35:56]dirname=/storage/ofd_packets [11:35:56]CheckFolder done [11:35:56]ProducePacketName [11:35:56]name=ofd_packets/00044677 [11:35:56]NVStorageSaveData ofd_packets/00044677 [11:35:56]File name is /storage/ofd_packets/00044677 [11:35:56]Write 333 bytes [11:35:56]NVStorageSaveData done [11:35:56]OFDSenderStorePacket done [11:35:56]KKMCreateOFDPacket done [11:35:56]NVStorageSaveData kkm_last_timestamp [11:35:56]File name is /storage/kkm_last_timestamp [11:35:56]Write 4 bytes [11:35:56]NVStorageSaveData done [11:35:56]ExternCall_PrintAddStr [11:35:56]wPrintStart [11:35:56]Write to MH i2c: 01 00 00 58 04 5C [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 07 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [11:35:56]RasterBufferAndPrint [11:35:56]line Счет N : (3)14568 [11:35:56]line ИНН: 02508201610067 [11:35:56]line Контрольно-Кассовый Чек [11:35:56]line ПРОДАЖА [11:35:56]line Товар: 4011100977624 [11:35:56]line Шок Батончик Баунти 55г [11:35:56]line 1.000 * 59.00 [11:35:56]line = 59.00 [11:35:56]line НДС 12% НСП 1% [11:35:56]line > о реализуемом товаре [11:35:56]line ИТОГО: 59.00 [11:35:56]line НСП 1% : 0.52 [11:35:56]line НДС 12% : 6.26 [11:35:56]line Наличными: 59.00 [11:35:56]line Безнал.: 0.00 [11:35:56]line Место: АЗС № 128 "Партнер Нефть" [11:35:56]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [11:35:56]line СНО: Общий режим [11:35:56]line Чек 48 28.07.2024 11:35 [11:35:56]line Смена: 430 ФФД: 1.0 [11:35:56]line ЗНМ: 0300000045 [11:35:56]line РНМ: 0000000000092655 [11:35:56]line Версия ККМ: 001 [11:35:56]line ФМ: 0000000000874941 [11:35:56]line ФД: 44677 [11:35:56]line ФПД: 63070939550417 [11:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113556&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44677&fm=63070939550417&tin=02508201610067®Number=0000000000092655&sum=5900 [11:35:57]OFD Sender: Processing packet 44677 [packets to send 7, broken 6] [11:35:57]ProducePacketName [11:35:57]name=ofd_packets/00044677 [11:35:57]OFD Sender: To server: pG, [11:35:57]CommunicateWithHost lk.salyk.kg:30040 [11:35:57]ConnectInit lk.salyk.kg [11:35:57]line 0 [11:35:57]written 0, free lines is 4095 [11:35:57]Connected sock=11 [11:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 B8 AF 27 01 EF 03 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 2D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 85 AE 00 00 35 04 06 00 39 5C D8 F2 92 D1 76 B9 04 A2 42 27 0F C1 [11:35:57]Write to MH i2c: 01 00 00 80 04 84 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: 01 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: 01 07 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: 01 07 00 80 04 00 00 00 00 00 05 0D 9D [11:35:57]RasterBufferAndPrint [11:35:57]line [11:35:57]line [11:35:57]line [11:35:57]line [11:35:57]line [11:35:57]written 0, free lines is 3340 [11:35:57]process_action close_receipt done [11:35:57]requested_data is exist [11:35:57]produce_requested_data [11:35:57]requested_item fm.sn is exist - process it [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 11 00 00 [11:35:57]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 17 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 59 [11:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [11:35:57]wFMCommunicate OK [11:35:57]requested_item fd.num is exist - process it [11:35:57]SAM_PROTO_GetFieldsCounters [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 13 00 00 [11:35:57]Write to MH i2c: E2 08 00 88 04 80 13 00 00 00 00 00 00 08 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 92 A3 47 00 1D 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 85 AE 00 00 F4 03 04 00 2F D9 A5 66 B6 04 01 00 00 65 87 DD F2 70 36 57 7E [11:35:57]CommunicateWithHost err = 0 [11:35:57]CheckOFDResponse [11:35:57]1017 (14) - 77093643461234 [11:35:57]1041 (16) - 0000000000874941 [11:35:57]1040 (4) - 44677 [11:35:57]1012 (4) - 28.07.2024 05:37 [11:35:57]1206 (1) - 0 [11:35:57]OFD Sender: Remove packet 44677 [11:35:57]ProducePacketName [11:35:57]name=ofd_packets/00044677 [11:35:57]NVStorageDeleteData [11:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 62 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 62 00 88 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 85 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:35:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 85 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:57]wFMCommunicate OK [11:35:57]SAM_PROTO_GetFieldsCounters done [11:35:57]requested_item shift.num is exist - process it [11:35:57]requested_item shift.opened is exist - process it [11:35:57]req_shift_opened [11:35:57]FM_GetShiftState [11:35:57]SAM_PROTO_GetShiftState [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 13 01 00 [11:35:57]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 0E 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A3 [11:35:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [11:35:57]wFMCommunicate OK [11:35:57]SAM_PROTO_GetShiftState done [11:35:57]FM_GetShiftState done [11:35:57]req_shift_opened done [11:35:57]requested_item shift.open_date is exist - process it [11:35:57]req_shift_open_date [11:35:57]req_shift_open_date done [11:35:57]produce_requested_data done [11:35:57]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44677,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [11:35:57]process_action_free close_receipt [11:35:57]json_value_free [11:35:57]json_value_free done [11:35:57]process_json_proto returns [11:35:57]Send response to host [11:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44677,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [11:35:57]free response buf [11:35:57]execute_script done [11:35:57]execute_script returns [11:35:57]free content buf [11:35:57]Sock 9.Close socket [11:35:57]Sock 9.Thread stoped [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 8A 04 8E [11:36:09]*** FLAG_PRN_KEY set [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 8A 04 00 08 00 00 00 FF 0F AB [11:36:09]state=0 [11:36:09]Key pressed [11:36:09]Feed [11:36:09]Write to MH i2c: D8 00 00 8B 04 66 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 01 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 01 00 8B 04 00 67 [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 8C 04 90 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 8C 04 00 48 00 00 00 3D 00 1C [11:36:09]state=2 [11:36:09]Key pressed [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 8D 04 91 [11:36:09]*** FLAG_PRN_KEY reset [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 F6 0F 9D [11:36:09]state=2 [11:36:09]Stop feed [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 8E 04 92 [11:36:09]*** FLAG_PRN_KEY set [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 8E 04 00 08 00 00 00 FF 0F AF [11:36:09]state=0 [11:36:09]Key pressed [11:36:09]Feed [11:36:09]Write to MH i2c: D8 00 00 8F 04 6A [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 01 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: D8 01 00 8F 04 00 6B [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 90 04 94 [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 90 04 00 48 00 00 00 3C 00 1F [11:36:09]state=2 [11:36:09]Key pressed [11:36:09]int [11:36:09]Write to MH i2c: 01 00 00 91 04 95 [11:36:09]*** FLAG_PRN_KEY reset [11:36:09]Write i2c OK [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 [11:36:09]MH_I2C_Read... [11:36:09]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 F6 0F A1 [11:36:09]state=2 [11:36:09]Stop feed [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:53]accept exits with 7 [12:07:53]New connection [12:07:53]New thread 3067100516 created [12:07:53]Thread 3067243876 joined [12:07:53]Waiting for new connection... [12:07:53] Sock 7.Parse request [12:07:53]Sock 7.Check first char [12:07:53]Sock 7.First char is OK [12:07:53]request: POST /json_proto HTTP/1.0 [12:07:53]Method: POST [12:07:53]URL: /json_proto [12:07:53]Method is POST - this is cgi request [12:07:53]url: /json_proto [12:07:53]query_string will be loaded in cgi processing [12:07:53]execute_cgi json_proto POST (null) [12:07:53]execute_cgi path=json_proto method=POST [12:07:53]POST find Content-Length [12:07:53]Host: 172.17.45.196:8080 [12:07:53]Content-Length: 607 [12:07:53]Content-Type: application/json [12:07:53] [12:07:53]POST finish read [12:07:53]Found Content-Length = 607 [12:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14569", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:53]execute_script... [12:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14569", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:53]POST & json_proto [12:07:53]process_json_proto [12:07:53]json parsed OK: [12:07:53]protocol is kg_v1.0 [12:07:53]action value=close_receipt [12:07:53]process_action close_receipt [12:07:53]cmd_close_receipt [12:07:53]MH_GetDate [12:07:53]Write to MH i2c: F0 00 00 92 04 85 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 09 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 09 00 92 04 00 9A 34 A6 66 BB 03 A5 66 31 [12:07:53]GetLastDocTimeStamp 1722166556 [12:07:53]current date 1722168474 [12:07:53]FM_GetShiftState [12:07:53]SAM_PROTO_GetShiftState [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 13 01 00 [12:07:53]Write to MH i2c: E2 08 00 93 04 80 13 01 00 00 00 00 00 14 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0E 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0E 00 93 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AD [12:07:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:07:53]wFMCommunicate OK [12:07:53]SAM_PROTO_GetShiftState done [12:07:53]FM_GetShiftState done [12:07:53]opened in 1722126323 [12:07:53]opened+sec_in_day 1722212723 [12:07:53]quantity*price = 5000 [12:07:53]sum+1 = 5001 [12:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 49 28.07.2024 12:07 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44678 ФПД: 23444202831369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120754&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44678&fm=23444202831369&tin=02508201610067®Number=0000000000092655&sum=5000 0 [12:07:54]StoreToDocumentArchive [12:07:54]shift 430 fd 44678 [12:07:54]save to /storage/0430/doc_00044678 [12:07:54]save last doc name /storage/0430/doc_00044678 to /storage/kkm_last_doc_name [12:07:54]save OK [12:07:54]Clear old archive folders... [12:07:54]OFD Sender: No OFD packet to send [12:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=267 [12:07:54]tlvbuf is 0111D170 [12:07:54]SAM_PROTO_ClearQueue [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 09 00 00 [12:07:54]Write to MH i2c: E2 08 00 A0 04 80 09 00 00 00 00 00 00 16 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]SAM_PROTO_ClearQueue done [12:07:54]KKMCreateOFDPacket [12:07:54]OFDProtocolAddRootSTLVToBuf [12:07:54]FM_MakeSignedData [12:07:54]FM_MakeSignedData [12:07:54]SAM_PROTO_SignData [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 01 02 [12:07:54]Write to MH i2c: E2 08 00 A1 04 80 0D 01 02 00 00 00 00 1E [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 A1 04 00 90 00 19 [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]wFMCommunicate request_size=255 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A 34 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [12:07:54]Write to MH i2c: E2 02 01 A2 04 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A 34 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 FE [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=26 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 02 02 15 39 34 31 10 04 04 00 86 AE 00 00 35 04 06 00 15 52 87 61 BE 09 [12:07:55]Write to MH i2c: E2 1D 00 A3 04 80 0D 02 02 15 00 39 34 31 10 04 04 00 86 AE 00 00 35 04 06 00 15 52 87 61 BE 09 00 00 8A [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 03 02 [12:07:55]Write to MH i2c: E2 08 00 A4 04 80 0D 03 02 00 00 00 00 23 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0B 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0B 00 A4 04 00 FD 22 47 C4 4C 8C 3A 39 90 00 99 [12:07:55]RAPDU: FD 22 47 C4 4C 8C 3A 39 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_SignData done [12:07:55]FM_MakeSignedData done [12:07:55]CreateOFDProtocolMessage [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 11 00 00 [12:07:55]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 77 [12:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:07:55]wFMCommunicate OK [12:07:55]CreateOFDProtocolMessage done [12:07:55]OFDSenderStorePacket 44678 [12:07:55]StoreOFDPacket docnum=44678 [12:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1F 01 00 00 F7 F1 17 01 7F FD 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A 34 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 86 AE 00 00 35 04 06 00 15 52 87 61 BE 09 FD 22 47 C4 4C 8C 3A 39 [12:07:55]CheckFolder [12:07:55]dirname=/storage/ofd_packets [12:07:55]CheckFolder done [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00044678 [12:07:55]NVStorageSaveData ofd_packets/00044678 [12:07:55]File name is /storage/ofd_packets/00044678 [12:07:55]Write 317 bytes [12:07:55]NVStorageSaveData done [12:07:55]OFDSenderStorePacket done [12:07:55]KKMCreateOFDPacket done [12:07:55]NVStorageSaveData kkm_last_timestamp [12:07:55]File name is /storage/kkm_last_timestamp [12:07:55]Write 4 bytes [12:07:55]NVStorageSaveData done [12:07:55]ExternCall_PrintAddStr [12:07:55]wPrintStart [12:07:55]Write to MH i2c: 01 00 00 A6 04 AA [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FF 0F BF [12:07:55]RasterBufferAndPrint [12:07:55]line Счет N : (3)14569 [12:07:55]line ИНН: 02508201610067 [12:07:55]line Контрольно-Кассовый Чек [12:07:55]line ПРОДАЖА [12:07:55]line Товар: 46231529 [12:07:55]line Mentos ПФ Арбуз 6*100*2 [12:07:55]line 5.000 * 10.00 [12:07:55]line = 50.00 [12:07:55]line НДС 12% НСП 1% [12:07:55]line > о реализуемом товаре [12:07:55]line ИТОГО: 50.00 [12:07:55]line НСП 1% : 0.44 [12:07:55]line НДС 12% : 5.31 [12:07:55]line Наличными: 50.00 [12:07:55]line Безнал.: 0.00 [12:07:55]line Место: АЗС № 128 "Партнер Нефть" [12:07:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:07:55]line СНО: Общий режим [12:07:55]line Чек 49 28.07.2024 12:07 [12:07:55]line Смена: 430 ФФД: 1.0 [12:07:55]line ЗНМ: 0300000045 [12:07:55]line РНМ: 0000000000092655 [12:07:55]line Версия ККМ: 001 [12:07:55]line ФМ: 0000000000874941 [12:07:55]line ФД: 44678 [12:07:55]line ФПД: 23444202831369 [12:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120754&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44678&fm=23444202831369&tin=02508201610067®Number=0000000000092655&sum=5000 [12:07:55]line 0 [12:07:55]OFD Sender: Processing packet 44678 [packets to send 7, broken 6] [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00044678 [12:07:55]OFD Sender: To server: pG, [12:07:55]CommunicateWithHost lk.salyk.kg:30040 [12:07:55]ConnectInit lk.salyk.kg [12:07:55]written 0, free lines is 4095 [12:07:55]Connected sock=10 [12:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1F 01 00 00 F7 F1 17 01 7F FD 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A 34 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 86 AE 00 00 35 04 06 00 15 52 87 61 BE 09 FD 22 47 C4 4C 8C 3A 39 [12:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 BC CC 47 00 D5 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 86 AE 00 00 F4 03 04 00 AD E0 A5 66 B6 04 01 00 00 4B 22 1E DC EB 28 46 ED [12:07:56]CommunicateWithHost err = 0 [12:07:56]CheckOFDResponse [12:07:56]1017 (14) - 77093643461234 [12:07:56]1041 (16) - 0000000000874941 [12:07:56]1040 (4) - 44678 [12:07:56]1012 (4) - 28.07.2024 06:09 [12:07:56]1206 (1) - 0 [12:07:56]OFD Sender: Remove packet 44678 [12:07:56]ProducePacketName [12:07:56]name=ofd_packets/00044678 [12:07:56]NVStorageDeleteData [12:07:56]Write to MH i2c: 01 00 00 CE 04 D2 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 00 0D E6 [12:07:56]RasterBufferAndPrint [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]written 0, free lines is 3334 [12:07:56]process_action close_receipt done [12:07:56]requested_data is exist [12:07:56]produce_requested_data [12:07:56]requested_item fm.sn is exist - process it [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 11 00 00 [12:07:56]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A7 [12:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:07:56]wFMCommunicate OK [12:07:56]requested_item fd.num is exist - process it [12:07:56]SAM_PROTO_GetFieldsCounters [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 00 00 [12:07:56]Write to MH i2c: E2 08 00 D6 04 80 13 00 00 00 00 00 00 56 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 62 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 62 00 D6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 86 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [12:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 86 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetFieldsCounters done [12:07:56]requested_item shift.num is exist - process it [12:07:56]requested_item shift.opened is exist - process it [12:07:56]req_shift_opened [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F1 [12:07:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]req_shift_opened done [12:07:56]requested_item shift.open_date is exist - process it [12:07:56]req_shift_open_date [12:07:56]req_shift_open_date done [12:07:56]produce_requested_data done [12:07:56]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44678,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:07:56]process_action_free close_receipt [12:07:56]json_value_free [12:07:56]json_value_free done [12:07:56]process_json_proto returns [12:07:56]Send response to host [12:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44678,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:07:56]free response buf [12:07:56]execute_script done [12:07:56]execute_script returns [12:07:56]free content buf [12:07:56]Sock 7.Close socket [12:07:56]Sock 7.Thread stoped [12:07:56]OFD Sender: No OFD packet to send [12:07:58]int [12:07:58]Write to MH i2c: 01 00 00 D8 04 DC [12:07:58]*** FLAG_PRN_KEY set [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 D8 04 00 08 00 00 00 FF 0F F9 [12:07:58]state=0 [12:07:58]Key pressed [12:07:58]Feed [12:07:58]Write to MH i2c: D8 00 00 D9 04 B4 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D8 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D8 01 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D8 01 00 D9 04 00 B5 [12:07:58]int [12:07:58]Write to MH i2c: 01 00 00 DA 04 DE [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 DA 04 00 48 00 00 00 3C 00 69 [12:07:58]state=2 [12:07:58]Key pressed [12:07:58]int [12:07:58]Write to MH i2c: 01 00 00 DB 04 DF [12:07:58]*** FLAG_PRN_KEY reset [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 F7 0F EC [12:07:58]state=2 [12:07:58]Stop feed [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:12]accept exits with 9 [12:11:12]New connection [12:11:12]New thread 3067243876 created [12:11:12]Thread 3067100516 joined [12:11:12]Waiting for new connection... [12:11:12] Sock 9.Parse request [12:11:12]Sock 9.Check first char [12:11:12]Sock 9.First char is OK [12:11:12]request: POST /json_proto HTTP/1.0 [12:11:12]Method: POST [12:11:12]URL: /json_proto [12:11:12]Method is POST - this is cgi request [12:11:12]url: /json_proto [12:11:12]query_string will be loaded in cgi processing [12:11:12]execute_cgi json_proto POST (null) [12:11:12]execute_cgi path=json_proto method=POST [12:11:12]POST find Content-Length [12:11:12]Host: 172.17.45.196:8080 [12:11:12]Content-Length: 649 [12:11:12]Content-Type: application/json [12:11:12] [12:11:12]POST finish read [12:11:12]Found Content-Length = 649 [12:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14570", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:12]execute_script... [12:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14570", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:12]POST & json_proto [12:11:12]process_json_proto [12:11:12]json parsed OK: [12:11:12]protocol is kg_v1.0 [12:11:12]action value=close_receipt [12:11:12]process_action close_receipt [12:11:12]cmd_close_receipt [12:11:12]MH_GetDate [12:11:12]Write to MH i2c: F0 00 00 DC 04 CF [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: F0 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: F0 09 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: F0 09 00 DC 04 00 61 35 A6 66 BB 03 A5 66 43 [12:11:12]GetLastDocTimeStamp 1722168474 [12:11:12]current date 1722168673 [12:11:12]FM_GetShiftState [12:11:12]SAM_PROTO_GetShiftState [12:11:12]wFMCommunicate request_size=4 [12:11:12]MH_SAM_APDU [12:11:12]CAPDU: 80 13 01 00 [12:11:12]Write to MH i2c: E2 08 00 DD 04 80 13 01 00 00 00 00 00 5E [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:12]Read from MH i2c: E2 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 0E 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 0E 00 DD 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F7 [12:11:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:11:12]wFMCommunicate OK [12:11:12]SAM_PROTO_GetShiftState done [12:11:12]FM_GetShiftState done [12:11:12]opened in 1722126323 [12:11:12]opened+sec_in_day 1722212723 [12:11:12]quantity*price = 10500 [12:11:12]sum+1 = 10501 [12:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 50 28.07.2024 12:11 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44679 ФПД: 117039910668341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121113&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44679&fm=117039910668341&tin=02508201610067®Number=0000000000092655&sum=10500 0 [12:11:13]StoreToDocumentArchive [12:11:13]shift 430 fd 44679 [12:11:13]save to /storage/0430/doc_00044679 [12:11:13]save last doc name /storage/0430/doc_00044679 to /storage/kkm_last_doc_name [12:11:13]save OK [12:11:13]Clear old archive folders... [12:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:11:13]tlvbuf is 011A1280 [12:11:13]SAM_PROTO_ClearQueue [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 09 00 00 [12:11:13]Write to MH i2c: E2 08 00 EA 04 80 09 00 00 00 00 00 00 60 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_ClearQueue done [12:11:13]KKMCreateOFDPacket [12:11:13]OFDProtocolAddRootSTLVToBuf [12:11:13]FM_MakeSignedData [12:11:13]FM_MakeSignedData [12:11:13]SAM_PROTO_SignData [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 01 02 [12:11:13]Write to MH i2c: E2 08 00 EB 04 80 0D 01 02 00 00 00 00 68 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=255 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 61 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 [12:11:13]Write to MH i2c: E2 02 01 EC 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 61 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 00 00 B5 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=41 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 87 AE 00 00 35 04 06 00 6A 72 7A 4C C8 35 [12:11:13]Write to MH i2c: E2 2C 00 ED 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 87 AE 00 00 35 04 06 00 6A 72 7A 4C C8 35 00 00 0F [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 03 02 [12:11:13]Write to MH i2c: E2 08 00 EE 04 80 0D 03 02 00 00 00 00 6D [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 EE 04 00 E6 7F 22 22 85 74 9C 15 90 00 C1 [12:11:13]RAPDU: E6 7F 22 22 85 74 9C 15 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_SignData done [12:11:13]FM_MakeSignedData done [12:11:13]CreateOFDProtocolMessage [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 11 00 00 [12:11:13]Write to MH i2c: E2 08 00 EF 04 80 11 00 00 00 00 00 00 6D [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 EF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C1 [12:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:11:13]wFMCommunicate OK [12:11:13]CreateOFDProtocolMessage done [12:11:13]OFDSenderStorePacket 44679 [12:11:13]StoreOFDPacket docnum=44679 [12:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2E 01 00 00 4F C0 26 01 06 20 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 61 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 87 AE 00 00 35 04 06 00 6A 72 7A 4C C8 35 E6 7F 22 22 85 74 9C 15 [12:11:13]CheckFolder [12:11:13]dirname=/storage/ofd_packets [12:11:13]CheckFolder done [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00044679 [12:11:13]NVStorageSaveData ofd_packets/00044679 [12:11:13]File name is /storage/ofd_packets/00044679 [12:11:13]Write 332 bytes [12:11:13]NVStorageSaveData done [12:11:13]OFDSenderStorePacket done [12:11:13]KKMCreateOFDPacket done [12:11:13]NVStorageSaveData kkm_last_timestamp [12:11:13]File name is /storage/kkm_last_timestamp [12:11:13]Write 4 bytes [12:11:13]NVStorageSaveData done [12:11:13]ExternCall_PrintAddStr [12:11:13]wPrintStart [12:11:13]Write to MH i2c: 01 00 00 F0 04 F4 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [12:11:13]RasterBufferAndPrint [12:11:13]line Счет N : (3)14570 [12:11:13]line ИНН: 02508201610067 [12:11:13]line Контрольно-Кассовый Чек [12:11:13]line ПРОДАЖА [12:11:13]line Товар: 2000034730018 [12:11:13]line Кофе Американо (GABB TRADE) [12:11:13]line 1.000 * 105.00 [12:11:13]line = 105.00 [12:11:13]line НДС 12% НСП 1% [12:11:13]line > о реализуемом товаре [12:11:13]line ИТОГО: 105.00 [12:11:13]line НСП 1% : 0.93 [12:11:13]line НДС 12% : 11.15 [12:11:13]line Наличными: 105.00 [12:11:13]line Безнал.: 0.00 [12:11:13]line Место: АЗС № 128 "Партнер Нефть" [12:11:13]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:11:13]line СНО: Общий режим [12:11:13]line Чек 50 28.07.2024 12:11 [12:11:13]line Смена: 430 ФФД: 1.0 [12:11:13]line ЗНМ: 0300000045 [12:11:13]line РНМ: 0000000000092655 [12:11:13]line Версия ККМ: 001 [12:11:13]line ФМ: 0000000000874941 [12:11:13]line ФД: 44679 [12:11:13]line ФПД: 117039910668341 [12:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121113&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44679&fm=117039910668341&tin=02508201610067®Number=0000000000092655&sum=10500 [12:11:14]line 0 [12:11:14]OFD Sender: Processing packet 44679 [packets to send 7, broken 6] [12:11:14]ProducePacketName [12:11:14]name=ofd_packets/00044679 [12:11:14]OFD Sender: To server: pG, [12:11:14]CommunicateWithHost lk.salyk.kg:30040 [12:11:14]ConnectInit lk.salyk.kg [12:11:14]written 0, free lines is 4095 [12:11:14]Connected sock=7 [12:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2E 01 00 00 4F C0 26 01 06 20 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 61 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 87 AE 00 00 35 04 06 00 6A 72 7A 4C C8 35 E6 7F 22 22 85 74 9C 15 [12:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 8C 95 47 00 1B 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 87 AE 00 00 F4 03 04 00 73 E1 A5 66 B6 04 01 00 00 09 1D 0B 23 08 0C E3 E1 [12:11:14]CommunicateWithHost err = 0 [12:11:14]CheckOFDResponse [12:11:14]1017 (14) - 77093643461234 [12:11:14]1041 (16) - 0000000000874941 [12:11:14]1040 (4) - 44679 [12:11:14]1012 (4) - 28.07.2024 06:13 [12:11:14]1206 (1) - 0 [12:11:14]OFD Sender: Remove packet 44679 [12:11:14]ProducePacketName [12:11:14]name=ofd_packets/00044679 [12:11:14]NVStorageDeleteData [12:11:14]Write to MH i2c: 01 00 00 19 05 1E [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 07 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FC 0C 2D [12:11:14]RasterBufferAndPrint [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]written 0, free lines is 3329 [12:11:14]process_action close_receipt done [12:11:14]requested_data is exist [12:11:14]produce_requested_data [12:11:14]requested_item fm.sn is exist - process it [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 11 00 00 [12:11:14]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 17 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F3 [12:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:11:14]wFMCommunicate OK [12:11:14]requested_item fd.num is exist - process it [12:11:14]SAM_PROTO_GetFieldsCounters [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 00 00 [12:11:14]Write to MH i2c: E2 08 00 21 05 80 13 00 00 00 00 00 00 A2 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 62 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 62 00 21 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 87 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [12:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 87 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetFieldsCounters done [12:11:14]requested_item shift.num is exist - process it [12:11:14]requested_item shift.opened is exist - process it [12:11:14]req_shift_opened [12:11:14]FM_GetShiftState [12:11:14]SAM_PROTO_GetShiftState [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 01 00 [12:11:14]Write to MH i2c: E2 08 00 22 05 80 13 01 00 00 00 00 00 A4 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 22 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3D [12:11:14]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetShiftState done [12:11:14]FM_GetShiftState done [12:11:14]req_shift_opened done [12:11:14]requested_item shift.open_date is exist - process it [12:11:14]req_shift_open_date [12:11:14]req_shift_open_date done [12:11:14]produce_requested_data done [12:11:14]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44679,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:11:14]process_action_free close_receipt [12:11:14]json_value_free [12:11:14]json_value_free done [12:11:14]process_json_proto returns [12:11:14]Send response to host [12:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44679,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:11:14]free response buf [12:11:14]execute_script done [12:11:14]execute_script returns [12:11:14]free content buf [12:11:14]Sock 9.Close socket [12:11:14]Sock 9.Thread stoped [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]accept exits with 10 [12:12:10]New connection [12:12:10]New thread 3067100516 created [12:12:10]Thread 3067243876 joined [12:12:10]Waiting for new connection... [12:12:10] Sock 10.Parse request [12:12:10]Sock 10.Check first char [12:12:10]Sock 10.First char is OK [12:12:10]request: POST /json_proto HTTP/1.0 [12:12:10]Method: POST [12:12:10]URL: /json_proto [12:12:10]Method is POST - this is cgi request [12:12:10]url: /json_proto [12:12:10]query_string will be loaded in cgi processing [12:12:10]execute_cgi json_proto POST (null) [12:12:10]execute_cgi path=json_proto method=POST [12:12:10]POST find Content-Length [12:12:10]Host: 172.17.45.196:8080 [12:12:10]Content-Length: 619 [12:12:10]Content-Type: application/json [12:12:10] [12:12:10]POST finish read [12:12:10]Found Content-Length = 619 [12:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14571", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:10]execute_script... [12:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14571", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:10]POST & json_proto [12:12:10]process_json_proto [12:12:10]json parsed OK: [12:12:10]protocol is kg_v1.0 [12:12:10]action value=close_receipt [12:12:10]process_action close_receipt [12:12:10]cmd_close_receipt [12:12:10]MH_GetDate [12:12:10]Write to MH i2c: F0 00 00 23 05 17 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: F0 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: F0 09 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: F0 09 00 23 05 00 9B 35 A6 66 BB 03 A5 66 C5 [12:12:10]GetLastDocTimeStamp 1722168673 [12:12:10]current date 1722168731 [12:12:10]FM_GetShiftState [12:12:10]SAM_PROTO_GetShiftState [12:12:10]wFMCommunicate request_size=4 [12:12:10]MH_SAM_APDU [12:12:10]CAPDU: 80 13 01 00 [12:12:10]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:10]Read from MH i2c: E2 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 0E 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3F [12:12:10]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:12:10]wFMCommunicate OK [12:12:10]SAM_PROTO_GetShiftState done [12:12:10]FM_GetShiftState done [12:12:10]opened in 1722126323 [12:12:10]opened+sec_in_day 1722212723 [12:12:10]quantity*price = 30000 [12:12:10]sum+1 = 30001 [12:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 51 28.07.2024 12:12 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44680 ФПД: 247314706869789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121211&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44680&fm=247314706869789&tin=02508201610067®Number=0000000000092655&sum=30000 0 [12:12:11]StoreToDocumentArchive [12:12:11]shift 430 fd 44680 [12:12:11]save to /storage/0430/doc_00044680 [12:12:11]save last doc name /storage/0430/doc_00044680 to /storage/kkm_last_doc_name [12:12:11]save OK [12:12:11]Clear old archive folders... [12:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:12:11]tlvbuf is B6F9CC60 [12:12:11]SAM_PROTO_ClearQueue [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 09 00 00 [12:12:11]Write to MH i2c: E2 08 00 31 05 80 09 00 00 00 00 00 00 A8 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [12:12:11]RAPDU: 90 00 [12:12:11]wFMCommunicate OK [12:12:11]SAM_PROTO_ClearQueue done [12:12:11]KKMCreateOFDPacket [12:12:11]OFDProtocolAddRootSTLVToBuf [12:12:11]FM_MakeSignedData [12:12:11]FM_MakeSignedData [12:12:11]SAM_PROTO_SignData [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 0D 01 02 [12:12:11]Write to MH i2c: E2 08 00 32 05 80 0D 01 02 00 00 00 00 B0 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:11]Read from MH i2c: E2 03 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [12:12:11]RAPDU: 90 00 [12:12:11]wFMCommunicate OK [12:12:11]wFMCommunicate request_size=255 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [12:12:11]Write to MH i2c: E2 02 01 33 05 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 21 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [12:12:11]RAPDU: 90 00 [12:12:11]wFMCommunicate OK [12:12:11]wFMCommunicate request_size=31 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 88 AE 00 00 35 04 06 00 E0 EE 71 40 2E 1D [12:12:11]Write to MH i2c: E2 22 00 34 05 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 88 AE 00 00 35 04 06 00 E0 EE 71 40 2E 1D 00 00 DF [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [12:12:11]RAPDU: 90 00 [12:12:11]wFMCommunicate OK [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 0D 03 02 [12:12:11]Write to MH i2c: E2 08 00 35 05 80 0D 03 02 00 00 00 00 B5 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0B 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0B 00 35 05 00 D8 D1 6F 44 AD F8 DB 6A 90 00 FC [12:12:11]RAPDU: D8 D1 6F 44 AD F8 DB 6A 90 00 [12:12:11]wFMCommunicate OK [12:12:11]SAM_PROTO_SignData done [12:12:11]FM_MakeSignedData done [12:12:11]CreateOFDProtocolMessage [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 11 00 00 [12:12:11]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 17 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 09 [12:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:12:11]wFMCommunicate OK [12:12:11]CreateOFDProtocolMessage done [12:12:11]OFDSenderStorePacket 44680 [12:12:11]StoreOFDPacket docnum=44680 [12:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 9F 26 1C 01 5D 43 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 88 AE 00 00 35 04 06 00 E0 EE 71 40 2E 1D D8 D1 6F 44 AD F8 DB 6A [12:12:11]CheckFolder [12:12:11]dirname=/storage/ofd_packets [12:12:11]CheckFolder done [12:12:11]ProducePacketName [12:12:11]name=ofd_packets/00044680 [12:12:11]NVStorageSaveData ofd_packets/00044680 [12:12:11]File name is /storage/ofd_packets/00044680 [12:12:11]Write 322 bytes [12:12:11]NVStorageSaveData done [12:12:11]OFDSenderStorePacket done [12:12:11]KKMCreateOFDPacket done [12:12:11]NVStorageSaveData kkm_last_timestamp [12:12:11]File name is /storage/kkm_last_timestamp [12:12:11]Write 4 bytes [12:12:11]NVStorageSaveData done [12:12:11]ExternCall_PrintAddStr [12:12:11]wPrintStart [12:12:11]Write to MH i2c: 01 00 00 37 05 3C [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: 01 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: 01 07 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [12:12:11]RasterBufferAndPrint [12:12:11]line Счет N : (3)14571 [12:12:11]line ИНН: 02508201610067 [12:12:11]line Контрольно-Кассовый Чек [12:12:11]line ПРОДАЖА [12:12:11]line Товар: 4640030091607 [12:12:11]line Сигареты ESSE Exchange [12:12:11]line 2.000 * 150.00 [12:12:11]line = 300.00 [12:12:11]line НДС 12% НСП 1% [12:12:11]line > о реализуемом товаре [12:12:11]line ИТОГО: 300.00 [12:12:11]line НСП 1% : 2.65 [12:12:11]line НДС 12% : 31.86 [12:12:11]line Наличными: 300.00 [12:12:11]line Безнал.: 0.00 [12:12:11]line Место: АЗС № 128 "Партнер Нефть" [12:12:11]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:12:11]line СНО: Общий режим [12:12:11]line Чек 51 28.07.2024 12:12 [12:12:11]line Смена: 430 ФФД: 1.0 [12:12:11]line ЗНМ: 0300000045 [12:12:11]line РНМ: 0000000000092655 [12:12:11]line Версия ККМ: 001 [12:12:11]line ФМ: 0000000000874941 [12:12:11]line ФД: 44680 [12:12:11]line ФПД: 247314706869789 [12:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121211&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44680&fm=247314706869789&tin=02508201610067®Number=0000000000092655&sum=30000 [12:12:12]line 0 [12:12:12]OFD Sender: Processing packet 44680 [packets to send 7, broken 6] [12:12:12]ProducePacketName [12:12:12]name=ofd_packets/00044680 [12:12:12]OFD Sender: To server: pG, [12:12:12]CommunicateWithHost lk.salyk.kg:30040 [12:12:12]ConnectInit lk.salyk.kg [12:12:12]written 0, free lines is 4095 [12:12:12]Connected sock=9 [12:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 9F 26 1C 01 5D 43 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9B 35 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 88 AE 00 00 35 04 06 00 E0 EE 71 40 2E 1D D8 D1 6F 44 AD F8 DB 6A [12:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E2 B3 47 00 73 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 88 AE 00 00 F4 03 04 00 AD E1 A5 66 B6 04 01 00 00 12 88 43 54 55 BE BB 9A [12:12:12]CommunicateWithHost err = 0 [12:12:12]CheckOFDResponse [12:12:12]1017 (14) - 77093643461234 [12:12:12]1041 (16) - 0000000000874941 [12:12:12]1040 (4) - 44680 [12:12:12]1012 (4) - 28.07.2024 06:14 [12:12:12]1206 (1) - 0 [12:12:12]OFD Sender: Remove packet 44680 [12:12:12]ProducePacketName [12:12:12]name=ofd_packets/00044680 [12:12:12]NVStorageDeleteData [12:12:12]Write to MH i2c: 01 00 00 5F 05 64 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 07 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 03 0D 7B [12:12:12]RasterBufferAndPrint [12:12:12]line [12:12:12]line [12:12:12]line [12:12:12]line [12:12:12]line [12:12:12]written 0, free lines is 3335 [12:12:12]process_action close_receipt done [12:12:12]requested_data is exist [12:12:12]produce_requested_data [12:12:12]requested_item fm.sn is exist - process it [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 11 00 00 [12:12:12]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 17 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 39 [12:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:12:12]wFMCommunicate OK [12:12:12]requested_item fd.num is exist - process it [12:12:12]SAM_PROTO_GetFieldsCounters [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 13 00 00 [12:12:12]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 62 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 88 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [12:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 88 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:12]wFMCommunicate OK [12:12:12]SAM_PROTO_GetFieldsCounters done [12:12:12]requested_item shift.num is exist - process it [12:12:12]requested_item shift.opened is exist - process it [12:12:12]req_shift_opened [12:12:12]FM_GetShiftState [12:12:12]SAM_PROTO_GetShiftState [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 13 01 00 [12:12:12]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0E 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 83 [12:12:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:12:12]wFMCommunicate OK [12:12:12]SAM_PROTO_GetShiftState done [12:12:12]FM_GetShiftState done [12:12:12]req_shift_opened done [12:12:12]requested_item shift.open_date is exist - process it [12:12:12]req_shift_open_date [12:12:12]req_shift_open_date done [12:12:12]produce_requested_data done [12:12:12]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44680,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:12:12]process_action_free close_receipt [12:12:12]json_value_free [12:12:12]json_value_free done [12:12:12]process_json_proto returns [12:12:12]Send response to host [12:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44680,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:12:12]free response buf [12:12:12]execute_script done [12:12:12]execute_script returns [12:12:12]free content buf [12:12:12]Sock 10.Close socket [12:12:12]Sock 10.Thread stoped [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:00]accept exits with 7 [12:15:00]New connection [12:15:00]New thread 3067243876 created [12:15:00]Thread 3067100516 joined [12:15:00]Waiting for new connection... [12:15:00] Sock 7.Parse request [12:15:00]Sock 7.Check first char [12:15:00]Sock 7.First char is OK [12:15:00]request: POST /json_proto HTTP/1.0 [12:15:00]Method: POST [12:15:00]URL: /json_proto [12:15:00]Method is POST - this is cgi request [12:15:00]url: /json_proto [12:15:00]query_string will be loaded in cgi processing [12:15:00]execute_cgi json_proto POST (null) [12:15:00]execute_cgi path=json_proto method=POST [12:15:00]POST find Content-Length [12:15:00]Host: 172.17.45.196:8080 [12:15:00]Content-Length: 629 [12:15:00]Content-Type: application/json [12:15:00] [12:15:00]POST finish read [12:15:00]Found Content-Length = 629 [12:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14572", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:00]execute_script... [12:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14572", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:00]POST & json_proto [12:15:00]process_json_proto [12:15:00]json parsed OK: [12:15:00]protocol is kg_v1.0 [12:15:00]action value=close_receipt [12:15:00]process_action close_receipt [12:15:00]cmd_close_receipt [12:15:00]MH_GetDate [12:15:00]Write to MH i2c: F0 00 00 69 05 5D [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: F0 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: F0 09 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: F0 09 00 69 05 00 44 36 A6 66 BB 03 A5 66 B5 [12:15:00]GetLastDocTimeStamp 1722168731 [12:15:00]current date 1722168900 [12:15:00]FM_GetShiftState [12:15:00]SAM_PROTO_GetShiftState [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 13 01 00 [12:15:00]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0E 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 85 [12:15:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_GetShiftState done [12:15:00]FM_GetShiftState done [12:15:00]opened in 1722126323 [12:15:00]opened+sec_in_day 1722212723 [12:15:00]quantity*price = 5000 [12:15:00]sum+1 = 5001 [12:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 52 28.07.2024 12:15 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44681 ФПД: 142595092767653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121501&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44681&fm=142595092767653&tin=02508201610067®Number=0000000000092655&sum=5000 0 [12:15:01]StoreToDocumentArchive [12:15:01]shift 430 fd 44681 [12:15:01]save to /storage/0430/doc_00044681 [12:15:01]save last doc name /storage/0430/doc_00044681 to /storage/kkm_last_doc_name [12:15:01]save OK [12:15:01]Clear old archive folders... [12:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:15:01]tlvbuf is B6DEF2E0 [12:15:01]SAM_PROTO_ClearQueue [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 09 00 00 [12:15:01]Write to MH i2c: E2 08 00 77 05 80 09 00 00 00 00 00 00 EE [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [12:15:01]RAPDU: 90 00 [12:15:01]wFMCommunicate OK [12:15:01]SAM_PROTO_ClearQueue done [12:15:01]KKMCreateOFDPacket [12:15:01]OFDProtocolAddRootSTLVToBuf [12:15:01]FM_MakeSignedData [12:15:01]FM_MakeSignedData [12:15:01]SAM_PROTO_SignData [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 0D 01 02 [12:15:01]Write to MH i2c: E2 08 00 78 05 80 0D 01 02 00 00 00 00 F6 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [12:15:01]RAPDU: 90 00 [12:15:01]wFMCommunicate OK [12:15:01]wFMCommunicate request_size=255 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 36 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:15:01]Write to MH i2c: E2 02 01 79 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 36 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 79 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [12:15:01]RAPDU: 90 00 [12:15:01]wFMCommunicate OK [12:15:01]wFMCommunicate request_size=28 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 89 AE 00 00 35 04 06 00 81 B0 81 D9 E3 A5 [12:15:01]Write to MH i2c: E2 1F 00 7A 05 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 89 AE 00 00 35 04 06 00 81 B0 81 D9 E3 A5 00 00 D1 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [12:15:01]RAPDU: 90 00 [12:15:01]wFMCommunicate OK [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 0D 03 02 [12:15:01]Write to MH i2c: E2 08 00 7B 05 80 0D 03 02 00 00 00 00 FB [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0B 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0B 00 7B 05 00 13 9A 11 4E 37 96 DD 07 90 00 B9 [12:15:01]RAPDU: 13 9A 11 4E 37 96 DD 07 90 00 [12:15:01]wFMCommunicate OK [12:15:01]SAM_PROTO_SignData done [12:15:01]FM_MakeSignedData done [12:15:01]CreateOFDProtocolMessage [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 11 00 00 [12:15:01]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4F [12:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:15:01]wFMCommunicate OK [12:15:01]CreateOFDProtocolMessage done [12:15:01]OFDSenderStorePacket 44681 [12:15:01]StoreOFDPacket docnum=44681 [12:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 35 45 19 01 1A EF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 36 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 89 AE 00 00 35 04 06 00 81 B0 81 D9 E3 A5 13 9A 11 4E 37 96 DD 07 [12:15:01]CheckFolder [12:15:01]dirname=/storage/ofd_packets [12:15:01]CheckFolder done [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00044681 [12:15:01]NVStorageSaveData ofd_packets/00044681 [12:15:01]File name is /storage/ofd_packets/00044681 [12:15:01]Write 319 bytes [12:15:01]NVStorageSaveData done [12:15:01]OFDSenderStorePacket done [12:15:01]KKMCreateOFDPacket done [12:15:01]NVStorageSaveData kkm_last_timestamp [12:15:01]File name is /storage/kkm_last_timestamp [12:15:01]Write 4 bytes [12:15:01]NVStorageSaveData done [12:15:01]ExternCall_PrintAddStr [12:15:01]wPrintStart [12:15:01]Write to MH i2c: 01 00 00 7D 05 82 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [12:15:01]RasterBufferAndPrint [12:15:01]line Счет N : (3)14572 [12:15:01]line ИНН: 02508201610067 [12:15:01]line Контрольно-Кассовый Чек [12:15:01]line ПРОДАЖА [12:15:01]line Товар: 4700000160358 [12:15:01]line Вода Легенда 1л [12:15:01]line 1.000 * 50.00 [12:15:01]line = 50.00 [12:15:01]line НДС 12% НСП 1% [12:15:01]line > о реализуемом товаре [12:15:01]line ИТОГО: 50.00 [12:15:01]line НСП 1% : 0.44 [12:15:01]line НДС 12% : 5.31 [12:15:01]line Наличными: 50.00 [12:15:01]line Безнал.: 0.00 [12:15:01]line Место: АЗС № 128 "Партнер Нефть" [12:15:01]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:15:01]line СНО: Общий режим [12:15:01]line Чек 52 28.07.2024 12:15 [12:15:01]line Смена: 430 ФФД: 1.0 [12:15:01]line ЗНМ: 0300000045 [12:15:01]line РНМ: 0000000000092655 [12:15:01]line Версия ККМ: 001 [12:15:01]line ФМ: 0000000000874941 [12:15:01]line ФД: 44681 [12:15:01]line ФПД: 142595092767653 [12:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121501&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44681&fm=142595092767653&tin=02508201610067®Number=0000000000092655&sum=5000 [12:15:02]OFD Sender: Processing packet 44681 [packets to send 7, broken 6] [12:15:02]ProducePacketName [12:15:02]name=ofd_packets/00044681 [12:15:02]OFD Sender: To server: pG, [12:15:02]CommunicateWithHost lk.salyk.kg:30040 [12:15:02]ConnectInit lk.salyk.kg [12:15:02]line 0 [12:15:02]written 0, free lines is 4095 [12:15:02]Connected sock=10 [12:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 35 45 19 01 1A EF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 36 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 89 AE 00 00 35 04 06 00 81 B0 81 D9 E3 A5 13 9A 11 4E 37 96 DD 07 [12:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 11 2C 47 00 3A 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 89 AE 00 00 F4 03 04 00 57 E2 A5 66 B6 04 01 00 00 0E 01 E6 FD 29 D2 DB F7 [12:15:02]CommunicateWithHost err = 0 [12:15:02]CheckOFDResponse [12:15:02]1017 (14) - 77093643461234 [12:15:02]1041 (16) - 0000000000874941 [12:15:02]1040 (4) - 44681 [12:15:02]1012 (4) - 28.07.2024 06:16 [12:15:02]1206 (1) - 0 [12:15:02]OFD Sender: Remove packet 44681 [12:15:02]ProducePacketName [12:15:02]name=ofd_packets/00044681 [12:15:02]NVStorageDeleteData [12:15:02]Write to MH i2c: 01 00 00 A5 05 AA [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 07 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 00 0D BE [12:15:02]RasterBufferAndPrint [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]written 0, free lines is 3334 [12:15:02]process_action close_receipt done [12:15:02]requested_data is exist [12:15:02]produce_requested_data [12:15:02]requested_item fm.sn is exist - process it [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 11 00 00 [12:15:02]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 17 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7F [12:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:15:02]wFMCommunicate OK [12:15:02]requested_item fd.num is exist - process it [12:15:02]SAM_PROTO_GetFieldsCounters [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 13 00 00 [12:15:02]Write to MH i2c: E2 08 00 AD 05 80 13 00 00 00 00 00 00 2E [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 AD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 89 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 89 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetFieldsCounters done [12:15:02]requested_item shift.num is exist - process it [12:15:02]requested_item shift.opened is exist - process it [12:15:02]req_shift_opened [12:15:02]FM_GetShiftState [12:15:02]SAM_PROTO_GetShiftState [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 13 01 00 [12:15:02]Write to MH i2c: E2 08 00 AE 05 80 13 01 00 00 00 00 00 30 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 AE 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C9 [12:15:02]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetShiftState done [12:15:02]FM_GetShiftState done [12:15:02]req_shift_opened done [12:15:02]requested_item shift.open_date is exist - process it [12:15:02]req_shift_open_date [12:15:02]req_shift_open_date done [12:15:02]produce_requested_data done [12:15:02]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44681,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:15:02]process_action_free close_receipt [12:15:02]json_value_free [12:15:02]json_value_free done [12:15:02]process_json_proto returns [12:15:02]Send response to host [12:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44681,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:15:02]free response buf [12:15:02]execute_script done [12:15:02]execute_script returns [12:15:02]free content buf [12:15:02]Sock 7.Close socket [12:15:02]Sock 7.Thread stoped [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]accept exits with 9 [12:23:48]New connection [12:23:48]New thread 3067100516 created [12:23:48]Thread 3067243876 joined [12:23:48]Waiting for new connection... [12:23:48] Sock 9.Parse request [12:23:48]Sock 9.Check first char [12:23:48]Sock 9.First char is OK [12:23:48]request: POST /json_proto HTTP/1.0 [12:23:48]Method: POST [12:23:48]URL: /json_proto [12:23:48]Method is POST - this is cgi request [12:23:48]url: /json_proto [12:23:48]query_string will be loaded in cgi processing [12:23:48]execute_cgi json_proto POST (null) [12:23:48]execute_cgi path=json_proto method=POST [12:23:48]POST find Content-Length [12:23:48]Host: 172.17.45.196:8080 [12:23:48]Content-Length: 604 [12:23:48]Content-Type: application/json [12:23:48] [12:23:48]POST finish read [12:23:48]Found Content-Length = 604 [12:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14573", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]execute_script... [12:23:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14573", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]POST & json_proto [12:23:48]process_json_proto [12:23:48]json parsed OK: [12:23:48]protocol is kg_v1.0 [12:23:48]action value=close_receipt [12:23:48]process_action close_receipt [12:23:48]cmd_close_receipt [12:23:48]MH_GetDate [12:23:48]Write to MH i2c: F0 00 00 AF 05 A3 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 AF 05 00 55 38 A6 66 BB 03 A5 66 0E [12:23:48]GetLastDocTimeStamp 1722168901 [12:23:48]current date 1722169429 [12:23:48]FM_GetShiftState [12:23:48]SAM_PROTO_GetShiftState [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 01 00 [12:23:48]Write to MH i2c: E2 08 00 B0 05 80 13 01 00 00 00 00 00 32 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 B0 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CB [12:23:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetShiftState done [12:23:48]FM_GetShiftState done [12:23:48]opened in 1722126323 [12:23:48]opened+sec_in_day 1722212723 [12:23:48]quantity*price = 4500 [12:23:48]sum+1 = 4501 [12:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 53 28.07.2024 12:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44682 ФПД: 176538795234839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122349&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44682&fm=176538795234839&tin=02508201610067®Number=0000000000092655&sum=4500 0 [12:23:49]StoreToDocumentArchive [12:23:49]shift 430 fd 44682 [12:23:49]save to /storage/0430/doc_00044682 [12:23:49]save last doc name /storage/0430/doc_00044682 to /storage/kkm_last_doc_name [12:23:49]save OK [12:23:49]Clear old archive folders... [12:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:23:49]tlvbuf is 011821C0 [12:23:49]SAM_PROTO_ClearQueue [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 09 00 00 [12:23:49]Write to MH i2c: E2 08 00 BD 05 80 09 00 00 00 00 00 00 34 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]SAM_PROTO_ClearQueue done [12:23:49]KKMCreateOFDPacket [12:23:49]OFDProtocolAddRootSTLVToBuf [12:23:49]FM_MakeSignedData [12:23:49]FM_MakeSignedData [12:23:49]SAM_PROTO_SignData [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 01 02 [12:23:49]Write to MH i2c: E2 08 00 BE 05 80 0D 01 02 00 00 00 00 3C [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=255 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 38 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:23:49]Write to MH i2c: E2 02 01 BF 05 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 38 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 8E [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=27 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 02 02 16 34 39 34 31 10 04 04 00 8A AE 00 00 35 04 06 00 A0 8F A4 2D D6 17 [12:23:49]Write to MH i2c: E2 1E 00 C0 05 80 0D 02 02 16 00 34 39 34 31 10 04 04 00 8A AE 00 00 35 04 06 00 A0 8F A4 2D D6 17 00 00 B9 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 03 02 [12:23:49]Write to MH i2c: E2 08 00 C1 05 80 0D 03 02 00 00 00 00 41 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 0B 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 0B 00 C1 05 00 A0 6A D8 3D EB 37 7D C8 90 00 C8 [12:23:49]RAPDU: A0 6A D8 3D EB 37 7D C8 90 00 [12:23:49]wFMCommunicate OK [12:23:49]SAM_PROTO_SignData done [12:23:49]FM_MakeSignedData done [12:23:49]CreateOFDProtocolMessage [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 11 00 00 [12:23:49]Write to MH i2c: E2 08 00 C2 05 80 11 00 00 00 00 00 00 41 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 17 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 17 00 C2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 95 [12:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:23:49]wFMCommunicate OK [12:23:49]CreateOFDProtocolMessage done [12:23:49]OFDSenderStorePacket 44682 [12:23:49]StoreOFDPacket docnum=44682 [12:23:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 2A E9 18 01 F8 CA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 38 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8A AE 00 00 35 04 06 00 A0 8F A4 2D D6 17 A0 6A D8 3D EB 37 7D C8 [12:23:49]CheckFolder [12:23:49]dirname=/storage/ofd_packets [12:23:49]CheckFolder done [12:23:49]ProducePacketName [12:23:49]name=ofd_packets/00044682 [12:23:49]NVStorageSaveData ofd_packets/00044682 [12:23:49]File name is /storage/ofd_packets/00044682 [12:23:49]Write 318 bytes [12:23:49]NVStorageSaveData done [12:23:49]OFDSenderStorePacket done [12:23:49]KKMCreateOFDPacket done [12:23:49]NVStorageSaveData kkm_last_timestamp [12:23:49]File name is /storage/kkm_last_timestamp [12:23:49]Write 4 bytes [12:23:49]NVStorageSaveData done [12:23:49]ExternCall_PrintAddStr [12:23:49]wPrintStart [12:23:49]Write to MH i2c: 01 00 00 C3 05 C8 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 C3 05 00 00 00 00 00 FF 0F DD [12:23:49]RasterBufferAndPrint [12:23:49]line Счет N : (3)14573 [12:23:49]line ИНН: 02508201610067 [12:23:49]line Контрольно-Кассовый Чек [12:23:49]line ПРОДАЖА [12:23:49]line Товар: 50173976 [12:23:49]line Жев Orbit Winterfresh под [12:23:49]line 1.000 * 45.00 [12:23:49]line = 45.00 [12:23:49]line НДС 12% НСП 1% [12:23:49]line > о реализуемом товаре [12:23:49]line ИТОГО: 45.00 [12:23:49]line НСП 1% : 0.40 [12:23:49]line НДС 12% : 4.78 [12:23:49]line Наличными: 45.00 [12:23:49]line Безнал.: 0.00 [12:23:49]line Место: АЗС № 128 "Партнер Нефть" [12:23:49]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:23:49]line СНО: Общий режим [12:23:49]line Чек 53 28.07.2024 12:23 [12:23:49]line Смена: 430 ФФД: 1.0 [12:23:49]line ЗНМ: 0300000045 [12:23:49]line РНМ: 0000000000092655 [12:23:49]line Версия ККМ: 001 [12:23:50]line ФМ: 0000000000874941 [12:23:50]line ФД: 44682 [12:23:50]line ФПД: 176538795234839 [12:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122349&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44682&fm=176538795234839&tin=02508201610067®Number=0000000000092655&sum=4500 [12:23:50]line 0 [12:23:50]OFD Sender: Processing packet 44682 [packets to send 7, broken 6] [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00044682 [12:23:50]OFD Sender: To server: pG, [12:23:50]CommunicateWithHost lk.salyk.kg:30040 [12:23:50]ConnectInit lk.salyk.kg [12:23:50]written 0, free lines is 4095 [12:23:50]Connected sock=10 [12:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 2A E9 18 01 F8 CA 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 38 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8A AE 00 00 35 04 06 00 A0 8F A4 2D D6 17 A0 6A D8 3D EB 37 7D C8 [12:23:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 0D 27 47 00 99 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8A AE 00 00 F4 03 04 00 67 E4 A5 66 B6 04 01 00 00 29 18 C0 A2 6C 6A EE 94 [12:23:50]CommunicateWithHost err = 0 [12:23:50]CheckOFDResponse [12:23:50]1017 (14) - 77093643461234 [12:23:50]1041 (16) - 0000000000874941 [12:23:50]1040 (4) - 44682 [12:23:50]1012 (4) - 28.07.2024 06:25 [12:23:50]1206 (1) - 0 [12:23:50]OFD Sender: Remove packet 44682 [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00044682 [12:23:50]NVStorageDeleteData [12:23:50]Write to MH i2c: 01 00 00 EB 05 F0 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 EC 0C EF [12:23:50]RasterBufferAndPrint [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]written 0, free lines is 3314 [12:23:50]process_action close_receipt done [12:23:50]requested_data is exist [12:23:50]produce_requested_data [12:23:50]requested_item fm.sn is exist - process it [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 11 00 00 [12:23:50]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C5 [12:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:23:50]wFMCommunicate OK [12:23:50]requested_item fd.num is exist - process it [12:23:50]SAM_PROTO_GetFieldsCounters [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 13 00 00 [12:23:50]Write to MH i2c: E2 08 00 F3 05 80 13 00 00 00 00 00 00 74 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 62 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 62 00 F3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_GetFieldsCounters done [12:23:50]requested_item shift.num is exist - process it [12:23:50]requested_item shift.opened is exist - process it [12:23:50]req_shift_opened [12:23:50]FM_GetShiftState [12:23:50]SAM_PROTO_GetShiftState [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 13 01 00 [12:23:50]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 0F [12:23:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_GetShiftState done [12:23:50]FM_GetShiftState done [12:23:50]req_shift_opened done [12:23:50]requested_item shift.open_date is exist - process it [12:23:50]req_shift_open_date [12:23:50]req_shift_open_date done [12:23:50]produce_requested_data done [12:23:50]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44682,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:23:50]process_action_free close_receipt [12:23:50]json_value_free [12:23:50]json_value_free done [12:23:50]process_json_proto returns [12:23:50]Send response to host [12:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44682,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:23:50]free response buf [12:23:50]execute_script done [12:23:50]execute_script returns [12:23:50]free content buf [12:23:50]Sock 9.Close socket [12:23:50]Sock 9.Thread stoped [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:49]int [12:27:49]Write to MH i2c: 01 00 00 F5 05 FA [12:27:49]*** FLAG_PRN_KEY set [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 F5 05 00 08 00 00 00 FF 0F 17 [12:27:49]state=0 [12:27:49]Key pressed [12:27:49]Feed [12:27:49]Write to MH i2c: D8 00 00 F6 05 D2 [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: D8 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: D8 01 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: D8 01 00 F6 05 00 D3 [12:27:49]int [12:27:49]Write to MH i2c: 01 00 00 F7 05 FC [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 F7 05 00 48 00 00 00 3D 00 88 [12:27:49]state=2 [12:27:49]Key pressed [12:27:50]int [12:27:50]Write to MH i2c: 01 00 00 F8 05 FD [12:27:50]*** FLAG_PRN_KEY reset [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [12:27:50]state=2 [12:27:50]Stop feed [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:49]accept exits with 7 [12:33:49]New connection [12:33:49]New thread 3067243876 created [12:33:49]Thread 3067100516 joined [12:33:49]Waiting for new connection... [12:33:49] Sock 7.Parse request [12:33:49]Sock 7.Check first char [12:33:49]Sock 7.First char is OK [12:33:49]request: POST /json_proto HTTP/1.0 [12:33:49]Method: POST [12:33:49]URL: /json_proto [12:33:49]Method is POST - this is cgi request [12:33:49]url: /json_proto [12:33:49]query_string will be loaded in cgi processing [12:33:49]execute_cgi json_proto POST (null) [12:33:49]execute_cgi path=json_proto method=POST [12:33:49]POST find Content-Length [12:33:49]Host: 172.17.45.196:8080 [12:33:49]Content-Length: 621 [12:33:49]Content-Type: application/json [12:33:49] [12:33:49]POST finish read [12:33:49]Found Content-Length = 621 [12:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14574", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:49]execute_script... [12:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14574", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:49]POST & json_proto [12:33:49]process_json_proto [12:33:49]json parsed OK: [12:33:49]protocol is kg_v1.0 [12:33:49]action value=close_receipt [12:33:49]process_action close_receipt [12:33:49]cmd_close_receipt [12:33:49]MH_GetDate [12:33:49]Write to MH i2c: F0 00 00 F9 05 ED [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 09 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: F0 09 00 F9 05 00 AE 3A A6 66 BB 03 A5 66 B3 [12:33:49]GetLastDocTimeStamp 1722169429 [12:33:49]current date 1722170030 [12:33:49]FM_GetShiftState [12:33:49]SAM_PROTO_GetShiftState [12:33:49]wFMCommunicate request_size=4 [12:33:49]MH_SAM_APDU [12:33:49]CAPDU: 80 13 01 00 [12:33:49]Write to MH i2c: E2 08 00 FA 05 80 13 01 00 00 00 00 00 7C [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:49]Read from MH i2c: E2 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: E2 0E 00 FA 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 15 [12:33:49]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:33:49]wFMCommunicate OK [12:33:49]SAM_PROTO_GetShiftState done [12:33:49]FM_GetShiftState done [12:33:49]opened in 1722126323 [12:33:49]opened+sec_in_day 1722212723 [12:33:49]quantity*price = 15000 [12:33:49]sum+1 = 15001 [12:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 54 28.07.2024 12:33 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44683 ФПД: 81916240513012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123350&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44683&fm=81916240513012&tin=02508201610067®Number=0000000000092655&sum=15000 0 [12:33:50]StoreToDocumentArchive [12:33:50]shift 430 fd 44683 [12:33:50]save to /storage/0430/doc_00044683 [12:33:50]save last doc name /storage/0430/doc_00044683 to /storage/kkm_last_doc_name [12:33:50]save OK [12:33:50]Clear old archive folders... [12:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:33:50]tlvbuf is 01183BF0 [12:33:50]SAM_PROTO_ClearQueue [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 09 00 00 [12:33:50]Write to MH i2c: E2 08 00 07 06 80 09 00 00 00 00 00 00 7F [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]SAM_PROTO_ClearQueue done [12:33:50]KKMCreateOFDPacket [12:33:50]OFDProtocolAddRootSTLVToBuf [12:33:50]FM_MakeSignedData [12:33:50]FM_MakeSignedData [12:33:50]SAM_PROTO_SignData [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 01 02 [12:33:50]Write to MH i2c: E2 08 00 08 06 80 0D 01 02 00 00 00 00 87 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=255 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [12:33:50]Write to MH i2c: E2 02 01 09 06 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 FF [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=33 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8B AE 00 00 35 04 06 00 4A 80 9C 6A C7 F4 [12:33:50]Write to MH i2c: E2 24 00 0A 06 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8B AE 00 00 35 04 06 00 4A 80 9C 6A C7 F4 00 00 DE [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [12:33:50]RAPDU: 90 00 [12:33:50]wFMCommunicate OK [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 0D 03 02 [12:33:50]Write to MH i2c: E2 08 00 0B 06 80 0D 03 02 00 00 00 00 8C [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 0B 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 0B 00 0B 06 00 EC AF D9 37 50 ED 83 51 90 00 49 [12:33:50]RAPDU: EC AF D9 37 50 ED 83 51 90 00 [12:33:50]wFMCommunicate OK [12:33:50]SAM_PROTO_SignData done [12:33:50]FM_MakeSignedData done [12:33:50]CreateOFDProtocolMessage [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 11 00 00 [12:33:50]Write to MH i2c: E2 08 00 0C 06 80 11 00 00 00 00 00 00 8C [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:50]Read from MH i2c: E2 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 17 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: E2 17 00 0C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E0 [12:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:33:50]wFMCommunicate OK [12:33:50]CreateOFDProtocolMessage done [12:33:50]OFDSenderStorePacket 44683 [12:33:50]StoreOFDPacket docnum=44683 [12:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 72 ED 1E 01 42 FD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8B AE 00 00 35 04 06 00 4A 80 9C 6A C7 F4 EC AF D9 37 50 ED 83 51 [12:33:50]CheckFolder [12:33:50]dirname=/storage/ofd_packets [12:33:50]CheckFolder done [12:33:50]ProducePacketName [12:33:50]name=ofd_packets/00044683 [12:33:50]NVStorageSaveData ofd_packets/00044683 [12:33:50]File name is /storage/ofd_packets/00044683 [12:33:50]Write 324 bytes [12:33:50]NVStorageSaveData done [12:33:50]OFDSenderStorePacket done [12:33:50]KKMCreateOFDPacket done [12:33:50]NVStorageSaveData kkm_last_timestamp [12:33:50]File name is /storage/kkm_last_timestamp [12:33:50]Write 4 bytes [12:33:50]NVStorageSaveData done [12:33:50]ExternCall_PrintAddStr [12:33:50]wPrintStart [12:33:50]Write to MH i2c: 01 00 00 0D 06 13 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 07 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [12:33:50]RasterBufferAndPrint [12:33:50]line Счет N : (3)14574 [12:33:50]line ИНН: 02508201610067 [12:33:50]line Контрольно-Кассовый Чек [12:33:50]line ПРОДАЖА [12:33:50]line Товар: 4640030091645 [12:33:50]line Сигареты ESSE Exchange M [12:33:50]line 1.000 * 150.00 [12:33:50]line = 150.00 [12:33:50]line НДС 12% НСП 1% [12:33:50]line > о реализуемом товаре [12:33:50]line ИТОГО: 150.00 [12:33:50]line НСП 1% : 1.33 [12:33:50]line НДС 12% : 15.93 [12:33:50]line Наличными: 150.00 [12:33:50]line Безнал.: 0.00 [12:33:50]line Место: АЗС № 128 "Партнер Нефть" [12:33:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:33:50]line СНО: Общий режим [12:33:50]line Чек 54 28.07.2024 12:33 [12:33:50]line Смена: 430 ФФД: 1.0 [12:33:50]line ЗНМ: 0300000045 [12:33:50]line РНМ: 0000000000092655 [12:33:50]line Версия ККМ: 001 [12:33:50]line ФМ: 0000000000874941 [12:33:50]line ФД: 44683 [12:33:50]line ФПД: 81916240513012 [12:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123350&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44683&fm=81916240513012&tin=02508201610067®Number=0000000000092655&sum=15000 [12:33:51]line 0 [12:33:51]OFD Sender: Processing packet 44683 [packets to send 7, broken 6] [12:33:51]ProducePacketName [12:33:51]name=ofd_packets/00044683 [12:33:51]OFD Sender: To server: pG, [12:33:51]CommunicateWithHost lk.salyk.kg:30040 [12:33:51]ConnectInit lk.salyk.kg [12:33:51]written 0, free lines is 4095 [12:33:51]Connected sock=10 [12:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 72 ED 1E 01 42 FD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 AE 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8B AE 00 00 35 04 06 00 4A 80 9C 6A C7 F4 EC AF D9 37 50 ED 83 51 [12:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 86 24 47 00 FE F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8B AE 00 00 F4 03 04 00 C0 E6 A5 66 B6 04 01 00 00 03 02 22 95 C0 BE F9 37 [12:33:51]CommunicateWithHost err = 0 [12:33:51]CheckOFDResponse [12:33:51]1017 (14) - 77093643461234 [12:33:51]1041 (16) - 0000000000874941 [12:33:51]1040 (4) - 44683 [12:33:51]1012 (4) - 28.07.2024 06:35 [12:33:51]1206 (1) - 0 [12:33:51]OFD Sender: Remove packet 44683 [12:33:51]ProducePacketName [12:33:51]name=ofd_packets/00044683 [12:33:51]NVStorageDeleteData [12:33:51]Write to MH i2c: 01 00 00 35 06 3B [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 07 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 00 0D 4F [12:33:51]RasterBufferAndPrint [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]line [12:33:51]written 0, free lines is 3333 [12:33:51]process_action close_receipt done [12:33:51]requested_data is exist [12:33:51]produce_requested_data [12:33:51]requested_item fm.sn is exist - process it [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 11 00 00 [12:33:51]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 10 [12:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:33:51]wFMCommunicate OK [12:33:51]requested_item fd.num is exist - process it [12:33:51]SAM_PROTO_GetFieldsCounters [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 00 00 [12:33:51]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [12:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetFieldsCounters done [12:33:51]requested_item shift.num is exist - process it [12:33:51]requested_item shift.opened is exist - process it [12:33:51]req_shift_opened [12:33:51]FM_GetShiftState [12:33:51]SAM_PROTO_GetShiftState [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 01 00 [12:33:51]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5A [12:33:51]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetShiftState done [12:33:51]FM_GetShiftState done [12:33:51]req_shift_opened done [12:33:51]requested_item shift.open_date is exist - process it [12:33:51]req_shift_open_date [12:33:51]req_shift_open_date done [12:33:51]produce_requested_data done [12:33:51]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44683,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:33:51]process_action_free close_receipt [12:33:51]json_value_free [12:33:51]json_value_free done [12:33:51]process_json_proto returns [12:33:51]Send response to host [12:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44683,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:33:51]free response buf [12:33:51]execute_script done [12:33:51]execute_script returns [12:33:51]free content buf [12:33:51]Sock 7.Close socket [12:33:51]Sock 7.Thread stoped [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:16]accept exits with 9 [12:34:16]New connection [12:34:16]New thread 3067100516 created [12:34:16]Thread 3067243876 joined [12:34:16]Waiting for new connection... [12:34:16] Sock 9.Parse request [12:34:16]Sock 9.Check first char [12:34:16]Sock 9.First char is OK [12:34:16]request: POST /json_proto HTTP/1.0 [12:34:16]Method: POST [12:34:16]URL: /json_proto [12:34:16]Method is POST - this is cgi request [12:34:16]url: /json_proto [12:34:16]query_string will be loaded in cgi processing [12:34:16]execute_cgi json_proto POST (null) [12:34:16]execute_cgi path=json_proto method=POST [12:34:16]POST find Content-Length [12:34:16]Host: 172.17.45.196:8080 [12:34:16]Content-Length: 662 [12:34:16]Content-Type: application/json [12:34:16] [12:34:16]POST finish read [12:34:16]Found Content-Length = 662 [12:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14575", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:16]execute_script... [12:34:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14575", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:16]POST & json_proto [12:34:16]process_json_proto [12:34:16]json parsed OK: [12:34:16]protocol is kg_v1.0 [12:34:16]action value=close_receipt [12:34:16]process_action close_receipt [12:34:16]cmd_close_receipt [12:34:16]MH_GetDate [12:34:16]Write to MH i2c: F0 00 00 3F 06 34 [12:34:16]Write i2c OK [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: F0 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: F0 09 00 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: F0 09 00 3F 06 00 C9 3A A6 66 BB 03 A5 66 15 [12:34:16]GetLastDocTimeStamp 1722170030 [12:34:16]current date 1722170057 [12:34:16]FM_GetShiftState [12:34:16]SAM_PROTO_GetShiftState [12:34:16]wFMCommunicate request_size=4 [12:34:16]MH_SAM_APDU [12:34:16]CAPDU: 80 13 01 00 [12:34:16]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [12:34:16]Write i2c OK [12:34:16]MH_I2C_Read... [12:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:16]Read from MH i2c: E2 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: E2 0E 00 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5C [12:34:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:34:16]wFMCommunicate OK [12:34:16]SAM_PROTO_GetShiftState done [12:34:16]FM_GetShiftState done [12:34:16]opened in 1722126323 [12:34:16]opened+sec_in_day 1722212723 [12:34:16]quantity*price = 18000 [12:34:16]sum+1 = 18001 [12:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 55 28.07.2024 12:34 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44684 ФПД: 130493139215172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123417&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44684&fm=130493139215172&tin=02508201610067®Number=0000000000092655&sum=18000 0 [12:34:17]StoreToDocumentArchive [12:34:17]shift 430 fd 44684 [12:34:17]save to /storage/0430/doc_00044684 [12:34:17]save last doc name /storage/0430/doc_00044684 to /storage/kkm_last_doc_name [12:34:17]save OK [12:34:17]Clear old archive folders... [12:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=287 [12:34:17]tlvbuf is B6DEF140 [12:34:17]SAM_PROTO_ClearQueue [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 09 00 00 [12:34:17]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [12:34:17]RAPDU: 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_ClearQueue done [12:34:17]KKMCreateOFDPacket [12:34:17]OFDProtocolAddRootSTLVToBuf [12:34:17]FM_MakeSignedData [12:34:17]FM_MakeSignedData [12:34:17]SAM_PROTO_SignData [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 0D 01 02 [12:34:17]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [12:34:17]RAPDU: 90 00 [12:34:17]wFMCommunicate OK [12:34:17]wFMCommunicate request_size=255 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C9 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [12:34:17]Write to MH i2c: E2 02 01 4F 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C9 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 68 [12:34:17]*** FLAG_PRN_KEY set [12:34:17]int [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [12:34:17]Write to MH i2c: RAPDU: 01 90 00 00 00 [12:34:17]50 wFMCommunicate OK [12:34:17]06 wFMCommunicate request_size=46 [12:34:17]56 MH_SAM_APDU [12:34:17] [12:34:17]CAPDU: 80 0D 02 02 29 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8C AE 00 00 35 04 06 00 76 AE CD 35 63 44 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 50 06 00 08 00 00 00 FF 0F 73 [12:34:17]Write to MH i2c: state=0 [12:34:17]E2 Key pressed [12:34:17]31 Feed [12:34:17]00 51 06 80 0D 02 02 29 00 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8C AE 00 00 35 04 06 00 76 AE CD 35 63 44 00 00 67 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 [12:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [12:34:17]Write to MH i2c: RAPDU: D8 90 00 00 00 [12:34:17]52 wFMCommunicate OK [12:34:17]06 wFMCommunicate request_size=4 [12:34:17]2F MH_SAM_APDU [12:34:17] [12:34:17]CAPDU: 80 0D 03 02 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: D8 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: D8 01 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: D8 01 00 52 06 00 30 [12:34:17]Write to MH i2c: E2 08 00 53 06 80 0D 03 02 00 00 00 00 D4 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]int [12:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0B 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0B 00 53 06 00 50 B4 7E DE DC 1A 74 4C 90 00 EB [12:34:17]Write to MH i2c: RAPDU: 01 50 00 B4 7E DE 00 DC 54 1A 06 74 5A 4C [12:34:17]90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_SignData done [12:34:17]FM_MakeSignedData done [12:34:17]CreateOFDProtocolMessage [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 11 00 00 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 54 06 00 48 00 00 00 3D 00 E6 [12:34:17]Write to MH i2c: E2 state=2 [12:34:17]08 Key pressed [12:34:17]00 55 06 80 11 00 00 00 00 00 00 D5 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 29 [12:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:34:17]wFMCommunicate OK [12:34:17]CreateOFDProtocolMessage done [12:34:17]OFDSenderStorePacket 44684 [12:34:17]StoreOFDPacket docnum=44684 [12:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 33 01 00 00 BC 53 2B 01 E1 7E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C9 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8C AE 00 00 35 04 06 00 76 AE CD 35 63 44 50 B4 7E DE DC 1A 74 4C [12:34:17]CheckFolder [12:34:17]dirname=/storage/ofd_packets [12:34:17]CheckFolder done [12:34:17]ProducePacketName [12:34:17]name=ofd_packets/00044684 [12:34:17]NVStorageSaveData ofd_packets/00044684 [12:34:17]File name is /storage/ofd_packets/00044684 [12:34:17]Write 337 bytes [12:34:17]NVStorageSaveData done [12:34:17]OFDSenderStorePacket done [12:34:17]KKMCreateOFDPacket done [12:34:17]NVStorageSaveData kkm_last_timestamp [12:34:17]File name is /storage/kkm_last_timestamp [12:34:17]Write 4 bytes [12:34:17]NVStorageSaveData done [12:34:17]ExternCall_PrintAddStr [12:34:17]wPrintStart [12:34:17]Write to MH i2c: 01 00 00 56 06 5C [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 56 06 00 48 00 00 00 3C 00 E7 [12:34:17]RasterBufferAndPrint [12:34:17]line Счет N : (3)14575 [12:34:17]line ИНН: 02508201610067 [12:34:17]line Контрольно-Кассовый Чек [12:34:17]line ПРОДАЖА [12:34:17]line Товар: 5449000176448 [12:34:17]line Сок Piko Pulpy апельсин ПЭТ 1л [12:34:17]line 1.000 * 180.00 [12:34:17]line = 180.00 [12:34:17]line НДС 12% НСП 1% [12:34:17]line > о реализуемом товаре [12:34:17]line ИТОГО: 180.00 [12:34:17]line НСП 1% : 1.59 [12:34:17]line НДС 12% : 19.11 [12:34:17]line Наличными: 180.00 [12:34:17]line Безнал.: 0.00 [12:34:17]line Место: АЗС № 128 "Партнер Нефть" [12:34:17]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:34:17]line СНО: Общий режим [12:34:17]line Чек 55 28.07.2024 12:34 [12:34:17]line Смена: 430 ФФД: 1.0 [12:34:17]line ЗНМ: 0300000045 [12:34:17]line РНМ: 0000000000092655 [12:34:17]line Версия ККМ: 001 [12:34:17]line ФМ: 0000000000874941 [12:34:17]line ФД: 44684 [12:34:17]line ФПД: 130493139215172 [12:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123417&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44684&fm=130493139215172&tin=02508201610067®Number=0000000000092655&sum=18000 [12:34:17]line 0 [12:34:17]written 0, free lines is 60 [12:34:17]int [12:34:17]Write to MH i2c: 01 00 00 58 06 5E [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: DD [12:34:17]MH_I2C_Read... [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: DD 05 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: DD [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: DD 05 00 58 06 00 1E 00 D7 0F 43 [12:34:17]Write to MH i2c: DD AA 01 59 06 00 00 00 00 00 26 FC F8 FF FF 3F E0 3C 70 0E 38 07 F8 03 F0 07 FE 01 F0 03 F8 07 E0 01 F0 03 E0 01 F8 07 C0 07 C0 07 C0 03 F0 7F F8 26 08 3C FF DD 0F 7C 01 FC 0F FC 03 F8 07 FC 1F F8 03 F8 1F 07 FC 3F 0F E0 0F E0 0F F8 26 00 BC FF DD 3F 03 8E 0E 1E 00 07 1C 0E 0E 1C 3C 07 1C 18 0F 04 31 1C 70 1C 70 1E 08 00 78 26 08 3C FF DD 2F FC 07 07 08 0F 0E 0E 1C 07 10 1E 0E 0E 00 0E 00 01 38 38 38 38 1C 00 70 26 00 30 30 04 04 00 07 00 0E 1C 38 26 04 1C C3 C0 23 E1 0E 03 80 1C 07 1C 07 70 1C 70 1C F0 26 08 81 00 04 24 DC 1C F8 38 70 E0 26 04 A0 2C 0C 0C E3 0F FC 0E 0E 1E 39 F0 73 E0 26 F8 E0 2C 0C 1C 9C 7F FE 3F FF 0E 04 1E 03 F8 1C 3B F8 77 F0 01 26 04 E1 2C 0C 2C E7 00 1E 00 0E 07 FC 3C 3E 3C 7C 78 C0 26 F8 A0 2C 0C 0C 1C 70 0E 38 07 3C 07 0F 1E 78 3C 1E 78 3C 26 04 20 2C 0C 1C EF 78 1E 0F F0 38 0E 70 1C 03 26 04 20 3C 00 20 EE F0 1C 07 01 E0 80 26 04 30 30 00 00 FE 81 E0 OFD Sender: Processing packet 44684 [packets to send 7, broken 6] [12:34:18]03 ProducePacketName [12:34:18]C0 name=ofd_packets/00044684 [12:34:18]26 04 3C OFD Sender: To server: pG, [12:34:18]F3 C4 17 FC 07 07 03 C0 0E 0E 07 80 0E 0E 18 38 38 38 38 30 07 25 00 B0 3C 0C 0C 07 80 0E 1E 0F 0F 00 1C 1E 38 3C 25 04 DD DF CC 0F F8 1C 03 8E 0F 08 1E 07 1C 0F 1E 1F 07 1C 0E 3C 1C 70 1C 70 1C 78 25 00 EC EF FF 1F 01 FC FF 0F FC 03 F8 07 FC FE 03 F8 0F FE 07 F8 1F FC 0F E0 0F E0 0F F0 0F 25 04 CC CF CC 1F F0 00 F8 03 F0 01 F0 03 F8 01 F0 03 E0 07 C0 07 C0 07 C0 0E 00 00 00 00 00 00 E3 [12:34:18]Read from MH i2c: DD 05 00 [12:34:18]answer for other command [DD] [12:34:18]MH Int Process stopped [12:34:18]*** FLAG_PRN_KEY reset [12:34:18]CommunicateWithHost lk.salyk.kg:30040 [12:34:18]ConnectInit lk.salyk.kg [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: DD [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: DD 05 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: DD 05 00 59 06 00 1E 00 E1 0F 4E [12:34:18]answer with wrong packet_num 0659 - expected 065A [12:34:18]process_action_free close_receipt [12:34:18]json_value_free [12:34:18]json_value_free done [12:34:18]process_json_proto returns [12:34:18]Send response to host [12:34:18]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [12:34:18]free response buf [12:34:18]execute_script done [12:34:18]execute_script returns [12:34:18]free content buf [12:34:18]Sock 9.Close socket [12:34:18]Sock 9.Thread stoped [12:34:18]Connected sock=5 [12:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 33 01 00 00 BC 53 2B 01 E1 7E 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C9 3A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8C AE 00 00 35 04 06 00 76 AE CD 35 63 44 50 B4 7E DE DC 1A 74 4C [12:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 B3 E1 47 00 C3 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8C AE 00 00 F4 03 04 00 DB E6 A5 66 B6 04 01 00 00 83 A7 C1 C0 D3 01 46 AB [12:34:18]CommunicateWithHost err = 0 [12:34:18]CheckOFDResponse [12:34:18]1017 (14) - 77093643461234 [12:34:18]1041 (16) - 0000000000874941 [12:34:18]1040 (4) - 44684 [12:34:18]1012 (4) - 28.07.2024 06:36 [12:34:18]1206 (1) - 0 [12:34:18]OFD Sender: Remove packet 44684 [12:34:18]ProducePacketName [12:34:18]name=ofd_packets/00044684 [12:34:18]NVStorageDeleteData [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 80215+1722090427=1722170642 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 13 3D A6 66 BB 03 A5 66 24 [12:44:03]Current date/time: 28.07.2024 12:44 [12:44:03]FM_Init [12:44:03]wFMConnect [12:44:03]MH_SAM_On [12:44:03]Write to MH i2c: E0 00 00 08 00 E7 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_init finished! [12:44:03]*** atr: [12:44:03]*** 0F 3B D5 18 FF 81 91 FE [12:44:03]*** 1F C3 80 73 C8 21 10 0A [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]*** 00 00 00 00 00 00 00 00 [12:44:03]Read from MH i2c: E0 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E0 10 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:44:03]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:44:03]wFMCommunicate request_size=10 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:44:03]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 11 00 00 [12:44:03]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [12:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:44:03]wFMCommunicate OK [12:44:03]Detected FM SN is 0000000000874941 [12:44:03]Stored FM SN is 0000000000874941 [12:44:03]wFMCommunicate request_size=9 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 16 00 00 04 FA 44 01 00 [12:44:03]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]FM PIN OK [12:44:03]wFMCommunicate request_size=8 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 14 04 00 03 02 00 01 [12:44:03]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=13 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:44:03]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 11 00 00 [12:44:03]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [12:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:44:03]wFMCommunicate OK [12:44:03]DocumentArchiveInit [12:44:03]Start Httpd... [12:44:03]Httpd thread 3067637092 created [12:44:03]Write to MH i2c: 01 00 00 0F 00 0F [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: 01 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: 01 07 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:44:03]MH Int Process started [12:44:03]Allocated Socket 8 [12:44:03]Bind OK [12:44:03]Listen OK [12:44:03]httpd running on port 8080 [12:44:03]Waiting for new connection... [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:19]accept exits with 9 [12:44:19]New connection [12:44:19]New thread 3067350372 created [12:44:19]Waiting for new connection... [12:44:19] Sock 9.Parse request [12:44:19]Sock 9.Check first char [12:44:19]Sock 9.First char is OK [12:44:19]request: POST /json_proto HTTP/1.0 [12:44:19]Method: POST [12:44:19]URL: /json_proto [12:44:19]Method is POST - this is cgi request [12:44:19]url: /json_proto [12:44:19]query_string will be loaded in cgi processing [12:44:19]execute_cgi json_proto POST (null) [12:44:19]execute_cgi path=json_proto method=POST [12:44:19]POST find Content-Length [12:44:19]Host: 172.17.45.196:8080 [12:44:19]Content-Length: 215 [12:44:19]Content-Type: application/json [12:44:19] [12:44:19]POST finish read [12:44:19]Found Content-Length = 215 [12:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:19]execute_script... [12:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:19]POST & json_proto [12:44:19]process_json_proto [12:44:19]json parsed OK: [12:44:19]protocol is kg_v1.0 [12:44:19]action value=get_value [12:44:19]process_action get_value [12:44:19]cmd_get_value [12:44:19]process_action get_value done [12:44:19]requested_data is exist [12:44:19]produce_requested_data [12:44:19]requested_item kkm.sn is exist - process it [12:44:19]requested_item kkm.ver is exist - process it [12:44:19]requested_item fm.sn is exist - process it [12:44:19]wFMCommunicate request_size=4 [12:44:19]MH_SAM_APDU [12:44:19]CAPDU: 80 11 00 00 [12:44:19]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 [12:44:19]MH_I2C_Read... [12:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:19]Read from MH i2c: E2 17 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [12:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:44:19]wFMCommunicate OK [12:44:19]requested_item fd.num is exist - process it [12:44:19]SAM_PROTO_GetFieldsCounters [12:44:19]wFMCommunicate request_size=4 [12:44:19]MH_SAM_APDU [12:44:19]CAPDU: 80 13 00 00 [12:44:19]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:19]Read from MH i2c: E2 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 62 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:19]wFMCommunicate OK [12:44:19]SAM_PROTO_GetFieldsCounters done [12:44:19]requested_item shift.num is exist - process it [12:44:19]requested_item shift.opened is exist - process it [12:44:19]req_shift_opened [12:44:19]FM_GetShiftState [12:44:19]SAM_PROTO_GetShiftState [12:44:19]wFMCommunicate request_size=4 [12:44:19]MH_SAM_APDU [12:44:19]CAPDU: 80 13 01 00 [12:44:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:19]Read from MH i2c: E2 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 0E 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [12:44:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:44:19]wFMCommunicate OK [12:44:19]SAM_PROTO_GetShiftState done [12:44:19]FM_GetShiftState done [12:44:19]req_shift_opened done [12:44:19]requested_item shift.open_date is exist - process it [12:44:19]req_shift_open_date [12:44:19]req_shift_open_date done [12:44:19]produce_requested_data done [12:44:19]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44684,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:44:19]process_action_free get_value [12:44:19]json_value_free [12:44:19]json_value_free done [12:44:19]process_json_proto returns [12:44:19]Send response to host [12:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44684,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:44:19]free response buf [12:44:19]execute_script done [12:44:19]execute_script returns [12:44:19]free content buf [12:44:19]Sock 9.Close socket [12:44:19]Sock 9.Thread stoped [12:44:19]accept exits with 7 [12:44:19]New connection [12:44:19]New thread 3067207012 created [12:44:19]Thread 3067350372 joined [12:44:19]Waiting for new connection... [12:44:19] Sock 7.Parse request [12:44:19]Sock 7.Check first char [12:44:19]Sock 7.First char is OK [12:44:19]request: POST /json_proto HTTP/1.0 [12:44:19]Method: POST [12:44:19]URL: /json_proto [12:44:19]Method is POST - this is cgi request [12:44:19]url: /json_proto [12:44:19]query_string will be loaded in cgi processing [12:44:19]execute_cgi json_proto POST (null) [12:44:19]execute_cgi path=json_proto method=POST [12:44:19]POST find Content-Length [12:44:19]Host: 172.17.45.196:8080 [12:44:19]Content-Length: 331 [12:44:19]Content-Type: application/json [12:44:19] [12:44:19]POST finish read [12:44:19]Found Content-Length = 331 [12:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:44:19]execute_script... [12:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:44:19]POST & json_proto [12:44:19]process_json_proto [12:44:19]json parsed OK: [12:44:19]protocol is kg_v1.0 [12:44:19]action value=get_value [12:44:19]process_action get_value [12:44:20]cmd_get_value [12:44:20]process_action get_value done [12:44:20]requested_data is exist [12:44:20]produce_requested_data [12:44:20]requested_item fm.sale.total is exist - process it [12:44:20]SAM_PROTO_GetFMData [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 13 03 00 [12:44:20]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 FD 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 30 AB 00 00 69 04 A0 00 6F 04 04 00 A1 AA 00 00 B1 04 04 00 DD 14 1C 40 70 04 04 00 24 EF B0 3B 72 04 04 00 B9 25 6B 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF E7 CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 01 2A 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 1A [12:44:20]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 30 AB 00 00 69 04 A0 00 6F 04 04 00 A1 AA 00 00 B1 04 04 00 DD 14 1C 40 70 04 04 00 24 EF B0 3B 72 04 04 00 B9 25 6B 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF E7 CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 01 2A 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [12:44:20]wFMCommunicate OK [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 17 00 00 [12:44:20]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 FD 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [12:44:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [12:44:20]wFMCommunicate OK [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 17 00 00 [12:44:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 FD 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [12:44:21]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 17 00 00 [12:44:21]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 FD 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [12:44:21]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 17 00 00 [12:44:21]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 DF 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [12:44:21]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_GetFMData done [12:44:21]requested_item fm.sale_refund.total is exist - process it [12:44:21]requested_item fm.buy.total is exist - process it [12:44:21]requested_item shift.sale.total is exist - process it [12:44:21]SAM_PROTO_GetShiftData [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 13 02 00 [12:44:21]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:44:22]Read from MH i2c: E2 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 98 52 15 70 04 03 00 DC BF 13 72 04 03 00 BC 92 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A5 43 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 1E [12:44:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 98 52 15 70 04 03 00 DC BF 13 72 04 03 00 BC 92 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A5 43 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 43 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [12:44:22]wFMCommunicate OK [12:44:22]wFMCommunicate request_size=4 [12:44:22]MH_SAM_APDU [12:44:22]CAPDU: 80 17 00 00 [12:44:22]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:22]Read from MH i2c: E2 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [12:44:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [12:44:22]wFMCommunicate OK [12:44:22]wFMCommunicate request_size=4 [12:44:22]MH_SAM_APDU [12:44:22]CAPDU: 80 17 00 00 [12:44:22]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:22]Read from MH i2c: E2 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [12:44:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [12:44:22]wFMCommunicate OK [12:44:22]wFMCommunicate request_size=4 [12:44:22]MH_SAM_APDU [12:44:22]CAPDU: 80 17 00 00 [12:44:22]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:44:22]Read from MH i2c: E2 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [12:44:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [12:44:22]wFMCommunicate OK [12:44:22]wFMCommunicate request_size=4 [12:44:22]MH_SAM_APDU [12:44:22]CAPDU: 80 17 00 00 [12:44:22]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:44:23]Read from MH i2c: E2 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 CB 00 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [12:44:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:44:23]wFMCommunicate OK [12:44:23]SAM_PROTO_GetShiftData done [12:44:23]requested_item shift.sale.total_cash is exist - process it [12:44:23]requested_item shift.sale_refund.total is exist - process it [12:44:23]requested_item shift.sale_refund.total_cash is exist - process it [12:44:23]requested_item shift.buy.total is exist - process it [12:44:23]requested_item shift.buy.total_cash is exist - process it [12:44:23]produce_requested_data done [12:44:23]produce_requested_data return {"fm.sale.total":10755821.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":13974.00,"shift.sale.total_cash":12943.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:44:23]process_action_free get_value [12:44:23]json_value_free [12:44:23]json_value_free done [12:44:23]process_json_proto returns [12:44:23]Send response to host [12:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10755821.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":13974.00,"shift.sale.total_cash":12943.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:44:23]free response buf [12:44:23]execute_script done [12:44:23]execute_script returns [12:44:23]free content buf [12:44:23]Sock 7.Close socket [12:44:23]Sock 7.Thread stoped [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:25]accept exits with 9 [12:52:25]New connection [12:52:25]New thread 3067350372 created [12:52:25]Thread 3067207012 joined [12:52:25]Waiting for new connection... [12:52:25] Sock 9.Parse request [12:52:25]Sock 9.Check first char [12:52:25]Sock 9.First char is OK [12:52:25]request: POST /json_proto HTTP/1.0 [12:52:25]Method: POST [12:52:25]URL: /json_proto [12:52:25]Method is POST - this is cgi request [12:52:25]url: /json_proto [12:52:25]query_string will be loaded in cgi processing [12:52:25]execute_cgi json_proto POST (null) [12:52:25]execute_cgi path=json_proto method=POST [12:52:25]POST find Content-Length [12:52:25]Host: 172.17.45.196:8080 [12:52:25]Content-Length: 894 [12:52:25]Content-Type: application/json [12:52:25] [12:52:25]POST finish read [12:52:25]Found Content-Length = 894 [12:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14576", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:25]execute_script... [12:52:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14576", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:25]POST & json_proto [12:52:25]process_json_proto [12:52:25]json parsed OK: [12:52:25]protocol is kg_v1.0 [12:52:25]action value=close_receipt [12:52:25]process_action close_receipt [12:52:25]cmd_close_receipt [12:52:25]MH_GetDate [12:52:25]Write to MH i2c: F0 00 00 1D 00 0C [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: F0 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: F0 09 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: F0 09 00 1D 00 00 0A 3F A6 66 BB 03 A5 66 33 [12:52:25]GetLastDocTimeStamp 1722170057 [12:52:25]current date 1722171146 [12:52:25]FM_GetShiftState [12:52:25]SAM_PROTO_GetShiftState [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 13 01 00 [12:52:25]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [12:52:26]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetShiftState done [12:52:26]FM_GetShiftState done [12:52:26]opened in 1722126323 [12:52:26]opened+sec_in_day 1722212723 [12:52:26]quantity*price = 13000 [12:52:26]sum+1 = 13001 [12:52:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 56 28.07.2024 12:52 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44685 ФПД: 211627660119656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125226&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44685&fm=211627660119656&tin=02508201610067®Number=0000000000092655&sum=19000 0 [12:52:27]StoreToDocumentArchive [12:52:27]shift 430 fd 44685 [12:52:27]save to /storage/0430/doc_00044685 [12:52:27]save last doc name /storage/0430/doc_00044685 to /storage/kkm_last_doc_name [12:52:27]save OK [12:52:27]Clear old archive folders... [12:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=383 [12:52:27]tlvbuf is 0107D5A0 [12:52:27]SAM_PROTO_ClearQueue [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 09 00 00 [12:52:27]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]SAM_PROTO_ClearQueue done [12:52:27]KKMCreateOFDPacket [12:52:27]OFDProtocolAddRootSTLVToBuf [12:52:27]FM_MakeSignedData [12:52:27]FM_MakeSignedData [12:52:27]SAM_PROTO_SignData [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 01 02 [12:52:27]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=255 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 [12:52:27]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 91 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=142 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0A 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8D AE 00 00 35 04 06 00 C0 79 67 81 8E 68 [12:52:27]Write to MH i2c: E2 91 00 2E 00 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0A 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8D AE 00 00 35 04 06 00 C0 79 67 81 8E 68 00 00 E2 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 03 02 [12:52:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 0B 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 0B 00 2F 00 00 26 AC 8C 18 48 D3 63 23 90 00 C2 [12:52:27]RAPDU: 26 AC 8C 18 48 D3 63 23 90 00 [12:52:27]wFMCommunicate OK [12:52:27]SAM_PROTO_SignData done [12:52:27]FM_MakeSignedData done [12:52:27]CreateOFDProtocolMessage [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 11 00 00 [12:52:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 17 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [12:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:52:27]wFMCommunicate OK [12:52:27]CreateOFDProtocolMessage done [12:52:27]OFDSenderStorePacket 44685 [12:52:27]StoreOFDPacket docnum=44685 [12:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 93 01 00 00 2A 99 8B 01 27 E9 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0A 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8D AE 00 00 35 04 06 00 C0 79 67 81 8E 68 26 AC 8C 18 48 D3 63 23 [12:52:27]CheckFolder [12:52:27]dirname=/storage/ofd_packets [12:52:27]CheckFolder done [12:52:27]ProducePacketName [12:52:27]name=ofd_packets/00044685 [12:52:27]NVStorageSaveData ofd_packets/00044685 [12:52:27]File name is /storage/ofd_packets/00044685 [12:52:27]Write 433 bytes [12:52:27]NVStorageSaveData done [12:52:27]OFDSenderStorePacket done [12:52:27]KKMCreateOFDPacket done [12:52:27]NVStorageSaveData kkm_last_timestamp [12:52:27]File name is /storage/kkm_last_timestamp [12:52:27]Write 4 bytes [12:52:27]NVStorageSaveData done [12:52:27]ExternCall_PrintAddStr [12:52:27]wPrintStart [12:52:27]Write to MH i2c: 01 00 00 31 00 31 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: 01 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: 01 07 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:52:27]RasterBufferAndPrint [12:52:27]line Счет N : (3)14576 [12:52:27]line ИНН: 02508201610067 [12:52:27]line Контрольно-Кассовый Чек [12:52:27]line ПРОДАЖА [12:52:27]line Товар: 2000036220012 [12:52:27]line Кофе Капучино XL(GABB TRADE) [12:52:27]line 1.000 * 130.00 [12:52:27]line = 130.00 [12:52:27]line НДС 12% НСП 1% [12:52:27]line > о реализуемом товаре [12:52:27]line Товар: 4700000160204 [12:52:27]line Вода Легенда 1,5л [12:52:27]line 1.000 * 60.00 [12:52:27]line = 60.00 [12:52:27]line НДС 12% НСП 1% [12:52:27]line > о реализуемом товаре [12:52:27]line ИТОГО: 190.00 [12:52:27]line НСП 1% : 1.68 [12:52:27]line НДС 12% : 20.17 [12:52:27]line Наличными: 190.00 [12:52:27]line Безнал.: 0.00 [12:52:28]line Место: АЗС № 128 "Партнер Нефть" [12:52:28]OFD Sender: Processing packet 44685 [packets to send 7, broken 6] [12:52:28]ProducePacketName [12:52:28]name=ofd_packets/00044685 [12:52:28]OFD Sender: To server: pG, [12:52:28]CommunicateWithHost lk.salyk.kg:30040 [12:52:28]ConnectInit lk.salyk.kg [12:52:28]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:52:28]line СНО: Общий режим [12:52:28]line Чек 56 28.07.2024 12:52 [12:52:28]line Смена: 430 ФФД: 1.0 [12:52:28]line ЗНМ: 0300000045 [12:52:28]line РНМ: 0000000000092655 [12:52:28]line Версия ККМ: 001 [12:52:28]line ФМ: 0000000000874941 [12:52:28]line ФД: 44685 [12:52:28]line ФПД: 211627660119656 [12:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125226&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44685&fm=211627660119656&tin=02508201610067®Number=0000000000092655&sum=19000 [12:52:28]line 0 [12:52:28]written 0, free lines is 4095 [12:52:28]Connected sock=10 [12:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 93 01 00 00 2A 99 8B 01 27 E9 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 0A 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8D AE 00 00 35 04 06 00 C0 79 67 81 8E 68 26 AC 8C 18 48 D3 63 23 [12:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 45 E1 47 00 E8 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8D AE 00 00 F4 03 04 00 1D EB A5 66 B6 04 01 00 00 EB 03 00 7D D0 76 A7 36 [12:52:28]CommunicateWithHost err = 0 [12:52:28]CheckOFDResponse [12:52:28]1017 (14) - 77093643461234 [12:52:28]1041 (16) - 0000000000874941 [12:52:28]1040 (4) - 44685 [12:52:28]1012 (4) - 28.07.2024 06:54 [12:52:28]1206 (1) - 0 [12:52:28]OFD Sender: Remove packet 44685 [12:52:28]ProducePacketName [12:52:28]name=ofd_packets/00044685 [12:52:28]NVStorageDeleteData [12:52:28]Write to MH i2c: 01 00 00 60 00 60 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 9F 0C 12 [12:52:28]RasterBufferAndPrint [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]written 0, free lines is 3237 [12:52:28]process_action close_receipt done [12:52:28]requested_data is exist [12:52:28]produce_requested_data [12:52:28]requested_item fm.sn is exist - process it [12:52:28]wFMCommunicate request_size=4 [12:52:28]MH_SAM_APDU [12:52:28]CAPDU: 80 11 00 00 [12:52:28]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:28]Read from MH i2c: E2 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 17 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 35 [12:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:52:28]wFMCommunicate OK [12:52:28]requested_item fd.num is exist - process it [12:52:28]SAM_PROTO_GetFieldsCounters [12:52:28]wFMCommunicate request_size=4 [12:52:28]MH_SAM_APDU [12:52:28]CAPDU: 80 13 00 00 [12:52:28]Write to MH i2c: E2 08 00 68 00 80 13 00 00 00 00 00 00 E4 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 [12:52:28]MH_I2C_Read... [12:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:28]Read from MH i2c: E2 62 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 62 00 68 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:28]wFMCommunicate OK [12:52:28]SAM_PROTO_GetFieldsCounters done [12:52:28]requested_item shift.num is exist - process it [12:52:28]requested_item shift.opened is exist - process it [12:52:28]req_shift_opened [12:52:28]FM_GetShiftState [12:52:28]SAM_PROTO_GetShiftState [12:52:28]wFMCommunicate request_size=4 [12:52:28]MH_SAM_APDU [12:52:28]CAPDU: 80 13 01 00 [12:52:28]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:28]Read from MH i2c: E2 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 0E 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7F [12:52:28]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:52:28]wFMCommunicate OK [12:52:28]SAM_PROTO_GetShiftState done [12:52:28]FM_GetShiftState done [12:52:28]req_shift_opened done [12:52:28]requested_item shift.open_date is exist - process it [12:52:28]req_shift_open_date [12:52:28]req_shift_open_date done [12:52:28]produce_requested_data done [12:52:28]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44685,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:52:28]process_action_free close_receipt [12:52:28]json_value_free [12:52:28]json_value_free done [12:52:28]process_json_proto returns [12:52:28]Send response to host [12:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44685,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:52:28]free response buf [12:52:28]execute_script done [12:52:28]execute_script returns [12:52:28]free content buf [12:52:28]Sock 9.Close socket [12:52:28]Sock 9.Thread stoped [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:12]accept exits with 7 [12:53:12]New connection [12:53:12]New thread 3067207012 created [12:53:12]Thread 3067350372 joined [12:53:12]Waiting for new connection... [12:53:12] Sock 7.Parse request [12:53:12]Sock 7.Check first char [12:53:12]Sock 7.First char is OK [12:53:12]request: POST /json_proto HTTP/1.0 [12:53:12]Method: POST [12:53:12]URL: /json_proto [12:53:12]Method is POST - this is cgi request [12:53:12]url: /json_proto [12:53:12]query_string will be loaded in cgi processing [12:53:12]execute_cgi json_proto POST (null) [12:53:12]execute_cgi path=json_proto method=POST [12:53:12]POST find Content-Length [12:53:12]Host: 172.17.45.196:8080 [12:53:12]Content-Length: 631 [12:53:12]Content-Type: application/json [12:53:12] [12:53:12]POST finish read [12:53:12]Found Content-Length = 631 [12:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14577", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:12]execute_script... [12:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14577", "tax_sys" : 0, "items" : [ { "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:12]POST & json_proto [12:53:12]process_json_proto [12:53:12]json parsed OK: [12:53:12]protocol is kg_v1.0 [12:53:12]action value=close_receipt [12:53:12]process_action close_receipt [12:53:12]cmd_close_receipt [12:53:12]MH_GetDate [12:53:12]Write to MH i2c: F0 00 00 6A 00 59 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: F0 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: F0 09 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: F0 09 00 6A 00 00 39 3F A6 66 BB 03 A5 66 AF [12:53:12]GetLastDocTimeStamp 1722171146 [12:53:12]current date 1722171193 [12:53:12]FM_GetShiftState [12:53:12]SAM_PROTO_GetShiftState [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 13 01 00 [12:53:12]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 0E 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 81 [12:53:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:53:12]wFMCommunicate OK [12:53:12]SAM_PROTO_GetShiftState done [12:53:12]FM_GetShiftState done [12:53:12]opened in 1722126323 [12:53:12]opened+sec_in_day 1722212723 [12:53:12]quantity*price = 4000 [12:53:12]sum+1 = 4001 [12:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 57 28.07.2024 12:53 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44686 ФПД: 7364943218683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125313&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44686&fm=7364943218683&tin=02508201610067®Number=0000000000092655&sum=4000 0 [12:53:13]StoreToDocumentArchive [12:53:13]shift 430 fd 44686 [12:53:13]save to /storage/0430/doc_00044686 [12:53:13]save last doc name /storage/0430/doc_00044686 to /storage/kkm_last_doc_name [12:53:13]save OK [12:53:13]Clear old archive folders... [12:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:53:13]tlvbuf is 01078700 [12:53:13]SAM_PROTO_ClearQueue [12:53:13]wFMCommunicate request_size=4 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 09 00 00 [12:53:13]Write to MH i2c: E2 08 00 78 00 80 09 00 00 00 00 00 00 EA [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:53:13]RAPDU: 90 00 [12:53:13]wFMCommunicate OK [12:53:13]SAM_PROTO_ClearQueue done [12:53:13]KKMCreateOFDPacket [12:53:13]OFDProtocolAddRootSTLVToBuf [12:53:13]FM_MakeSignedData [12:53:13]FM_MakeSignedData [12:53:13]SAM_PROTO_SignData [12:53:13]wFMCommunicate request_size=4 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 0D 01 02 [12:53:13]Write to MH i2c: E2 08 00 79 00 80 0D 01 02 00 00 00 00 F2 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=255 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 39 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [12:53:14]Write to MH i2c: E2 02 01 7A 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 39 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 56 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]OFD Sender: No OFD packet to send [12:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=34 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8E AE 00 00 35 04 06 00 06 B2 C8 D3 07 FB [12:53:14]Write to MH i2c: E2 25 00 7B 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8E AE 00 00 35 04 06 00 06 B2 C8 D3 07 FB 00 00 48 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 03 02 [12:53:14]Write to MH i2c: E2 08 00 7C 00 80 0D 03 02 00 00 00 00 F7 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0B 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 0B 00 7C 00 00 21 B1 18 6D 7C 7A D7 A1 90 00 BD [12:53:14]RAPDU: 21 B1 18 6D 7C 7A D7 A1 90 00 [12:53:14]wFMCommunicate OK [12:53:14]SAM_PROTO_SignData done [12:53:14]FM_MakeSignedData done [12:53:14]CreateOFDProtocolMessage [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 11 00 00 [12:53:14]Write to MH i2c: E2 08 00 7D 00 80 11 00 00 00 00 00 00 F7 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 17 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 17 00 7D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4B [12:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:53:14]wFMCommunicate OK [12:53:14]CreateOFDProtocolMessage done [12:53:14]OFDSenderStorePacket 44686 [12:53:14]StoreOFDPacket docnum=44686 [12:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 3C A2 1F 01 7F 78 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 39 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8E AE 00 00 35 04 06 00 06 B2 C8 D3 07 FB 21 B1 18 6D 7C 7A D7 A1 [12:53:14]CheckFolder [12:53:14]dirname=/storage/ofd_packets [12:53:14]CheckFolder done [12:53:14]ProducePacketName [12:53:14]name=ofd_packets/00044686 [12:53:14]NVStorageSaveData ofd_packets/00044686 [12:53:14]File name is /storage/ofd_packets/00044686 [12:53:14]Write 325 bytes [12:53:14]NVStorageSaveData done [12:53:14]OFDSenderStorePacket done [12:53:14]KKMCreateOFDPacket done [12:53:14]NVStorageSaveData kkm_last_timestamp [12:53:14]File name is /storage/kkm_last_timestamp [12:53:14]Write 4 bytes [12:53:14]NVStorageSaveData done [12:53:14]ExternCall_PrintAddStr [12:53:14]wPrintStart [12:53:14]Write to MH i2c: 01 00 00 7E 00 7E [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: 01 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: 01 07 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 FF 0F 93 [12:53:14]RasterBufferAndPrint [12:53:14]line Счет N : (3)14577 [12:53:14]line ИНН: 02508201610067 [12:53:14]line Контрольно-Кассовый Чек [12:53:14]line ПРОДАЖА [12:53:14]line Товар: 50173372 [12:53:14]line Жев Orbit для детей Classic [12:53:14]line 1.000 * 40.00 [12:53:14]line = 40.00 [12:53:14]line НДС 12% НСП 1% [12:53:14]line > о реализуемом товаре [12:53:14]line ИТОГО: 40.00 [12:53:14]line НСП 1% : 0.35 [12:53:14]line НДС 12% : 4.25 [12:53:14]line Наличными: 40.00 [12:53:14]line Безнал.: 0.00 [12:53:14]line Место: АЗС № 128 "Партнер Нефть" [12:53:14]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:53:14]line СНО: Общий режим [12:53:14]line Чек 57 28.07.2024 12:53 [12:53:14]line Смена: 430 ФФД: 1.0 [12:53:14]line ЗНМ: 0300000045 [12:53:14]line РНМ: 0000000000092655 [12:53:14]line Версия ККМ: 001 [12:53:14]line ФМ: 0000000000874941 [12:53:14]line ФД: 44686 [12:53:14]line ФПД: 7364943218683 [12:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125313&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44686&fm=7364943218683&tin=02508201610067®Number=0000000000092655&sum=4000 [12:53:14]line 0 [12:53:14]OFD Sender: Processing packet 44686 [packets to send 7, broken 6] [12:53:14]ProducePacketName [12:53:14]name=ofd_packets/00044686 [12:53:14]OFD Sender: To server: pG, [12:53:14]CommunicateWithHost lk.salyk.kg:30040 [12:53:14]ConnectInit lk.salyk.kg [12:53:14]written 0, free lines is 4095 [12:53:15]Connected sock=10 [12:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 3C A2 1F 01 7F 78 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 39 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8E AE 00 00 35 04 06 00 06 B2 C8 D3 07 FB 21 B1 18 6D 7C 7A D7 A1 [12:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 CC E3 47 00 1B B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8E AE 00 00 F4 03 04 00 4B EB A5 66 B6 04 01 00 00 89 55 01 40 EE 20 9A 96 [12:53:15]CommunicateWithHost err = 0 [12:53:15]CheckOFDResponse [12:53:15]1017 (14) - 77093643461234 [12:53:15]1041 (16) - 0000000000874941 [12:53:15]1040 (4) - 44686 [12:53:15]1012 (4) - 28.07.2024 06:55 [12:53:15]1206 (1) - 0 [12:53:15]OFD Sender: Remove packet 44686 [12:53:15]ProducePacketName [12:53:15]name=ofd_packets/00044686 [12:53:15]NVStorageDeleteData [12:53:15]Write to MH i2c: 01 00 00 A6 00 A6 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 E7 0C A0 [12:53:15]RasterBufferAndPrint [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]written 0, free lines is 3310 [12:53:15]process_action close_receipt done [12:53:15]requested_data is exist [12:53:15]produce_requested_data [12:53:15]requested_item fm.sn is exist - process it [12:53:15]wFMCommunicate request_size=4 [12:53:15]MH_SAM_APDU [12:53:15]CAPDU: 80 11 00 00 [12:53:15]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 17 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7B [12:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:53:15]wFMCommunicate OK [12:53:15]requested_item fd.num is exist - process it [12:53:15]SAM_PROTO_GetFieldsCounters [12:53:15]wFMCommunicate request_size=4 [12:53:15]MH_SAM_APDU [12:53:15]CAPDU: 80 13 00 00 [12:53:15]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 62 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [12:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:15]wFMCommunicate OK [12:53:15]SAM_PROTO_GetFieldsCounters done [12:53:15]requested_item shift.num is exist - process it [12:53:15]requested_item shift.opened is exist - process it [12:53:15]req_shift_opened [12:53:15]FM_GetShiftState [12:53:15]SAM_PROTO_GetShiftState [12:53:15]wFMCommunicate request_size=4 [12:53:15]MH_SAM_APDU [12:53:15]CAPDU: 80 13 01 00 [12:53:15]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0E 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C5 [12:53:15]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:53:15]wFMCommunicate OK [12:53:15]SAM_PROTO_GetShiftState done [12:53:15]FM_GetShiftState done [12:53:15]req_shift_opened done [12:53:15]requested_item shift.open_date is exist - process it [12:53:15]req_shift_open_date [12:53:15]req_shift_open_date done [12:53:15]produce_requested_data done [12:53:15]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44686,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:53:15]process_action_free close_receipt [12:53:15]json_value_free [12:53:15]json_value_free done [12:53:15]process_json_proto returns [12:53:15]Send response to host [12:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44686,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:53:15]free response buf [12:53:15]execute_script done [12:53:15]execute_script returns [12:53:15]free content buf [12:53:15]Sock 7.Close socket [12:53:15]Sock 7.Thread stoped [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]accept exits with 9 [12:54:00]New connection [12:54:00]New thread 3067350372 created [12:54:00]Thread 3067207012 joined [12:54:00]Waiting for new connection... [12:54:00] Sock 9.Parse request [12:54:00]Sock 9.Check first char [12:54:00]Sock 9.First char is OK [12:54:00]request: POST /json_proto HTTP/1.0 [12:54:00]Method: POST [12:54:00]URL: /json_proto [12:54:00]Method is POST - this is cgi request [12:54:00]url: /json_proto [12:54:00]query_string will be loaded in cgi processing [12:54:00]execute_cgi json_proto POST (null) [12:54:00]execute_cgi path=json_proto method=POST [12:54:00]POST find Content-Length [12:54:00]Host: 172.17.45.196:8080 [12:54:00]Content-Length: 646 [12:54:00]Content-Type: application/json [12:54:00] [12:54:00]POST finish read [12:54:00]Found Content-Length = 646 [12:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14578", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:00]execute_script... [12:54:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14578", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:00]POST & json_proto [12:54:00]process_json_proto [12:54:00]json parsed OK: [12:54:00]protocol is kg_v1.0 [12:54:00]action value=close_receipt [12:54:00]process_action close_receipt [12:54:00]cmd_close_receipt [12:54:00]MH_GetDate [12:54:00]Write to MH i2c: F0 00 00 B0 00 9F [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: F0 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: F0 09 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: F0 09 00 B0 00 00 69 3F A6 66 BB 03 A5 66 25 [12:54:00]GetLastDocTimeStamp 1722171193 [12:54:00]current date 1722171241 [12:54:00]FM_GetShiftState [12:54:00]SAM_PROTO_GetShiftState [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 13 01 00 [12:54:00]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:00]Read from MH i2c: E2 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0E 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C7 [12:54:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:54:00]wFMCommunicate OK [12:54:00]SAM_PROTO_GetShiftState done [12:54:00]FM_GetShiftState done [12:54:00]opened in 1722126323 [12:54:00]opened+sec_in_day 1722212723 [12:54:00]quantity*price = 4000 [12:54:00]sum+1 = 4001 [12:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 58 28.07.2024 12:54 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44687 ФПД: 158914082230984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125401&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44687&fm=158914082230984&tin=02508201610067®Number=0000000000092655&sum=4000 0 [12:54:01]StoreToDocumentArchive [12:54:01]shift 430 fd 44687 [12:54:01]save to /storage/0430/doc_00044687 [12:54:01]save last doc name /storage/0430/doc_00044687 to /storage/kkm_last_doc_name [12:54:01]save OK [12:54:01]Clear old archive folders... [12:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:54:01]tlvbuf is 01068BF0 [12:54:01]SAM_PROTO_ClearQueue [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 09 00 00 [12:54:01]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 03 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [12:54:01]RAPDU: 90 00 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_ClearQueue done [12:54:01]KKMCreateOFDPacket [12:54:01]OFDProtocolAddRootSTLVToBuf [12:54:01]FM_MakeSignedData [12:54:01]FM_MakeSignedData [12:54:01]SAM_PROTO_SignData [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 0D 01 02 [12:54:01]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 03 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [12:54:01]RAPDU: 90 00 [12:54:01]wFMCommunicate OK [12:54:01]wFMCommunicate request_size=255 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 69 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 [12:54:01]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 69 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 00 00 D3 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 03 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [12:54:02]RAPDU: 90 00 [12:54:02]wFMCommunicate OK [12:54:02]wFMCommunicate request_size=37 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8F AE 00 00 35 04 06 00 90 88 11 6B D2 C8 [12:54:02]Write to MH i2c: E2 28 00 C1 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8F AE 00 00 35 04 06 00 90 88 11 6B D2 C8 00 00 FE [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 03 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:54:02]RAPDU: 90 00 [12:54:02]wFMCommunicate OK [12:54:02]wFMCommunicate request_size=4 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 0D 03 02 [12:54:02]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 0B 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 0B 00 C2 00 00 4A 7D 74 48 EE 76 4B 8F 90 00 FF [12:54:02]RAPDU: 4A 7D 74 48 EE 76 4B 8F 90 00 [12:54:02]wFMCommunicate OK [12:54:02]SAM_PROTO_SignData done [12:54:02]FM_MakeSignedData done [12:54:02]CreateOFDProtocolMessage [12:54:02]wFMCommunicate request_size=4 [12:54:02]MH_SAM_APDU [12:54:02]CAPDU: 80 11 00 00 [12:54:02]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:02]Read from MH i2c: E2 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 17 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 91 [12:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:54:02]wFMCommunicate OK [12:54:02]CreateOFDProtocolMessage done [12:54:02]OFDSenderStorePacket 44687 [12:54:02]StoreOFDPacket docnum=44687 [12:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 E3 64 22 01 FD 64 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 69 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8F AE 00 00 35 04 06 00 90 88 11 6B D2 C8 4A 7D 74 48 EE 76 4B 8F [12:54:02]CheckFolder [12:54:02]dirname=/storage/ofd_packets [12:54:02]CheckFolder done [12:54:02]ProducePacketName [12:54:02]name=ofd_packets/00044687 [12:54:02]NVStorageSaveData ofd_packets/00044687 [12:54:02]File name is /storage/ofd_packets/00044687 [12:54:02]Write 328 bytes [12:54:02]NVStorageSaveData done [12:54:02]OFDSenderStorePacket done [12:54:02]KKMCreateOFDPacket done [12:54:02]NVStorageSaveData kkm_last_timestamp [12:54:02]File name is /storage/kkm_last_timestamp [12:54:02]Write 4 bytes [12:54:02]NVStorageSaveData done [12:54:02]ExternCall_PrintAddStr [12:54:02]wPrintStart [12:54:02]Write to MH i2c: 01 00 00 C4 00 C4 [12:54:02]Write i2c OK [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: 01 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: 01 07 00 [12:54:02]MH_I2C_Read... [12:54:02]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [12:54:02]RasterBufferAndPrint [12:54:02]line Счет N : (3)14578 [12:54:02]line ИНН: 02508201610067 [12:54:02]line Контрольно-Кассовый Чек [12:54:02]line ПРОДАЖА [12:54:02]line Товар: 4700000310036 [12:54:02]line Вода Жалалабат 27 0,5л [12:54:02]line 1.000 * 40.00 [12:54:02]line = 40.00 [12:54:02]line НДС 12% НСП 1% [12:54:02]line > о реализуемом товаре [12:54:02]line ИТОГО: 40.00 [12:54:02]line НСП 1% : 0.35 [12:54:02]line НДС 12% : 4.25 [12:54:02]line Наличными: 40.00 [12:54:02]line Безнал.: 0.00 [12:54:02]line Место: АЗС № 128 "Партнер Нефть" [12:54:02]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [12:54:02]line СНО: Общий режим [12:54:02]line Чек 58 28.07.2024 12:54 [12:54:02]line Смена: 430 ФФД: 1.0 [12:54:02]line ЗНМ: 0300000045 [12:54:02]line РНМ: 0000000000092655 [12:54:02]line Версия ККМ: 001 [12:54:02]line ФМ: 0000000000874941 [12:54:02]line ФД: 44687 [12:54:02]line ФПД: 158914082230984 [12:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T125401&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44687&fm=158914082230984&tin=02508201610067®Number=0000000000092655&sum=4000 [12:54:02]line 0 [12:54:02]written 0, free lines is 4095 [12:54:02]OFD Sender: Processing packet 44687 [packets to send 7, broken 6] [12:54:02]ProducePacketName [12:54:02]name=ofd_packets/00044687 [12:54:02]OFD Sender: To server: pG, [12:54:02]CommunicateWithHost lk.salyk.kg:30040 [12:54:02]ConnectInit lk.salyk.kg [12:54:02]Connected sock=10 [12:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 E3 64 22 01 FD 64 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 69 3F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8F AE 00 00 35 04 06 00 90 88 11 6B D2 C8 4A 7D 74 48 EE 76 4B 8F [12:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 5D DE 47 00 C4 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 8F AE 00 00 F4 03 04 00 7B EB A5 66 B6 04 01 00 00 82 99 6A FA 65 8D 8C B8 [12:54:03]CommunicateWithHost err = 0 [12:54:03]CheckOFDResponse [12:54:03]1017 (14) - 77093643461234 [12:54:03]1041 (16) - 0000000000874941 [12:54:03]1040 (4) - 44687 [12:54:03]1012 (4) - 28.07.2024 06:55 [12:54:03]1206 (1) - 0 [12:54:03]OFD Sender: Remove packet 44687 [12:54:03]ProducePacketName [12:54:03]name=ofd_packets/00044687 [12:54:03]NVStorageDeleteData [12:54:03]Write to MH i2c: 01 00 00 EC 00 EC [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 07 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FD 0C FC [12:54:03]RasterBufferAndPrint [12:54:03]line [12:54:03]line [12:54:03]line [12:54:03]line [12:54:03]line [12:54:03]written 0, free lines is 3331 [12:54:03]process_action close_receipt done [12:54:03]requested_data is exist [12:54:03]produce_requested_data [12:54:03]requested_item fm.sn is exist - process it [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 11 00 00 [12:54:03]Write to MH i2c: E2 08 00 F3 00 80 11 00 00 00 00 00 00 6D [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 17 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 17 00 F3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C1 [12:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [12:54:03]wFMCommunicate OK [12:54:03]requested_item fd.num is exist - process it [12:54:03]SAM_PROTO_GetFieldsCounters [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 13 00 00 [12:54:03]Write to MH i2c: E2 08 00 F4 00 80 13 00 00 00 00 00 00 70 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 62 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 62 00 F4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 8F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:03]wFMCommunicate OK [12:54:03]SAM_PROTO_GetFieldsCounters done [12:54:03]requested_item shift.num is exist - process it [12:54:03]requested_item shift.opened is exist - process it [12:54:03]req_shift_opened [12:54:03]FM_GetShiftState [12:54:03]SAM_PROTO_GetShiftState [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 13 01 00 [12:54:03]Write to MH i2c: E2 08 00 F5 00 80 13 01 00 00 00 00 00 72 [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0E 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0E 00 F5 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 0B [12:54:03]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [12:54:03]wFMCommunicate OK [12:54:03]SAM_PROTO_GetShiftState done [12:54:03]FM_GetShiftState done [12:54:03]req_shift_opened done [12:54:03]requested_item shift.open_date is exist - process it [12:54:03]req_shift_open_date [12:54:03]req_shift_open_date done [12:54:03]produce_requested_data done [12:54:03]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44687,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [12:54:03]process_action_free close_receipt [12:54:03]json_value_free [12:54:03]json_value_free done [12:54:03]process_json_proto returns [12:54:03]Send response to host [12:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44687,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [12:54:03]free response buf [12:54:03]execute_script done [12:54:03]execute_script returns [12:54:03]free content buf [12:54:03]Sock 9.Close socket [12:54:03]Sock 9.Thread stoped [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:10]int [12:54:10]Write to MH i2c: 01 00 00 F6 00 F6 [12:54:10]*** FLAG_PRN_KEY set [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 F6 00 00 08 00 00 00 FF 0F 13 [12:54:10]state=0 [12:54:10]Key pressed [12:54:10]Feed [12:54:10]Write to MH i2c: D8 00 00 F7 00 CE [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: D8 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: D8 01 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: D8 01 00 F7 00 00 CF [12:54:10]int [12:54:10]Write to MH i2c: 01 00 00 F8 00 F8 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 F8 00 00 48 00 00 00 3D 00 84 [12:54:10]state=2 [12:54:10]Key pressed [12:54:10]int [12:54:10]Write to MH i2c: 01 00 00 F9 00 F9 [12:54:10]*** FLAG_PRN_KEY reset [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FD 0F 0C [12:54:10]state=2 [12:54:10]Stop feed [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:47]accept exits with 7 [13:28:47]New connection [13:28:47]New thread 3067207012 created [13:28:47]Thread 3067350372 joined [13:28:47]Waiting for new connection... [13:28:47] Sock 7.Parse request [13:28:47]Sock 7.Check first char [13:28:47]Sock 7.First char is OK [13:28:47]request: POST /json_proto HTTP/1.0 [13:28:47]Method: POST [13:28:47]URL: /json_proto [13:28:47]Method is POST - this is cgi request [13:28:47]url: /json_proto [13:28:47]query_string will be loaded in cgi processing [13:28:47]execute_cgi json_proto POST (null) [13:28:47]execute_cgi path=json_proto method=POST [13:28:47]POST find Content-Length [13:28:47]Host: 172.17.45.196:8080 [13:28:47]Content-Length: 819 [13:28:47]Content-Type: application/json [13:28:47] [13:28:47]POST finish read [13:28:47]Found Content-Length = 819 [13:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14579", "tax_sys" : 0, "items" : [ { "code": "46198051", "name": "\u0420/\u0436 mentos pure white \u043D\u0435\u0436\u043D \u043C\u044F\u0442\u0430 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:47]execute_script... [13:28:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14579", "tax_sys" : 0, "items" : [ { "code": "46198051", "name": "\u0420/\u0436 mentos pure white \u043D\u0435\u0436\u043D \u043C\u044F\u0442\u0430 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:47]POST & json_proto [13:28:47]process_json_proto [13:28:47]json parsed OK: [13:28:47]protocol is kg_v1.0 [13:28:47]action value=close_receipt [13:28:47]process_action close_receipt [13:28:47]cmd_close_receipt [13:28:47]MH_GetDate [13:28:47]Write to MH i2c: F0 00 00 FA 00 E9 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 09 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: F0 09 00 FA 00 00 90 47 A6 66 BB 03 A5 66 9E [13:28:47]GetLastDocTimeStamp 1722171241 [13:28:47]current date 1722173328 [13:28:47]FM_GetShiftState [13:28:47]SAM_PROTO_GetShiftState [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 13 01 00 [13:28:47]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 11 [13:28:47]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_GetShiftState done [13:28:47]FM_GetShiftState done [13:28:47]opened in 1722126323 [13:28:47]opened+sec_in_day 1722212723 [13:28:47]quantity*price = 20500 [13:28:47]sum+1 = 20501 [13:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 59 28.07.2024 13:28 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44688 ФПД: 129282456667803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132848&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44688&fm=129282456667803&tin=02508201610067®Number=0000000000092655&sum=20500 0 [13:28:48]StoreToDocumentArchive [13:28:48]shift 430 fd 44688 [13:28:48]save to /storage/0430/doc_00044688 [13:28:48]save last doc name /storage/0430/doc_00044688 to /storage/kkm_last_doc_name [13:28:48]save OK [13:28:48]Clear old archive folders... [13:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=283 [13:28:48]tlvbuf is 010AEE40 [13:28:48]SAM_PROTO_ClearQueue [13:28:48]wFMCommunicate request_size=4 [13:28:48]MH_SAM_APDU [13:28:48]CAPDU: 80 09 00 00 [13:28:48]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:48]Read from MH i2c: E2 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: E2 03 00 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [13:28:48]RAPDU: 90 00 [13:28:48]wFMCommunicate OK [13:28:48]SAM_PROTO_ClearQueue done [13:28:48]KKMCreateOFDPacket [13:28:48]OFDProtocolAddRootSTLVToBuf [13:28:48]FM_MakeSignedData [13:28:48]FM_MakeSignedData [13:28:48]SAM_PROTO_SignData [13:28:48]wFMCommunicate request_size=4 [13:28:48]MH_SAM_APDU [13:28:48]CAPDU: 80 0D 01 02 [13:28:48]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:48]Read from MH i2c: E2 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: E2 03 00 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [13:28:48]RAPDU: 90 00 [13:28:48]wFMCommunicate OK [13:28:48]wFMCommunicate request_size=255 [13:28:48]MH_SAM_APDU [13:28:48]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 90 47 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 [13:28:48]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 90 47 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 00 00 47 [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 03 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [13:28:49]RAPDU: 90 00 [13:28:49]wFMCommunicate OK [13:28:49]wFMCommunicate request_size=42 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 90 AE 00 00 35 04 06 00 75 94 EA E7 C6 9B [13:28:49]Write to MH i2c: E2 2D 00 0B 01 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 90 AE 00 00 35 04 06 00 75 94 EA E7 C6 9B 00 00 D5 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 03 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [13:28:49]RAPDU: 90 00 [13:28:49]wFMCommunicate OK [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 0D 03 02 [13:28:49]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0B 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0B 00 0C 01 00 60 FF F6 69 27 BF 14 9D 90 00 DE [13:28:49]RAPDU: 60 FF F6 69 27 BF 14 9D 90 00 [13:28:49]wFMCommunicate OK [13:28:49]SAM_PROTO_SignData done [13:28:49]FM_MakeSignedData done [13:28:49]CreateOFDProtocolMessage [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 11 00 00 [13:28:49]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 17 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [13:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:28:49]wFMCommunicate OK [13:28:49]CreateOFDProtocolMessage done [13:28:49]OFDSenderStorePacket 44688 [13:28:49]StoreOFDPacket docnum=44688 [13:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 CD B6 27 01 7A 32 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 90 47 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 90 AE 00 00 35 04 06 00 75 94 EA E7 C6 9B 60 FF F6 69 27 BF 14 9D [13:28:49]CheckFolder [13:28:49]dirname=/storage/ofd_packets [13:28:49]CheckFolder done [13:28:49]ProducePacketName [13:28:49]name=ofd_packets/00044688 [13:28:49]NVStorageSaveData ofd_packets/00044688 [13:28:49]File name is /storage/ofd_packets/00044688 [13:28:49]Write 333 bytes [13:28:49]NVStorageSaveData done [13:28:49]OFDSenderStorePacket done [13:28:49]KKMCreateOFDPacket done [13:28:49]NVStorageSaveData kkm_last_timestamp [13:28:49]File name is /storage/kkm_last_timestamp [13:28:49]Write 4 bytes [13:28:49]NVStorageSaveData done [13:28:49]ExternCall_PrintAddStr [13:28:49]wPrintStart [13:28:49]Write to MH i2c: 01 00 00 0E 01 0F [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: 01 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: 01 07 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [13:28:49]RasterBufferAndPrint [13:28:49]line Счет N : (3)14579 [13:28:49]line ИНН: 02508201610067 [13:28:49]line Контрольно-Кассовый Чек [13:28:49]line ПРОДАЖА [13:28:49]line Товар: 46198051 [13:28:49]line Р/ж mentos pure white нежн мята 54г [13:28:49]line 1.000 * 205.00 [13:28:49]line = 205.00 [13:28:49]line НДС 12% НСП 1% [13:28:49]line > о реализуемом товаре [13:28:49]line ИТОГО: 205.00 [13:28:49]line НСП 1% : 1.81 [13:28:49]line НДС 12% : 21.77 [13:28:49]line Наличными: 0.00 [13:28:49]line Безнал.: 205.00 [13:28:49]line Место: АЗС № 128 "Партнер Нефть" [13:28:49]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [13:28:49]line СНО: Общий режим [13:28:49]line Чек 59 28.07.2024 13:28 [13:28:49]line Смена: 430 ФФД: 1.0 [13:28:49]line ЗНМ: 0300000045 [13:28:49]line РНМ: 0000000000092655 [13:28:49]line Версия ККМ: 001 [13:28:49]line Платежная система: Бакай Банк [13:28:49]line ФМ: 0000000000874941 [13:28:49]line ФД: 44688 [13:28:49]line ФПД: 129282456667803 [13:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132848&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44688&fm=129282456667803&tin=02508201610067®Number=0000000000092655&sum=20500 [13:28:49]line 0 [13:28:49]OFD Sender: Processing packet 44688 [packets to send 7, broken 6] [13:28:49]ProducePacketName [13:28:49]name=ofd_packets/00044688 [13:28:49]OFD Sender: To server: pG, [13:28:49]CommunicateWithHost lk.salyk.kg:30040 [13:28:49]ConnectInit lk.salyk.kg [13:28:49]written 0, free lines is 4095 [13:28:49]Connected sock=10 [13:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 CD B6 27 01 7A 32 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 90 47 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 90 AE 00 00 35 04 06 00 75 94 EA E7 C6 9B 60 FF F6 69 27 BF 14 9D [13:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 2F 41 47 00 81 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 90 AE 00 00 F4 03 04 00 A2 F3 A5 66 B6 04 01 00 00 BA C0 19 2D 63 C4 BE A2 [13:28:50]CommunicateWithHost err = 0 [13:28:50]CheckOFDResponse [13:28:50]1017 (14) - 77093643461234 [13:28:50]1041 (16) - 0000000000874941 [13:28:50]1040 (4) - 44688 [13:28:50]1012 (4) - 28.07.2024 07:30 [13:28:50]1206 (1) - 0 [13:28:50]OFD Sender: Remove packet 44688 [13:28:50]ProducePacketName [13:28:50]name=ofd_packets/00044688 [13:28:50]NVStorageDeleteData [13:28:50]Write to MH i2c: 01 00 00 39 01 3A [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: 01 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: 01 07 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 B9 0C 06 [13:28:50]RasterBufferAndPrint [13:28:50]line [13:28:50]line [13:28:50]line [13:28:50]line [13:28:50]line [13:28:50]written 0, free lines is 3265 [13:28:50]process_action close_receipt done [13:28:50]requested_data is exist [13:28:50]produce_requested_data [13:28:50]requested_item fm.sn is exist - process it [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 11 00 00 [13:28:50]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 17 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0F [13:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:28:50]wFMCommunicate OK [13:28:50]requested_item fd.num is exist - process it [13:28:50]SAM_PROTO_GetFieldsCounters [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 13 00 00 [13:28:50]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 62 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 62 00 41 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 90 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [13:28:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 90 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:50]wFMCommunicate OK [13:28:50]SAM_PROTO_GetFieldsCounters done [13:28:50]requested_item shift.num is exist - process it [13:28:50]requested_item shift.opened is exist - process it [13:28:50]req_shift_opened [13:28:50]FM_GetShiftState [13:28:50]SAM_PROTO_GetShiftState [13:28:50]wFMCommunicate request_size=4 [13:28:50]MH_SAM_APDU [13:28:50]CAPDU: 80 13 01 00 [13:28:50]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [13:28:50]Write i2c OK [13:28:50]MH_I2C_Read... [13:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:50]Read from MH i2c: E2 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 0E 00 [13:28:50]MH_I2C_Read... [13:28:50]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 59 [13:28:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:28:50]wFMCommunicate OK [13:28:50]SAM_PROTO_GetShiftState done [13:28:50]FM_GetShiftState done [13:28:50]req_shift_opened done [13:28:50]requested_item shift.open_date is exist - process it [13:28:50]req_shift_open_date [13:28:50]req_shift_open_date done [13:28:50]produce_requested_data done [13:28:50]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44688,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [13:28:50]process_action_free close_receipt [13:28:50]json_value_free [13:28:50]json_value_free done [13:28:50]process_json_proto returns [13:28:50]Send response to host [13:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44688,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [13:28:50]free response buf [13:28:50]execute_script done [13:28:50]execute_script returns [13:28:50]free content buf [13:28:50]Sock 7.Close socket [13:28:50]Sock 7.Thread stoped [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:19]accept exits with 9 [13:42:19]New connection [13:42:19]New thread 3067350372 created [13:42:19]Thread 3067207012 joined [13:42:19]Waiting for new connection... [13:42:19] Sock 9.Parse request [13:42:19]Sock 9.Check first char [13:42:19]Sock 9.First char is OK [13:42:19]request: POST /json_proto HTTP/1.0 [13:42:19]Method: POST [13:42:19]URL: /json_proto [13:42:19]Method is POST - this is cgi request [13:42:19]url: /json_proto [13:42:19]query_string will be loaded in cgi processing [13:42:19]execute_cgi json_proto POST (null) [13:42:19]execute_cgi path=json_proto method=POST [13:42:19]POST find Content-Length [13:42:19]Host: 172.17.45.196:8080 [13:42:19]Content-Length: 620 [13:42:19]Content-Type: application/json [13:42:19] [13:42:19]POST finish read [13:42:19]Found Content-Length = 620 [13:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14580", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:19]execute_script... [13:42:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14580", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:19]POST & json_proto [13:42:19]process_json_proto [13:42:19]json parsed OK: [13:42:19]protocol is kg_v1.0 [13:42:19]action value=close_receipt [13:42:19]process_action close_receipt [13:42:19]cmd_close_receipt [13:42:19]MH_GetDate [13:42:19]Write to MH i2c: F0 00 00 43 01 33 [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 09 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: F0 09 00 43 01 00 BC 4A A6 66 BB 03 A5 66 17 [13:42:19]GetLastDocTimeStamp 1722173328 [13:42:19]current date 1722174140 [13:42:19]FM_GetShiftState [13:42:19]SAM_PROTO_GetShiftState [13:42:19]wFMCommunicate request_size=4 [13:42:19]MH_SAM_APDU [13:42:19]CAPDU: 80 13 01 00 [13:42:19]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [13:42:19]Write i2c OK [13:42:19]MH_I2C_Read... [13:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:19]Read from MH i2c: E2 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: E2 0E 00 [13:42:19]MH_I2C_Read... [13:42:19]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5B [13:42:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:42:19]wFMCommunicate OK [13:42:19]SAM_PROTO_GetShiftState done [13:42:19]FM_GetShiftState done [13:42:19]opened in 1722126323 [13:42:19]opened+sec_in_day 1722212723 [13:42:19]quantity*price = 14000 [13:42:19]sum+1 = 14001 [13:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 60 28.07.2024 13:42 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44689 ФПД: 175110625548695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134220&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44689&fm=175110625548695&tin=02508201610067®Number=0000000000092655&sum=14000 0 [13:42:20]StoreToDocumentArchive [13:42:20]shift 430 fd 44689 [13:42:20]save to /storage/0430/doc_00044689 [13:42:20]save last doc name /storage/0430/doc_00044689 to /storage/kkm_last_doc_name [13:42:20]save OK [13:42:20]Clear old archive folders... [13:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:42:20]tlvbuf is 010B8AB0 [13:42:20]SAM_PROTO_ClearQueue [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 09 00 00 [13:42:20]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_ClearQueue done [13:42:20]KKMCreateOFDPacket [13:42:20]OFDProtocolAddRootSTLVToBuf [13:42:20]FM_MakeSignedData [13:42:20]FM_MakeSignedData [13:42:20]SAM_PROTO_SignData [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 01 02 [13:42:20]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [13:42:20]RAPDU: 90 00 [13:42:20]wFMCommunicate OK [13:42:20]wFMCommunicate request_size=255 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BC 4A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 [13:42:20]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BC 4A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 AC [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:21]OFD Sender: No OFD packet to send [13:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]wFMCommunicate request_size=32 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 31 10 04 04 00 91 AE 00 00 35 04 06 00 9F 43 1E A1 D9 97 [13:42:21]Write to MH i2c: E2 23 00 54 01 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 31 10 04 04 00 91 AE 00 00 35 04 06 00 9F 43 1E A1 D9 97 00 00 7D [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 0D 03 02 [13:42:21]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 0B 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 0B 00 55 01 00 92 67 42 35 CD 6A 27 72 90 00 12 [13:42:21]RAPDU: 92 67 42 35 CD 6A 27 72 90 00 [13:42:21]wFMCommunicate OK [13:42:21]SAM_PROTO_SignData done [13:42:21]FM_MakeSignedData done [13:42:21]CreateOFDProtocolMessage [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 11 00 00 [13:42:21]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 17 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 25 [13:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:42:21]wFMCommunicate OK [13:42:21]CreateOFDProtocolMessage done [13:42:21]OFDSenderStorePacket 44689 [13:42:21]StoreOFDPacket docnum=44689 [13:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 7D 42 1D 01 05 22 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BC 4A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 91 AE 00 00 35 04 06 00 9F 43 1E A1 D9 97 92 67 42 35 CD 6A 27 72 [13:42:21]CheckFolder [13:42:21]dirname=/storage/ofd_packets [13:42:21]CheckFolder done [13:42:21]ProducePacketName [13:42:21]name=ofd_packets/00044689 [13:42:21]NVStorageSaveData ofd_packets/00044689 [13:42:21]File name is /storage/ofd_packets/00044689 [13:42:21]Write 323 bytes [13:42:21]NVStorageSaveData done [13:42:21]OFDSenderStorePacket done [13:42:21]KKMCreateOFDPacket done [13:42:21]NVStorageSaveData kkm_last_timestamp [13:42:21]File name is /storage/kkm_last_timestamp [13:42:21]Write 4 bytes [13:42:21]NVStorageSaveData done [13:42:21]ExternCall_PrintAddStr [13:42:21]wPrintStart [13:42:21]Write to MH i2c: 01 00 00 57 01 58 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [13:42:21]RasterBufferAndPrint [13:42:21]line Счет N : (3)14580 [13:42:21]line ИНН: 02508201610067 [13:42:21]line Контрольно-Кассовый Чек [13:42:21]line ПРОДАЖА [13:42:21]line Товар: 48747059 [13:42:21]line Сигареты Winston Legend Blue [13:42:21]line 1.000 * 140.00 [13:42:21]line = 140.00 [13:42:21]line НДС 12% НСП 1% [13:42:21]line > о реализуемом товаре [13:42:21]line ИТОГО: 140.00 [13:42:21]line НСП 1% : 1.24 [13:42:21]line НДС 12% : 14.87 [13:42:21]line Наличными: 140.00 [13:42:21]line Безнал.: 0.00 [13:42:21]line Место: АЗС № 128 "Партнер Нефть" [13:42:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [13:42:21]line СНО: Общий режим [13:42:21]line Чек 60 28.07.2024 13:42 [13:42:21]line Смена: 430 ФФД: 1.0 [13:42:21]line ЗНМ: 0300000045 [13:42:21]line РНМ: 0000000000092655 [13:42:21]line Версия ККМ: 001 [13:42:21]line ФМ: 0000000000874941 [13:42:21]line ФД: 44689 [13:42:21]line ФПД: 175110625548695 [13:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T134220&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44689&fm=175110625548695&tin=02508201610067®Number=0000000000092655&sum=14000 [13:42:21]line 0 [13:42:21]OFD Sender: Processing packet 44689 [packets to send 7, broken 6] [13:42:21]ProducePacketName [13:42:21]name=ofd_packets/00044689 [13:42:21]OFD Sender: To server: pG, [13:42:21]CommunicateWithHost lk.salyk.kg:30040 [13:42:21]ConnectInit lk.salyk.kg [13:42:21]written 0, free lines is 4095 [13:42:22]Connected sock=7 [13:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 7D 42 1D 01 05 22 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BC 4A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 91 AE 00 00 35 04 06 00 9F 43 1E A1 D9 97 92 67 42 35 CD 6A 27 72 [13:42:22]Write to MH i2c: 01 00 00 80 01 81 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 CD 0C 61 [13:42:22]RasterBufferAndPrint [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]written 0, free lines is 3282 [13:42:22]process_action close_receipt done [13:42:22]requested_data is exist [13:42:22]produce_requested_data [13:42:22]requested_item fm.sn is exist - process it [13:42:22]wFMCommunicate request_size=4 [13:42:22]MH_SAM_APDU [13:42:22]CAPDU: 80 11 00 00 [13:42:22]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 9F 32 47 00 FE 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 91 AE 00 00 F4 03 04 00 CF F6 A5 66 B6 04 01 00 00 47 FF B6 ED C6 C8 70 3D [13:42:22]CommunicateWithHost err = 0 [13:42:22]CheckOFDResponse [13:42:22]1017 (14) - 77093643461234 [13:42:22]1041 (16) - 0000000000874941 [13:42:22]1040 (4) - 44689 [13:42:22]1012 (4) - 28.07.2024 07:44 [13:42:22]1206 (1) - 0 [13:42:22]OFD Sender: Remove packet 44689 [13:42:22]ProducePacketName [13:42:22]name=ofd_packets/00044689 [13:42:22]NVStorageDeleteData [13:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:22]Read from MH i2c: E2 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 17 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 56 [13:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:42:22]wFMCommunicate OK [13:42:22]requested_item fd.num is exist - process it [13:42:22]SAM_PROTO_GetFieldsCounters [13:42:22]wFMCommunicate request_size=4 [13:42:22]MH_SAM_APDU [13:42:22]CAPDU: 80 13 00 00 [13:42:22]Write to MH i2c: E2 08 00 88 01 80 13 00 00 00 00 00 00 05 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:22]Read from MH i2c: E2 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 62 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 62 00 88 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 91 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [13:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 91 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:22]wFMCommunicate OK [13:42:22]SAM_PROTO_GetFieldsCounters done [13:42:22]requested_item shift.num is exist - process it [13:42:22]requested_item shift.opened is exist - process it [13:42:22]req_shift_opened [13:42:22]FM_GetShiftState [13:42:22]SAM_PROTO_GetShiftState [13:42:22]wFMCommunicate request_size=4 [13:42:22]MH_SAM_APDU [13:42:22]CAPDU: 80 13 01 00 [13:42:22]Write to MH i2c: E2 08 00 89 01 80 13 01 00 00 00 00 00 07 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:22]Read from MH i2c: E2 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 0E 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 0E 00 89 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A0 [13:42:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:42:22]wFMCommunicate OK [13:42:22]SAM_PROTO_GetShiftState done [13:42:22]FM_GetShiftState done [13:42:22]req_shift_opened done [13:42:22]requested_item shift.open_date is exist - process it [13:42:22]req_shift_open_date [13:42:22]req_shift_open_date done [13:42:22]produce_requested_data done [13:42:22]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44689,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [13:42:22]process_action_free close_receipt [13:42:22]json_value_free [13:42:22]json_value_free done [13:42:22]process_json_proto returns [13:42:22]Send response to host [13:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44689,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [13:42:22]free response buf [13:42:22]execute_script done [13:42:22]execute_script returns [13:42:22]free content buf [13:42:22]Sock 9.Close socket [13:42:22]Sock 9.Thread stoped [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:25]accept exits with 10 [13:50:25]New connection [13:50:25]New thread 3067207012 created [13:50:25]Thread 3067350372 joined [13:50:25]Waiting for new connection... [13:50:25] Sock 10.Parse request [13:50:25]Sock 10.Check first char [13:50:25]Sock 10.First char is OK [13:50:25]request: POST /json_proto HTTP/1.0 [13:50:25]Method: POST [13:50:25]URL: /json_proto [13:50:25]Method is POST - this is cgi request [13:50:25]url: /json_proto [13:50:25]query_string will be loaded in cgi processing [13:50:25]execute_cgi json_proto POST (null) [13:50:25]execute_cgi path=json_proto method=POST [13:50:25]POST find Content-Length [13:50:25]Host: 172.17.45.196:8080 [13:50:25]Content-Length: 727 [13:50:25]Content-Type: application/json [13:50:25] [13:50:25]POST finish read [13:50:25]Found Content-Length = 727 [13:50:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14581", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:25]execute_script... [13:50:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14581", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:25]POST & json_proto [13:50:25]process_json_proto [13:50:25]json parsed OK: [13:50:25]protocol is kg_v1.0 [13:50:25]action value=close_receipt [13:50:25]process_action close_receipt [13:50:25]cmd_close_receipt [13:50:25]MH_GetDate [13:50:25]Write to MH i2c: F0 00 00 8A 01 7A [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: F0 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: F0 09 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: F0 09 00 8A 01 00 A2 4C A6 66 BB 03 A5 66 46 [13:50:25]GetLastDocTimeStamp 1722174140 [13:50:25]current date 1722174626 [13:50:25]FM_GetShiftState [13:50:25]SAM_PROTO_GetShiftState [13:50:25]wFMCommunicate request_size=4 [13:50:25]MH_SAM_APDU [13:50:25]CAPDU: 80 13 01 00 [13:50:25]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:25]Read from MH i2c: E2 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 0E 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A2 [13:50:25]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:50:25]wFMCommunicate OK [13:50:25]SAM_PROTO_GetShiftState done [13:50:25]FM_GetShiftState done [13:50:25]opened in 1722126323 [13:50:25]opened+sec_in_day 1722212723 [13:50:25]quantity*price = 10700 [13:50:25]sum+1 = 10701 [13:50:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 61 28.07.2024 13:50 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44690 ФПД: 47951610706557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T135026&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44690&fm=47951610706557&tin=02508201610067®Number=0000000000092655&sum=10700 0 [13:50:26]StoreToDocumentArchive [13:50:26]shift 430 fd 44690 [13:50:26]save to /storage/0430/doc_00044690 [13:50:26]save last doc name /storage/0430/doc_00044690 to /storage/kkm_last_doc_name [13:50:26]save OK [13:50:26]Clear old archive folders... [13:50:26]ProcessDocumentItem done err = 0, tmpTLVsize=308 [13:50:26]tlvbuf is 010B8390 [13:50:26]SAM_PROTO_ClearQueue [13:50:26]wFMCommunicate request_size=4 [13:50:26]MH_SAM_APDU [13:50:26]CAPDU: 80 09 00 00 [13:50:26]Write to MH i2c: E2 08 00 98 01 80 09 00 00 00 00 00 00 0B [13:50:26]Write i2c OK [13:50:26]MH_I2C_Read... [13:50:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:26]Read from MH i2c: E2 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 03 00 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [13:50:26]RAPDU: 90 00 [13:50:26]wFMCommunicate OK [13:50:26]SAM_PROTO_ClearQueue done [13:50:26]KKMCreateOFDPacket [13:50:26]OFDProtocolAddRootSTLVToBuf [13:50:26]FM_MakeSignedData [13:50:26]FM_MakeSignedData [13:50:26]SAM_PROTO_SignData [13:50:26]wFMCommunicate request_size=4 [13:50:26]MH_SAM_APDU [13:50:26]CAPDU: 80 0D 01 02 [13:50:26]Write to MH i2c: E2 08 00 99 01 80 0D 01 02 00 00 00 00 13 [13:50:26]Write i2c OK [13:50:26]MH_I2C_Read... [13:50:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:27]Read from MH i2c: E2 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [13:50:27]RAPDU: 90 00 [13:50:27]wFMCommunicate OK [13:50:27]wFMCommunicate request_size=255 [13:50:27]MH_SAM_APDU [13:50:27]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A2 4C A6 66 0E 04 04 00 AE 01 00 00 B9 [13:50:27]Write to MH i2c: E2 02 01 9A 01 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A2 4C A6 66 0E 04 04 00 AE 01 00 00 B9 00 00 30 [13:50:27]Write i2c OK [13:50:27]MH_I2C_Read... [13:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:27]Read from MH i2c: E2 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [13:50:27]RAPDU: 90 00 [13:50:27]wFMCommunicate OK [13:50:27]wFMCommunicate request_size=67 [13:50:27]MH_SAM_APDU [13:50:27]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 92 AE 00 00 35 04 06 00 2B 9C 9A B8 FA 7D [13:50:27]Write to MH i2c: E2 46 00 9B 01 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 92 AE 00 00 35 04 06 00 2B 9C 9A B8 FA 7D 00 00 41 [13:50:27]Write i2c OK [13:50:27]MH_I2C_Read... [13:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:27]Read from MH i2c: E2 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [13:50:27]RAPDU: 90 00 [13:50:27]wFMCommunicate OK [13:50:27]wFMCommunicate request_size=4 [13:50:27]MH_SAM_APDU [13:50:27]CAPDU: 80 0D 03 02 [13:50:27]Write to MH i2c: E2 08 00 9C 01 80 0D 03 02 00 00 00 00 18 [13:50:27]Write i2c OK [13:50:27]MH_I2C_Read... [13:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:27]Read from MH i2c: E2 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 0B 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 0B 00 9C 01 00 59 67 EF 3D 1A 6A C6 C7 90 00 16 [13:50:27]RAPDU: 59 67 EF 3D 1A 6A C6 C7 90 00 [13:50:27]wFMCommunicate OK [13:50:27]SAM_PROTO_SignData done [13:50:27]FM_MakeSignedData done [13:50:27]CreateOFDProtocolMessage [13:50:27]wFMCommunicate request_size=4 [13:50:27]MH_SAM_APDU [13:50:27]CAPDU: 80 11 00 00 [13:50:27]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [13:50:27]Write i2c OK [13:50:27]MH_I2C_Read... [13:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:27]Read from MH i2c: E2 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 17 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6C [13:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:50:27]wFMCommunicate OK [13:50:27]CreateOFDProtocolMessage done [13:50:27]OFDSenderStorePacket 44690 [13:50:27]StoreOFDPacket docnum=44690 [13:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 DD 80 40 01 F4 3D 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A2 4C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 92 AE 00 00 35 04 06 00 2B 9C 9A B8 FA 7D 59 67 EF 3D 1A 6A C6 C7 [13:50:27]CheckFolder [13:50:27]dirname=/storage/ofd_packets [13:50:27]CheckFolder done [13:50:27]ProducePacketName [13:50:27]name=ofd_packets/00044690 [13:50:27]NVStorageSaveData ofd_packets/00044690 [13:50:27]File name is /storage/ofd_packets/00044690 [13:50:27]Write 358 bytes [13:50:27]NVStorageSaveData done [13:50:27]OFDSenderStorePacket done [13:50:27]KKMCreateOFDPacket done [13:50:27]NVStorageSaveData kkm_last_timestamp [13:50:27]File name is /storage/kkm_last_timestamp [13:50:27]Write 4 bytes [13:50:27]NVStorageSaveData done [13:50:27]ExternCall_PrintAddStr [13:50:27]wPrintStart [13:50:27]Write to MH i2c: 01 00 00 9E 01 9F [13:50:27]Write i2c OK [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: 01 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: 01 07 00 [13:50:27]MH_I2C_Read... [13:50:27]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [13:50:27]RasterBufferAndPrint [13:50:27]line Счет N : (3)14581 [13:50:27]line ИНН: 02508201610067 [13:50:27]line Контрольно-Кассовый Чек [13:50:27]line ПРОДАЖА [13:50:27]line Товар: 5449000027474 [13:50:27]line Напиток FuzeTea зел чай манго,ромашка 1л [13:50:27]line 1.000 * 107.00 [13:50:27]line = 107.00 [13:50:27]line НДС 12% НСП 1% [13:50:27]line > о реализуемом товаре [13:50:27]line ИТОГО: 107.00 [13:50:27]line НСП 1% : 0.95 [13:50:27]line НДС 12% : 11.36 [13:50:27]line Наличными: 107.00 [13:50:27]line Безнал.: 0.00 [13:50:27]line Место: АЗС № 128 "Партнер Нефть" [13:50:27]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [13:50:27]line СНО: Общий режим [13:50:27]line Чек 61 28.07.2024 13:50 [13:50:27]line Смена: 430 ФФД: 1.0 [13:50:27]line ЗНМ: 0300000045 [13:50:27]line РНМ: 0000000000092655 [13:50:27]line Версия ККМ: 001 [13:50:27]line ФМ: 0000000000874941 [13:50:27]line ФД: 44690 [13:50:27]line ФПД: 47951610706557 [13:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T135026&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44690&fm=47951610706557&tin=02508201610067®Number=0000000000092655&sum=10700 [13:50:27]line 0 [13:50:27]OFD Sender: Processing packet 44690 [packets to send 7, broken 6] [13:50:27]ProducePacketName [13:50:27]name=ofd_packets/00044690 [13:50:27]OFD Sender: To server: pG, [13:50:27]CommunicateWithHost lk.salyk.kg:30040 [13:50:27]ConnectInit lk.salyk.kg [13:50:27]written 0, free lines is 4095 [13:50:28]Connected sock=9 [13:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 DD 80 40 01 F4 3D 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A2 4C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 92 AE 00 00 35 04 06 00 2B 9C 9A B8 FA 7D 59 67 EF 3D 1A 6A C6 C7 [13:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A9 E0 47 00 9D 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 92 AE 00 00 F4 03 04 00 B4 F8 A5 66 B6 04 01 00 00 A9 67 08 C4 99 99 5E C0 [13:50:28]CommunicateWithHost err = 0 [13:50:28]CheckOFDResponse [13:50:28]1017 (14) - 77093643461234 [13:50:28]1041 (16) - 0000000000874941 [13:50:28]1040 (4) - 44690 [13:50:28]1012 (4) - 28.07.2024 07:52 [13:50:28]1206 (1) - 0 [13:50:28]OFD Sender: Remove packet 44690 [13:50:28]ProducePacketName [13:50:28]name=ofd_packets/00044690 [13:50:28]NVStorageDeleteData [13:50:28]Write to MH i2c: 01 00 00 C7 01 C8 [13:50:28]Write i2c OK [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: 01 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: 01 07 00 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 D6 0C B1 [13:50:28]RasterBufferAndPrint [13:50:28]line [13:50:28]line [13:50:28]line [13:50:28]line [13:50:28]line [13:50:28]written 0, free lines is 3292 [13:50:28]process_action close_receipt done [13:50:28]requested_data is exist [13:50:28]produce_requested_data [13:50:28]requested_item fm.sn is exist - process it [13:50:28]wFMCommunicate request_size=4 [13:50:28]MH_SAM_APDU [13:50:28]CAPDU: 80 11 00 00 [13:50:28]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [13:50:28]Write i2c OK [13:50:28]MH_I2C_Read... [13:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:28]Read from MH i2c: E2 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 17 00 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9D [13:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [13:50:28]wFMCommunicate OK [13:50:28]requested_item fd.num is exist - process it [13:50:28]SAM_PROTO_GetFieldsCounters [13:50:28]wFMCommunicate request_size=4 [13:50:28]MH_SAM_APDU [13:50:28]CAPDU: 80 13 00 00 [13:50:28]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [13:50:28]Write i2c OK [13:50:28]MH_I2C_Read... [13:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:28]Read from MH i2c: E2 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 62 00 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 92 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 92 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:28]wFMCommunicate OK [13:50:28]SAM_PROTO_GetFieldsCounters done [13:50:28]requested_item shift.num is exist - process it [13:50:28]requested_item shift.opened is exist - process it [13:50:28]req_shift_opened [13:50:28]FM_GetShiftState [13:50:28]SAM_PROTO_GetShiftState [13:50:28]wFMCommunicate request_size=4 [13:50:28]MH_SAM_APDU [13:50:28]CAPDU: 80 13 01 00 [13:50:28]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [13:50:28]Write i2c OK [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 [13:50:28]MH_I2C_Read... [13:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:28]Read from MH i2c: E2 0E 00 [13:50:28]MH_I2C_Read... [13:50:28]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 E7 [13:50:28]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [13:50:28]wFMCommunicate OK [13:50:28]SAM_PROTO_GetShiftState done [13:50:28]FM_GetShiftState done [13:50:28]req_shift_opened done [13:50:28]requested_item shift.open_date is exist - process it [13:50:28]req_shift_open_date [13:50:28]req_shift_open_date done [13:50:28]produce_requested_data done [13:50:28]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44690,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [13:50:28]process_action_free close_receipt [13:50:28]json_value_free [13:50:28]json_value_free done [13:50:28]process_json_proto returns [13:50:28]Send response to host [13:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44690,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [13:50:28]free response buf [13:50:28]execute_script done [13:50:28]execute_script returns [13:50:28]free content buf [13:50:28]Sock 10.Close socket [13:50:28]Sock 10.Thread stoped [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:58]accept exits with 7 [14:01:58]New connection [14:01:58]New thread 3067350372 created [14:01:58]Thread 3067207012 joined [14:01:58]Waiting for new connection... [14:01:58] Sock 7.Parse request [14:01:58]Sock 7.Check first char [14:01:58]Sock 7.First char is OK [14:01:58]request: POST /json_proto HTTP/1.0 [14:01:58]Method: POST [14:01:58]URL: /json_proto [14:01:58]Method is POST - this is cgi request [14:01:58]url: /json_proto [14:01:58]query_string will be loaded in cgi processing [14:01:58]execute_cgi json_proto POST (null) [14:01:58]execute_cgi path=json_proto method=POST [14:01:58]POST find Content-Length [14:01:58]Host: 172.17.45.196:8080 [14:01:58]Content-Length: 667 [14:01:58]Content-Type: application/json [14:01:58] [14:01:58]POST finish read [14:01:58]Found Content-Length = 667 [14:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14582", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:58]execute_script... [14:01:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14582", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:58]POST & json_proto [14:01:58]process_json_proto [14:01:58]json parsed OK: [14:01:58]protocol is kg_v1.0 [14:01:58]action value=close_receipt [14:01:58]process_action close_receipt [14:01:58]cmd_close_receipt [14:01:58]MH_GetDate [14:01:58]Write to MH i2c: F0 00 00 D1 01 C1 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: F0 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: F0 09 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: F0 09 00 D1 01 00 57 4F A6 66 BB 03 A5 66 45 [14:01:58]GetLastDocTimeStamp 1722174626 [14:01:58]current date 1722175319 [14:01:58]FM_GetShiftState [14:01:58]SAM_PROTO_GetShiftState [14:01:58]wFMCommunicate request_size=4 [14:01:58]MH_SAM_APDU [14:01:58]CAPDU: 80 13 01 00 [14:01:58]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:58]Read from MH i2c: E2 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 0E 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 E9 [14:01:58]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [14:01:58]wFMCommunicate OK [14:01:58]SAM_PROTO_GetShiftState done [14:01:58]FM_GetShiftState done [14:01:58]opened in 1722126323 [14:01:58]opened+sec_in_day 1722212723 [14:01:58]quantity*price = 22500 [14:01:58]sum+1 = 22501 [14:01:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 62 28.07.2024 14:01 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44691 ФПД: 135113987425891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140159&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44691&fm=135113987425891&tin=02508201610067®Number=0000000000092655&sum=22500 0 [14:01:59]StoreToDocumentArchive [14:01:59]shift 430 fd 44691 [14:01:59]save to /storage/0430/doc_00044691 [14:01:59]save last doc name /storage/0430/doc_00044691 to /storage/kkm_last_doc_name [14:01:59]save OK [14:01:59]Clear old archive folders... [14:01:59]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:01:59]tlvbuf is 010B6BE0 [14:01:59]SAM_PROTO_ClearQueue [14:01:59]wFMCommunicate request_size=4 [14:01:59]MH_SAM_APDU [14:01:59]CAPDU: 80 09 00 00 [14:01:59]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:59]Read from MH i2c: E2 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 03 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [14:01:59]RAPDU: 90 00 [14:01:59]wFMCommunicate OK [14:01:59]SAM_PROTO_ClearQueue done [14:01:59]KKMCreateOFDPacket [14:01:59]OFDProtocolAddRootSTLVToBuf [14:01:59]FM_MakeSignedData [14:01:59]FM_MakeSignedData [14:01:59]SAM_PROTO_SignData [14:01:59]wFMCommunicate request_size=4 [14:01:59]MH_SAM_APDU [14:01:59]CAPDU: 80 0D 01 02 [14:01:59]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:01:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:59]Read from MH i2c: E2 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 03 00 [14:01:59]MH_I2C_Read... [14:01:59]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [14:01:59]RAPDU: 90 00 [14:01:59]wFMCommunicate OK [14:01:59]wFMCommunicate request_size=255 [14:01:59]MH_SAM_APDU [14:01:59]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 4F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:01:59]Write to MH i2c: E2 02 01 E1 01 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 4F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 7A [14:01:59]Write i2c OK [14:01:59]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 03 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [14:02:00]RAPDU: 90 00 [14:02:00]wFMCommunicate OK [14:02:00]wFMCommunicate request_size=55 [14:02:00]MH_SAM_APDU [14:02:00]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 93 AE 00 00 35 04 06 00 7A E2 AD 39 86 63 [14:02:00]Write to MH i2c: E2 3A 00 E2 01 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 93 AE 00 00 35 04 06 00 7A E2 AD 39 86 63 00 00 25 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 03 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [14:02:00]RAPDU: 90 00 [14:02:00]wFMCommunicate OK [14:02:00]wFMCommunicate request_size=4 [14:02:00]MH_SAM_APDU [14:02:00]CAPDU: 80 0D 03 02 [14:02:00]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0B 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 0B 00 E3 01 00 AE 6A 2D 04 C9 58 E6 2A 90 00 DA [14:02:00]RAPDU: AE 6A 2D 04 C9 58 E6 2A 90 00 [14:02:00]wFMCommunicate OK [14:02:00]SAM_PROTO_SignData done [14:02:00]FM_MakeSignedData done [14:02:00]CreateOFDProtocolMessage [14:02:00]wFMCommunicate request_size=4 [14:02:00]MH_SAM_APDU [14:02:00]CAPDU: 80 11 00 00 [14:02:00]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:00]Read from MH i2c: E2 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 17 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B3 [14:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [14:02:00]wFMCommunicate OK [14:02:00]CreateOFDProtocolMessage done [14:02:00]OFDSenderStorePacket 44691 [14:02:00]StoreOFDPacket docnum=44691 [14:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 24 C2 34 01 4B FB 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 4F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 93 AE 00 00 35 04 06 00 7A E2 AD 39 86 63 AE 6A 2D 04 C9 58 E6 2A [14:02:00]CheckFolder [14:02:00]dirname=/storage/ofd_packets [14:02:00]CheckFolder done [14:02:00]ProducePacketName [14:02:00]name=ofd_packets/00044691 [14:02:00]NVStorageSaveData ofd_packets/00044691 [14:02:00]File name is /storage/ofd_packets/00044691 [14:02:00]Write 346 bytes [14:02:00]NVStorageSaveData done [14:02:00]OFDSenderStorePacket done [14:02:00]KKMCreateOFDPacket done [14:02:00]NVStorageSaveData kkm_last_timestamp [14:02:00]File name is /storage/kkm_last_timestamp [14:02:00]Write 4 bytes [14:02:00]NVStorageSaveData done [14:02:00]ExternCall_PrintAddStr [14:02:00]wPrintStart [14:02:00]Write to MH i2c: 01 00 00 E5 01 E6 [14:02:00]Write i2c OK [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: 01 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: 01 07 00 [14:02:00]MH_I2C_Read... [14:02:00]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [14:02:00]RasterBufferAndPrint [14:02:00]line Счет N : (3)14582 [14:02:00]line ИНН: 02508201610067 [14:02:00]line Контрольно-Кассовый Чек [14:02:00]line ПРОДАЖА [14:02:00]line Товар: 4670003190013 [14:02:00]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [14:02:00]line 1.000 * 225.00 [14:02:00]line = 225.00 [14:02:00]line НДС 12% НСП 1% [14:02:00]line > о реализуемом товаре [14:02:00]line ИТОГО: 225.00 [14:02:00]line НСП 1% : 1.99 [14:02:00]line НДС 12% : 23.89 [14:02:00]line Наличными: 225.00 [14:02:00]line Безнал.: 0.00 [14:02:00]line Место: АЗС № 128 "Партнер Нефть" [14:02:00]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [14:02:00]line СНО: Общий режим [14:02:00]line Чек 62 28.07.2024 14:01 [14:02:00]line Смена: 430 ФФД: 1.0 [14:02:00]line ЗНМ: 0300000045 [14:02:00]line РНМ: 0000000000092655 [14:02:00]line Версия ККМ: 001 [14:02:00]line ФМ: 0000000000874941 [14:02:00]line ФД: 44691 [14:02:00]line ФПД: 135113987425891 [14:02:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T140159&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44691&fm=135113987425891&tin=02508201610067®Number=0000000000092655&sum=22500 [14:02:00]line 0 [14:02:00]OFD Sender: Processing packet 44691 [packets to send 7, broken 6] [14:02:00]ProducePacketName [14:02:00]name=ofd_packets/00044691 [14:02:00]OFD Sender: To server: pG, [14:02:00]CommunicateWithHost lk.salyk.kg:30040 [14:02:00]ConnectInit lk.salyk.kg [14:02:00]written 0, free lines is 4095 [14:02:00]Connected sock=10 [14:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 24 C2 34 01 4B FB 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 4F A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 93 AE 00 00 35 04 06 00 7A E2 AD 39 86 63 AE 6A 2D 04 C9 58 E6 2A [14:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A1 27 47 00 CE 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 93 AE 00 00 F4 03 04 00 69 FB A5 66 B6 04 01 00 00 CC FA 1D 75 C9 36 D6 13 [14:02:01]CommunicateWithHost err = 0 [14:02:01]CheckOFDResponse [14:02:01]1017 (14) - 77093643461234 [14:02:01]1041 (16) - 0000000000874941 [14:02:01]1040 (4) - 44691 [14:02:01]1012 (4) - 28.07.2024 08:03 [14:02:01]1206 (1) - 0 [14:02:01]OFD Sender: Remove packet 44691 [14:02:01]ProducePacketName [14:02:01]name=ofd_packets/00044691 [14:02:01]NVStorageDeleteData [14:02:01]Write to MH i2c: 01 00 00 0E 02 10 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 DC 0C FF [14:02:01]RasterBufferAndPrint [14:02:01]line [14:02:01]line [14:02:01]line [14:02:01]line [14:02:01]line [14:02:01]written 0, free lines is 3298 [14:02:01]process_action close_receipt done [14:02:01]requested_data is exist [14:02:01]produce_requested_data [14:02:01]requested_item fm.sn is exist - process it [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 11 00 00 [14:02:01]Write to MH i2c: E2 08 00 15 02 80 11 00 00 00 00 00 00 91 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 15 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E5 [14:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [14:02:01]wFMCommunicate OK [14:02:01]requested_item fd.num is exist - process it [14:02:01]SAM_PROTO_GetFieldsCounters [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 00 00 [14:02:01]Write to MH i2c: E2 08 00 16 02 80 13 00 00 00 00 00 00 94 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 16 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 93 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 93 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetFieldsCounters done [14:02:01]requested_item shift.num is exist - process it [14:02:01]requested_item shift.opened is exist - process it [14:02:01]req_shift_opened [14:02:01]FM_GetShiftState [14:02:01]SAM_PROTO_GetShiftState [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 01 00 [14:02:01]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 2F [14:02:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetShiftState done [14:02:01]FM_GetShiftState done [14:02:01]req_shift_opened done [14:02:01]requested_item shift.open_date is exist - process it [14:02:01]req_shift_open_date [14:02:01]req_shift_open_date done [14:02:01]produce_requested_data done [14:02:01]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44691,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [14:02:01]process_action_free close_receipt [14:02:01]json_value_free [14:02:01]json_value_free done [14:02:01]process_json_proto returns [14:02:01]Send response to host [14:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44691,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [14:02:01]free response buf [14:02:01]execute_script done [14:02:01]execute_script returns [14:02:01]free content buf [14:02:01]Sock 7.Close socket [14:02:01]Sock 7.Thread stoped [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:53:35]ConnectInit Can't connect to host [14:53:38]OFD Sender: No OFD packet to send [15:38:51]ConnectInit Can't connect to host [15:38:56]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 94794+1722090427=1722185221 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 06 76 A6 66 BB 03 A5 66 50 [16:47:02]Current date/time: 28.07.2024 16:47 [16:47:02]FM_Init [16:47:02]wFMConnect [16:47:02]MH_SAM_On [16:47:02]Write to MH i2c: E0 00 00 08 00 E7 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_init finished! [16:47:02]*** atr: [16:47:02]*** 0F 3B D5 18 FF 81 91 FE [16:47:02]*** 1F C3 80 73 C8 21 10 0A [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]*** 00 00 00 00 00 00 00 00 [16:47:02]Read from MH i2c: E0 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E0 10 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:47:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:47:02]wFMCommunicate request_size=10 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:47:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:47:02]RAPDU: 90 00 [16:47:02]wFMCommunicate OK [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 11 00 00 [16:47:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [16:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:47:02]wFMCommunicate OK [16:47:02]Detected FM SN is 0000000000874941 [16:47:02]Stored FM SN is 0000000000874941 [16:47:02]wFMCommunicate request_size=9 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 16 00 00 04 FA 44 01 00 [16:47:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:47:02]RAPDU: 90 00 [16:47:02]wFMCommunicate OK [16:47:02]FM PIN OK [16:47:02]wFMCommunicate request_size=8 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 14 04 00 03 02 00 01 [16:47:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:47:02]RAPDU: 90 00 [16:47:02]wFMCommunicate OK [16:47:02]wFMCommunicate request_size=13 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:47:02]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:47:02]RAPDU: 90 00 [16:47:02]wFMCommunicate OK [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 11 00 00 [16:47:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [16:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:47:02]wFMCommunicate OK [16:47:02]DocumentArchiveInit [16:47:02]Start Httpd... [16:47:02]Httpd thread 3067305316 created [16:47:02]Write to MH i2c: 01 00 00 0F 00 0F [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 07 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:47:02]MH Int Process started [16:47:02]Allocated Socket 6 [16:47:02]Bind OK [16:47:02]Listen OK [16:47:02]httpd running on port 8080 [16:47:02]Waiting for new connection... [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:49]accept exits with 7 [16:47:49]New connection [16:47:49]New thread 3067018596 created [16:47:49]Waiting for new connection... [16:47:49] Sock 7.Parse request [16:47:49]Sock 7.Check first char [16:47:49]Sock 7.First char is OK [16:47:49]request: POST /json_proto HTTP/1.0 [16:47:49]Method: POST [16:47:49]URL: /json_proto [16:47:49]Method is POST - this is cgi request [16:47:49]url: /json_proto [16:47:49]query_string will be loaded in cgi processing [16:47:49]execute_cgi json_proto POST (null) [16:47:49]execute_cgi path=json_proto method=POST [16:47:49]POST find Content-Length [16:47:49]Host: 172.17.45.196:8080 [16:47:49]Content-Length: 215 [16:47:49]Content-Type: application/json [16:47:49] [16:47:49]POST finish read [16:47:49]Found Content-Length = 215 [16:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:49]execute_script... [16:47:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:49]POST & json_proto [16:47:49]process_json_proto [16:47:49]json parsed OK: [16:47:49]protocol is kg_v1.0 [16:47:49]action value=get_value [16:47:49]process_action get_value [16:47:49]cmd_get_value [16:47:49]process_action get_value done [16:47:49]requested_data is exist [16:47:49]produce_requested_data [16:47:49]requested_item kkm.sn is exist - process it [16:47:49]requested_item kkm.ver is exist - process it [16:47:49]requested_item fm.sn is exist - process it [16:47:49]wFMCommunicate request_size=4 [16:47:49]MH_SAM_APDU [16:47:49]CAPDU: 80 11 00 00 [16:47:49]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 [16:47:49]MH_I2C_Read... [16:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:49]Read from MH i2c: E2 17 00 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [16:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:47:49]wFMCommunicate OK [16:47:49]requested_item fd.num is exist - process it [16:47:49]SAM_PROTO_GetFieldsCounters [16:47:49]wFMCommunicate request_size=4 [16:47:49]MH_SAM_APDU [16:47:49]CAPDU: 80 13 00 00 [16:47:49]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:49]Read from MH i2c: E2 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 62 00 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 93 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 93 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:49]wFMCommunicate OK [16:47:49]SAM_PROTO_GetFieldsCounters done [16:47:49]requested_item shift.num is exist - process it [16:47:49]requested_item shift.opened is exist - process it [16:47:49]req_shift_opened [16:47:49]FM_GetShiftState [16:47:49]SAM_PROTO_GetShiftState [16:47:49]wFMCommunicate request_size=4 [16:47:49]MH_SAM_APDU [16:47:49]CAPDU: 80 13 01 00 [16:47:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:49]Read from MH i2c: E2 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 0E 00 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [16:47:49]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:47:49]wFMCommunicate OK [16:47:49]SAM_PROTO_GetShiftState done [16:47:49]FM_GetShiftState done [16:47:49]req_shift_opened done [16:47:49]requested_item shift.open_date is exist - process it [16:47:49]req_shift_open_date [16:47:49]req_shift_open_date done [16:47:49]produce_requested_data done [16:47:49]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44691,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:47:49]process_action_free get_value [16:47:49]json_value_free [16:47:49]json_value_free done [16:47:49]process_json_proto returns [16:47:49]Send response to host [16:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44691,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:47:49]free response buf [16:47:49]execute_script done [16:47:49]execute_script returns [16:47:49]free content buf [16:47:49]Sock 7.Close socket [16:47:49]Sock 7.Thread stoped [16:47:49]accept exits with 9 [16:47:49]New connection [16:47:49]New thread 3066875236 created [16:47:49]Thread 3067018596 joined [16:47:49]Waiting for new connection... [16:47:49] Sock 9.Parse request [16:47:49]Sock 9.Check first char [16:47:49]Sock 9.First char is OK [16:47:49]request: POST /json_proto HTTP/1.0 [16:47:49]Method: POST [16:47:49]URL: /json_proto [16:47:49]Method is POST - this is cgi request [16:47:49]url: /json_proto [16:47:49]query_string will be loaded in cgi processing [16:47:49]execute_cgi json_proto POST (null) [16:47:49]execute_cgi path=json_proto method=POST [16:47:49]POST find Content-Length [16:47:49]Host: 172.17.45.196:8080 [16:47:49]Content-Length: 331 [16:47:49]Content-Type: application/json [16:47:49] [16:47:49]POST finish read [16:47:49]Found Content-Length = 331 [16:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:47:49]execute_script... [16:47:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:47:50]POST & json_proto [16:47:50]process_json_proto [16:47:50]json parsed OK: [16:47:50]protocol is kg_v1.0 [16:47:50]action value=get_value [16:47:50]process_action get_value [16:47:50]cmd_get_value [16:47:50]process_action get_value done [16:47:50]requested_data is exist [16:47:50]produce_requested_data [16:47:50]requested_item fm.sale.total is exist - process it [16:47:50]SAM_PROTO_GetFMData [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 03 00 [16:47:50]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 FD 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 37 AB 00 00 69 04 A0 00 6F 04 04 00 A8 AA 00 00 B1 04 04 00 C9 86 1D 40 70 04 04 00 FC 10 B2 3B 72 04 04 00 CD 75 6B 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 07 0F CF 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 2D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 9F [16:47:50]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 37 AB 00 00 69 04 A0 00 6F 04 04 00 A8 AA 00 00 B1 04 04 00 C9 86 1D 40 70 04 04 00 FC 10 B2 3B 72 04 04 00 CD 75 6B 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 07 0F CF 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 2D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [16:47:50]wFMCommunicate OK [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 17 00 00 [16:47:50]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 FD 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [16:47:50]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [16:47:50]wFMCommunicate OK [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 17 00 00 [16:47:50]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [16:47:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [16:47:51]wFMCommunicate OK [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 17 00 00 [16:47:51]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [16:47:51]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [16:47:51]wFMCommunicate OK [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 17 00 00 [16:47:51]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 DF 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [16:47:51]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:47:51]wFMCommunicate OK [16:47:51]SAM_PROTO_GetFMData done [16:47:51]requested_item fm.sale_refund.total is exist - process it [16:47:51]requested_item fm.buy.total is exist - process it [16:47:51]requested_item shift.sale.total is exist - process it [16:47:51]SAM_PROTO_GetShiftData [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 13 02 00 [16:47:51]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 84 C4 16 70 04 03 00 B4 E1 14 72 04 03 00 D0 E2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 ED 6A 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 88 33 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A1 [16:47:51]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 84 C4 16 70 04 03 00 B4 E1 14 72 04 03 00 D0 E2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 ED 6A 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 88 33 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 17 00 00 [16:47:52]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [16:47:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 17 00 00 [16:47:52]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]OFD Sender: No OFD packet to send [16:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [16:47:52]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 17 00 00 [16:47:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [16:47:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 17 00 00 [16:47:52]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 CB 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [16:47:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:47:53]wFMCommunicate OK [16:47:53]SAM_PROTO_GetShiftData done [16:47:53]requested_item shift.sale.total_cash is exist - process it [16:47:53]requested_item shift.sale_refund.total is exist - process it [16:47:53]requested_item shift.sale_refund.total_cash is exist - process it [16:47:53]requested_item shift.buy.total is exist - process it [16:47:53]requested_item shift.buy.total_cash is exist - process it [16:47:53]produce_requested_data done [16:47:53]produce_requested_data return {"fm.sale.total":10756768.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":14921.00,"shift.sale.total_cash":13685.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:47:53]process_action_free get_value [16:47:53]json_value_free [16:47:53]json_value_free done [16:47:53]process_json_proto returns [16:47:53]Send response to host [16:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10756768.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":14921.00,"shift.sale.total_cash":13685.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:47:53]free response buf [16:47:53]execute_script done [16:47:53]execute_script returns [16:47:53]free content buf [16:47:53]Sock 9.Close socket [16:47:53]Sock 9.Thread stoped [16:47:54]accept exits with 7 [16:47:54]New connection [16:47:54]New thread 3067018596 created [16:47:54]Thread 3066875236 joined [16:47:54]Waiting for new connection... [16:47:54] Sock 7.Parse request [16:47:54]Sock 7.Check first char [16:47:54]Sock 7.First char is OK [16:47:54]request: POST /json_proto HTTP/1.0 [16:47:54]Method: POST [16:47:54]URL: /json_proto [16:47:54]Method is POST - this is cgi request [16:47:54]url: /json_proto [16:47:54]query_string will be loaded in cgi processing [16:47:54]execute_cgi json_proto POST (null) [16:47:54]execute_cgi path=json_proto method=POST [16:47:54]POST find Content-Length [16:47:54]Host: 172.17.45.196:8080 [16:47:54]Content-Length: 667 [16:47:54]Content-Type: application/json [16:47:54] [16:47:54]POST finish read [16:47:54]Found Content-Length = 667 [16:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14583", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:54]execute_script... [16:47:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14583", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:54]POST & json_proto [16:47:54]process_json_proto [16:47:54]json parsed OK: [16:47:54]protocol is kg_v1.0 [16:47:54]action value=close_receipt [16:47:54]process_action close_receipt [16:47:54]cmd_close_receipt [16:47:54]MH_GetDate [16:47:54]Write to MH i2c: F0 00 00 1D 00 0C [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 09 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 09 00 1D 00 00 3A 76 A6 66 BB 03 A5 66 9A [16:47:54]GetLastDocTimeStamp 1722175319 [16:47:54]current date 1722185274 [16:47:54]FM_GetShiftState [16:47:54]SAM_PROTO_GetShiftState [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 13 01 00 [16:47:54]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [16:47:54]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:47:54]wFMCommunicate OK [16:47:54]SAM_PROTO_GetShiftState done [16:47:54]FM_GetShiftState done [16:47:54]opened in 1722126323 [16:47:54]opened+sec_in_day 1722212723 [16:47:54]quantity*price = 45000 [16:47:54]sum+1 = 45001 [16:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 63 28.07.2024 16:47 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44692 ФПД: 81705463525316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164754&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44692&fm=81705463525316&tin=02508201610067®Number=0000000000092655&sum=45000 0 [16:47:55]StoreToDocumentArchive [16:47:55]shift 430 fd 44692 [16:47:55]save to /storage/0430/doc_00044692 [16:47:55]save last doc name /storage/0430/doc_00044692 to /storage/kkm_last_doc_name [16:47:55]save OK [16:47:55]Clear old archive folders... [16:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=296 [16:47:55]tlvbuf is 01521750 [16:47:55]SAM_PROTO_ClearQueue [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 09 00 00 [16:47:55]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 03 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:47:55]RAPDU: 90 00 [16:47:55]wFMCommunicate OK [16:47:55]SAM_PROTO_ClearQueue done [16:47:55]KKMCreateOFDPacket [16:47:55]OFDProtocolAddRootSTLVToBuf [16:47:55]FM_MakeSignedData [16:47:55]FM_MakeSignedData [16:47:55]SAM_PROTO_SignData [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 0D 01 02 [16:47:55]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 03 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:47:55]RAPDU: 90 00 [16:47:55]wFMCommunicate OK [16:47:55]wFMCommunicate request_size=255 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [16:47:55]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 97 [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=55 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 94 AE 00 00 35 04 06 00 4A 4F 89 21 2F C4 [16:47:56]Write to MH i2c: E2 3A 00 2E 00 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 94 AE 00 00 35 04 06 00 4A 4F 89 21 2F C4 00 00 7C [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 03 02 [16:47:56]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0B 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0B 00 2F 00 00 8B 92 8E C7 98 3D 32 6E 90 00 92 [16:47:56]RAPDU: 8B 92 8E C7 98 3D 32 6E 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_SignData done [16:47:56]FM_MakeSignedData done [16:47:56]CreateOFDProtocolMessage [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 11 00 00 [16:47:56]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [16:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:47:56]wFMCommunicate OK [16:47:56]CreateOFDProtocolMessage done [16:47:56]OFDSenderStorePacket 44692 [16:47:56]StoreOFDPacket docnum=44692 [16:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 0A 0E 34 01 20 F2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 94 AE 00 00 35 04 06 00 4A 4F 89 21 2F C4 8B 92 8E C7 98 3D 32 6E [16:47:56]CheckFolder [16:47:56]dirname=/storage/ofd_packets [16:47:56]CheckFolder done [16:47:56]ProducePacketName [16:47:56]name=ofd_packets/00044692 [16:47:56]NVStorageSaveData ofd_packets/00044692 [16:47:56]File name is /storage/ofd_packets/00044692 [16:47:56]Write 346 bytes [16:47:56]NVStorageSaveData done [16:47:56]OFDSenderStorePacket done [16:47:56]KKMCreateOFDPacket done [16:47:56]NVStorageSaveData kkm_last_timestamp [16:47:56]File name is /storage/kkm_last_timestamp [16:47:56]Write 4 bytes [16:47:56]NVStorageSaveData done [16:47:56]ExternCall_PrintAddStr [16:47:56]wPrintStart [16:47:56]Write to MH i2c: 01 00 00 31 00 31 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:47:56]RasterBufferAndPrint [16:47:56]line Счет N : (3)14583 [16:47:56]line ИНН: 02508201610067 [16:47:56]line Контрольно-Кассовый Чек [16:47:56]line ПРОДАЖА [16:47:56]line Товар: 4670003190013 [16:47:56]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [16:47:56]line 2.000 * 225.00 [16:47:56]line = 450.00 [16:47:56]line НДС 12% НСП 1% [16:47:56]line > о реализуемом товаре [16:47:56]line ИТОГО: 450.00 [16:47:56]line НСП 1% : 3.98 [16:47:56]line НДС 12% : 47.79 [16:47:56]line Наличными: 450.00 [16:47:56]line Безнал.: 0.00 [16:47:56]line Место: АЗС № 128 "Партнер Нефть" [16:47:56]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:47:56]line СНО: Общий режим [16:47:56]line Чек 63 28.07.2024 16:47 [16:47:56]line Смена: 430 ФФД: 1.0 [16:47:56]line ЗНМ: 0300000045 [16:47:56]line РНМ: 0000000000092655 [16:47:56]line Версия ККМ: 001 [16:47:56]line ФМ: 0000000000874941 [16:47:56]line ФД: 44692 [16:47:56]line ФПД: 81705463525316 [16:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164754&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44692&fm=81705463525316&tin=02508201610067®Number=0000000000092655&sum=45000 [16:47:56]OFD Sender: Processing packet 44692 [packets to send 7, broken 6] [16:47:56]ProducePacketName [16:47:56]name=ofd_packets/00044692 [16:47:56]OFD Sender: To server: pG, [16:47:56]CommunicateWithHost lk.salyk.kg:30040 [16:47:56]ConnectInit lk.salyk.kg [16:47:56]line 0 [16:47:56]written 0, free lines is 4095 [16:47:56]Connected sock=9 [16:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 0A 0E 34 01 20 F2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 94 AE 00 00 35 04 06 00 4A 4F 89 21 2F C4 8B 92 8E C7 98 3D 32 6E [16:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 3A 51 47 00 9D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 94 AE 00 00 F4 03 04 00 4C 22 A6 66 B6 04 01 00 00 E1 5C ED 1A 4B 3E 09 40 [16:47:56]CommunicateWithHost err = 0 [16:47:56]CheckOFDResponse [16:47:56]1017 (14) - 77093643461234 [16:47:56]1041 (16) - 0000000000874941 [16:47:56]1040 (4) - 44692 [16:47:56]1012 (4) - 28.07.2024 10:49 [16:47:56]1206 (1) - 0 [16:47:56]OFD Sender: Remove packet 44692 [16:47:56]ProducePacketName [16:47:56]name=ofd_packets/00044692 [16:47:56]NVStorageDeleteData [16:47:56]Write to MH i2c: 01 00 00 5A 00 5A [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E1 0C 4E [16:47:56]RasterBufferAndPrint [16:47:56]line [16:47:56]line [16:47:56]line [16:47:56]line [16:47:56]line [16:47:56]written 0, free lines is 3317 [16:47:56]process_action close_receipt done [16:47:56]requested_data is exist [16:47:56]produce_requested_data [16:47:56]requested_item fm.sn is exist - process it [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 11 00 00 [16:47:56]Write to MH i2c: E2 08 00 61 00 80 11 00 00 00 00 00 00 DB [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 61 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2F [16:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:47:56]wFMCommunicate OK [16:47:56]requested_item fd.num is exist - process it [16:47:56]SAM_PROTO_GetFieldsCounters [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 13 00 00 [16:47:56]Write to MH i2c: E2 08 00 62 00 80 13 00 00 00 00 00 00 DE [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 62 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 62 00 62 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 94 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 94 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:57]wFMCommunicate OK [16:47:57]SAM_PROTO_GetFieldsCounters done [16:47:57]requested_item shift.num is exist - process it [16:47:57]requested_item shift.opened is exist - process it [16:47:57]req_shift_opened [16:47:57]FM_GetShiftState [16:47:57]SAM_PROTO_GetShiftState [16:47:57]wFMCommunicate request_size=4 [16:47:57]MH_SAM_APDU [16:47:57]CAPDU: 80 13 01 00 [16:47:57]Write to MH i2c: E2 08 00 63 00 80 13 01 00 00 00 00 00 E0 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:57]Read from MH i2c: E2 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 0E 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: E2 0E 00 63 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 79 [16:47:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:47:57]wFMCommunicate OK [16:47:57]SAM_PROTO_GetShiftState done [16:47:57]FM_GetShiftState done [16:47:57]req_shift_opened done [16:47:57]requested_item shift.open_date is exist - process it [16:47:57]req_shift_open_date [16:47:57]req_shift_open_date done [16:47:57]produce_requested_data done [16:47:57]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44692,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:47:57]process_action_free close_receipt [16:47:57]json_value_free [16:47:57]json_value_free done [16:47:57]process_json_proto returns [16:47:57]Send response to host [16:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44692,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:47:57]free response buf [16:47:57]execute_script done [16:47:57]execute_script returns [16:47:57]free content buf [16:47:57]Sock 7.Close socket [16:47:57]Sock 7.Thread stoped [16:47:57]OFD Sender: No OFD packet to send [16:47:58]accept exits with 10 [16:47:58]New connection [16:47:58]New thread 3066875236 created [16:47:58]Thread 3067018596 joined [16:47:58]Waiting for new connection... [16:47:58] Sock 10.Parse request [16:47:58]Sock 10.Check first char [16:47:58]Sock 10.First char is OK [16:47:58]request: POST /json_proto HTTP/1.0 [16:47:58]Method: POST [16:47:58]URL: /json_proto [16:47:58]Method is POST - this is cgi request [16:47:58]url: /json_proto [16:47:58]query_string will be loaded in cgi processing [16:47:58]execute_cgi json_proto POST (null) [16:47:58]execute_cgi path=json_proto method=POST [16:47:58]POST find Content-Length [16:47:58]Host: 172.17.45.196:8080 [16:47:58]Content-Length: 661 [16:47:58]Content-Type: application/json [16:47:58] [16:47:58]POST finish read [16:47:58]Found Content-Length = 661 [16:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14584", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:58]execute_script... [16:47:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14584", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:58]POST & json_proto [16:47:58]process_json_proto [16:47:58]json parsed OK: [16:47:58]protocol is kg_v1.0 [16:47:58]action value=close_receipt [16:47:58]process_action close_receipt [16:47:58]cmd_close_receipt [16:47:58]MH_GetDate [16:47:58]Write to MH i2c: F0 00 00 64 00 53 [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: F0 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: F0 09 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: F0 09 00 64 00 00 3E 76 A6 66 BB 03 A5 66 E5 [16:47:58]GetLastDocTimeStamp 1722185274 [16:47:58]current date 1722185278 [16:47:58]FM_GetShiftState [16:47:58]SAM_PROTO_GetShiftState [16:47:58]wFMCommunicate request_size=4 [16:47:58]MH_SAM_APDU [16:47:58]CAPDU: 80 13 01 00 [16:47:58]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:58]Read from MH i2c: E2 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 0E 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7B [16:47:58]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:47:58]wFMCommunicate OK [16:47:58]SAM_PROTO_GetShiftState done [16:47:58]FM_GetShiftState done [16:47:58]opened in 1722126323 [16:47:58]opened+sec_in_day 1722212723 [16:47:58]quantity*price = 9500 [16:47:58]sum+1 = 9501 [16:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 64 28.07.2024 16:47 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44693 ФПД: 95442244757404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164758&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44693&fm=95442244757404&tin=02508201610067®Number=0000000000092655&sum=9500 0 [16:47:59]StoreToDocumentArchive [16:47:59]shift 430 fd 44693 [16:47:59]save to /storage/0430/doc_00044693 [16:47:59]save last doc name /storage/0430/doc_00044693 to /storage/kkm_last_doc_name [16:47:59]save OK [16:47:59]Clear old archive folders... [16:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=289 [16:47:59]tlvbuf is 01530220 [16:47:59]SAM_PROTO_ClearQueue [16:47:59]wFMCommunicate request_size=4 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 09 00 00 [16:47:59]Write to MH i2c: E2 08 00 72 00 80 09 00 00 00 00 00 00 E4 [16:47:59]Write i2c OK [16:47:59]MH_I2C_Read... [16:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:59]Read from MH i2c: E2 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 03 00 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [16:47:59]RAPDU: 90 00 [16:47:59]wFMCommunicate OK [16:47:59]SAM_PROTO_ClearQueue done [16:47:59]KKMCreateOFDPacket [16:47:59]OFDProtocolAddRootSTLVToBuf [16:47:59]FM_MakeSignedData [16:47:59]FM_MakeSignedData [16:47:59]SAM_PROTO_SignData [16:47:59]wFMCommunicate request_size=4 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 0D 01 02 [16:47:59]Write to MH i2c: E2 08 00 73 00 80 0D 01 02 00 00 00 00 EC [16:47:59]Write i2c OK [16:47:59]MH_I2C_Read... [16:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:59]Read from MH i2c: E2 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 03 00 [16:47:59]MH_I2C_Read... [16:47:59]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [16:47:59]RAPDU: 90 00 [16:47:59]wFMCommunicate OK [16:47:59]wFMCommunicate request_size=255 [16:47:59]MH_SAM_APDU [16:47:59]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [16:47:59]Write to MH i2c: E2 02 01 74 00 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 0B [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 03 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [16:48:00]RAPDU: 90 00 [16:48:00]wFMCommunicate OK [16:48:00]wFMCommunicate request_size=48 [16:48:00]MH_SAM_APDU [16:48:00]CAPDU: 80 0D 02 02 2B 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 95 AE 00 00 35 04 06 00 56 CD E1 18 67 9C [16:48:00]Write to MH i2c: E2 33 00 75 00 80 0D 02 02 2B 00 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 95 AE 00 00 35 04 06 00 56 CD E1 18 67 9C 00 00 4F [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 03 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [16:48:00]RAPDU: 90 00 [16:48:00]wFMCommunicate OK [16:48:00]wFMCommunicate request_size=4 [16:48:00]MH_SAM_APDU [16:48:00]CAPDU: 80 0D 03 02 [16:48:00]Write to MH i2c: E2 08 00 76 00 80 0D 03 02 00 00 00 00 F1 [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0B 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0B 00 76 00 00 7F D8 F7 5B 74 1E D4 53 90 00 54 [16:48:00]RAPDU: 7F D8 F7 5B 74 1E D4 53 90 00 [16:48:00]wFMCommunicate OK [16:48:00]SAM_PROTO_SignData done [16:48:00]FM_MakeSignedData done [16:48:00]CreateOFDProtocolMessage [16:48:00]wFMCommunicate request_size=4 [16:48:00]MH_SAM_APDU [16:48:00]CAPDU: 80 11 00 00 [16:48:00]Write to MH i2c: E2 08 00 77 00 80 11 00 00 00 00 00 00 F1 [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 17 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 17 00 77 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 45 [16:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:00]wFMCommunicate OK [16:48:00]CreateOFDProtocolMessage done [16:48:00]OFDSenderStorePacket 44693 [16:48:00]StoreOFDPacket docnum=44693 [16:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 01 00 00 5E F5 2D 01 A1 AA 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 95 AE 00 00 35 04 06 00 56 CD E1 18 67 9C 7F D8 F7 5B 74 1E D4 53 [16:48:00]CheckFolder [16:48:00]dirname=/storage/ofd_packets [16:48:00]CheckFolder done [16:48:00]ProducePacketName [16:48:00]name=ofd_packets/00044693 [16:48:00]NVStorageSaveData ofd_packets/00044693 [16:48:00]File name is /storage/ofd_packets/00044693 [16:48:00]Write 339 bytes [16:48:00]NVStorageSaveData done [16:48:00]OFDSenderStorePacket done [16:48:00]KKMCreateOFDPacket done [16:48:00]NVStorageSaveData kkm_last_timestamp [16:48:00]File name is /storage/kkm_last_timestamp [16:48:00]Write 4 bytes [16:48:00]NVStorageSaveData done [16:48:00]ExternCall_PrintAddStr [16:48:00]wPrintStart [16:48:00]Write to MH i2c: 01 00 00 78 00 78 [16:48:00]OFD Sender: Processing packet 44693 [packets to send 7, broken 6] [16:48:00]ProducePacketName [16:48:00]name=ofd_packets/00044693 [16:48:00]OFD Sender: To server: pG, [16:48:00]CommunicateWithHost lk.salyk.kg:30040 [16:48:00]ConnectInit lk.salyk.kg [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: 01 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: 01 07 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: 01 07 00 78 00 00 00 00 00 00 FF 0F 8D [16:48:00]RasterBufferAndPrint [16:48:00]line Счет N : (3)14584 [16:48:00]line ИНН: 02508201610067 [16:48:00]line Контрольно-Кассовый Чек [16:48:00]line ПРОДАЖА [16:48:00]line Товар: 5449000176431 [16:48:00]line Сок Piko Pulpy апельсин ПЭТ 0,5л [16:48:00]line 1.000 * 95.00 [16:48:00]line = 95.00 [16:48:00]line НДС 12% НСП 1% [16:48:00]line > о реализуемом товаре [16:48:00]line ИТОГО: 95.00 [16:48:00]line НСП 1% : 0.84 [16:48:00]line НДС 12% : 10.09 [16:48:00]line Наличными: 95.00 [16:48:00]line Безнал.: 0.00 [16:48:00]line Место: АЗС № 128 "Партнер Нефть" [16:48:00]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:00]line СНО: Общий режим [16:48:00]line Чек 64 28.07.2024 16:47 [16:48:00]line Смена: 430 ФФД: 1.0 [16:48:00]line ЗНМ: 0300000045 [16:48:00]line РНМ: 0000000000092655 [16:48:00]line Версия ККМ: 001 [16:48:00]line ФМ: 0000000000874941 [16:48:00]line ФД: 44693 [16:48:00]line ФПД: 95442244757404 [16:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164758&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44693&fm=95442244757404&tin=02508201610067®Number=0000000000092655&sum=9500 [16:48:00]line 0 [16:48:00]written 0, free lines is 4095 [16:48:00]Connected sock=9 [16:48:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 01 00 00 5E F5 2D 01 A1 AA 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 95 AE 00 00 35 04 06 00 56 CD E1 18 67 9C 7F D8 F7 5B 74 1E D4 53 [16:48:01]Write to MH i2c: 01 00 00 A1 00 A1 [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: 01 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: 01 07 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 EC 0C A0 [16:48:01]RasterBufferAndPrint [16:48:01]line [16:48:01]line [16:48:01]line [16:48:01]line [16:48:01]line [16:48:01]written 0, free lines is 3333 [16:48:01]process_action close_receipt done [16:48:01]requested_data is exist [16:48:01]produce_requested_data [16:48:01]requested_item fm.sn is exist - process it [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 11 00 00 [16:48:01]Write to MH i2c: E2 08 00 A8 00 80 11 00 00 00 00 00 00 22 [16:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 D9 E4 47 00 BB FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 95 AE 00 00 F4 03 04 00 51 22 A6 66 B6 04 01 00 00 95 8B 44 19 A2 2D 40 04 [16:48:01]CommunicateWithHost err = 0 [16:48:01]CheckOFDResponse [16:48:01]1017 (14) - 77093643461234 [16:48:01]1041 (16) - 0000000000874941 [16:48:01]1040 (4) - 44693 [16:48:01]1012 (4) - 28.07.2024 10:49 [16:48:01]1206 (1) - 0 [16:48:01]OFD Sender: Remove packet 44693 [16:48:01]ProducePacketName [16:48:01]name=ofd_packets/00044693 [16:48:01]NVStorageDeleteData [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 17 00 [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:01]Read from MH i2c: E2 17 00 A8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 76 [16:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:01]wFMCommunicate OK [16:48:01]requested_item fd.num is exist - process it [16:48:01]SAM_PROTO_GetFieldsCounters [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 13 00 00 [16:48:01]Write to MH i2c: E2 08 00 A9 00 80 13 00 00 00 00 00 00 25 [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 62 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 62 00 A9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 95 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 95 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:01]wFMCommunicate OK [16:48:01]SAM_PROTO_GetFieldsCounters done [16:48:01]requested_item shift.num is exist - process it [16:48:01]requested_item shift.opened is exist - process it [16:48:01]req_shift_opened [16:48:01]FM_GetShiftState [16:48:01]SAM_PROTO_GetShiftState [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 13 01 00 [16:48:01]Write to MH i2c: E2 08 00 AA 00 80 13 01 00 00 00 00 00 27 [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 0E 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 0E 00 AA 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C0 [16:48:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:01]wFMCommunicate OK [16:48:01]SAM_PROTO_GetShiftState done [16:48:01]FM_GetShiftState done [16:48:01]req_shift_opened done [16:48:01]requested_item shift.open_date is exist - process it [16:48:01]req_shift_open_date [16:48:01]req_shift_open_date done [16:48:01]produce_requested_data done [16:48:01]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44693,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:01]process_action_free close_receipt [16:48:01]json_value_free [16:48:01]json_value_free done [16:48:01]process_json_proto returns [16:48:01]Send response to host [16:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44693,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:01]free response buf [16:48:01]execute_script done [16:48:01]execute_script returns [16:48:01]free content buf [16:48:01]Sock 10.Close socket [16:48:01]Sock 10.Thread stoped [16:48:01]OFD Sender: No OFD packet to send [16:48:02]accept exits with 8 [16:48:02]New connection [16:48:02]New thread 3067018596 created [16:48:02]Thread 3066875236 joined [16:48:02]Waiting for new connection... [16:48:02] Sock 8.Parse request [16:48:02]Sock 8.Check first char [16:48:02]Sock 8.First char is OK [16:48:02]request: POST /json_proto HTTP/1.0 [16:48:02]Method: POST [16:48:02]URL: /json_proto [16:48:02]Method is POST - this is cgi request [16:48:02]url: /json_proto [16:48:02]query_string will be loaded in cgi processing [16:48:02]execute_cgi json_proto POST (null) [16:48:02]execute_cgi path=json_proto method=POST [16:48:02]POST find Content-Length [16:48:02]Host: 172.17.45.196:8080 [16:48:02]Content-Length: 643 [16:48:02]Content-Type: application/json [16:48:02] [16:48:02]POST finish read [16:48:02]Found Content-Length = 643 [16:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14585", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:02]execute_script... [16:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14585", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:02]POST & json_proto [16:48:02]process_json_proto [16:48:02]json parsed OK: [16:48:02]protocol is kg_v1.0 [16:48:02]action value=close_receipt [16:48:02]process_action close_receipt [16:48:02]cmd_close_receipt [16:48:02]MH_GetDate [16:48:02]Write to MH i2c: F0 00 00 AB 00 9A [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 09 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 09 00 AB 00 00 42 76 A6 66 BB 03 A5 66 30 [16:48:02]GetLastDocTimeStamp 1722185278 [16:48:02]current date 1722185282 [16:48:02]FM_GetShiftState [16:48:02]SAM_PROTO_GetShiftState [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 13 01 00 [16:48:02]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0E 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C2 [16:48:02]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:02]wFMCommunicate OK [16:48:02]SAM_PROTO_GetShiftState done [16:48:02]FM_GetShiftState done [16:48:02]opened in 1722126323 [16:48:02]opened+sec_in_day 1722212723 [16:48:02]quantity*price = 3500 [16:48:02]sum+1 = 3501 [16:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 65 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44694 ФПД: 100150970180777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164802&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44694&fm=100150970180777&tin=02508201610067®Number=0000000000092655&sum=3500 0 [16:48:04]StoreToDocumentArchive [16:48:04]shift 430 fd 44694 [16:48:04]save to /storage/0430/doc_00044694 [16:48:04]save last doc name /storage/0430/doc_00044694 to /storage/kkm_last_doc_name [16:48:04]save OK [16:48:04]Clear old archive folders... [16:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:48:04]tlvbuf is 01534840 [16:48:04]SAM_PROTO_ClearQueue [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 09 00 00 [16:48:04]Write to MH i2c: E2 08 00 B9 00 80 09 00 00 00 00 00 00 2B [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]SAM_PROTO_ClearQueue done [16:48:04]KKMCreateOFDPacket [16:48:04]OFDProtocolAddRootSTLVToBuf [16:48:04]FM_MakeSignedData [16:48:04]FM_MakeSignedData [16:48:04]SAM_PROTO_SignData [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 01 02 [16:48:04]Write to MH i2c: E2 08 00 BA 00 80 0D 01 02 00 00 00 00 33 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=255 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 42 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [16:48:04]Write to MH i2c: E2 02 01 BB 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 42 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 D1 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=34 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 96 AE 00 00 35 04 06 00 5B 16 37 00 64 A9 [16:48:04]Write to MH i2c: E2 25 00 BC 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 96 AE 00 00 35 04 06 00 5B 16 37 00 64 A9 00 00 F1 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 03 02 [16:48:04]Write to MH i2c: E2 08 00 BD 00 80 0D 03 02 00 00 00 00 38 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0B 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0B 00 BD 00 00 6F 71 00 44 B2 A3 14 14 90 00 DA [16:48:05]RAPDU: 6F 71 00 44 B2 A3 14 14 90 00 [16:48:05]wFMCommunicate OK [16:48:05]SAM_PROTO_SignData done [16:48:05]FM_MakeSignedData done [16:48:05]CreateOFDProtocolMessage [16:48:05]wFMCommunicate request_size=4 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 11 00 00 [16:48:05]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8C [16:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:05]wFMCommunicate OK [16:48:05]CreateOFDProtocolMessage done [16:48:05]OFDSenderStorePacket 44694 [16:48:05]StoreOFDPacket docnum=44694 [16:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 75 B4 1F 01 70 E1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 42 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 96 AE 00 00 35 04 06 00 5B 16 37 00 64 A9 6F 71 00 44 B2 A3 14 14 [16:48:05]CheckFolder [16:48:05]dirname=/storage/ofd_packets [16:48:05]CheckFolder done [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00044694 [16:48:05]NVStorageSaveData ofd_packets/00044694 [16:48:05]File name is /storage/ofd_packets/00044694 [16:48:05]Write 325 bytes [16:48:05]NVStorageSaveData done [16:48:05]OFDSenderStorePacket done [16:48:05]KKMCreateOFDPacket done [16:48:05]NVStorageSaveData kkm_last_timestamp [16:48:05]File name is /storage/kkm_last_timestamp [16:48:05]Write 4 bytes [16:48:05]NVStorageSaveData done [16:48:05]ExternCall_PrintAddStr [16:48:05]wPrintStart [16:48:05]Write to MH i2c: 01 00 00 BF 00 BF [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 BF 00 00 00 00 00 00 FF 0F D4 [16:48:05]RasterBufferAndPrint [16:48:05]line Счет N : (3)14585 [16:48:05]line ИНН: 02508201610067 [16:48:05]line Контрольно-Кассовый Чек [16:48:05]line ПРОДАЖА [16:48:05]line Товар: 4700000310326 [16:48:05]line Вода Адыгене 1л б/г [16:48:05]line 1.000 * 35.00 [16:48:05]line = 35.00 [16:48:05]line НДС 12% НСП 1% [16:48:05]line > о реализуемом товаре [16:48:05]line ИТОГО: 35.00 [16:48:05]line НСП 1% : 0.31 [16:48:05]line НДС 12% : 3.72 [16:48:05]line Наличными: 35.00 [16:48:05]line Безнал.: 0.00 [16:48:05]line Место: АЗС № 128 "Партнер Нефть" [16:48:05]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:05]line СНО: Общий режим [16:48:05]line Чек 65 28.07.2024 16:48 [16:48:05]line Смена: 430 ФФД: 1.0 [16:48:05]line ЗНМ: 0300000045 [16:48:05]line РНМ: 0000000000092655 [16:48:05]line Версия ККМ: 001 [16:48:05]line ФМ: 0000000000874941 [16:48:05]line ФД: 44694 [16:48:05]line ФПД: 100150970180777 [16:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164802&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44694&fm=100150970180777&tin=02508201610067®Number=0000000000092655&sum=3500 [16:48:05]line 0 [16:48:05]written 0, free lines is 4095 [16:48:05]OFD Sender: Processing packet 44694 [packets to send 7, broken 6] [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00044694 [16:48:05]OFD Sender: To server: pG, [16:48:05]CommunicateWithHost lk.salyk.kg:30040 [16:48:05]ConnectInit lk.salyk.kg [16:48:05]Connected sock=10 [16:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 75 B4 1F 01 70 E1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 42 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 96 AE 00 00 35 04 06 00 5B 16 37 00 64 A9 6F 71 00 44 B2 A3 14 14 [16:48:05]Write to MH i2c: 01 00 00 E7 00 E7 [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 FF 0C F9 [16:48:05]RasterBufferAndPrint [16:48:05]line [16:48:05]line [16:48:05]line [16:48:05]line [16:48:05]line [16:48:05]written 0, free lines is 3353 [16:48:05]process_action close_receipt done [16:48:05]requested_data is exist [16:48:05]produce_requested_data [16:48:05]requested_item fm.sn is exist - process it [16:48:05]wFMCommunicate request_size=4 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 11 00 00 [16:48:05]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BC [16:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:05]wFMCommunicate OK [16:48:05]requested_item fd.num is exist - process it [16:48:05]SAM_PROTO_GetFieldsCounters [16:48:05]wFMCommunicate request_size=4 [16:48:05]MH_SAM_APDU [16:48:05]CAPDU: 80 13 00 00 [16:48:05]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [16:48:05]Write i2c OK [16:48:05]MH_I2C_Read... [16:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 C8 05 47 00 A7 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 96 AE 00 00 F4 03 04 00 55 22 A6 66 B6 04 01 00 00 06 07 40 93 12 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:05]74 DF D7 [16:48:05]CommunicateWithHost err = 0 [16:48:05]CheckOFDResponse [16:48:05]1017 (14) - 77093643461234 [16:48:05]1041 (16) - 0000000000874941 [16:48:05]1040 (4) - 44694 [16:48:05]1012 (4) - 28.07.2024 10:49 [16:48:05]1206 (1) - 0 [16:48:05]OFD Sender: Remove packet 44694 [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00044694 [16:48:05]NVStorageDeleteData [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 62 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 96 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:48:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 96 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetFieldsCounters done [16:48:06]requested_item shift.num is exist - process it [16:48:06]requested_item shift.opened is exist - process it [16:48:06]req_shift_opened [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 06 [16:48:06]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]req_shift_opened done [16:48:06]requested_item shift.open_date is exist - process it [16:48:06]req_shift_open_date [16:48:06]req_shift_open_date done [16:48:06]produce_requested_data done [16:48:06]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44694,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:06]process_action_free close_receipt [16:48:06]json_value_free [16:48:06]json_value_free done [16:48:06]process_json_proto returns [16:48:06]Send response to host [16:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44694,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:06]free response buf [16:48:06]execute_script done [16:48:06]execute_script returns [16:48:06]free content buf [16:48:06]Sock 8.Close socket [16:48:06]Sock 8.Thread stoped [16:48:06]OFD Sender: No OFD packet to send [16:48:07]accept exits with 9 [16:48:07]New connection [16:48:07]New thread 3066875236 created [16:48:07]Thread 3067018596 joined [16:48:07]Waiting for new connection... [16:48:07] Sock 9.Parse request [16:48:07]Sock 9.Check first char [16:48:07]Sock 9.First char is OK [16:48:07]request: POST /json_proto HTTP/1.0 [16:48:07]Method: POST [16:48:07]URL: /json_proto [16:48:07]Method is POST - this is cgi request [16:48:07]url: /json_proto [16:48:07]query_string will be loaded in cgi processing [16:48:07]execute_cgi json_proto POST (null) [16:48:07]execute_cgi path=json_proto method=POST [16:48:07]POST find Content-Length [16:48:07]Host: 172.17.45.196:8080 [16:48:07]Content-Length: 629 [16:48:07]Content-Type: application/json [16:48:07] [16:48:07]POST finish read [16:48:07]Found Content-Length = 629 [16:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14586", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:07]execute_script... [16:48:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14586", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:07]POST & json_proto [16:48:07]process_json_proto [16:48:07]json parsed OK: [16:48:07]protocol is kg_v1.0 [16:48:07]action value=close_receipt [16:48:07]process_action close_receipt [16:48:07]cmd_close_receipt [16:48:07]MH_GetDate [16:48:07]Write to MH i2c: F0 00 00 F1 00 E0 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 09 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 09 00 F1 00 00 47 76 A6 66 BB 03 A5 66 7B [16:48:07]GetLastDocTimeStamp 1722185282 [16:48:07]current date 1722185287 [16:48:07]FM_GetShiftState [16:48:07]SAM_PROTO_GetShiftState [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 13 01 00 [16:48:07]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 08 [16:48:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_GetShiftState done [16:48:07]FM_GetShiftState done [16:48:07]opened in 1722126323 [16:48:07]opened+sec_in_day 1722212723 [16:48:07]quantity*price = 5000 [16:48:07]sum+1 = 5001 [16:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 66 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44695 ФПД: 104889576282074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164807&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44695&fm=104889576282074&tin=02508201610067®Number=0000000000092655&sum=5000 0 [16:48:09]StoreToDocumentArchive [16:48:09]shift 430 fd 44695 [16:48:09]save to /storage/0430/doc_00044695 [16:48:09]save last doc name /storage/0430/doc_00044695 to /storage/kkm_last_doc_name [16:48:09]save OK [16:48:09]Clear old archive folders... [16:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:48:09]tlvbuf is 014E7330 [16:48:09]SAM_PROTO_ClearQueue [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 09 00 00 [16:48:09]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]SAM_PROTO_ClearQueue done [16:48:09]KKMCreateOFDPacket [16:48:09]OFDProtocolAddRootSTLVToBuf [16:48:09]FM_MakeSignedData [16:48:09]FM_MakeSignedData [16:48:09]SAM_PROTO_SignData [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 01 02 [16:48:09]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=255 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:48:09]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4D [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=28 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 97 AE 00 00 35 04 06 00 5F 65 81 EF 57 DA [16:48:09]Write to MH i2c: E2 1F 00 02 01 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 97 AE 00 00 35 04 06 00 5F 65 81 EF 57 DA 00 00 B5 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 03 02 [16:48:09]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0B 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0B 00 03 01 00 0C B1 1A 18 5C 31 4F 25 90 00 70 [16:48:10]RAPDU: 0C B1 1A 18 5C 31 4F 25 90 00 [16:48:10]wFMCommunicate OK [16:48:10]SAM_PROTO_SignData done [16:48:10]FM_MakeSignedData done [16:48:10]CreateOFDProtocolMessage [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 11 00 00 [16:48:10]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D3 [16:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:10]wFMCommunicate OK [16:48:10]CreateOFDProtocolMessage done [16:48:10]OFDSenderStorePacket 44695 [16:48:10]StoreOFDPacket docnum=44695 [16:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 68 F6 19 01 77 2D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 97 AE 00 00 35 04 06 00 5F 65 81 EF 57 DA 0C B1 1A 18 5C 31 4F 25 [16:48:10]CheckFolder [16:48:10]dirname=/storage/ofd_packets [16:48:10]CheckFolder done [16:48:10]ProducePacketName [16:48:10]name=ofd_packets/00044695 [16:48:10]NVStorageSaveData ofd_packets/00044695 [16:48:10]File name is /storage/ofd_packets/00044695 [16:48:10]Write 319 bytes [16:48:10]NVStorageSaveData done [16:48:10]OFDSenderStorePacket done [16:48:10]KKMCreateOFDPacket done [16:48:10]NVStorageSaveData kkm_last_timestamp [16:48:10]File name is /storage/kkm_last_timestamp [16:48:10]Write 4 bytes [16:48:10]NVStorageSaveData done [16:48:10]ExternCall_PrintAddStr [16:48:10]wPrintStart [16:48:10]Write to MH i2c: 01 00 00 05 01 06 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [16:48:10]RasterBufferAndPrint [16:48:10]line Счет N : (3)14586 [16:48:10]line ИНН: 02508201610067 [16:48:10]line Контрольно-Кассовый Чек [16:48:10]line ПРОДАЖА [16:48:10]line Товар: 4700000160358 [16:48:10]line Вода Легенда 1л [16:48:10]line 1.000 * 50.00 [16:48:10]line = 50.00 [16:48:10]line НДС 12% НСП 1% [16:48:10]line > о реализуемом товаре [16:48:10]line ИТОГО: 50.00 [16:48:10]line НСП 1% : 0.44 [16:48:10]line НДС 12% : 5.31 [16:48:10]line Наличными: 50.00 [16:48:10]line Безнал.: 0.00 [16:48:10]line Место: АЗС № 128 "Партнер Нефть" [16:48:10]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:10]line СНО: Общий режим [16:48:10]line Чек 66 28.07.2024 16:48 [16:48:10]line Смена: 430 ФФД: 1.0 [16:48:10]line ЗНМ: 0300000045 [16:48:10]line РНМ: 0000000000092655 [16:48:10]line Версия ККМ: 001 [16:48:10]line ФМ: 0000000000874941 [16:48:10]line ФД: 44695 [16:48:10]line ФПД: 104889576282074 [16:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164807&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44695&fm=104889576282074&tin=02508201610067®Number=0000000000092655&sum=5000 [16:48:10]line 0 [16:48:10]OFD Sender: Processing packet 44695 [packets to send 7, broken 6] [16:48:10]ProducePacketName [16:48:10]name=ofd_packets/00044695 [16:48:10]OFD Sender: To server: pG, [16:48:10]CommunicateWithHost lk.salyk.kg:30040 [16:48:10]ConnectInit lk.salyk.kg [16:48:10]written 0, free lines is 4095 [16:48:10]Connected sock=10 [16:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 68 F6 19 01 77 2D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 47 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 97 AE 00 00 35 04 06 00 5F 65 81 EF 57 DA 0C B1 1A 18 5C 31 4F 25 [16:48:10]Write to MH i2c: 01 00 00 2D 01 2E [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 86 0D C8 [16:48:10]RasterBufferAndPrint [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]written 0, free lines is 3491 [16:48:10]process_action close_receipt done [16:48:10]requested_data is exist [16:48:10]produce_requested_data [16:48:10]requested_item fm.sn is exist - process it [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 11 00 00 [16:48:10]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 03 [16:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:10]wFMCommunicate OK [16:48:10]requested_item fd.num is exist - process it [16:48:10]SAM_PROTO_GetFieldsCounters [16:48:10]wFMCommunicate request_size=4 [16:48:10]MH_SAM_APDU [16:48:10]CAPDU: 80 13 00 00 [16:48:10]Write to MH i2c: E2 08 00 35 01 80 13 00 00 00 00 00 00 B2 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 5C 6D 47 00 1F 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 97 AE 00 00 F4 03 04 00 5A 22 A6 66 B6 04 01 00 00 8E 9E 52 0A 84 86 26 20 [16:48:10]CommunicateWithHost err = 0 [16:48:10]CheckOFDResponse [16:48:10]1017 (14) - 77093643461234 [16:48:10]1041 (16) - 0000000000874941 [16:48:10]1040 (4) - 44695 [16:48:10]1012 (4) - 28.07.2024 10:50 [16:48:10]1206 (1) - 0 [16:48:10]OFD Sender: Remove packet 44695 [16:48:10]ProducePacketName [16:48:10]name=ofd_packets/00044695 [16:48:10]NVStorageDeleteData [16:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:10]Read from MH i2c: E2 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 62 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: E2 62 00 35 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 97 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 97 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetFieldsCounters done [16:48:11]requested_item shift.num is exist - process it [16:48:11]requested_item shift.opened is exist - process it [16:48:11]req_shift_opened [16:48:11]FM_GetShiftState [16:48:11]SAM_PROTO_GetShiftState [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 01 00 [16:48:11]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 36 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4D [16:48:11]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetShiftState done [16:48:11]FM_GetShiftState done [16:48:11]req_shift_opened done [16:48:11]requested_item shift.open_date is exist - process it [16:48:11]req_shift_open_date [16:48:11]req_shift_open_date done [16:48:11]produce_requested_data done [16:48:11]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44695,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:11]process_action_free close_receipt [16:48:11]json_value_free [16:48:11]json_value_free done [16:48:11]process_json_proto returns [16:48:11]Send response to host [16:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44695,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:11]free response buf [16:48:11]execute_script done [16:48:11]execute_script returns [16:48:11]free content buf [16:48:11]Sock 9.Close socket [16:48:11]Sock 9.Thread stoped [16:48:11]OFD Sender: No OFD packet to send [16:48:12]accept exits with 8 [16:48:12]New connection [16:48:12]New thread 3067018596 created [16:48:12]Thread 3066875236 joined [16:48:12]Waiting for new connection... [16:48:12] Sock 8.Parse request [16:48:12]Sock 8.Check first char [16:48:12]Sock 8.First char is OK [16:48:12]request: POST /json_proto HTTP/1.0 [16:48:12]Method: POST [16:48:12]URL: /json_proto [16:48:12]Method is POST - this is cgi request [16:48:12]url: /json_proto [16:48:12]query_string will be loaded in cgi processing [16:48:12]execute_cgi json_proto POST (null) [16:48:12]execute_cgi path=json_proto method=POST [16:48:12]POST find Content-Length [16:48:12]Host: 172.17.45.196:8080 [16:48:12]Content-Length: 746 [16:48:12]Content-Type: application/json [16:48:12] [16:48:12]POST finish read [16:48:12]Found Content-Length = 746 [16:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14587", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:12]execute_script... [16:48:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14587", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:12]POST & json_proto [16:48:12]process_json_proto [16:48:12]json parsed OK: [16:48:12]protocol is kg_v1.0 [16:48:12]action value=close_receipt [16:48:12]process_action close_receipt [16:48:12]cmd_close_receipt [16:48:12]MH_GetDate [16:48:12]Write to MH i2c: F0 00 00 37 01 27 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: F0 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: F0 09 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: F0 09 00 37 01 00 4C 76 A6 66 BB 03 A5 66 C7 [16:48:12]GetLastDocTimeStamp 1722185287 [16:48:12]current date 1722185292 [16:48:12]FM_GetShiftState [16:48:12]SAM_PROTO_GetShiftState [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 13 01 00 [16:48:12]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 0E 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4F [16:48:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:12]wFMCommunicate OK [16:48:12]SAM_PROTO_GetShiftState done [16:48:12]FM_GetShiftState done [16:48:12]opened in 1722126323 [16:48:12]opened+sec_in_day 1722212723 [16:48:12]quantity*price = 59000 [16:48:12]sum+1 = 59001 [16:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 67 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44696 ФПД: 56128517370505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164812&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44696&fm=56128517370505&tin=02508201610067®Number=0000000000092655&sum=59000 0 [16:48:14]StoreToDocumentArchive [16:48:14]shift 430 fd 44696 [16:48:14]save to /storage/0430/doc_00044696 [16:48:14]save last doc name /storage/0430/doc_00044696 to /storage/kkm_last_doc_name [16:48:14]save OK [16:48:14]Clear old archive folders... [16:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=307 [16:48:14]tlvbuf is 01503D60 [16:48:14]SAM_PROTO_ClearQueue [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 09 00 00 [16:48:14]Write to MH i2c: E2 08 00 45 01 80 09 00 00 00 00 00 00 B8 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]SAM_PROTO_ClearQueue done [16:48:14]KKMCreateOFDPacket [16:48:14]OFDProtocolAddRootSTLVToBuf [16:48:14]FM_MakeSignedData [16:48:14]FM_MakeSignedData [16:48:14]SAM_PROTO_SignData [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 0D 01 02 [16:48:14]Write to MH i2c: E2 08 00 46 01 80 0D 01 02 00 00 00 00 C0 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [16:48:14]RAPDU: 90 00 [16:48:14]wFMCommunicate OK [16:48:14]wFMCommunicate request_size=255 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 [16:48:14]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 00 00 07 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]wFMCommunicate request_size=66 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 98 AE 00 00 35 04 06 00 33 0C 70 56 F2 89 [16:48:15]Write to MH i2c: E2 45 00 48 01 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 98 AE 00 00 35 04 06 00 33 0C 70 56 F2 89 00 00 DE [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 03 02 [16:48:15]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0B 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0B 00 49 01 00 33 B6 76 6F FE 9F D3 8D 90 00 91 [16:48:15]RAPDU: 33 B6 76 6F FE 9F D3 8D 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_SignData done [16:48:15]FM_MakeSignedData done [16:48:15]CreateOFDProtocolMessage [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 11 00 00 [16:48:15]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 19 [16:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:15]wFMCommunicate OK [16:48:15]CreateOFDProtocolMessage done [16:48:15]OFDSenderStorePacket 44696 [16:48:15]StoreOFDPacket docnum=44696 [16:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 47 01 00 00 9F 76 3F 01 74 E6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 98 AE 00 00 35 04 06 00 33 0C 70 56 F2 89 33 B6 76 6F FE 9F D3 8D [16:48:15]CheckFolder [16:48:15]dirname=/storage/ofd_packets [16:48:15]CheckFolder done [16:48:15]ProducePacketName [16:48:15]name=ofd_packets/00044696 [16:48:15]NVStorageSaveData ofd_packets/00044696 [16:48:15]File name is /storage/ofd_packets/00044696 [16:48:15]Write 357 bytes [16:48:15]NVStorageSaveData done [16:48:15]OFDSenderStorePacket done [16:48:15]KKMCreateOFDPacket done [16:48:15]NVStorageSaveData kkm_last_timestamp [16:48:15]File name is /storage/kkm_last_timestamp [16:48:15]Write 4 bytes [16:48:15]NVStorageSaveData done [16:48:15]ExternCall_PrintAddStr [16:48:15]wPrintStart [16:48:15]Write to MH i2c: 01 00 00 4B 01 4C [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [16:48:15]RasterBufferAndPrint [16:48:15]line Счет N : (3)14587 [16:48:15]line ИНН: 02508201610067 [16:48:15]line Контрольно-Кассовый Чек [16:48:15]line ПРОДАЖА [16:48:15]line Товар: 2000029770012 [16:48:15]line Очки солнцезащитные в ассортименте [16:48:15]line 1.000 * 590.00 [16:48:15]line = 590.00 [16:48:15]line НДС 12% НСП 1% [16:48:15]line > о реализуемом товаре [16:48:15]line ИТОГО: 590.00 [16:48:15]line НСП 1% : 5.22 [16:48:15]line НДС 12% : 62.65 [16:48:15]line Наличными: 590.00 [16:48:15]line Безнал.: 0.00 [16:48:15]line Место: АЗС № 128 "Партнер Нефть" [16:48:15]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:15]line СНО: Общий режим [16:48:15]line Чек 67 28.07.2024 16:48 [16:48:15]line Смена: 430 ФФД: 1.0 [16:48:15]line ЗНМ: 0300000045 [16:48:15]line РНМ: 0000000000092655 [16:48:15]line Версия ККМ: 001 [16:48:15]line ФМ: 0000000000874941 [16:48:15]line ФД: 44696 [16:48:15]line ФПД: 56128517370505 [16:48:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164812&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44696&fm=56128517370505&tin=02508201610067®Number=0000000000092655&sum=59000 [16:48:15]line 0 [16:48:15]written 0, free lines is 4095 [16:48:15]OFD Sender: Processing packet 44696 [packets to send 7, broken 6] [16:48:15]ProducePacketName [16:48:15]name=ofd_packets/00044696 [16:48:15]OFD Sender: To server: pG, [16:48:15]CommunicateWithHost lk.salyk.kg:30040 [16:48:15]ConnectInit lk.salyk.kg [16:48:15]Connected sock=10 [16:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 47 01 00 00 9F 76 3F 01 74 E6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 4C 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 Write to MH i2c: 31 01 10 00 04 00 04 74 00 01 98 75 AE [16:48:16]00 00 Write i2c OK [16:48:16]35 MH_I2C_Read... [16:48:16]04 Read from MH i2c: 06 01 00 [16:48:16]33 MH_I2C_Read... [16:48:16]0C 70 56 F2 89 33 B6 76 6F FE 9F D3 8D [16:48:16]Read from MH i2c: 01 07 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 08 0E 92 [16:48:16]RasterBufferAndPrint [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]written 0, free lines is 3649 [16:48:16]process_action close_receipt done [16:48:16]requested_data is exist [16:48:16]produce_requested_data [16:48:16]requested_item fm.sn is exist - process it [16:48:16]wFMCommunicate request_size=4 [16:48:16]MH_SAM_APDU [16:48:16]CAPDU: 80 11 00 00 [16:48:16]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:16]Read from MH i2c: E2 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 17 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4A [16:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:16]wFMCommunicate OK [16:48:16]requested_item fd.num is exist - process it [16:48:16]SAM_PROTO_GetFieldsCounters [16:48:16]wFMCommunicate request_size=4 [16:48:16]MH_SAM_APDU [16:48:16]CAPDU: 80 13 00 00 [16:48:16]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 56 C7 47 00 38 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 98 AE 00 00 F4 03 04 00 60 22 A6 66 B6 04 01 00 00 C9 09 11 B0 52 A6 46 EB [16:48:16]CommunicateWithHost err = 0 [16:48:16]CheckOFDResponse [16:48:16]1017 (14) - 77093643461234 [16:48:16]1041 (16) - 0000000000874941 [16:48:16]1040 (4) - 44696 [16:48:16]1012 (4) - 28.07.2024 10:50 [16:48:16]1206 (1) - 0 [16:48:16]OFD Sender: Remove packet 44696 [16:48:16]ProducePacketName [16:48:16]name=ofd_packets/00044696 [16:48:16]Read from MH i2c: NVStorageDeleteData [16:48:16]E2 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:16] [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 62 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 62 00 7C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 98 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 98 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:16]wFMCommunicate OK [16:48:16]SAM_PROTO_GetFieldsCounters done [16:48:16]requested_item shift.num is exist - process it [16:48:16]requested_item shift.opened is exist - process it [16:48:16]req_shift_opened [16:48:16]FM_GetShiftState [16:48:16]SAM_PROTO_GetShiftState [16:48:16]wFMCommunicate request_size=4 [16:48:16]MH_SAM_APDU [16:48:16]CAPDU: 80 13 01 00 [16:48:16]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:16]Read from MH i2c: E2 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 0E 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 94 [16:48:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:16]wFMCommunicate OK [16:48:16]SAM_PROTO_GetShiftState done [16:48:16]FM_GetShiftState done [16:48:16]req_shift_opened done [16:48:16]requested_item shift.open_date is exist - process it [16:48:16]req_shift_open_date [16:48:16]req_shift_open_date done [16:48:16]produce_requested_data done [16:48:16]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44696,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:16]process_action_free close_receipt [16:48:16]json_value_free [16:48:16]json_value_free done [16:48:16]process_json_proto returns [16:48:16]Send response to host [16:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44696,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:16]free response buf [16:48:16]execute_script done [16:48:16]execute_script returns [16:48:16]free content buf [16:48:16]Sock 8.Close socket [16:48:16]Sock 8.Thread stoped [16:48:17]OFD Sender: No OFD packet to send [16:48:17]accept exits with 9 [16:48:17]New connection [16:48:17]New thread 3066875236 created [16:48:17]Thread 3067018596 joined [16:48:17]Waiting for new connection... [16:48:17] Sock 9.Parse request [16:48:17]Sock 9.Check first char [16:48:17]Sock 9.First char is OK [16:48:17]request: POST /json_proto HTTP/1.0 [16:48:17]Method: POST [16:48:17]URL: /json_proto [16:48:17]Method is POST - this is cgi request [16:48:17]url: /json_proto [16:48:17]query_string will be loaded in cgi processing [16:48:17]execute_cgi json_proto POST (null) [16:48:17]execute_cgi path=json_proto method=POST [16:48:17]POST find Content-Length [16:48:17]Host: 172.17.45.196:8080 [16:48:17]Content-Length: 636 [16:48:17]Content-Type: application/json [16:48:17] [16:48:17]POST finish read [16:48:17]Found Content-Length = 636 [16:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14588", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:17]execute_script... [16:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14588", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:17]POST & json_proto [16:48:17]process_json_proto [16:48:17]json parsed OK: [16:48:17]protocol is kg_v1.0 [16:48:17]action value=close_receipt [16:48:17]process_action close_receipt [16:48:17]cmd_close_receipt [16:48:17]MH_GetDate [16:48:17]Write to MH i2c: F0 00 00 7E 01 6E [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 09 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 09 00 7E 01 00 51 76 A6 66 BB 03 A5 66 13 [16:48:17]GetLastDocTimeStamp 1722185292 [16:48:17]current date 1722185297 [16:48:17]FM_GetShiftState [16:48:17]SAM_PROTO_GetShiftState [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 13 01 00 [16:48:17]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 96 [16:48:17]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_GetShiftState done [16:48:17]FM_GetShiftState done [16:48:17]opened in 1722126323 [16:48:17]opened+sec_in_day 1722212723 [16:48:17]quantity*price = 5000 [16:48:17]sum+1 = 5001 [16:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 68 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44697 ФПД: 33510486582436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164817&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44697&fm=33510486582436&tin=02508201610067®Number=0000000000092655&sum=5000 0 [16:48:19]StoreToDocumentArchive [16:48:19]shift 430 fd 44697 [16:48:19]save to /storage/0430/doc_00044697 [16:48:19]save last doc name /storage/0430/doc_00044697 to /storage/kkm_last_doc_name [16:48:19]save OK [16:48:19]Clear old archive folders... [16:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:48:19]tlvbuf is 015A62A0 [16:48:19]SAM_PROTO_ClearQueue [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 09 00 00 [16:48:19]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]SAM_PROTO_ClearQueue done [16:48:19]KKMCreateOFDPacket [16:48:19]OFDProtocolAddRootSTLVToBuf [16:48:19]FM_MakeSignedData [16:48:19]FM_MakeSignedData [16:48:19]SAM_PROTO_SignData [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 01 02 [16:48:19]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]wFMCommunicate request_size=255 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 51 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [16:48:19]Write to MH i2c: E2 02 01 8E 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 51 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 1C [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=31 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 99 AE 00 00 35 04 06 00 1E 7A 44 A6 24 A4 [16:48:20]Write to MH i2c: E2 22 00 8F 01 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 99 AE 00 00 35 04 06 00 1E 7A 44 A6 24 A4 00 00 C7 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 03 02 [16:48:20]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0B 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0B 00 90 01 00 61 2B 3E 63 3E 88 0A 02 90 00 0C [16:48:20]RAPDU: 61 2B 3E 63 3E 88 0A 02 90 00 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_SignData done [16:48:20]FM_MakeSignedData done [16:48:20]CreateOFDProtocolMessage [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 11 00 00 [16:48:20]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:20]Read from MH i2c: E2 17 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 60 [16:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:20]wFMCommunicate OK [16:48:20]CreateOFDProtocolMessage done [16:48:20]OFDSenderStorePacket 44697 [16:48:20]StoreOFDPacket docnum=44697 [16:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 34 42 1C 01 84 78 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 51 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 99 AE 00 00 35 04 06 00 1E 7A 44 A6 24 A4 61 2B 3E 63 3E 88 0A 02 [16:48:20]CheckFolder [16:48:20]dirname=/storage/ofd_packets [16:48:20]CheckFolder done [16:48:20]ProducePacketName [16:48:20]name=ofd_packets/00044697 [16:48:20]NVStorageSaveData ofd_packets/00044697 [16:48:20]File name is /storage/ofd_packets/00044697 [16:48:20]Write 322 bytes [16:48:20]NVStorageSaveData done [16:48:20]OFDSenderStorePacket done [16:48:20]KKMCreateOFDPacket done [16:48:20]NVStorageSaveData kkm_last_timestamp [16:48:20]File name is /storage/kkm_last_timestamp [16:48:20]Write 4 bytes [16:48:20]NVStorageSaveData done [16:48:20]ExternCall_PrintAddStr [16:48:20]wPrintStart [16:48:20]Write to MH i2c: 01 00 00 92 01 93 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [16:48:20]RasterBufferAndPrint [16:48:20]line Счет N : (3)14588 [16:48:20]line ИНН: 02508201610067 [16:48:20]line Контрольно-Кассовый Чек [16:48:20]line ПРОДАЖА [16:48:20]line Товар: 4700000160051 [16:48:20]line Вода Ыссык Ата 1л [16:48:20]line 1.000 * 50.00 [16:48:20]line = 50.00 [16:48:20]line НДС 12% НСП 1% [16:48:20]line > о реализуемом товаре [16:48:20]line ИТОГО: 50.00 [16:48:20]line НСП 1% : 0.44 [16:48:20]line НДС 12% : 5.31 [16:48:20]line Наличными: 50.00 [16:48:20]line Безнал.: 0.00 [16:48:20]line Место: АЗС № 128 "Партнер Нефть" [16:48:20]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:20]line СНО: Общий режим [16:48:20]line Чек 68 28.07.2024 16:48 [16:48:20]line Смена: 430 ФФД: 1.0 [16:48:20]line ЗНМ: 0300000045 [16:48:20]line РНМ: 0000000000092655 [16:48:20]line Версия ККМ: 001 [16:48:20]line ФМ: 0000000000874941 [16:48:20]line ФД: 44697 [16:48:20]line ФПД: 33510486582436 [16:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164817&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44697&fm=33510486582436&tin=02508201610067®Number=0000000000092655&sum=5000 [16:48:20]OFD Sender: Processing packet 44697 [packets to send 7, broken 6] [16:48:20]ProducePacketName [16:48:20]name=ofd_packets/00044697 [16:48:20]OFD Sender: To server: pG, [16:48:20]CommunicateWithHost lk.salyk.kg:30040 [16:48:20]ConnectInit lk.salyk.kg [16:48:20]line 0 [16:48:20]written 0, free lines is 4095 [16:48:20]Connected sock=10 [16:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 34 42 1C 01 84 78 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 51 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 Write to MH i2c: 37 01 34 00 39 00 34 BA 31 01 10 BB 04 04 00 99 AE 00 00 35 04 06 00 1E 7A 44 [16:48:21]A6 Write i2c OK [16:48:21]24 MH_I2C_Read... [16:48:21]A4 Read from MH i2c: 61 01 2B [16:48:21]3E MH_I2C_Read... [16:48:21]63 3E 88 0A 02 [16:48:21]Read from MH i2c: 01 07 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 A9 0D 78 [16:48:21]RasterBufferAndPrint [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]written 0, free lines is 3543 [16:48:21]process_action close_receipt done [16:48:21]requested_data is exist [16:48:21]produce_requested_data [16:48:21]requested_item fm.sn is exist - process it [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 11 00 00 [16:48:21]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 90 [16:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:21]wFMCommunicate OK [16:48:21]requested_item fd.num is exist - process it [16:48:21]SAM_PROTO_GetFieldsCounters [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 13 00 00 [16:48:21]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [16:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 Write i2c OK [16:48:21]00 MH_I2C_Read... [16:48:21]00 D0 90 47 00 75 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 99 AE 00 00 F4 03 04 00 65 22 A6 66 B6 04 01 00 00 CF 77 C0 DF A2 2A B8 D0 [16:48:21]CommunicateWithHost err = 0 [16:48:21]CheckOFDResponse [16:48:21]1017 (14) - 77093643461234 [16:48:21]1041 (16) - 0000000000874941 [16:48:21]1040 (4) - 44697 [16:48:21]1012 (4) - 28.07.2024 10:50 [16:48:21]1206 (1) - 0 [16:48:21]OFD Sender: Remove packet 44697 [16:48:21]ProducePacketName [16:48:21]name=ofd_packets/00044697 [16:48:21]NVStorageDeleteData [16:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 62 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 62 00 C2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 99 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 99 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetFieldsCounters done [16:48:21]requested_item shift.num is exist - process it [16:48:21]requested_item shift.opened is exist - process it [16:48:21]req_shift_opened [16:48:21]FM_GetShiftState [16:48:21]SAM_PROTO_GetShiftState [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 13 01 00 [16:48:21]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 DA [16:48:21]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetShiftState done [16:48:21]FM_GetShiftState done [16:48:21]req_shift_opened done [16:48:21]requested_item shift.open_date is exist - process it [16:48:21]req_shift_open_date [16:48:21]req_shift_open_date done [16:48:21]produce_requested_data done [16:48:21]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44697,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:21]process_action_free close_receipt [16:48:21]json_value_free [16:48:21]json_value_free done [16:48:21]process_json_proto returns [16:48:21]Send response to host [16:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44697,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:21]free response buf [16:48:21]execute_script done [16:48:21]execute_script returns [16:48:21]free content buf [16:48:21]Sock 9.Close socket [16:48:21]Sock 9.Thread stoped [16:48:22]OFD Sender: No OFD packet to send [16:48:26]accept exits with 8 [16:48:26]New connection [16:48:26]New thread 3067018596 created [16:48:26]Thread 3066875236 joined [16:48:26]Waiting for new connection... [16:48:26] Sock 8.Parse request [16:48:26]Sock 8.Check first char [16:48:26]Sock 8.First char is OK [16:48:26]request: POST /json_proto HTTP/1.0 [16:48:26]Method: POST [16:48:26]URL: /json_proto [16:48:26]Method is POST - this is cgi request [16:48:26]url: /json_proto [16:48:26]query_string will be loaded in cgi processing [16:48:26]execute_cgi json_proto POST (null) [16:48:26]execute_cgi path=json_proto method=POST [16:48:26]POST find Content-Length [16:48:26]Host: 172.17.45.196:8080 [16:48:26]Content-Length: 619 [16:48:26]Content-Type: application/json [16:48:26] [16:48:26]POST finish read [16:48:26]Found Content-Length = 619 [16:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14589", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:26]execute_script... [16:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14589", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:26]POST & json_proto [16:48:26]process_json_proto [16:48:26]json parsed OK: [16:48:26]protocol is kg_v1.0 [16:48:26]action value=close_receipt [16:48:26]process_action close_receipt [16:48:26]cmd_close_receipt [16:48:26]MH_GetDate [16:48:26]Write to MH i2c: F0 00 00 C4 01 B4 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 C4 01 00 5A 76 A6 66 BB 03 A5 66 62 [16:48:26]GetLastDocTimeStamp 1722185297 [16:48:26]current date 1722185306 [16:48:26]FM_GetShiftState [16:48:26]SAM_PROTO_GetShiftState [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 13 01 00 [16:48:26]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 DC [16:48:26]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_GetShiftState done [16:48:26]FM_GetShiftState done [16:48:26]opened in 1722126323 [16:48:26]opened+sec_in_day 1722212723 [16:48:26]quantity*price = 15000 [16:48:26]sum+1 = 15001 [16:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 69 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44698 ФПД: 270106395759148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164826&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44698&fm=270106395759148&tin=02508201610067®Number=0000000000092655&sum=15000 0 [16:48:28]StoreToDocumentArchive [16:48:28]shift 430 fd 44698 [16:48:28]save to /storage/0430/doc_00044698 [16:48:28]save last doc name /storage/0430/doc_00044698 to /storage/kkm_last_doc_name [16:48:28]save OK [16:48:28]Clear old archive folders... [16:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:48:28]tlvbuf is 015C4CD0 [16:48:28]SAM_PROTO_ClearQueue [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 09 00 00 [16:48:28]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 03 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [16:48:28]RAPDU: 90 00 [16:48:28]wFMCommunicate OK [16:48:28]SAM_PROTO_ClearQueue done [16:48:28]KKMCreateOFDPacket [16:48:28]OFDProtocolAddRootSTLVToBuf [16:48:28]FM_MakeSignedData [16:48:28]FM_MakeSignedData [16:48:28]SAM_PROTO_SignData [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 0D 01 02 [16:48:28]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 03 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [16:48:28]RAPDU: 90 00 [16:48:28]wFMCommunicate OK [16:48:28]wFMCommunicate request_size=255 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [16:48:28]Write to MH i2c: E2 02 01 D4 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A7 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=31 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 9A AE 00 00 35 04 06 00 F5 A9 0B C5 52 2C [16:48:29]Write to MH i2c: E2 22 00 D5 01 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 9A AE 00 00 35 04 06 00 F5 A9 0B C5 52 2C 00 00 B0 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 03 02 [16:48:29]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0B 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0B 00 D6 01 00 11 6D DD 3B 4F 71 E8 1C 90 00 AD [16:48:29]RAPDU: 11 6D DD 3B 4F 71 E8 1C 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_SignData done [16:48:29]FM_MakeSignedData done [16:48:29]CreateOFDProtocolMessage [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 11 00 00 [16:48:29]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:29]Read from MH i2c: E2 17 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A6 [16:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:29]wFMCommunicate OK [16:48:29]CreateOFDProtocolMessage done [16:48:29]OFDSenderStorePacket 44698 [16:48:29]StoreOFDPacket docnum=44698 [16:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 71 38 1C 01 54 F1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9A AE 00 00 35 04 06 00 F5 A9 0B C5 52 2C 11 6D DD 3B 4F 71 E8 1C [16:48:29]CheckFolder [16:48:29]dirname=/storage/ofd_packets [16:48:29]CheckFolder done [16:48:29]ProducePacketName [16:48:29]name=ofd_packets/00044698 [16:48:29]NVStorageSaveData ofd_packets/00044698 [16:48:29]File name is /storage/ofd_packets/00044698 [16:48:29]Write 322 bytes [16:48:29]NVStorageSaveData done [16:48:29]OFDSenderStorePacket done [16:48:29]KKMCreateOFDPacket done [16:48:29]NVStorageSaveData kkm_last_timestamp [16:48:29]File name is /storage/kkm_last_timestamp [16:48:29]Write 4 bytes [16:48:29]NVStorageSaveData done [16:48:29]ExternCall_PrintAddStr [16:48:29]wPrintStart [16:48:29]Write to MH i2c: 01 00 00 D8 01 D9 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 07 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [16:48:29]RasterBufferAndPrint [16:48:29]line Счет N : (3)14589 [16:48:29]line ИНН: 02508201610067 [16:48:29]line Контрольно-Кассовый Чек [16:48:29]line ПРОДАЖА [16:48:29]line Товар: 4640030091607 [16:48:29]line Сигареты ESSE Exchange [16:48:29]line 1.000 * 150.00 [16:48:29]line = 150.00 [16:48:29]line НДС 12% НСП 1% [16:48:29]line > о реализуемом товаре [16:48:29]line ИТОГО: 150.00 [16:48:29]line НСП 1% : 1.33 [16:48:29]line НДС 12% : 15.93 [16:48:29]line Наличными: 150.00 [16:48:29]line Безнал.: 0.00 [16:48:29]line Место: АЗС № 128 "Партнер Нефть" [16:48:29]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:29]line СНО: Общий режим [16:48:29]line Чек 69 28.07.2024 16:48 [16:48:29]line Смена: 430 ФФД: 1.0 [16:48:29]line ЗНМ: 0300000045 [16:48:29]line РНМ: 0000000000092655 [16:48:29]line Версия ККМ: 001 [16:48:29]line ФМ: 0000000000874941 [16:48:29]line ФД: 44698 [16:48:29]line ФПД: 270106395759148 [16:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164826&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44698&fm=270106395759148&tin=02508201610067®Number=0000000000092655&sum=15000 [16:48:29]OFD Sender: Processing packet 44698 [packets to send 7, broken 6] [16:48:29]ProducePacketName [16:48:29]name=ofd_packets/00044698 [16:48:29]OFD Sender: To server: pG, [16:48:29]CommunicateWithHost lk.salyk.kg:30040 [16:48:29]ConnectInit lk.salyk.kg [16:48:29]line 0 [16:48:29]written 0, free lines is 4095 [16:48:29]Connected sock=10 [16:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 71 38 1C 01 54 F1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9A AE 00 00 35 04 06 00 F5 A9 0B C5 52 2C 11 6D DD 3B 4F 71 E8 1C [16:48:30]Write to MH i2c: 01 00 00 00 02 02 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 D4 0D EA [16:48:30]RasterBufferAndPrint [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]line [16:48:30]written 0, free lines is 3586 [16:48:30]process_action close_receipt done [16:48:30]requested_data is exist [16:48:30]produce_requested_data [16:48:30]requested_item fm.sn is exist - process it [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 11 00 00 [16:48:30]Write to MH i2c: E2 08 00 07 02 80 11 00 00 00 00 00 00 83 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 07 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D7 [16:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 58 DB 47 00 17 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9A AE 00 00 F4 03 04 00 6E 22 A6 66 B6 04 01 00 00 7F 39 E2 87 D4 5E 59 B7 [16:48:30]CommunicateWithHost err = 0 [16:48:30]CheckOFDResponse [16:48:30]1017 (14) - 77093643461234 [16:48:30]1041 (16) - 0000000000874941 [16:48:30]1040 (4) - 44698 [16:48:30]1012 (4) - 28.07.2024 10:50 [16:48:30]1206 (1) - 0 [16:48:30]OFD Sender: Remove packet 44698 [16:48:30]ProducePacketName [16:48:30]name=ofd_packets/00044698 [16:48:30]NVStorageDeleteData [16:48:30]30 30 38 37 34 39 34 31 90 00 [16:48:30]wFMCommunicate OK [16:48:30]requested_item fd.num is exist - process it [16:48:30]SAM_PROTO_GetFieldsCounters [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 00 00 [16:48:30]Write to MH i2c: E2 08 00 08 02 80 13 00 00 00 00 00 00 86 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 08 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [16:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9A AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_GetFieldsCounters done [16:48:30]requested_item shift.num is exist - process it [16:48:30]requested_item shift.opened is exist - process it [16:48:30]req_shift_opened [16:48:30]FM_GetShiftState [16:48:30]SAM_PROTO_GetShiftState [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 01 00 [16:48:30]Write to MH i2c: E2 08 00 09 02 80 13 01 00 00 00 00 00 88 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 09 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 21 [16:48:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_GetShiftState done [16:48:31]FM_GetShiftState done [16:48:31]req_shift_opened done [16:48:31]requested_item shift.open_date is exist - process it [16:48:31]req_shift_open_date [16:48:31]req_shift_open_date done [16:48:31]produce_requested_data done [16:48:31]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44698,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:31]process_action_free close_receipt [16:48:31]json_value_free [16:48:31]json_value_free done [16:48:31]process_json_proto returns [16:48:31]Send response to host [16:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44698,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:31]free response buf [16:48:31]execute_script done [16:48:31]execute_script returns [16:48:31]free content buf [16:48:31]Sock 8.Close socket [16:48:31]Sock 8.Thread stoped [16:48:31]OFD Sender: No OFD packet to send [16:48:32]accept exits with 9 [16:48:32]New connection [16:48:32]New thread 3066875236 created [16:48:32]Thread 3067018596 joined [16:48:32]Waiting for new connection... [16:48:32] Sock 9.Parse request [16:48:32]Sock 9.Check first char [16:48:32]Sock 9.First char is OK [16:48:32]request: POST /json_proto HTTP/1.0 [16:48:32]Method: POST [16:48:32]URL: /json_proto [16:48:32]Method is POST - this is cgi request [16:48:32]url: /json_proto [16:48:32]query_string will be loaded in cgi processing [16:48:32]execute_cgi json_proto POST (null) [16:48:32]execute_cgi path=json_proto method=POST [16:48:32]POST find Content-Length [16:48:32]Host: 172.17.45.196:8080 [16:48:32]Content-Length: 632 [16:48:32]Content-Type: application/json [16:48:32] [16:48:32]POST finish read [16:48:32]Found Content-Length = 632 [16:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14590", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:32]execute_script... [16:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14590", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:32]POST & json_proto [16:48:32]process_json_proto [16:48:32]json parsed OK: [16:48:32]protocol is kg_v1.0 [16:48:32]action value=close_receipt [16:48:32]process_action close_receipt [16:48:32]cmd_close_receipt [16:48:32]MH_GetDate [16:48:32]Write to MH i2c: F0 00 00 0A 02 FB [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: F0 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: F0 09 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: F0 09 00 0A 02 00 60 76 A6 66 BB 03 A5 66 AF [16:48:32]GetLastDocTimeStamp 1722185306 [16:48:32]current date 1722185312 [16:48:32]FM_GetShiftState [16:48:32]SAM_PROTO_GetShiftState [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 13 01 00 [16:48:32]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 23 [16:48:32]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_GetShiftState done [16:48:32]FM_GetShiftState done [16:48:32]opened in 1722126323 [16:48:32]opened+sec_in_day 1722212723 [16:48:32]quantity*price = 14300 [16:48:32]sum+1 = 14301 [16:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 70 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44699 ФПД: 254321772873647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164832&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44699&fm=254321772873647&tin=02508201610067®Number=0000000000092655&sum=14300 0 [16:48:34]StoreToDocumentArchive [16:48:34]shift 430 fd 44699 [16:48:34]save to /storage/0430/doc_00044699 [16:48:34]save last doc name /storage/0430/doc_00044699 to /storage/kkm_last_doc_name [16:48:34]save OK [16:48:34]Clear old archive folders... [16:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=285 [16:48:34]tlvbuf is 01549E10 [16:48:34]SAM_PROTO_ClearQueue [16:48:34]wFMCommunicate request_size=4 [16:48:34]MH_SAM_APDU [16:48:34]CAPDU: 80 09 00 00 [16:48:34]Write to MH i2c: E2 08 00 18 02 80 09 00 00 00 00 00 00 8C [16:48:34]Write i2c OK [16:48:34]MH_I2C_Read... [16:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:34]Read from MH i2c: E2 [16:48:34]MH_I2C_Read... [16:48:34]Read from MH i2c: E2 03 00 [16:48:34]MH_I2C_Read... [16:48:34]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [16:48:34]RAPDU: 90 00 [16:48:34]wFMCommunicate OK [16:48:34]SAM_PROTO_ClearQueue done [16:48:34]KKMCreateOFDPacket [16:48:34]OFDProtocolAddRootSTLVToBuf [16:48:34]FM_MakeSignedData [16:48:34]FM_MakeSignedData [16:48:34]SAM_PROTO_SignData [16:48:34]wFMCommunicate request_size=4 [16:48:34]MH_SAM_APDU [16:48:34]CAPDU: 80 0D 01 02 [16:48:34]Write to MH i2c: E2 08 00 19 02 80 0D 01 02 00 00 00 00 94 [16:48:34]Write i2c OK [16:48:34]MH_I2C_Read... [16:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:34]Read from MH i2c: E2 [16:48:34]MH_I2C_Read... [16:48:34]Read from MH i2c: E2 03 00 [16:48:34]MH_I2C_Read... [16:48:34]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [16:48:34]RAPDU: 90 00 [16:48:34]wFMCommunicate OK [16:48:34]wFMCommunicate request_size=255 [16:48:34]MH_SAM_APDU [16:48:34]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 60 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 [16:48:35]Write to MH i2c: E2 02 01 1A 02 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 60 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 00 00 53 [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 03 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [16:48:35]RAPDU: 90 00 [16:48:35]wFMCommunicate OK [16:48:35]wFMCommunicate request_size=44 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9B AE 00 00 35 04 06 00 E7 4D E6 EE 47 AF [16:48:35]Write to MH i2c: E2 2F 00 1B 02 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9B AE 00 00 35 04 06 00 E7 4D E6 EE 47 AF 00 00 FE [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 03 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [16:48:35]RAPDU: 90 00 [16:48:35]wFMCommunicate OK [16:48:35]wFMCommunicate request_size=4 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 0D 03 02 [16:48:35]Write to MH i2c: E2 08 00 1C 02 80 0D 03 02 00 00 00 00 99 [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 0B 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 0B 00 1C 02 00 C7 0D 3E 80 36 45 46 70 90 00 5D [16:48:35]RAPDU: C7 0D 3E 80 36 45 46 70 90 00 [16:48:35]wFMCommunicate OK [16:48:35]SAM_PROTO_SignData done [16:48:35]FM_MakeSignedData done [16:48:35]CreateOFDProtocolMessage [16:48:35]wFMCommunicate request_size=4 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 11 00 00 [16:48:35]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:35]Read from MH i2c: E2 17 00 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 ED [16:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:36]wFMCommunicate OK [16:48:36]CreateOFDProtocolMessage done [16:48:36]OFDSenderStorePacket 44699 [16:48:36]StoreOFDPacket docnum=44699 [16:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 56 56 29 01 7F 39 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 60 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9B AE 00 00 35 04 06 00 E7 4D E6 EE 47 AF C7 0D 3E 80 36 45 46 70 [16:48:36]CheckFolder [16:48:36]dirname=/storage/ofd_packets [16:48:36]CheckFolder done [16:48:36]ProducePacketName [16:48:36]name=ofd_packets/00044699 [16:48:36]NVStorageSaveData ofd_packets/00044699 [16:48:36]File name is /storage/ofd_packets/00044699 [16:48:36]Write 335 bytes [16:48:36]NVStorageSaveData done [16:48:36]OFDSenderStorePacket done [16:48:36]KKMCreateOFDPacket done [16:48:36]NVStorageSaveData kkm_last_timestamp [16:48:36]File name is /storage/kkm_last_timestamp [16:48:36]Write 4 bytes [16:48:36]NVStorageSaveData done [16:48:36]OFD Sender: Processing packet 44699 [packets to send 7, broken 6] [16:48:36]ProducePacketName [16:48:36]name=ofd_packets/00044699 [16:48:36]OFD Sender: To server: pG, [16:48:36]CommunicateWithHost lk.salyk.kg:30040 [16:48:36]ConnectInit lk.salyk.kg [16:48:36]ExternCall_PrintAddStr [16:48:36]wPrintStart [16:48:36]Write to MH i2c: 01 00 00 1E 02 20 [16:48:36]Write i2c OK [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 07 00 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [16:48:36]RasterBufferAndPrint [16:48:36]line Счет N : (3)14590 [16:48:36]line ИНН: 02508201610067 [16:48:36]line Контрольно-Кассовый Чек [16:48:36]line ПРОДАЖА [16:48:36]line Товар: 48746717 [16:48:36]line Сигареты Winston XStyle Caster + Dream M [16:48:36]line 1.000 * 143.00 [16:48:36]line = 143.00 [16:48:36]line НДС 12% НСП 1% [16:48:36]line > о реализуемом товаре [16:48:36]line ИТОГО: 143.00 [16:48:36]line НСП 1% : 1.26 [16:48:36]line НДС 12% : 15.19 [16:48:36]line Наличными: 143.00 [16:48:36]line Безнал.: 0.00 [16:48:36]line Место: АЗС № 128 "Партнер Нефть" [16:48:36]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:36]line СНО: Общий режим [16:48:36]line Чек 70 28.07.2024 16:48 [16:48:36]line Смена: 430 ФФД: 1.0 [16:48:36]line ЗНМ: 0300000045 [16:48:36]line РНМ: 0000000000092655 [16:48:36]line Версия ККМ: 001 [16:48:36]line ФМ: 0000000000874941 [16:48:36]line ФД: 44699 [16:48:36]line ФПД: 254321772873647 [16:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164832&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44699&fm=254321772873647&tin=02508201610067®Number=0000000000092655&sum=14300 [16:48:36]line 0 [16:48:36]written 0, free lines is 4095 [16:48:36]Connected sock=10 [16:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 56 56 29 01 7F 39 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 60 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9B AE 00 00 35 04 06 00 E7 4D E6 EE 47 AF Write to MH i2c: C7 01 0D 00 3E 00 80 47 36 45 46 70 [16:48:36]02 49 [16:48:36]Write i2c OK [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 07 00 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: 01 07 00 47 02 00 00 00 00 00 FF 0D 5C [16:48:36]RasterBufferAndPrint [16:48:36]line [16:48:36]line [16:48:36]line [16:48:36]line [16:48:36]line [16:48:36]written 0, free lines is 3635 [16:48:36]process_action close_receipt done [16:48:36]requested_data is exist [16:48:36]produce_requested_data [16:48:36]requested_item fm.sn is exist - process it [16:48:36]wFMCommunicate request_size=4 [16:48:36]MH_SAM_APDU [16:48:36]CAPDU: 80 11 00 00 [16:48:36]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [16:48:36]Write i2c OK [16:48:36]MH_I2C_Read... [16:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:36]Read from MH i2c: E2 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: E2 17 00 [16:48:36]MH_I2C_Read... [16:48:36]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1E [16:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:36]wFMCommunicate OK [16:48:36]requested_item fd.num is exist - process it [16:48:37]SAM_PROTO_GetFieldsCounters [16:48:37]wFMCommunicate request_size=4 [16:48:37]MH_SAM_APDU [16:48:37]CAPDU: 80 13 00 00 [16:48:37]Write to MH i2c: E2 08 00 4F 02 80 13 00 00 00 00 00 00 CD [16:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 D4 80 47 00 FD 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 Write i2c OK [16:48:37]04 MH_I2C_Read... [16:48:37]00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:37]9B Read from MH i2c: AE E2 00 [16:48:37]00 MH_I2C_Read... [16:48:37]F4 Read from MH i2c: 03 E2 04 62 00 74 00 22 [16:48:37]A6 MH_I2C_Read... [16:48:37]66 B6 04 01 00 00 2E 52 82 D7 4E 7C 74 DA [16:48:37]CommunicateWithHost err = 0 [16:48:37]Read from MH i2c: CheckOFDResponse [16:48:37]E2 1017 (14) - 77093643461234 [16:48:37]62 1041 (16) - 0000000000874941 [16:48:37]00 1040 (4) - 44699 [16:48:37]4F 1012 (4) - 28.07.2024 10:50 [16:48:37]1206 (1) - 0 [16:48:37]OFD Sender: Remove packet 44699 [16:48:37]ProducePacketName [16:48:37]name=ofd_packets/00044699 [16:48:37]NVStorageDeleteData [16:48:37]02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9B AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:37]wFMCommunicate OK [16:48:37]SAM_PROTO_GetFieldsCounters done [16:48:37]requested_item shift.num is exist - process it [16:48:37]requested_item shift.opened is exist - process it [16:48:37]req_shift_opened [16:48:37]FM_GetShiftState [16:48:37]SAM_PROTO_GetShiftState [16:48:37]wFMCommunicate request_size=4 [16:48:37]MH_SAM_APDU [16:48:37]CAPDU: 80 13 01 00 [16:48:37]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [16:48:37]Write i2c OK [16:48:37]MH_I2C_Read... [16:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:37]Read from MH i2c: E2 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: E2 0E 00 [16:48:37]MH_I2C_Read... [16:48:37]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 68 [16:48:37]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:37]wFMCommunicate OK [16:48:37]SAM_PROTO_GetShiftState done [16:48:37]FM_GetShiftState done [16:48:37]req_shift_opened done [16:48:37]requested_item shift.open_date is exist - process it [16:48:37]req_shift_open_date [16:48:37]req_shift_open_date done [16:48:37]produce_requested_data done [16:48:37]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44699,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:37]process_action_free close_receipt [16:48:37]json_value_free [16:48:37]json_value_free done [16:48:37]process_json_proto returns [16:48:37]Send response to host [16:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44699,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:37]free response buf [16:48:37]execute_script done [16:48:37]execute_script returns [16:48:37]free content buf [16:48:37]Sock 9.Close socket [16:48:37]Sock 9.Thread stoped [16:48:37]OFD Sender: No OFD packet to send [16:48:38]accept exits with 8 [16:48:38]New connection [16:48:38]New thread 3067018596 created [16:48:38]Thread 3066875236 joined [16:48:38]Waiting for new connection... [16:48:38] Sock 8.Parse request [16:48:38]Sock 8.Check first char [16:48:38]Sock 8.First char is OK [16:48:38]request: POST /json_proto HTTP/1.0 [16:48:38]Method: POST [16:48:38]URL: /json_proto [16:48:38]Method is POST - this is cgi request [16:48:38]url: /json_proto [16:48:38]query_string will be loaded in cgi processing [16:48:38]execute_cgi json_proto POST (null) [16:48:38]execute_cgi path=json_proto method=POST [16:48:38]POST find Content-Length [16:48:38]Host: 172.17.45.196:8080 [16:48:38]Content-Length: 629 [16:48:38]Content-Type: application/json [16:48:38] [16:48:38]POST finish read [16:48:38]Found Content-Length = 629 [16:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14591", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:38]execute_script... [16:48:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14591", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:38]POST & json_proto [16:48:38]process_json_proto [16:48:38]json parsed OK: [16:48:38]protocol is kg_v1.0 [16:48:38]action value=close_receipt [16:48:38]process_action close_receipt [16:48:38]cmd_close_receipt [16:48:38]MH_GetDate [16:48:38]Write to MH i2c: F0 00 00 51 02 42 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: F0 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: F0 09 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: F0 09 00 51 02 00 66 76 A6 66 BB 03 A5 66 FC [16:48:38]GetLastDocTimeStamp 1722185312 [16:48:38]current date 1722185318 [16:48:38]FM_GetShiftState [16:48:38]SAM_PROTO_GetShiftState [16:48:38]wFMCommunicate request_size=4 [16:48:38]MH_SAM_APDU [16:48:38]CAPDU: 80 13 01 00 [16:48:38]Write to MH i2c: E2 08 00 52 02 80 13 01 00 00 00 00 00 D1 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:38]Read from MH i2c: E2 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 0E 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: E2 0E 00 52 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 6A [16:48:38]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:38]wFMCommunicate OK [16:48:38]SAM_PROTO_GetShiftState done [16:48:38]FM_GetShiftState done [16:48:38]opened in 1722126323 [16:48:38]opened+sec_in_day 1722212723 [16:48:38]quantity*price = 5000 [16:48:38]sum+1 = 5001 [16:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 71 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44700 ФПД: 211411768460647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164838&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44700&fm=211411768460647&tin=02508201610067®Number=0000000000092655&sum=5000 0 [16:48:40]StoreToDocumentArchive [16:48:40]shift 430 fd 44700 [16:48:40]save to /storage/0430/doc_00044700 [16:48:40]save last doc name /storage/0430/doc_00044700 to /storage/kkm_last_doc_name [16:48:40]save OK [16:48:40]Clear old archive folders... [16:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:48:40]tlvbuf is 014D3620 [16:48:40]SAM_PROTO_ClearQueue [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 09 00 00 [16:48:40]Write to MH i2c: E2 08 00 5F 02 80 09 00 00 00 00 00 00 D3 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [16:48:40]RAPDU: 90 00 [16:48:40]wFMCommunicate OK [16:48:40]SAM_PROTO_ClearQueue done [16:48:40]KKMCreateOFDPacket [16:48:40]OFDProtocolAddRootSTLVToBuf [16:48:40]FM_MakeSignedData [16:48:40]FM_MakeSignedData [16:48:40]SAM_PROTO_SignData [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 0D 01 02 [16:48:40]Write to MH i2c: E2 08 00 60 02 80 0D 01 02 00 00 00 00 DB [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=255 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 66 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:48:41]Write to MH i2c: E2 02 01 61 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 66 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D2 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=28 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 9C AE 00 00 35 04 06 00 C0 47 23 5C 45 67 [16:48:41]Write to MH i2c: E2 1F 00 62 02 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 9C AE 00 00 35 04 06 00 C0 47 23 5C 45 67 00 00 E8 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [16:48:42]RAPDU: 90 00 [16:48:42]wFMCommunicate OK [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 0D 03 02 [16:48:42]Write to MH i2c: E2 08 00 63 02 80 0D 03 02 00 00 00 00 E0 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0B 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0B 00 63 02 00 FA 19 2F 88 20 9A 2E 51 90 00 E4 [16:48:42]RAPDU: FA 19 2F 88 20 9A 2E 51 90 00 [16:48:42]wFMCommunicate OK [16:48:42]SAM_PROTO_SignData done [16:48:42]FM_MakeSignedData done [16:48:42]CreateOFDProtocolMessage [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 11 00 00 [16:48:42]Write to MH i2c: E2 08 00 64 02 80 11 00 00 00 00 00 00 E0 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 34 [16:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:42]wFMCommunicate OK [16:48:42]CreateOFDProtocolMessage done [16:48:42]OFDSenderStorePacket 44700 [16:48:42]StoreOFDPacket docnum=44700 [16:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 CE C0 19 01 C7 1B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 66 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9C AE 00 00 35 04 06 00 C0 47 23 5C 45 67 FA 19 2F 88 20 9A 2E 51 [16:48:42]CheckFolder [16:48:42]dirname=/storage/ofd_packets [16:48:42]CheckFolder done [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00044700 [16:48:42]NVStorageSaveData ofd_packets/00044700 [16:48:42]File name is /storage/ofd_packets/00044700 [16:48:42]Write 319 bytes [16:48:42]NVStorageSaveData done [16:48:42]OFDSenderStorePacket done [16:48:42]KKMCreateOFDPacket done [16:48:42]NVStorageSaveData kkm_last_timestamp [16:48:42]File name is /storage/kkm_last_timestamp [16:48:42]Write 4 bytes [16:48:42]NVStorageSaveData done [16:48:42]ExternCall_PrintAddStr [16:48:42]wPrintStart [16:48:42]Write to MH i2c: 01 00 00 65 02 67 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [16:48:42]RasterBufferAndPrint [16:48:42]line Счет N : (3)14591 [16:48:42]line ИНН: 02508201610067 [16:48:42]line Контрольно-Кассовый Чек [16:48:42]line ПРОДАЖА [16:48:42]line Товар: 4700000160358 [16:48:42]line Вода Легенда 1л [16:48:42]line 1.000 * 50.00 [16:48:42]line = 50.00 [16:48:42]line НДС 12% НСП 1% [16:48:42]line > о реализуемом товаре [16:48:42]line ИТОГО: 50.00 [16:48:42]line НСП 1% : 0.44 [16:48:42]line НДС 12% : 5.31 [16:48:42]line Наличными: 50.00 [16:48:42]line Безнал.: 0.00 [16:48:42]line Место: АЗС № 128 "Партнер Нефть" [16:48:42]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:42]line СНО: Общий режим [16:48:42]line Чек 71 28.07.2024 16:48 [16:48:42]line Смена: 430 ФФД: 1.0 [16:48:42]line ЗНМ: 0300000045 [16:48:42]line РНМ: 0000000000092655 [16:48:42]line Версия ККМ: 001 [16:48:42]line ФМ: 0000000000874941 [16:48:42]line ФД: 44700 [16:48:42]line ФПД: 211411768460647 [16:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164838&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44700&fm=211411768460647&tin=02508201610067®Number=0000000000092655&sum=5000 [16:48:42]line 0 [16:48:42]OFD Sender: Processing packet 44700 [packets to send 7, broken 6] [16:48:42]written 0, free lines is 4095 [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00044700 [16:48:42]OFD Sender: To server: pG, [16:48:42]CommunicateWithHost lk.salyk.kg:30040 [16:48:42]ConnectInit lk.salyk.kg [16:48:42]Connected sock=9 [16:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 CE C0 19 01 C7 1B 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 Write to MH i2c: 06 01 00 00 2C 00 00 8D 00 00 00 00 EE 03 0F 00 F2 03 02 01 8F 00 [16:48:42]01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 Write i2c OK [16:48:42]88 MH_I2C_Read... [16:48:42]13 Read from MH i2c: 00 01 00 [16:48:42]00 MH_I2C_Read... [16:48:42]00 39 04 06 00 00 00 00 Read from MH i2c: 00 01 00 07 00 00 1F [16:48:42]04 02 00 01 00 12 04 04 00 47 MH_I2C_Read... [16:48:42]00 00 00 F4 03 04 00 66 76 Read from MH i2c: A6 01 66 07 0E 00 04 8D 04 00 AE 01 00 00 B9 04 01 00 02 01 00 0D 00 04 00 10 00 00 30 30 30 30 30 30 30 30 30 30 00 30 6F 39 0D 32 12 36 [16:48:43]35 35 11 04 10 00 30 30 30 30 30 RasterBufferAndPrint [16:48:43]30 line [16:48:43]30 line [16:48:43]30 line [16:48:43]30 line [16:48:43]30 line [16:48:43]38 37 written 0, free lines is 3643 [16:48:43]34 39 34 31 10 04 04 00 9C AE process_action close_receipt done [16:48:43]00 requested_data is exist [16:48:43]00 produce_requested_data [16:48:43]35 requested_item fm.sn is exist - process it [16:48:43]04 wFMCommunicate request_size=4 [16:48:43]06 MH_SAM_APDU [16:48:43]00 CAPDU: C0 80 47 11 23 00 5C 00 [16:48:43]Write to MH i2c: E2 08 00 94 02 80 11 00 00 00 00 00 00 10 [16:48:43]45 67 FA 19 2F 88 20 9A 2E 51 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 94 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 64 [16:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:43]wFMCommunicate OK [16:48:43]requested_item fd.num is exist - process it [16:48:43]SAM_PROTO_GetFieldsCounters [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 00 00 [16:48:43]Write to MH i2c: E2 08 00 95 02 80 13 00 00 00 00 00 00 13 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 79 DE 47 00 87 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:43]33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9C AE 00 00 F4 03 04 00 7B 22 A6 66 B6 04 01 00 00 74 38 FF 6A 91 BE F6 A3 [16:48:43]CommunicateWithHost err = 0 [16:48:43]CheckOFDResponse [16:48:43]1017 (14) - 77093643461234 [16:48:43]1041 (16) - 0000000000874941 [16:48:43]1040 (4) - 44700 [16:48:43]1012 (4) - 28.07.2024 10:50 [16:48:43]1206 (1) - 0 [16:48:43]OFD Sender: Remove packet 44700 [16:48:43]ProducePacketName [16:48:43]name=ofd_packets/00044700 [16:48:43]NVStorageDeleteData [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 62 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 62 00 95 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [16:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9C AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetFieldsCounters done [16:48:43]requested_item shift.num is exist - process it [16:48:43]requested_item shift.opened is exist - process it [16:48:43]req_shift_opened [16:48:43]FM_GetShiftState [16:48:43]SAM_PROTO_GetShiftState [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 01 00 [16:48:43]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AE [16:48:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetShiftState done [16:48:43]FM_GetShiftState done [16:48:43]req_shift_opened done [16:48:43]requested_item shift.open_date is exist - process it [16:48:43]req_shift_open_date [16:48:43]req_shift_open_date done [16:48:43]produce_requested_data done [16:48:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44700,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:43]process_action_free close_receipt [16:48:43]json_value_free [16:48:43]json_value_free done [16:48:43]process_json_proto returns [16:48:43]Send response to host [16:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44700,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:43]free response buf [16:48:43]execute_script done [16:48:43]execute_script returns [16:48:43]free content buf [16:48:43]Sock 8.Close socket [16:48:43]Sock 8.Thread stoped [16:48:44]OFD Sender: No OFD packet to send [16:48:45]accept exits with 10 [16:48:45]New connection [16:48:45]New thread 3066875236 created [16:48:45]Thread 3067018596 joined [16:48:45]Waiting for new connection... [16:48:45] Sock 10.Parse request [16:48:45]Sock 10.Check first char [16:48:45]Sock 10.First char is OK [16:48:45]request: POST /json_proto HTTP/1.0 [16:48:45]Method: POST [16:48:45]URL: /json_proto [16:48:45]Method is POST - this is cgi request [16:48:45]url: /json_proto [16:48:45]query_string will be loaded in cgi processing [16:48:45]execute_cgi json_proto POST (null) [16:48:45]execute_cgi path=json_proto method=POST [16:48:45]POST find Content-Length [16:48:45]Host: 172.17.45.196:8080 [16:48:45]Content-Length: 720 [16:48:45]Content-Type: application/json [16:48:45] [16:48:45]POST finish read [16:48:45]Found Content-Length = 720 [16:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14592", "tax_sys" : 0, "items" : [ { "code": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:45]execute_script... [16:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14592", "tax_sys" : 0, "items" : [ { "code": "4630007400266", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 90 \u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:45]POST & json_proto [16:48:45]process_json_proto [16:48:45]json parsed OK: [16:48:45]protocol is kg_v1.0 [16:48:45]action value=close_receipt [16:48:45]process_action close_receipt [16:48:45]cmd_close_receipt [16:48:45]MH_GetDate [16:48:45]Write to MH i2c: F0 00 00 97 02 88 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 97 02 00 6D 76 A6 66 BB 03 A5 66 49 [16:48:45]GetLastDocTimeStamp 1722185318 [16:48:45]current date 1722185325 [16:48:45]FM_GetShiftState [16:48:45]SAM_PROTO_GetShiftState [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 13 01 00 [16:48:45]Write to MH i2c: E2 08 00 98 02 80 13 01 00 00 00 00 00 17 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 98 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B0 [16:48:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_GetShiftState done [16:48:45]FM_GetShiftState done [16:48:45]opened in 1722126323 [16:48:45]opened+sec_in_day 1722212723 [16:48:45]quantity*price = 10000 [16:48:45]sum+1 = 10001 [16:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 72 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44701 ФПД: 142035747897426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164845&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44701&fm=142035747897426&tin=02508201610067®Number=0000000000092655&sum=10000 0 [16:48:47]StoreToDocumentArchive [16:48:47]shift 430 fd 44701 [16:48:47]save to /storage/0430/doc_00044701 [16:48:47]save last doc name /storage/0430/doc_00044701 to /storage/kkm_last_doc_name [16:48:47]save OK [16:48:47]Clear old archive folders... [16:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=301 [16:48:47]tlvbuf is 015FA0D0 [16:48:47]SAM_PROTO_ClearQueue [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 09 00 00 [16:48:47]Write to MH i2c: E2 08 00 A5 02 80 09 00 00 00 00 00 00 19 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [16:48:47]RAPDU: 90 00 [16:48:47]wFMCommunicate OK [16:48:47]SAM_PROTO_ClearQueue done [16:48:47]KKMCreateOFDPacket [16:48:47]OFDProtocolAddRootSTLVToBuf [16:48:47]FM_MakeSignedData [16:48:47]FM_MakeSignedData [16:48:47]SAM_PROTO_SignData [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 0D 01 02 [16:48:47]Write to MH i2c: E2 08 00 A6 02 80 0D 01 02 00 00 00 00 21 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [16:48:47]RAPDU: 90 00 [16:48:47]wFMCommunicate OK [16:48:47]wFMCommunicate request_size=255 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 [16:48:48]Write to MH i2c: E2 02 01 A7 02 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 00 1F [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 03 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [16:48:48]RAPDU: 90 00 [16:48:48]wFMCommunicate OK [16:48:48]wFMCommunicate request_size=60 [16:48:48]MH_SAM_APDU [16:48:48]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9D AE 00 00 35 04 06 00 81 2E 46 4C 80 52 [16:48:48]Write to MH i2c: E2 3F 00 A8 02 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9D AE 00 00 35 04 06 00 81 2E 46 4C 80 52 00 00 A8 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 03 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [16:48:48]RAPDU: 90 00 [16:48:48]wFMCommunicate OK [16:48:48]wFMCommunicate request_size=4 [16:48:48]MH_SAM_APDU [16:48:48]CAPDU: 80 0D 03 02 [16:48:48]Write to MH i2c: E2 08 00 A9 02 80 0D 03 02 00 00 00 00 26 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:48]Read from MH i2c: E2 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 0B 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: E2 0B 00 A9 02 00 66 7C E4 7C 25 E9 D7 F9 90 00 47 [16:48:49]RAPDU: 66 7C E4 7C 25 E9 D7 F9 90 00 [16:48:49]wFMCommunicate OK [16:48:49]SAM_PROTO_SignData done [16:48:49]FM_MakeSignedData done [16:48:49]CreateOFDProtocolMessage [16:48:49]wFMCommunicate request_size=4 [16:48:49]MH_SAM_APDU [16:48:49]CAPDU: 80 11 00 00 [16:48:49]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [16:48:49]Write i2c OK [16:48:49]MH_I2C_Read... [16:48:49]OFD Sender: No OFD packet to send [16:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:49]Read from MH i2c: E2 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: E2 17 00 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7A [16:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:49]wFMCommunicate OK [16:48:49]CreateOFDProtocolMessage done [16:48:49]OFDSenderStorePacket 44701 [16:48:49]StoreOFDPacket docnum=44701 [16:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 41 01 00 00 A3 C1 39 01 F3 FD 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9D AE 00 00 35 04 06 00 81 2E 46 4C 80 52 66 7C E4 7C 25 E9 D7 F9 [16:48:49]CheckFolder [16:48:49]dirname=/storage/ofd_packets [16:48:49]CheckFolder done [16:48:49]ProducePacketName [16:48:49]name=ofd_packets/00044701 [16:48:49]NVStorageSaveData ofd_packets/00044701 [16:48:49]File name is /storage/ofd_packets/00044701 [16:48:49]Write 351 bytes [16:48:49]NVStorageSaveData done [16:48:49]OFDSenderStorePacket done [16:48:49]KKMCreateOFDPacket done [16:48:49]NVStorageSaveData kkm_last_timestamp [16:48:49]File name is /storage/kkm_last_timestamp [16:48:49]Write 4 bytes [16:48:49]NVStorageSaveData done [16:48:49]ExternCall_PrintAddStr [16:48:49]wPrintStart [16:48:49]Write to MH i2c: 01 00 00 AB 02 AD [16:48:49]Write i2c OK [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: 01 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: 01 07 00 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 FF 0F C2 [16:48:49]RasterBufferAndPrint [16:48:49]line Счет N : (3)14592 [16:48:49]line ИНН: 02508201610067 [16:48:49]line Контрольно-Кассовый Чек [16:48:49]line ПРОДАЖА [16:48:49]line Товар: 4630007400266 [16:48:49]line Арахис жарен Караван орехов 90 гр [16:48:49]line 1.000 * 100.00 [16:48:49]line = 100.00 [16:48:49]line НДС 12% НСП 1% [16:48:49]line > о реализуемом товаре [16:48:49]line ИТОГО: 100.00 [16:48:49]line НСП 1% : 0.88 [16:48:49]line НДС 12% : 10.62 [16:48:49]line Наличными: 100.00 [16:48:49]line Безнал.: 0.00 [16:48:49]line Место: АЗС № 128 "Партнер Нефть" [16:48:49]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:49]line СНО: Общий режим [16:48:49]line Чек 72 28.07.2024 16:48 [16:48:49]line Смена: 430 ФФД: 1.0 [16:48:49]line ЗНМ: 0300000045 [16:48:49]line РНМ: 0000000000092655 [16:48:49]line Версия ККМ: 001 [16:48:49]line ФМ: 0000000000874941 [16:48:49]line ФД: 44701 [16:48:49]line ФПД: 142035747897426 [16:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164845&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44701&fm=142035747897426&tin=02508201610067®Number=0000000000092655&sum=10000 [16:48:49]OFD Sender: Processing packet 44701 [packets to send 7, broken 6] [16:48:49]ProducePacketName [16:48:49]name=ofd_packets/00044701 [16:48:49]OFD Sender: To server: pG, [16:48:49]CommunicateWithHost lk.salyk.kg:30040 [16:48:49]ConnectInit lk.salyk.kg [16:48:49]line 0 [16:48:49]written 0, free lines is 4095 [16:48:49]Connected sock=9 [16:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 41 01 00 00 A3 C1 39 01 F3 FD 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 6D 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 Write to MH i2c: 01 01 00 00 01 00 0D D4 04 02 10 D6 00 [16:48:49]30 Write i2c OK [16:48:49]30 MH_I2C_Read... [16:48:49]30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 39 [16:48:49]32 MH_I2C_Read... [16:48:49]36 35 35 11 04 10 00 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [16:48:50]30 MH_I2C_Read... [16:48:50]30 38 37 34 39 34 31 Read from MH i2c: 10 01 04 07 04 00 00 D4 9D AE 00 00 35 04 06 00 81 2E 02 46 00 4C 00 80 00 52 00 66 00 7C 0E E4 0E 7C F9 25 [16:48:50]E9 RasterBufferAndPrint [16:48:50]D7 line [16:48:50]F9 line [16:48:50] [16:48:50]line [16:48:50]line [16:48:50]line [16:48:50]written 0, free lines is 3795 [16:48:50]process_action close_receipt done [16:48:50]requested_data is exist [16:48:50]produce_requested_data [16:48:50]requested_item fm.sn is exist - process it [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 11 00 00 [16:48:50]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 17 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 AB [16:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:50]wFMCommunicate OK [16:48:50]requested_item fd.num is exist - process it [16:48:50]SAM_PROTO_GetFieldsCounters [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 13 00 00 [16:48:50]Write to MH i2c: E2 08 00 DC 02 80 13 00 00 00 00 00 00 5A [16:48:50]Received data: 87 95 F6 70 Write i2c OK [16:48:50]47 MH_I2C_Read... [16:48:50]2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A8 33 47 00 FB 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9D AE 00 00 F4 03 04 00 82 22 A6 66 B6 04 01 00 00 7F 1A CF D5 1D F5 8E 83 [16:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:50]CommunicateWithHost err = 0 [16:48:50]CheckOFDResponse [16:48:50]1017 (14) - 77093643461234 [16:48:50]1041 (16) - 0000000000874941 [16:48:50]1040 (4) - 44701 [16:48:50]1012 (4) - 28.07.2024 10:50 [16:48:50]1206 (1) - 0 [16:48:50]OFD Sender: Remove packet 44701 [16:48:50]ProducePacketName [16:48:50]name=ofd_packets/00044701 [16:48:50]NVStorageDeleteData [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 DC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9D AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:50]wFMCommunicate OK [16:48:50]SAM_PROTO_GetFieldsCounters done [16:48:50]requested_item shift.num is exist - process it [16:48:50]requested_item shift.opened is exist - process it [16:48:50]req_shift_opened [16:48:50]FM_GetShiftState [16:48:50]SAM_PROTO_GetShiftState [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 13 01 00 [16:48:50]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 0E 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F5 [16:48:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:50]wFMCommunicate OK [16:48:50]SAM_PROTO_GetShiftState done [16:48:50]FM_GetShiftState done [16:48:50]req_shift_opened done [16:48:50]requested_item shift.open_date is exist - process it [16:48:50]req_shift_open_date [16:48:50]req_shift_open_date done [16:48:50]produce_requested_data done [16:48:50]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44701,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:50]process_action_free close_receipt [16:48:50]json_value_free [16:48:50]json_value_free done [16:48:50]process_json_proto returns [16:48:50]Send response to host [16:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44701,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:50]free response buf [16:48:50]execute_script done [16:48:50]execute_script returns [16:48:50]free content buf [16:48:50]Sock 10.Close socket [16:48:50]Sock 10.Thread stoped [16:48:50]OFD Sender: No OFD packet to send [16:48:51]accept exits with 8 [16:48:51]New connection [16:48:51]New thread 3067018596 created [16:48:51]Thread 3066875236 joined [16:48:51]Waiting for new connection... [16:48:51] Sock 8.Parse request [16:48:51]Sock 8.Check first char [16:48:51]Sock 8.First char is OK [16:48:51]request: POST /json_proto HTTP/1.0 [16:48:51]Method: POST [16:48:51]URL: /json_proto [16:48:51]Method is POST - this is cgi request [16:48:51]url: /json_proto [16:48:51]query_string will be loaded in cgi processing [16:48:51]execute_cgi json_proto POST (null) [16:48:51]execute_cgi path=json_proto method=POST [16:48:51]POST find Content-Length [16:48:51]Host: 172.17.45.196:8080 [16:48:51]Content-Length: 717 [16:48:51]Content-Type: application/json [16:48:51] [16:48:51]POST finish read [16:48:51]Found Content-Length = 717 [16:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14593", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:51]execute_script... [16:48:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14593", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:51]POST & json_proto [16:48:51]process_json_proto [16:48:51]json parsed OK: [16:48:51]protocol is kg_v1.0 [16:48:51]action value=close_receipt [16:48:51]process_action close_receipt [16:48:51]cmd_close_receipt [16:48:51]MH_GetDate [16:48:51]Write to MH i2c: F0 00 00 DE 02 CF [16:48:51]Write i2c OK [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: F0 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: F0 09 00 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: F0 09 00 DE 02 00 73 76 A6 66 BB 03 A5 66 96 [16:48:51]GetLastDocTimeStamp 1722185325 [16:48:51]current date 1722185331 [16:48:51]FM_GetShiftState [16:48:51]SAM_PROTO_GetShiftState [16:48:51]wFMCommunicate request_size=4 [16:48:51]MH_SAM_APDU [16:48:51]CAPDU: 80 13 01 00 [16:48:51]Write to MH i2c: E2 08 00 DF 02 80 13 01 00 00 00 00 00 5E [16:48:51]Write i2c OK [16:48:51]MH_I2C_Read... [16:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:51]Read from MH i2c: E2 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: E2 0E 00 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: E2 0E 00 DF 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F7 [16:48:51]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:51]wFMCommunicate OK [16:48:51]SAM_PROTO_GetShiftState done [16:48:51]FM_GetShiftState done [16:48:51]opened in 1722126323 [16:48:51]opened+sec_in_day 1722212723 [16:48:51]quantity*price = 25000 [16:48:51]sum+1 = 25001 [16:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 73 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44702 ФПД: 109033608204198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164852&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44702&fm=109033608204198&tin=02508201610067®Number=0000000000092655&sum=25000 0 [16:48:54]StoreToDocumentArchive [16:48:54]shift 430 fd 44702 [16:48:54]save to /storage/0430/doc_00044702 [16:48:54]save last doc name /storage/0430/doc_00044702 to /storage/kkm_last_doc_name [16:48:54]save OK [16:48:54]Clear old archive folders... [16:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:48:54]tlvbuf is 01634410 [16:48:54]SAM_PROTO_ClearQueue [16:48:54]wFMCommunicate request_size=4 [16:48:54]MH_SAM_APDU [16:48:54]CAPDU: 80 09 00 00 [16:48:54]Write to MH i2c: E2 08 00 EC 02 80 09 00 00 00 00 00 00 60 [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:54]Read from MH i2c: E2 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: E2 03 00 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [16:48:54]RAPDU: 90 00 [16:48:54]wFMCommunicate OK [16:48:54]SAM_PROTO_ClearQueue done [16:48:54]KKMCreateOFDPacket [16:48:54]OFDProtocolAddRootSTLVToBuf [16:48:54]FM_MakeSignedData [16:48:54]FM_MakeSignedData [16:48:54]SAM_PROTO_SignData [16:48:54]wFMCommunicate request_size=4 [16:48:54]MH_SAM_APDU [16:48:54]CAPDU: 80 0D 01 02 [16:48:54]Write to MH i2c: E2 08 00 ED 02 80 0D 01 02 00 00 00 00 68 [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:54]Read from MH i2c: E2 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: E2 03 00 [16:48:54]MH_I2C_Read... [16:48:54]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [16:48:54]RAPDU: 90 00 [16:48:54]wFMCommunicate OK [16:48:54]wFMCommunicate request_size=255 [16:48:54]MH_SAM_APDU [16:48:54]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 74 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 [16:48:54]Write to MH i2c: E2 02 01 EE 02 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 74 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 00 00 20 [16:48:54]Write i2c OK [16:48:54]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 03 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [16:48:55]RAPDU: 90 00 [16:48:55]wFMCommunicate OK [16:48:55]wFMCommunicate request_size=61 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9E AE 00 00 35 04 06 00 63 2A 5D 7C 4F A6 [16:48:55]Write to MH i2c: E2 40 00 EF 02 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9E AE 00 00 35 04 06 00 63 2A 5D 7C 4F A6 00 00 4A [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 03 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [16:48:55]RAPDU: 90 00 [16:48:55]wFMCommunicate OK [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 0D 03 02 [16:48:55]Write to MH i2c: E2 08 00 F0 02 80 0D 03 02 00 00 00 00 6D [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0B 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0B 00 F0 02 00 C5 D8 8A 2B 68 26 A4 F5 90 00 E7 [16:48:55]RAPDU: C5 D8 8A 2B 68 26 A4 F5 90 00 [16:48:55]wFMCommunicate OK [16:48:55]SAM_PROTO_SignData done [16:48:55]FM_MakeSignedData done [16:48:55]CreateOFDProtocolMessage [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 11 00 00 [16:48:55]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 17 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C1 [16:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:55]wFMCommunicate OK [16:48:55]CreateOFDProtocolMessage done [16:48:55]OFDSenderStorePacket 44702 [16:48:55]StoreOFDPacket docnum=44702 [16:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 1B 86 3A 01 F6 64 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 74 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9E AE 00 00 35 04 06 00 63 2A 5D 7C 4F A6 C5 D8 8A 2B 68 26 A4 F5 [16:48:55]CheckFolder [16:48:55]dirname=/storage/ofd_packets [16:48:55]CheckFolder done [16:48:55]ProducePacketName [16:48:55]name=ofd_packets/00044702 [16:48:55]NVStorageSaveData ofd_packets/00044702 [16:48:55]File name is /storage/ofd_packets/00044702 [16:48:55]Write 352 bytes [16:48:55]NVStorageSaveData done [16:48:55]OFDSenderStorePacket done [16:48:55]KKMCreateOFDPacket done [16:48:55]NVStorageSaveData kkm_last_timestamp [16:48:55]File name is /storage/kkm_last_timestamp [16:48:55]Write 4 bytes [16:48:55]NVStorageSaveData done [16:48:55]ExternCall_PrintAddStr [16:48:55]wPrintStart [16:48:55]Write to MH i2c: 01 00 00 F2 02 F4 [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]OFD Sender: Processing packet 44702 [packets to send 7, broken 6] [16:48:55]ProducePacketName [16:48:55]name=ofd_packets/00044702 [16:48:55]OFD Sender: To server: pG, [16:48:55]CommunicateWithHost lk.salyk.kg:30040 [16:48:55]ConnectInit lk.salyk.kg [16:48:55]Read from MH i2c: 01 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: 01 07 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [16:48:55]RasterBufferAndPrint [16:48:55]line Счет N : (3)14593 [16:48:55]line ИНН: 02508201610067 [16:48:55]line Контрольно-Кассовый Чек [16:48:55]line ПРОДАЖА [16:48:55]line Товар: 4606532000189 [16:48:55]line Тормозная жидкость РосДот-4 0,455кг [16:48:55]line 1.000 * 250.00 [16:48:55]line = 250.00 [16:48:55]line НДС 12% НСП 1% [16:48:55]line > о реализуемом товаре [16:48:55]line ИТОГО: 250.00 [16:48:55]line НСП 1% : 2.21 [16:48:55]line НДС 12% : 26.55 [16:48:55]line Наличными: 250.00 [16:48:55]line Безнал.: 0.00 [16:48:55]line Место: АЗС № 128 "Партнер Нефть" [16:48:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:48:55]line СНО: Общий режим [16:48:55]line Чек 73 28.07.2024 16:48 [16:48:55]line Смена: 430 ФФД: 1.0 [16:48:55]line ЗНМ: 0300000045 [16:48:55]line РНМ: 0000000000092655 [16:48:55]line Версия ККМ: 001 [16:48:55]line ФМ: 0000000000874941 [16:48:55]line ФД: 44702 [16:48:55]line ФПД: 109033608204198 [16:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164852&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44702&fm=109033608204198&tin=02508201610067®Number=0000000000092655&sum=25000 [16:48:55]line 0 [16:48:55]written 0, free lines is 4095 [16:48:56]Connected sock=10 [16:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 1B 86 3A 01 F6 64 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 74 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 Write to MH i2c: 39 01 32 00 36 00 35 35 11 04 10 00 30 30 30 30 1B 03 30 1E [16:48:56]30 30 30 30 30 38 37 34 39 34 31 10 Write i2c OK [16:48:56]04 MH_I2C_Read... [16:48:56]04 Read from MH i2c: 00 01 9E [16:48:56]AE MH_I2C_Read... [16:48:56]00 00 35 04 06 00 63 2A 5D 7C 4F A6 C5 Read from MH i2c: D8 01 8A 07 2B 00 68 [16:48:56]26 MH_I2C_Read... [16:48:56]A4 Read from MH i2c: F5 01 [16:48:56]07 00 1B 03 00 00 00 00 00 62 0E 95 [16:48:56]RasterBufferAndPrint [16:48:56]line [16:48:56]line [16:48:56]line [16:48:56]line [16:48:56]line [16:48:56]written 0, free lines is 3834 [16:48:56]process_action close_receipt done [16:48:56]requested_data is exist [16:48:56]produce_requested_data [16:48:56]requested_item fm.sn is exist - process it [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 11 00 00 [16:48:56]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 17 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F3 [16:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:48:56]wFMCommunicate OK [16:48:56]requested_item fd.num is exist - process it [16:48:56]SAM_PROTO_GetFieldsCounters [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 13 00 00 Received data: [16:48:56]87 Write to MH i2c: 95 E2 F6 08 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 91 B4 47 00 43 00 09 23 A5 03 07 80 01 13 00 00 00 00 00 00 A2 [16:48:57]00 Write i2c OK [16:48:57]07 00 MH_I2C_Read... [16:48:57]3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9E AE 00 00 F4 03 04 00 88 22 A6 66 B6 04 01 00 00 FF 18 F5 01 85 18 C0 2E [16:48:57]CommunicateWithHost err = 0 [16:48:57]CheckOFDResponse [16:48:57]1017 (14) - 77093643461234 [16:48:57]1041 (16) - 0000000000874941 [16:48:57]1040 (4) - 44702 [16:48:57]1012 (4) - 28.07.2024 10:50 [16:48:57]1206 (1) - 0 [16:48:57]OFD Sender: Remove packet 44702 [16:48:57]ProducePacketName [16:48:57]name=ofd_packets/00044702 [16:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:57]NVStorageDeleteData [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 62 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 62 00 23 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9E AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:57]wFMCommunicate OK [16:48:57]SAM_PROTO_GetFieldsCounters done [16:48:57]requested_item shift.num is exist - process it [16:48:57]requested_item shift.opened is exist - process it [16:48:57]req_shift_opened [16:48:57]FM_GetShiftState [16:48:57]SAM_PROTO_GetShiftState [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 13 01 00 [16:48:57]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:57]Read from MH i2c: E2 0E 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3D [16:48:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:57]wFMCommunicate OK [16:48:57]SAM_PROTO_GetShiftState done [16:48:57]FM_GetShiftState done [16:48:57]req_shift_opened done [16:48:57]requested_item shift.open_date is exist - process it [16:48:57]req_shift_open_date [16:48:57]req_shift_open_date done [16:48:57]produce_requested_data done [16:48:57]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44702,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:48:57]process_action_free close_receipt [16:48:57]json_value_free [16:48:57]json_value_free done [16:48:57]process_json_proto returns [16:48:57]Send response to host [16:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44702,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:48:57]free response buf [16:48:57]execute_script done [16:48:57]execute_script returns [16:48:57]free content buf [16:48:57]Sock 8.Close socket [16:48:57]Sock 8.Thread stoped [16:48:57]OFD Sender: No OFD packet to send [16:48:58]accept exits with 9 [16:48:58]New connection [16:48:58]New thread 3066875236 created [16:48:58]Thread 3067018596 joined [16:48:58]Waiting for new connection... [16:48:58] Sock 9.Parse request [16:48:58]Sock 9.Check first char [16:48:58]Sock 9.First char is OK [16:48:58]request: POST /json_proto HTTP/1.0 [16:48:58]Method: POST [16:48:58]URL: /json_proto [16:48:58]Method is POST - this is cgi request [16:48:58]url: /json_proto [16:48:58]query_string will be loaded in cgi processing [16:48:58]execute_cgi json_proto POST (null) [16:48:58]execute_cgi path=json_proto method=POST [16:48:58]POST find Content-Length [16:48:58]Host: 172.17.45.196:8080 [16:48:58]Content-Length: 717 [16:48:58]Content-Type: application/json [16:48:58] [16:48:58]POST finish read [16:48:58]Found Content-Length = 717 [16:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14594", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]execute_script... [16:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14594", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]POST & json_proto [16:48:58]process_json_proto [16:48:58]json parsed OK: [16:48:58]protocol is kg_v1.0 [16:48:58]action value=close_receipt [16:48:58]process_action close_receipt [16:48:58]cmd_close_receipt [16:48:58]MH_GetDate [16:48:58]Write to MH i2c: F0 00 00 25 03 17 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 25 03 00 7A 76 A6 66 BB 03 A5 66 E5 [16:48:58]GetLastDocTimeStamp 1722185332 [16:48:58]current date 1722185338 [16:48:58]FM_GetShiftState [16:48:58]SAM_PROTO_GetShiftState [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 13 01 00 [16:48:58]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3F [16:48:58]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:48:58]wFMCommunicate OK [16:48:58]SAM_PROTO_GetShiftState done [16:48:58]FM_GetShiftState done [16:48:58]opened in 1722126323 [16:48:58]opened+sec_in_day 1722212723 [16:48:58]quantity*price = 25000 [16:48:58]sum+1 = 25001 [16:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 74 28.07.2024 16:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44703 ФПД: 43291696159990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164858&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44703&fm=43291696159990&tin=02508201610067®Number=0000000000092655&sum=25000 0 [16:49:00]StoreToDocumentArchive [16:49:00]shift 430 fd 44703 [16:49:00]save to /storage/0430/doc_00044703 [16:49:00]save last doc name /storage/0430/doc_00044703 to /storage/kkm_last_doc_name [16:49:00]save OK [16:49:00]Clear old archive folders... [16:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:49:00]tlvbuf is 01582490 [16:49:00]SAM_PROTO_ClearQueue [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 09 00 00 [16:49:00]Write to MH i2c: E2 08 00 33 03 80 09 00 00 00 00 00 00 A8 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [16:49:00]RAPDU: 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_ClearQueue done [16:49:00]KKMCreateOFDPacket [16:49:00]OFDProtocolAddRootSTLVToBuf [16:49:00]FM_MakeSignedData [16:49:00]FM_MakeSignedData [16:49:00]SAM_PROTO_SignData [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 0D 01 02 [16:49:00]Write to MH i2c: E2 08 00 34 03 80 0D 01 02 00 00 00 00 B0 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [16:49:01]RAPDU: 90 00 [16:49:01]wFMCommunicate OK [16:49:01]wFMCommunicate request_size=255 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 [16:49:01]Write to MH i2c: E2 02 01 35 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 00 00 6F [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]wFMCommunicate request_size=61 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9F AE 00 00 35 04 06 00 27 5F A2 2B DC F6 [16:49:02]Write to MH i2c: E2 40 00 36 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9F AE 00 00 35 04 06 00 27 5F A2 2B DC F6 00 00 5D [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [16:49:02]RAPDU: 90 00 [16:49:02]wFMCommunicate OK [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 0D 03 02 [16:49:02]Write to MH i2c: E2 08 00 37 03 80 0D 03 02 00 00 00 00 B5 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0B 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0B 00 37 03 00 6C 20 FF 24 97 2A 86 B6 90 00 62 [16:49:02]RAPDU: 6C 20 FF 24 97 2A 86 B6 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_SignData done [16:49:02]FM_MakeSignedData done [16:49:02]CreateOFDProtocolMessage [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 11 00 00 [16:49:02]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 09 [16:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:49:02]wFMCommunicate OK [16:49:02]CreateOFDProtocolMessage done [16:49:02]OFDSenderStorePacket 44703 [16:49:02]StoreOFDPacket docnum=44703 [16:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 F7 BD 3A 01 C6 2D 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 7A 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 9F AE 00 00 35 04 06 00 27 5F A2 2B DC F6 6C 20 FF 24 97 2A 86 B6 [16:49:02]CheckFolder [16:49:02]dirname=/storage/ofd_packets [16:49:02]CheckFolder done [16:49:02]ProducePacketName [16:49:02]name=ofd_packets/00044703 [16:49:02]NVStorageSaveData ofd_packets/00044703 [16:49:02]File name is /storage/ofd_packets/00044703 [16:49:02]Write 352 bytes [16:49:02]NVStorageSaveData done [16:49:02]OFDSenderStorePacket done [16:49:02]KKMCreateOFDPacket done [16:49:02]NVStorageSaveData kkm_last_timestamp [16:49:02]File name is /storage/kkm_last_timestamp [16:49:02]Write 4 bytes [16:49:02]NVStorageSaveData done [16:49:02]ExternCall_PrintAddStr [16:49:02]wPrintStart [16:49:02]Write to MH i2c: 01 00 00 39 03 3C [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [16:49:02]RasterBufferAndPrint [16:49:02]line Счет N : (3)14594 [16:49:02]line ИНН: 02508201610067 [16:49:02]line Контрольно-Кассовый Чек [16:49:02]line ПРОДАЖА [16:49:02]line Товар: 4606532000189 [16:49:02]line Тормозная жидкость РосДот-4 0,455кг [16:49:02]line 1.000 * 250.00 [16:49:02]line = 250.00 [16:49:02]line НДС 12% НСП 1% [16:49:02]line > о реализуемом товаре [16:49:02]line ИТОГО: 250.00 [16:49:02]line НСП 1% : 2.21 [16:49:02]line НДС 12% : 26.55 [16:49:02]line Наличными: 250.00 [16:49:02]line Безнал.: 0.00 [16:49:02]line Место: АЗС № 128 "Партнер Нефть" [16:49:02]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:49:02]line СНО: Общий режим [16:49:02]line Чек 74 28.07.2024 16:48 [16:49:02]line Смена: 430 ФФД: 1.0 [16:49:02]line ЗНМ: 0300000045 [16:49:02]line РНМ: 0000000000092655 [16:49:02]line Версия ККМ: 001 [16:49:02]line ФМ: 0000000000874941 [16:49:02]line ФД: 44703 [16:49:02]line ФПД: 43291696159990 [16:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164858&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44703&fm=43291696159990&tin=02508201610067®Number=0000000000092655&sum=25000 [16:49:02]OFD Sender: Processing packet 44703 [packets to send 7, broken 6] [16:49:02]ProducePacketName [16:49:02]name=ofd_packets/00044703 [16:49:02]OFD Sender: To server: pG, [16:49:02]CommunicateWithHost lk.salyk.kg:30040 [16:49:02]ConnectInit lk.salyk.kg [16:49:02]line 0 [16:49:02]written 0, free lines is 4095 [16:49:02]Connected sock=10 [16:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 F7 BD 3A 01 C6 2D 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 Write to MH i2c: F7 01 03 00 06 00 00 DD 00 00 00 00 00 EE 62 03 03 0F 65 00 [16:49:03]F2 03 01 00 01 F3 03 06 00 Write i2c OK [16:49:03]5F MH_I2C_Read... [16:49:03]0A 00 00 00 Read from MH i2c: 00 01 07 [16:49:03]04 MH_I2C_Read... [16:49:03]06 00 A8 61 00 00 00 00 Read from MH i2c: 39 01 04 07 06 00 00 00 00 00 00 00 00 1F 04 [16:49:03]02 MH_I2C_Read... [16:49:03]00 Read from MH i2c: 01 01 00 07 12 00 04 62 04 03 00 00 4A 00 00 00 00 00 00 00 F4 AF 03 0D 04 28 [16:49:03]RasterBufferAndPrint [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]line [16:49:03]00 7A written 0, free lines is 3717 [16:49:03]76 A6 66 0E 04 04 00 AE process_action close_receipt done [16:49:03]01 requested_data is exist [16:49:03]00 produce_requested_data [16:49:03]00 requested_item fm.sn is exist - process it [16:49:03]B9 wFMCommunicate request_size=4 [16:49:03]04 MH_SAM_APDU [16:49:03]01 CAPDU: 00 80 01 11 0D 00 04 00 10 [16:49:03]00 30 30 30 30 30 30 30 30 Write to MH i2c: 30 E2 30 08 30 00 39 32 36 35 35 11 04 10 69 00 03 30 80 30 11 30 30 30 30 30 30 30 30 38 00 37 00 34 00 39 00 34 00 31 00 10 E6 04 [16:49:03]04 Write i2c OK [16:49:03]00 MH_I2C_Read... [16:49:03]9F AE 00 00 35 04 06 00 27 5F A2 2B DC F6 6C 20 FF 24 97 2A 86 B6 [16:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:03]Read from MH i2c: E2 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 17 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 17 00 69 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3A [16:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:49:03]wFMCommunicate OK [16:49:03]requested_item fd.num is exist - process it [16:49:03]SAM_PROTO_GetFieldsCounters [16:49:03]wFMCommunicate request_size=4 [16:49:03]MH_SAM_APDU [16:49:03]CAPDU: 80 13 00 00 [16:49:03]Write to MH i2c: E2 08 00 6A 03 80 13 00 00 00 00 00 00 E9 [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E5 D7 47 00 AA 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 Read from MH i2c: 10 E2 00 [16:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:04]MH_I2C_Read... [16:49:04]30 Read from MH i2c: 30 E2 30 62 30 00 30 [16:49:04]30 MH_I2C_Read... [16:49:04]30 30 Read from MH i2c: 30 E2 30 62 38 00 37 34 39 34 31 10 04 04 00 6A 9F 03 AE 00 00 5D 00 00 B9 F4 04 03 01 04 00 8F 22 A6 66 B6 04 01 00 00 01 00 11 8F 04 4E 10 0F 00 F6 30 6E 30 B5 30 52 30 E2 30 [16:49:04]30 CommunicateWithHost err = 0 [16:49:04]30 CheckOFDResponse [16:49:04]30 1017 (14) - 77093643461234 [16:49:04]30 1041 (16) - 0000000000874941 [16:49:04]1040 (4) - 44703 [16:49:04]1012 (4) - 28.07.2024 10:50 [16:49:04]1206 (1) - 0 [16:49:04]OFD Sender: Remove packet 44703 [16:49:04]ProducePacketName [16:49:04]name=ofd_packets/00044703 [16:49:04]NVStorageDeleteData [16:49:04]30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 9F AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_GetFieldsCounters done [16:49:04]requested_item shift.num is exist - process it [16:49:04]requested_item shift.opened is exist - process it [16:49:04]req_shift_opened [16:49:04]FM_GetShiftState [16:49:04]SAM_PROTO_GetShiftState [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 13 01 00 [16:49:04]Write to MH i2c: E2 08 00 6B 03 80 13 01 00 00 00 00 00 EB [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 6B 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 84 [16:49:04]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_GetShiftState done [16:49:04]FM_GetShiftState done [16:49:04]req_shift_opened done [16:49:04]requested_item shift.open_date is exist - process it [16:49:04]req_shift_open_date [16:49:04]req_shift_open_date done [16:49:04]produce_requested_data done [16:49:04]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44703,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:49:04]process_action_free close_receipt [16:49:04]json_value_free [16:49:04]json_value_free done [16:49:04]process_json_proto returns [16:49:04]Send response to host [16:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44703,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:49:04]free response buf [16:49:04]execute_script done [16:49:04]execute_script returns [16:49:04]free content buf [16:49:04]Sock 9.Close socket [16:49:04]Sock 9.Thread stoped [16:49:04]OFD Sender: No OFD packet to send [16:49:06]accept exits with 8 [16:49:06]New connection [16:49:06]New thread 3067018596 created [16:49:06]Thread 3066875236 joined [16:49:06]Waiting for new connection... [16:49:06] Sock 8.Parse request [16:49:06]Sock 8.Check first char [16:49:06]Sock 8.First char is OK [16:49:06]request: POST /json_proto HTTP/1.0 [16:49:06]Method: POST [16:49:06]URL: /json_proto [16:49:06]Method is POST - this is cgi request [16:49:06]url: /json_proto [16:49:06]query_string will be loaded in cgi processing [16:49:06]execute_cgi json_proto POST (null) [16:49:06]execute_cgi path=json_proto method=POST [16:49:06]POST find Content-Length [16:49:06]Host: 172.17.45.196:8080 [16:49:06]Content-Length: 2246 [16:49:06]Content-Type: application/json [16:49:06] [16:49:06]POST finish read [16:49:06]Found Content-Length = 2246 [16:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14596", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:06]execute_script... [16:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14596", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:07]POST & json_proto [16:49:07]process_json_proto [16:49:07]json parsed OK: [16:49:07]protocol is kg_v1.0 [16:49:07]action value=close_receipt [16:49:07]process_action close_receipt [16:49:07]cmd_close_receipt [16:49:07]MH_GetDate [16:49:07]Write to MH i2c: F0 00 00 6C 03 5E [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 6C 03 00 83 76 A6 66 BB 03 A5 66 35 [16:49:07]GetLastDocTimeStamp 1722185338 [16:49:07]current date 1722185347 [16:49:07]FM_GetShiftState [16:49:07]SAM_PROTO_GetShiftState [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 13 01 00 [16:49:07]Write to MH i2c: E2 08 00 6D 03 80 13 01 00 00 00 00 00 ED [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:07]Read from MH i2c: E2 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0E 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: E2 0E 00 6D 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 86 [16:49:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:49:07]wFMCommunicate OK [16:49:07]SAM_PROTO_GetShiftState done [16:49:07]FM_GetShiftState done [16:49:07]opened in 1722126323 [16:49:07]opened+sec_in_day 1722212723 [16:49:07]quantity*price = 24000 [16:49:07]sum+1 = 24001 [16:49:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400662 Семечки ДЖИНН 140г синий 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 625.00 НСП 1% : 5.52 НДС 12% : 66.36 Наличными: 0.00 Безнал.: 625.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 75 28.07.2024 16:49 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44704 ФПД: 135022473756919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164907&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44704&fm=135022473756919&tin=02508201610067®Number=0000000000092655&sum=62500 0 [16:49:09]StoreToDocumentArchive [16:49:09]shift 430 fd 44704 [16:49:09]save to /storage/0430/doc_00044704 [16:49:09]save last doc name /storage/0430/doc_00044704 to /storage/kkm_last_doc_name [16:49:09]save OK [16:49:09]Clear old archive folders... [16:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=845 [16:49:09]tlvbuf is 0167A170 [16:49:09]SAM_PROTO_ClearQueue [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 09 00 00 [16:49:09]Write to MH i2c: E2 08 00 7A 03 80 09 00 00 00 00 00 00 EF [16:49:09]OFD Sender: No OFD packet to send [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_ClearQueue done [16:49:09]KKMCreateOFDPacket [16:49:09]OFDProtocolAddRootSTLVToBuf [16:49:09]FM_MakeSignedData [16:49:09]FM_MakeSignedData [16:49:09]SAM_PROTO_SignData [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 01 02 [16:49:09]Write to MH i2c: E2 08 00 7B 03 80 0D 01 02 00 00 00 00 F7 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=255 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 02 02 FA 03 00 4D 03 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D [16:49:10]Write to MH i2c: E2 02 01 7C 03 80 0D 02 02 FA 00 03 00 4D 03 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 00 E9 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=255 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 02 02 FA 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 [16:49:11]Write to MH i2c: E2 02 01 7D 03 80 0D 02 02 FA 00 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 00 00 17 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [16:49:12]RAPDU: 90 00 [16:49:12]wFMCommunicate OK [16:49:12]wFMCommunicate request_size=255 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 0D 02 02 FA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 [16:49:12]Write to MH i2c: E2 02 01 7E 03 80 0D 02 02 FA 00 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 03 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [16:49:13]RAPDU: 90 00 [16:49:13]wFMCommunicate OK [16:49:13]wFMCommunicate request_size=104 [16:49:13]MH_SAM_APDU [16:49:13]CAPDU: 80 0D 02 02 63 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 83 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A0 AE 00 00 35 04 06 00 7A CD 5E 95 C0 F7 [16:49:13]Write to MH i2c: E2 6B 00 7F 03 80 0D 02 02 63 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 83 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A0 AE 00 00 35 04 06 00 7A CD 5E 95 C0 F7 00 00 01 [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 03 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [16:49:13]RAPDU: 90 00 [16:49:13]wFMCommunicate OK [16:49:13]wFMCommunicate request_size=4 [16:49:13]MH_SAM_APDU [16:49:13]CAPDU: 80 0D 03 02 [16:49:13]Write to MH i2c: E2 08 00 80 03 80 0D 03 02 00 00 00 00 FE [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 0B 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 0B 00 80 03 00 C6 2F 42 6B 39 67 D5 6C 90 00 82 [16:49:13]RAPDU: C6 2F 42 6B 39 67 D5 6C 90 00 [16:49:13]wFMCommunicate OK [16:49:13]SAM_PROTO_SignData done [16:49:13]FM_MakeSignedData done [16:49:13]CreateOFDProtocolMessage [16:49:13]wFMCommunicate request_size=4 [16:49:13]MH_SAM_APDU [16:49:13]CAPDU: 80 11 00 00 [16:49:13]Write to MH i2c: E2 08 00 81 03 80 11 00 00 00 00 00 00 FE [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:13]Read from MH i2c: E2 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 17 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: E2 17 00 81 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 52 [16:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:49:13]wFMCommunicate OK [16:49:13]CreateOFDProtocolMessage done [16:49:13]OFDSenderStorePacket 44704 [16:49:13]StoreOFDPacket docnum=44704 [16:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 61 03 00 00 BF 09 59 03 2B D8 5A 03 01 00 03 00 4D 03 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 83 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A0 AE 00 00 35 04 06 00 7A CD 5E 95 C0 F7 C6 2F 42 6B 39 67 D5 6C [16:49:13]CheckFolder [16:49:13]dirname=/storage/ofd_packets [16:49:13]CheckFolder done [16:49:13]ProducePacketName [16:49:13]name=ofd_packets/00044704 [16:49:13]NVStorageSaveData ofd_packets/00044704 [16:49:13]File name is /storage/ofd_packets/00044704 [16:49:13]Write 895 bytes [16:49:13]NVStorageSaveData done [16:49:13]OFDSenderStorePacket done [16:49:13]KKMCreateOFDPacket done [16:49:13]NVStorageSaveData kkm_last_timestamp [16:49:13]File name is /storage/kkm_last_timestamp [16:49:13]Write 4 bytes [16:49:13]NVStorageSaveData done [16:49:13]ExternCall_PrintAddStr [16:49:13]wPrintStart [16:49:13]Write to MH i2c: 01 00 00 82 03 85 [16:49:13]OFD Sender: Processing packet 44704 [packets to send 7, broken 6] [16:49:13]ProducePacketName [16:49:13]name=ofd_packets/00044704 [16:49:13]OFD Sender: To server: pG, [16:49:13]CommunicateWithHost lk.salyk.kg:30040 [16:49:13]ConnectInit lk.salyk.kg [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 07 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [16:49:13]RasterBufferAndPrint [16:49:13]line Счет N : (3)14596 [16:49:13]line ИНН: 02508201610067 [16:49:13]line Контрольно-Кассовый Чек [16:49:13]line ПРОДАЖА [16:49:13]line Товар: 4630007400990 [16:49:13]line Семечки ДЖИНН Великан 100гр [16:49:13]line 2.000 * 120.00 [16:49:13]line = 240.00 [16:49:13]line НДС 12% НСП 1% [16:49:13]line > о реализуемом товаре [16:49:13]line Товар: 4630007400662 [16:49:13]line Семечки ДЖИНН 140г синий [16:49:13]line 1.000 * 130.00 [16:49:13]line = 130.00 [16:49:13]line НДС 12% НСП 1% [16:49:13]line > о реализуемом товаре [16:49:13]line Товар: 4700000160358 [16:49:13]line Вода Легенда 1л [16:49:13]line 1.000 * 50.00 [16:49:13]line = 50.00 [16:49:13]line НДС 12% НСП 1% [16:49:13]line > о реализуемом товаре [16:49:13]line Товар: 5449000176448 [16:49:13]line Сок Piko Pulpy апельсин ПЭТ 1л [16:49:13]line 1.000 * 180.00 [16:49:13]line = 180.00 [16:49:13]line НДС 12% НСП 1% [16:49:13]line > о реализуемом товаре [16:49:13]line Товар: 2000053020015 [16:49:13]line Бумажные стаканы 250мл 1шт [16:49:13]line 3.000 * 7.00 [16:49:13]line = 21.00 [16:49:13]line НДС 12% НСП 1% [16:49:13]line > о реализуемом товаре [16:49:13]line Товар: 2000031750019 [16:49:13]line Пакет Партнер Нефть [16:49:13]line 1.000 * 4.00 [16:49:13]line = 4.00 [16:49:14]line НДС 12% НСП 1% [16:49:14]line > о реализуемом товаре [16:49:14]line ИТОГО: 625.00 [16:49:14]line НСП 1% : 5.52 [16:49:14]line НДС 12% : 66.36 [16:49:14]line Наличными: 0.00 [16:49:14]line Безнал.: 625.00 [16:49:14]line Место: АЗС № 128 "Партнер Нефть" [16:49:14]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:49:14]line СНО: Общий режим [16:49:14]line Чек 75 28.07.2024 16:49 [16:49:14]line Смена: 430 ФФД: 1.0 [16:49:14]line ЗНМ: 0300000045 [16:49:14]line РНМ: 0000000000092655 [16:49:14]line Версия ККМ: 001 [16:49:14]line Платежная система: Бакай Банк [16:49:14]line ФМ: 0000000000874941 [16:49:14]line ФД: 44704 [16:49:14]line ФПД: 135022473756919 [16:49:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T164907&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44704&fm=135022473756919&tin=02508201610067®Number=0000000000092655&sum=62500 [16:49:14]line 0 [16:49:14]written 0, free lines is 4095 [16:49:14]Connected sock=10 [16:49:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 61 03 00 00 BF 09 59 03 2B D8 5A 03 01 00 03 00 4D 03 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF Write to MH i2c: 03 01 08 00 00 00 03 CD E8 03 03 D0 00 00 00 00 00 37 04 06 [16:49:15]00 Write i2c OK [16:49:15]50 MH_I2C_Read... [16:49:15]46 00 00 00 00 13 04 06 Read from MH i2c: 00 01 50 [16:49:15]46 MH_I2C_Read... [16:49:15]00 Read from MH i2c: 00 01 00 07 00 F2 03 01 00 01 F6 03 00 01 [16:49:15]00 MH_I2C_Read... [16:49:15]01 BC 04 01 00 01 23 04 71 Read from MH i2c: 00 01 8A 07 04 00 0D CD 00 03 32 00 30 30 30 30 35 33 30 00 32 00 30 00 30 00 31 32 35 0C 06 15 04 2D 00 D0 91 D1 83 D0 [16:49:15]BC RasterBufferAndPrint [16:49:15]D0 line [16:49:15]B0 line [16:49:15]D0 line [16:49:15]B6 line [16:49:15]D0 line [16:49:15]BD D1 8B D0 B5 20 D1 81 written 0, free lines is 3388 [16:49:15]D1 82 D0 B0 D0 BA D0 process_action close_receipt done [16:49:15]B0 requested_data is exist [16:49:15]D0 produce_requested_data [16:49:15]BD requested_item fm.sn is exist - process it [16:49:15]D1 wFMCommunicate request_size=4 [16:49:15]8B 20 32 35 30 D0 BC D0 MH_SAM_APDU [16:49:15]BB CAPDU: 20 80 31 11 D1 00 88 00 D1 [16:49:15]82 FF 03 08 00 03 B8 Write to MH i2c: 0B E2 00 08 00 00 00 D4 00 03 80 00 11 37 00 04 00 06 00 00 BC 02 00 00 00 00 13 00 04 00 06 00 00 51 34 [16:49:15]08 00 00 00 00 Write i2c OK [16:49:15]F2 MH_I2C_Read... [16:49:15]03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 Read from MH i2c: 0D 00 32 30 30 30 E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:15] [16:49:15]30 MH_I2C_Read... [16:49:15]33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 Read from MH i2c: 06 E2 00 17 90 00 01 [16:49:15]00 MH_I2C_Read... [16:49:15]00 00 00 F2 03 01 00 01 Read from MH i2c: F6 E2 03 17 01 00 00 D4 01 03 BC 00 04 01 00 01 FC 03 06 00 11 24 04 F4 10 00 00 00 00 EB 03 26 00 00 EF 30 03 30 0F 30 00 30 F6 30 03 30 01 00 01 F7 03 06 00 28 30 02 30 00 30 00 30 38 37 34 39 34 31 90 00 A5 [16:49:15]00 RAPDU: 00 11 EE 04 03 10 0F 00 00 30 F2 30 30 30 30 30 30 30 03 30 01 30 00 38 01 37 F3 34 03 39 06 34 31 90 00 [16:49:15]wFMCommunicate OK [16:49:15]requested_item fd.num is exist - process it [16:49:15]SAM_PROTO_GetFieldsCounters [16:49:15]00 wFMCommunicate request_size=4 [16:49:15]EC MH_SAM_APDU [16:49:15]19 CAPDU: 80 13 00 00 [16:49:15]Write to MH i2c: E2 00 08 00 00 00 D5 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 24 80 F4 13 00 00 00 00 00 00 00 54 [16:49:16]00 Write i2c OK [16:49:16]00 MH_I2C_Read... [16:49:16]00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 83 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:16]A0 AE Read from MH i2c: 00 E2 00 [16:49:16]35 MH_I2C_Read... [16:49:16]04 Read from MH i2c: 06 E2 00 62 7A 00 CD [16:49:16]5E MH_I2C_Read... [16:49:16]95 C0 F7 C6 2F 42 6B 39 67 D5 6C [16:49:16]Read from MH i2c: E2 62 00 D5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [16:49:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 Received data: A0 87 AE 00 00 0E 04 04 00 AE 95 01 00 F6 00 70 12 04 04 00 4B 00 00 00 47 5E 04 2C 04 01 00 4B 00 00 00 57 04 04 00 4C 00 00 00 30 00 30 19 04 04 00 00 00 00 00 90 00 [16:49:16]wFMCommunicate OK [16:49:16]SAM_PROTO_GetFieldsCounters done [16:49:16]requested_item shift.num is exist - process it [16:49:16]requested_item shift.opened is exist - process it [16:49:16]req_shift_opened [16:49:16]FM_GetShiftState [16:49:16]SAM_PROTO_GetShiftState [16:49:16]wFMCommunicate request_size=4 [16:49:16]MH_SAM_APDU [16:49:16]CAPDU: 80 13 01 00 [16:49:16]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [16:49:16]30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:16]00 00 37 CF 47 00 91 F1 A5 07 Write i2c OK [16:49:16]01 MH_I2C_Read... [16:49:16]00 07 00 Read from MH i2c: 3B E2 00 [16:49:16]F9 MH_I2C_Read... [16:49:16]03 Read from MH i2c: 0E E2 00 0E 37 37 30 39 33 36 34 33 00 34 [16:49:16]36 MH_I2C_Read... [16:49:16]31 32 33 34 11 04 10 00 30 Read from MH i2c: 30 E2 30 0E 30 00 30 D6 30 03 30 00 30 30 30 38 37 34 39 34 09 31 00 10 01 04 F3 04 8F 00 A5 A0 66 AE 00 00 00 00 00 F4 00 03 90 04 00 00 EF 9C 22 A6 66 B6 04 01 [16:49:16]00 RAPDU: 00 09 27 00 CD 01 46 F3 21 8F 6E AC EB 19 [16:49:16]CommunicateWithHost err = 0 [16:49:16]A5 CheckOFDResponse [16:49:16]66 1017 (14) - 77093643461234 [16:49:16]00 1041 (16) - 0000000000874941 [16:49:17]00 1040 (4) - 44704 [16:49:17]00 1012 (4) - 28.07.2024 10:51 [16:49:17]00 1206 (1) - 0 [16:49:17]OFD Sender: Remove packet 44704 [16:49:17]ProducePacketName [16:49:17]name=ofd_packets/00044704 [16:49:17]NVStorageDeleteData [16:49:17]90 00 [16:49:17]wFMCommunicate OK [16:49:17]SAM_PROTO_GetShiftState done [16:49:17]FM_GetShiftState done [16:49:17]req_shift_opened done [16:49:17]requested_item shift.open_date is exist - process it [16:49:17]req_shift_open_date [16:49:17]req_shift_open_date done [16:49:17]produce_requested_data done [16:49:17]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44704,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:49:17]process_action_free close_receipt [16:49:17]json_value_free [16:49:17]json_value_free done [16:49:17]process_json_proto returns [16:49:17]Send response to host [16:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44704,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:49:17]free response buf [16:49:17]execute_script done [16:49:17]execute_script returns [16:49:17]free content buf [16:49:17]Sock 8.Close socket [16:49:17]Sock 8.Thread stoped [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:06]accept exits with 9 [16:51:06]New connection [16:51:06]New thread 3066875236 created [16:51:06]Thread 3067018596 joined [16:51:06]Waiting for new connection... [16:51:06] Sock 9.Parse request [16:51:06]Sock 9.Check first char [16:51:06]Sock 9.First char is OK [16:51:06]request: POST /json_proto HTTP/1.0 [16:51:06]Method: POST [16:51:06]URL: /json_proto [16:51:06]Method is POST - this is cgi request [16:51:06]url: /json_proto [16:51:06]query_string will be loaded in cgi processing [16:51:06]execute_cgi json_proto POST (null) [16:51:06]execute_cgi path=json_proto method=POST [16:51:06]POST find Content-Length [16:51:06]Host: 172.17.45.196:8080 [16:51:06]Content-Length: 574 [16:51:06]Content-Type: application/json [16:51:06] [16:51:06]POST finish read [16:51:06]Found Content-Length = 574 [16:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14597", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:06]execute_script... [16:51:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14597", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:06]POST & json_proto [16:51:06]process_json_proto [16:51:06]json parsed OK: [16:51:06]protocol is kg_v1.0 [16:51:06]action value=close_receipt [16:51:06]process_action close_receipt [16:51:06]cmd_close_receipt [16:51:06]MH_GetDate [16:51:06]Write to MH i2c: F0 00 00 D7 03 C9 [16:51:06]Write i2c OK [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: F0 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: F0 09 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: F0 09 00 D7 03 00 FA 76 A6 66 BB 03 A5 66 17 [16:51:06]GetLastDocTimeStamp 1722185347 [16:51:06]current date 1722185466 [16:51:06]FM_GetShiftState [16:51:06]SAM_PROTO_GetShiftState [16:51:06]wFMCommunicate request_size=4 [16:51:06]MH_SAM_APDU [16:51:06]CAPDU: 80 13 01 00 [16:51:06]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [16:51:06]Write i2c OK [16:51:06]MH_I2C_Read... [16:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:06]Read from MH i2c: E2 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F1 [16:51:06]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:51:06]wFMCommunicate OK [16:51:06]SAM_PROTO_GetShiftState done [16:51:06]FM_GetShiftState done [16:51:06]opened in 1722126323 [16:51:06]opened+sec_in_day 1722212723 [16:51:06]quantity*price = 13000 [16:51:06]sum+1 = 13001 [16:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 76 28.07.2024 16:51 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44705 ФПД: 174100715245530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165106&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44705&fm=174100715245530&tin=02508201610067®Number=0000000000092655&sum=13000 0 [16:51:07]StoreToDocumentArchive [16:51:07]shift 430 fd 44705 [16:51:07]save to /storage/0430/doc_00044705 [16:51:07]save last doc name /storage/0430/doc_00044705 to /storage/kkm_last_doc_name [16:51:07]save OK [16:51:07]Clear old archive folders... [16:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=259 [16:51:07]tlvbuf is 0167C600 [16:51:07]SAM_PROTO_ClearQueue [16:51:07]wFMCommunicate request_size=4 [16:51:07]MH_SAM_APDU [16:51:07]CAPDU: 80 09 00 00 [16:51:07]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [16:51:07]Write i2c OK [16:51:07]MH_I2C_Read... [16:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:07]Read from MH i2c: E2 [16:51:07]MH_I2C_Read... [16:51:07]Read from MH i2c: E2 03 00 [16:51:07]MH_I2C_Read... [16:51:07]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [16:51:07]RAPDU: 90 00 [16:51:07]wFMCommunicate OK [16:51:07]SAM_PROTO_ClearQueue done [16:51:07]KKMCreateOFDPacket [16:51:07]OFDProtocolAddRootSTLVToBuf [16:51:07]FM_MakeSignedData [16:51:07]FM_MakeSignedData [16:51:07]SAM_PROTO_SignData [16:51:07]wFMCommunicate request_size=4 [16:51:07]MH_SAM_APDU [16:51:07]CAPDU: 80 0D 01 02 [16:51:07]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [16:51:07]Write i2c OK [16:51:07]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [16:51:08]RAPDU: 90 00 [16:51:08]wFMCommunicate OK [16:51:08]wFMCommunicate request_size=255 [16:51:08]MH_SAM_APDU [16:51:08]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FA 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A1 [16:51:08]Write to MH i2c: E2 02 01 E7 03 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FA 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A1 00 00 6E [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [16:51:08]RAPDU: 90 00 [16:51:08]wFMCommunicate OK [16:51:08]wFMCommunicate request_size=18 [16:51:08]MH_SAM_APDU [16:51:08]CAPDU: 80 0D 02 02 0D AE 00 00 35 04 06 00 9E 57 FB 49 8F DA [16:51:08]Write to MH i2c: E2 15 00 E8 03 80 0D 02 02 0D 00 AE 00 00 35 04 06 00 9E 57 FB 49 8F DA 00 00 0E [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [16:51:08]RAPDU: 90 00 [16:51:08]wFMCommunicate OK [16:51:08]wFMCommunicate request_size=4 [16:51:08]MH_SAM_APDU [16:51:08]CAPDU: 80 0D 03 02 [16:51:08]Write to MH i2c: E2 08 00 E9 03 80 0D 03 02 00 00 00 00 67 [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0B 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 0B 00 E9 03 00 F8 32 72 0B 67 02 BF 54 90 00 8B [16:51:08]RAPDU: F8 32 72 0B 67 02 BF 54 90 00 [16:51:08]wFMCommunicate OK [16:51:08]SAM_PROTO_SignData done [16:51:08]FM_MakeSignedData done [16:51:08]CreateOFDProtocolMessage [16:51:08]wFMCommunicate request_size=4 [16:51:08]MH_SAM_APDU [16:51:08]CAPDU: 80 11 00 00 [16:51:08]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:08]Read from MH i2c: E2 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 17 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BB [16:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:51:08]wFMCommunicate OK [16:51:08]CreateOFDProtocolMessage done [16:51:08]OFDSenderStorePacket 44705 [16:51:08]StoreOFDPacket docnum=44705 [16:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 01 00 00 3F 92 0F 01 99 E2 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FA 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A1 AE 00 00 35 04 06 00 9E 57 FB 49 8F DA F8 32 72 0B 67 02 BF 54 [16:51:08]CheckFolder [16:51:08]dirname=/storage/ofd_packets [16:51:08]CheckFolder done [16:51:08]ProducePacketName [16:51:08]name=ofd_packets/00044705 [16:51:08]NVStorageSaveData ofd_packets/00044705 [16:51:08]File name is /storage/ofd_packets/00044705 [16:51:08]Write 309 bytes [16:51:08]NVStorageSaveData done [16:51:08]OFDSenderStorePacket done [16:51:08]KKMCreateOFDPacket done [16:51:08]NVStorageSaveData kkm_last_timestamp [16:51:08]File name is /storage/kkm_last_timestamp [16:51:08]Write 4 bytes [16:51:08]NVStorageSaveData done [16:51:08]ExternCall_PrintAddStr [16:51:08]wPrintStart [16:51:08]Write to MH i2c: 01 00 00 EB 03 EE [16:51:08]Write i2c OK [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: 01 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: 01 07 00 [16:51:08]MH_I2C_Read... [16:51:08]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [16:51:08]RasterBufferAndPrint [16:51:08]line Счет N : (3)14597 [16:51:08]line ИНН: 02508201610067 [16:51:08]line Контрольно-Кассовый Чек [16:51:08]line ПРОДАЖА [16:51:08]line Товар: 46233820 [16:51:08]line LD Compact 100s Silver [16:51:08]line 1.000 * 130.00 [16:51:08]line = 130.00 [16:51:08]line НДС 12% НСП 1% [16:51:08]line > о реализуемом товаре [16:51:08]line ИТОГО: 130.00 [16:51:08]line НСП 1% : 1.15 [16:51:08]line НДС 12% : 13.80 [16:51:08]line Наличными: 130.00 [16:51:08]line Безнал.: 0.00 [16:51:08]line Место: АЗС № 128 "Партнер Нефть" [16:51:08]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [16:51:08]line СНО: Общий режим [16:51:08]line Чек 76 28.07.2024 16:51 [16:51:08]line Смена: 430 ФФД: 1.0 [16:51:08]line ЗНМ: 0300000045 [16:51:08]line РНМ: 0000000000092655 [16:51:08]line Версия ККМ: 001 [16:51:08]line ФМ: 0000000000874941 [16:51:08]line ФД: 44705 [16:51:08]line ФПД: 174100715245530 [16:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T165106&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44705&fm=174100715245530&tin=02508201610067®Number=0000000000092655&sum=13000 [16:51:08]line 0 [16:51:08]written 0, free lines is 4095 [16:51:08]OFD Sender: Processing packet 44705 [packets to send 7, broken 6] [16:51:08]ProducePacketName [16:51:08]name=ofd_packets/00044705 [16:51:08]OFD Sender: To server: pG, [16:51:08]CommunicateWithHost lk.salyk.kg:30040 [16:51:08]ConnectInit lk.salyk.kg [16:51:09]Connected sock=8 [16:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 17 01 00 00 3F 92 0F 01 99 E2 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FA 76 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A1 AE 00 00 35 04 06 00 9E 57 FB 49 8F DA F8 32 72 0B 67 02 BF 54 [16:51:09]Write to MH i2c: 01 00 00 13 04 17 [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 07 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 10 0D 3B [16:51:09]RasterBufferAndPrint [16:51:09]line [16:51:09]line [16:51:09]line [16:51:09]line [16:51:09]line [16:51:09]written 0, free lines is 3376 [16:51:09]process_action close_receipt done [16:51:09]requested_data is exist [16:51:09]produce_requested_data [16:51:09]requested_item fm.sn is exist - process it [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 11 00 00 [16:51:09]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 17 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EC [16:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [16:51:09]wFMCommunicate OK [16:51:09]requested_item fd.num is exist - process it [16:51:09]SAM_PROTO_GetFieldsCounters [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 13 00 00 [16:51:09]Write to MH i2c: E2 08 00 1B 04 80 13 00 00 00 00 00 00 9B [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 6B 53 47 00 DF 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A1 AE 00 00 F4 03 04 00 0D 23 A6 66 B6 04 01 00 00 90 19 F5 22 AA 7B 8B 8D [16:51:09]CommunicateWithHost err = 0 [16:51:09]CheckOFDResponse [16:51:09]1017 (14) - 77093643461234 [16:51:09]1041 (16) - 0000000000874941 [16:51:09]1040 (4) - 44705 [16:51:09]1012 (4) - 28.07.2024 10:53 [16:51:09]1206 (1) - 0 [16:51:09]OFD Sender: Remove packet 44705 [16:51:09]ProducePacketName [16:51:09]name=ofd_packets/00044705 [16:51:09]NVStorageDeleteData [16:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 62 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 62 00 1B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:09]wFMCommunicate OK [16:51:09]SAM_PROTO_GetFieldsCounters done [16:51:09]requested_item shift.num is exist - process it [16:51:09]requested_item shift.opened is exist - process it [16:51:09]req_shift_opened [16:51:09]FM_GetShiftState [16:51:09]SAM_PROTO_GetShiftState [16:51:09]wFMCommunicate request_size=4 [16:51:09]MH_SAM_APDU [16:51:09]CAPDU: 80 13 01 00 [16:51:09]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [16:51:09]Write i2c OK [16:51:09]MH_I2C_Read... [16:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:09]Read from MH i2c: E2 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 0E 00 [16:51:09]MH_I2C_Read... [16:51:09]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 36 [16:51:09]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [16:51:09]wFMCommunicate OK [16:51:09]SAM_PROTO_GetShiftState done [16:51:09]FM_GetShiftState done [16:51:09]req_shift_opened done [16:51:09]requested_item shift.open_date is exist - process it [16:51:09]req_shift_open_date [16:51:09]req_shift_open_date done [16:51:09]produce_requested_data done [16:51:09]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44705,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [16:51:09]process_action_free close_receipt [16:51:09]json_value_free [16:51:09]json_value_free done [16:51:09]process_json_proto returns [16:51:09]Send response to host [16:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44705,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [16:51:09]free response buf [16:51:09]execute_script done [16:51:09]execute_script returns [16:51:09]free content buf [16:51:09]Sock 9.Close socket [16:51:09]Sock 9.Thread stoped [16:51:10]OFD Sender: No OFD packet to send [16:51:12]int [16:51:12]Write to MH i2c: 01 00 00 1D 04 21 [16:51:12]*** FLAG_PRN_KEY set [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 1D 04 00 08 00 00 00 FF 0F 3E [16:51:12]state=0 [16:51:12]Key pressed [16:51:12]Feed [16:51:12]Write to MH i2c: D8 00 00 1E 04 F9 [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: D8 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: D8 01 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: D8 01 00 1E 04 00 FA [16:51:12]int line is 0 - check status [16:51:12]Write to MH i2c: 01 00 00 1F 04 23 [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 1F 04 00 48 00 00 00 3C 00 AE [16:51:12]state=2 [16:51:12]Key pressed [16:51:12]int [16:51:12]Write to MH i2c: 01 00 00 20 04 24 [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 20 04 00 48 00 00 00 3C 00 AF [16:51:12]state=2 [16:51:12]Key pressed [16:51:12]int [16:51:12]Write to MH i2c: 01 00 00 21 04 25 [16:51:12]*** FLAG_PRN_KEY reset [16:51:12]Write i2c OK [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 [16:51:12]MH_I2C_Read... [16:51:12]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [16:51:12]state=2 [16:51:12]Stop feed [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:00:57]accept exits with 10 [17:00:57]New connection [17:00:57]New thread 3067018596 created [17:00:57]Thread 3066875236 joined [17:00:57]Waiting for new connection... [17:00:57] Sock 10.Parse request [17:00:57]Sock 10.Check first char [17:00:57]Sock 10.First char is OK [17:00:57]request: POST /json_proto HTTP/1.0 [17:00:57]Method: POST [17:00:57]URL: /json_proto [17:00:57]Method is POST - this is cgi request [17:00:57]url: /json_proto [17:00:57]query_string will be loaded in cgi processing [17:00:57]execute_cgi json_proto POST (null) [17:00:57]execute_cgi path=json_proto method=POST [17:00:57]POST find Content-Length [17:00:57]Host: 172.17.45.196:8080 [17:00:57]Content-Length: 808 [17:00:57]Content-Type: application/json [17:00:57] [17:00:57]POST finish read [17:00:57]Found Content-Length = 808 [17:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14598", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:57]execute_script... [17:00:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14598", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:57]POST & json_proto [17:00:57]process_json_proto [17:00:57]json parsed OK: [17:00:57]protocol is kg_v1.0 [17:00:57]action value=close_receipt [17:00:57]process_action close_receipt [17:00:57]cmd_close_receipt [17:00:57]MH_GetDate [17:00:57]Write to MH i2c: F0 00 00 22 04 15 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 09 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 09 00 22 04 00 49 79 A6 66 BB 03 A5 66 B5 [17:00:57]GetLastDocTimeStamp 1722185466 [17:00:57]current date 1722186057 [17:00:57]FM_GetShiftState [17:00:57]SAM_PROTO_GetShiftState [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 13 01 00 [17:00:57]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0E 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3D [17:00:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:00:57]wFMCommunicate OK [17:00:57]SAM_PROTO_GetShiftState done [17:00:57]FM_GetShiftState done [17:00:57]opened in 1722126323 [17:00:57]opened+sec_in_day 1722212723 [17:00:57]quantity*price = 6000 [17:00:57]sum+1 = 6001 [17:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 77 28.07.2024 17:00 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44706 ФПД: 229078713332983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170057&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44706&fm=229078713332983&tin=02508201610067®Number=0000000000092655&sum=6000 0 [17:00:58]StoreToDocumentArchive [17:00:58]shift 430 fd 44706 [17:00:58]save to /storage/0430/doc_00044706 [17:00:58]save last doc name /storage/0430/doc_00044706 to /storage/kkm_last_doc_name [17:00:58]save OK [17:00:58]Clear old archive folders... [17:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:00:58]tlvbuf is 01680210 [17:00:58]SAM_PROTO_ClearQueue [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 09 00 00 [17:00:58]Write to MH i2c: E2 08 00 30 04 80 09 00 00 00 00 00 00 A6 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:58]Read from MH i2c: E2 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 03 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [17:00:58]RAPDU: 90 00 [17:00:58]wFMCommunicate OK [17:00:58]SAM_PROTO_ClearQueue done [17:00:58]KKMCreateOFDPacket [17:00:58]OFDProtocolAddRootSTLVToBuf [17:00:58]FM_MakeSignedData [17:00:58]FM_MakeSignedData [17:00:58]SAM_PROTO_SignData [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 0D 01 02 [17:00:58]Write to MH i2c: E2 08 00 31 04 80 0D 01 02 00 00 00 00 AE [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:58]Read from MH i2c: E2 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 03 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [17:00:58]RAPDU: 90 00 [17:00:58]wFMCommunicate OK [17:00:58]wFMCommunicate request_size=255 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 79 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:00:58]Write to MH i2c: E2 02 01 32 04 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 79 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A9 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]wFMCommunicate request_size=30 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 31 10 04 04 00 A2 AE 00 00 35 04 06 00 D0 58 8B 55 74 F7 [17:00:59]Write to MH i2c: E2 21 00 33 04 80 0D 02 02 19 00 30 38 37 34 39 34 31 10 04 04 00 A2 AE 00 00 35 04 06 00 D0 58 8B 55 74 F7 00 00 6E [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 03 02 [17:00:59]Write to MH i2c: E2 08 00 34 04 80 0D 03 02 00 00 00 00 B3 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0B 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0B 00 34 04 00 60 F1 9D 96 CC 89 7A 18 90 00 1F [17:00:59]RAPDU: 60 F1 9D 96 CC 89 7A 18 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_SignData done [17:00:59]FM_MakeSignedData done [17:00:59]CreateOFDProtocolMessage [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 11 00 00 [17:00:59]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 07 [17:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:00:59]wFMCommunicate OK [17:00:59]CreateOFDProtocolMessage done [17:00:59]OFDSenderStorePacket 44706 [17:00:59]StoreOFDPacket docnum=44706 [17:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 3C AA 1B 01 41 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 79 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A2 AE 00 00 35 04 06 00 D0 58 8B 55 74 F7 60 F1 9D 96 CC 89 7A 18 [17:00:59]CheckFolder [17:00:59]dirname=/storage/ofd_packets [17:00:59]CheckFolder done [17:00:59]ProducePacketName [17:00:59]name=ofd_packets/00044706 [17:00:59]NVStorageSaveData ofd_packets/00044706 [17:00:59]File name is /storage/ofd_packets/00044706 [17:00:59]Write 321 bytes [17:00:59]NVStorageSaveData done [17:00:59]OFDSenderStorePacket done [17:00:59]KKMCreateOFDPacket done [17:00:59]NVStorageSaveData kkm_last_timestamp [17:00:59]File name is /storage/kkm_last_timestamp [17:00:59]Write 4 bytes [17:00:59]NVStorageSaveData done [17:00:59]ExternCall_PrintAddStr [17:00:59]wPrintStart [17:00:59]Write to MH i2c: 01 00 00 36 04 3A [17:00:59]OFD Sender: Processing packet 44706 [packets to send 7, broken 6] [17:00:59]ProducePacketName [17:00:59]name=ofd_packets/00044706 [17:00:59]OFD Sender: To server: pG, [17:00:59]CommunicateWithHost lk.salyk.kg:30040 [17:00:59]ConnectInit lk.salyk.kg [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [17:00:59]RasterBufferAndPrint [17:00:59]line Счет N : (3)14598 [17:00:59]line ИНН: 02508201610067 [17:00:59]line Контрольно-Кассовый Чек [17:00:59]line ПРОДАЖА [17:00:59]line Товар: 4700000160204 [17:00:59]line Вода Легенда 1,5л [17:00:59]line 1.000 * 60.00 [17:00:59]line = 60.00 [17:00:59]line НДС 12% НСП 1% [17:00:59]line > о реализуемом товаре [17:00:59]line ИТОГО: 60.00 [17:00:59]line НСП 1% : 0.53 [17:00:59]line НДС 12% : 6.37 [17:00:59]line Наличными: 0.00 [17:00:59]line Безнал.: 60.00 [17:00:59]line Место: АЗС № 128 "Партнер Нефть" [17:00:59]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [17:00:59]line СНО: Общий режим [17:00:59]line Чек 77 28.07.2024 17:00 [17:00:59]line Смена: 430 ФФД: 1.0 [17:00:59]line ЗНМ: 0300000045 [17:00:59]line РНМ: 0000000000092655 [17:00:59]line Версия ККМ: 001 [17:00:59]line Платежная система: Бакай Банк [17:00:59]line ФМ: 0000000000874941 [17:00:59]line ФД: 44706 [17:00:59]line ФПД: 229078713332983 [17:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T170057&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44706&fm=229078713332983&tin=02508201610067®Number=0000000000092655&sum=6000 [17:00:59]line 0 [17:00:59]written 0, free lines is 4095 [17:00:59]Connected sock=8 [17:00:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 3C AA 1B 01 41 90 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 49 79 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A2 AE 00 00 35 04 06 00 D0 58 8B 55 74 F7 60 F1 9D 96 CC 89 7A 18 [17:00:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 32 E1 47 00 CF 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A2 AE 00 00 F4 03 04 00 5B 25 A6 66 B6 04 01 00 00 D0 4D 79 82 05 BF 16 8D [17:00:59]CommunicateWithHost err = 0 [17:00:59]CheckOFDResponse [17:00:59]1017 (14) - 77093643461234 [17:00:59]1041 (16) - 0000000000874941 [17:00:59]1040 (4) - 44706 [17:00:59]1012 (4) - 28.07.2024 11:02 [17:00:59]1206 (1) - 0 [17:00:59]OFD Sender: Remove packet 44706 [17:00:59]ProducePacketName [17:00:59]name=ofd_packets/00044706 [17:00:59]NVStorageDeleteData [17:00:59]Write to MH i2c: 01 00 00 60 04 64 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 60 04 00 00 00 00 00 D2 0C 49 [17:00:59]RasterBufferAndPrint [17:00:59]line [17:00:59]line [17:00:59]line [17:00:59]line [17:00:59]line [17:00:59]written 0, free lines is 3289 [17:00:59]process_action close_receipt done [17:00:59]requested_data is exist [17:00:59]produce_requested_data [17:00:59]requested_item fm.sn is exist - process it [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 11 00 00 [17:00:59]Write to MH i2c: E2 08 00 67 04 80 11 00 00 00 00 00 00 E5 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 67 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 39 [17:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:00:59]wFMCommunicate OK [17:00:59]requested_item fd.num is exist - process it [17:00:59]SAM_PROTO_GetFieldsCounters [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 00 00 [17:00:59]Write to MH i2c: E2 08 00 68 04 80 13 00 00 00 00 00 00 E8 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 68 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [17:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_GetFieldsCounters done [17:00:59]requested_item shift.num is exist - process it [17:00:59]requested_item shift.opened is exist - process it [17:00:59]req_shift_opened [17:00:59]FM_GetShiftState [17:00:59]SAM_PROTO_GetShiftState [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 01 00 [17:00:59]Write to MH i2c: E2 08 00 69 04 80 13 01 00 00 00 00 00 EA [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:00]Read from MH i2c: E2 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 69 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 83 [17:01:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:01:00]wFMCommunicate OK [17:01:00]SAM_PROTO_GetShiftState done [17:01:00]FM_GetShiftState done [17:01:00]req_shift_opened done [17:01:00]requested_item shift.open_date is exist - process it [17:01:00]req_shift_open_date [17:01:00]req_shift_open_date done [17:01:00]produce_requested_data done [17:01:00]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44706,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [17:01:00]process_action_free close_receipt [17:01:00]json_value_free [17:01:00]json_value_free done [17:01:00]process_json_proto returns [17:01:00]Send response to host [17:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44706,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [17:01:00]free response buf [17:01:00]execute_script done [17:01:00]execute_script returns [17:01:00]free content buf [17:01:00]Sock 10.Close socket [17:01:00]Sock 10.Thread stoped [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:42]accept exits with 9 [17:10:42]New connection [17:10:42]New thread 3066875236 created [17:10:42]Thread 3067018596 joined [17:10:42]Waiting for new connection... [17:10:42] Sock 9.Parse request [17:10:42]Sock 9.Check first char [17:10:42]Sock 9.First char is OK [17:10:42]request: POST /json_proto HTTP/1.0 [17:10:42]Method: POST [17:10:42]URL: /json_proto [17:10:42]Method is POST - this is cgi request [17:10:42]url: /json_proto [17:10:42]query_string will be loaded in cgi processing [17:10:42]execute_cgi json_proto POST (null) [17:10:42]execute_cgi path=json_proto method=POST [17:10:42]POST find Content-Length [17:10:42]Host: 172.17.45.196:8080 [17:10:42]Content-Length: 678 [17:10:42]Content-Type: application/json [17:10:42] [17:10:42]POST finish read [17:10:42]Found Content-Length = 678 [17:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14599", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:42]execute_script... [17:10:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14599", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:42]POST & json_proto [17:10:42]process_json_proto [17:10:42]json parsed OK: [17:10:42]protocol is kg_v1.0 [17:10:42]action value=close_receipt [17:10:42]process_action close_receipt [17:10:42]cmd_close_receipt [17:10:42]MH_GetDate [17:10:42]Write to MH i2c: F0 00 00 6A 04 5D [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: F0 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: F0 09 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: F0 09 00 6A 04 00 92 7B A6 66 BB 03 A5 66 48 [17:10:42]GetLastDocTimeStamp 1722186057 [17:10:42]current date 1722186642 [17:10:42]FM_GetShiftState [17:10:42]SAM_PROTO_GetShiftState [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 13 01 00 [17:10:42]Write to MH i2c: E2 08 00 6B 04 80 13 01 00 00 00 00 00 EC [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0E 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0E 00 6B 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 85 [17:10:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_GetShiftState done [17:10:42]FM_GetShiftState done [17:10:42]opened in 1722126323 [17:10:42]opened+sec_in_day 1722212723 [17:10:42]quantity*price = 8000 [17:10:42]sum+1 = 8001 [17:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 78 28.07.2024 17:10 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44707 ФПД: 214863003289237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171042&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44707&fm=214863003289237&tin=02508201610067®Number=0000000000092655&sum=8000 0 [17:10:43]StoreToDocumentArchive [17:10:43]shift 430 fd 44707 [17:10:43]save to /storage/0430/doc_00044707 [17:10:43]save last doc name /storage/0430/doc_00044707 to /storage/kkm_last_doc_name [17:10:43]save OK [17:10:43]Clear old archive folders... [17:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:10:43]tlvbuf is 01680C50 [17:10:43]SAM_PROTO_ClearQueue [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 09 00 00 [17:10:43]Write to MH i2c: E2 08 00 78 04 80 09 00 00 00 00 00 00 EE [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 03 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [17:10:43]RAPDU: 90 00 [17:10:43]wFMCommunicate OK [17:10:43]SAM_PROTO_ClearQueue done [17:10:43]KKMCreateOFDPacket [17:10:43]OFDProtocolAddRootSTLVToBuf [17:10:43]FM_MakeSignedData [17:10:43]FM_MakeSignedData [17:10:43]SAM_PROTO_SignData [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 0D 01 02 [17:10:43]Write to MH i2c: E2 08 00 79 04 80 0D 01 02 00 00 00 00 F6 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 03 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [17:10:43]RAPDU: 90 00 [17:10:43]wFMCommunicate OK [17:10:43]wFMCommunicate request_size=255 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 92 7B A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:10:43]Write to MH i2c: E2 02 01 7A 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 92 7B A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 0E [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:43]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=53 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A3 AE 00 00 35 04 06 00 C3 6A B0 FC 86 95 [17:10:44]Write to MH i2c: E2 38 00 7B 04 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A3 AE 00 00 35 04 06 00 C3 6A B0 FC 86 95 00 00 36 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [17:10:44]RAPDU: 90 00 [17:10:44]wFMCommunicate OK [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 0D 03 02 [17:10:44]Write to MH i2c: E2 08 00 7C 04 80 0D 03 02 00 00 00 00 FB [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0B 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0B 00 7C 04 00 EB 77 10 56 F8 AB 5C BA 90 00 7D [17:10:44]RAPDU: EB 77 10 56 F8 AB 5C BA 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_SignData done [17:10:44]FM_MakeSignedData done [17:10:44]CreateOFDProtocolMessage [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 11 00 00 [17:10:44]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4F [17:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:10:44]wFMCommunicate OK [17:10:44]CreateOFDProtocolMessage done [17:10:44]OFDSenderStorePacket 44707 [17:10:44]StoreOFDPacket docnum=44707 [17:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3A 01 00 00 10 1D 32 01 55 3C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 92 7B A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A3 AE 00 00 35 04 06 00 C3 6A B0 FC 86 95 EB 77 10 56 F8 AB 5C BA [17:10:44]CheckFolder [17:10:44]dirname=/storage/ofd_packets [17:10:44]CheckFolder done [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00044707 [17:10:44]NVStorageSaveData ofd_packets/00044707 [17:10:44]File name is /storage/ofd_packets/00044707 [17:10:44]Write 344 bytes [17:10:44]NVStorageSaveData done [17:10:44]OFDSenderStorePacket done [17:10:44]KKMCreateOFDPacket done [17:10:44]NVStorageSaveData kkm_last_timestamp [17:10:44]File name is /storage/kkm_last_timestamp [17:10:44]Write 4 bytes [17:10:44]NVStorageSaveData done [17:10:44]ExternCall_PrintAddStr [17:10:44]wPrintStart [17:10:44]Write to MH i2c: 01 00 00 7E 04 82 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 FF 0F 97 [17:10:44]RasterBufferAndPrint [17:10:44]line Счет N : (3)14599 [17:10:44]line ИНН: 02508201610067 [17:10:44]line Контрольно-Кассовый Чек [17:10:44]line ПРОДАЖА [17:10:44]line Товар: 4700003010353 [17:10:44]line Напиток Let`s Go! с/с груша ПЭТ 1л [17:10:44]line 1.000 * 80.00 [17:10:44]line = 80.00 [17:10:44]line НДС 12% НСП 1% [17:10:44]line > о реализуемом товаре [17:10:44]line ИТОГО: 80.00 [17:10:44]line НСП 1% : 0.71 [17:10:44]line НДС 12% : 8.50 [17:10:44]line Наличными: 80.00 [17:10:44]line Безнал.: 0.00 [17:10:44]line Место: АЗС № 128 "Партнер Нефть" [17:10:44]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [17:10:44]line СНО: Общий режим [17:10:44]line Чек 78 28.07.2024 17:10 [17:10:44]line Смена: 430 ФФД: 1.0 [17:10:44]line ЗНМ: 0300000045 [17:10:44]line РНМ: 0000000000092655 [17:10:44]line Версия ККМ: 001 [17:10:44]line ФМ: 0000000000874941 [17:10:44]line ФД: 44707 [17:10:44]line ФПД: 214863003289237 [17:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171042&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44707&fm=214863003289237&tin=02508201610067®Number=0000000000092655&sum=8000 [17:10:44]OFD Sender: Processing packet 44707 [packets to send 7, broken 6] [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00044707 [17:10:44]OFD Sender: To server: pG, [17:10:44]CommunicateWithHost lk.salyk.kg:30040 [17:10:44]ConnectInit lk.salyk.kg [17:10:44]line 0 [17:10:44]written 0, free lines is 4095 [17:10:44]Connected sock=11 [17:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3A 01 00 00 10 1D 32 01 55 3C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 92 7B A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A3 AE 00 00 35 04 06 00 C3 6A B0 FC 86 95 EB 77 10 56 F8 AB 5C BA [17:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 BC 2E 47 00 8A BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A3 AE 00 00 F4 03 04 00 A4 27 A6 66 B6 04 01 00 00 B3 AD 0D C5 BC 35 DA 43 [17:10:44]CommunicateWithHost err = 0 [17:10:44]CheckOFDResponse [17:10:44]1017 (14) - 77093643461234 [17:10:44]1041 (16) - 0000000000874941 [17:10:44]1040 (4) - 44707 [17:10:44]1012 (4) - 28.07.2024 11:12 [17:10:44]1206 (1) - 0 [17:10:44]OFD Sender: Remove packet 44707 [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00044707 [17:10:44]NVStorageDeleteData [17:10:44]Write to MH i2c: 01 00 00 A7 04 AB [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 DD 0C 9B [17:10:44]RasterBufferAndPrint [17:10:44]line [17:10:44]line [17:10:44]line [17:10:44]line [17:10:44]line [17:10:44]written 0, free lines is 3299 [17:10:44]process_action close_receipt done [17:10:44]requested_data is exist [17:10:44]produce_requested_data [17:10:44]requested_item fm.sn is exist - process it [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 11 00 00 [17:10:44]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 17 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 80 [17:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:10:45]wFMCommunicate OK [17:10:45]requested_item fd.num is exist - process it [17:10:45]SAM_PROTO_GetFieldsCounters [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 13 00 00 [17:10:45]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 62 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:45]wFMCommunicate OK [17:10:45]SAM_PROTO_GetFieldsCounters done [17:10:45]requested_item shift.num is exist - process it [17:10:45]requested_item shift.opened is exist - process it [17:10:45]req_shift_opened [17:10:45]FM_GetShiftState [17:10:45]SAM_PROTO_GetShiftState [17:10:45]wFMCommunicate request_size=4 [17:10:45]MH_SAM_APDU [17:10:45]CAPDU: 80 13 01 00 [17:10:45]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [17:10:45]Write i2c OK [17:10:45]MH_I2C_Read... [17:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:45]Read from MH i2c: E2 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 0E 00 [17:10:45]MH_I2C_Read... [17:10:45]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CA [17:10:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:10:45]wFMCommunicate OK [17:10:45]SAM_PROTO_GetShiftState done [17:10:45]FM_GetShiftState done [17:10:45]req_shift_opened done [17:10:45]requested_item shift.open_date is exist - process it [17:10:45]req_shift_open_date [17:10:45]req_shift_open_date done [17:10:45]produce_requested_data done [17:10:45]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44707,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [17:10:45]process_action_free close_receipt [17:10:45]json_value_free [17:10:45]json_value_free done [17:10:45]process_json_proto returns [17:10:45]Send response to host [17:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44707,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [17:10:45]free response buf [17:10:45]execute_script done [17:10:45]execute_script returns [17:10:45]free content buf [17:10:45]Sock 9.Close socket [17:10:45]Sock 9.Thread stoped [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:52]int [17:10:52]Write to MH i2c: 01 00 00 B1 04 B5 [17:10:52]*** FLAG_PRN_KEY set [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 B1 04 00 08 00 00 00 FF 0F D2 [17:10:52]state=0 [17:10:52]Key pressed [17:10:52]Feed [17:10:52]Write to MH i2c: D8 00 00 B2 04 8D [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D8 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D8 01 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D8 01 00 B2 04 00 8E [17:10:52]int [17:10:52]Write to MH i2c: 01 00 00 B3 04 B7 [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 B3 04 00 48 00 00 00 3D 00 43 [17:10:52]state=2 [17:10:52]Key pressed [17:10:52]int [17:10:52]Write to MH i2c: 01 00 00 B4 04 B8 [17:10:52]*** FLAG_PRN_KEY reset [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [17:10:52]state=2 [17:10:52]Stop feed [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:53]accept exits with 8 [17:15:53]New connection [17:15:53]New thread 3067018596 created [17:15:53]Thread 3066875236 joined [17:15:53]Waiting for new connection... [17:15:53] Sock 8.Parse request [17:15:53]Sock 8.Check first char [17:15:53]Sock 8.First char is OK [17:15:53]request: POST /json_proto HTTP/1.0 [17:15:53]Method: POST [17:15:53]URL: /json_proto [17:15:53]Method is POST - this is cgi request [17:15:53]url: /json_proto [17:15:53]query_string will be loaded in cgi processing [17:15:53]execute_cgi json_proto POST (null) [17:15:53]execute_cgi path=json_proto method=POST [17:15:53]POST find Content-Length [17:15:53]Host: 172.17.45.196:8080 [17:15:53]Content-Length: 801 [17:15:53]Content-Type: application/json [17:15:53] [17:15:53]POST finish read [17:15:53]Found Content-Length = 801 [17:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14600", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:53]execute_script... [17:15:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14600", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:53]POST & json_proto [17:15:53]process_json_proto [17:15:53]json parsed OK: [17:15:53]protocol is kg_v1.0 [17:15:53]action value=close_receipt [17:15:53]process_action close_receipt [17:15:53]cmd_close_receipt [17:15:53]MH_GetDate [17:15:53]Write to MH i2c: F0 00 00 B5 04 A8 [17:15:53]Write i2c OK [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: F0 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: F0 09 00 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: F0 09 00 B5 04 00 C9 7C A6 66 BB 03 A5 66 CB [17:15:53]GetLastDocTimeStamp 1722186642 [17:15:53]current date 1722186953 [17:15:53]FM_GetShiftState [17:15:53]SAM_PROTO_GetShiftState [17:15:53]wFMCommunicate request_size=4 [17:15:53]MH_SAM_APDU [17:15:53]CAPDU: 80 13 01 00 [17:15:53]Write to MH i2c: E2 08 00 B6 04 80 13 01 00 00 00 00 00 37 [17:15:53]Write i2c OK [17:15:53]MH_I2C_Read... [17:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:53]Read from MH i2c: E2 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 0E 00 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 0E 00 B6 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D0 [17:15:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:15:53]wFMCommunicate OK [17:15:53]SAM_PROTO_GetShiftState done [17:15:53]FM_GetShiftState done [17:15:53]opened in 1722126323 [17:15:53]opened+sec_in_day 1722212723 [17:15:53]quantity*price = 6000 [17:15:53]sum+1 = 6001 [17:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 79 28.07.2024 17:15 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44708 ФПД: 79228110747806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171553&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44708&fm=79228110747806&tin=02508201610067®Number=0000000000092655&sum=6000 0 [17:15:54]StoreToDocumentArchive [17:15:54]shift 430 fd 44708 [17:15:54]save to /storage/0430/doc_00044708 [17:15:54]save last doc name /storage/0430/doc_00044708 to /storage/kkm_last_doc_name [17:15:54]save OK [17:15:54]Clear old archive folders... [17:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=268 [17:15:54]tlvbuf is B6DB8540 [17:15:54]SAM_PROTO_ClearQueue [17:15:54]wFMCommunicate request_size=4 [17:15:54]MH_SAM_APDU [17:15:54]CAPDU: 80 09 00 00 [17:15:54]Write to MH i2c: E2 08 00 C3 04 80 09 00 00 00 00 00 00 39 [17:15:54]Write i2c OK [17:15:54]MH_I2C_Read... [17:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:54]Read from MH i2c: E2 [17:15:54]MH_I2C_Read... [17:15:54]Read from MH i2c: E2 03 00 [17:15:54]MH_I2C_Read... [17:15:54]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [17:15:54]RAPDU: 90 00 [17:15:54]wFMCommunicate OK [17:15:54]SAM_PROTO_ClearQueue done [17:15:54]KKMCreateOFDPacket [17:15:54]OFDProtocolAddRootSTLVToBuf [17:15:54]FM_MakeSignedData [17:15:54]FM_MakeSignedData [17:15:54]SAM_PROTO_SignData [17:15:54]wFMCommunicate request_size=4 [17:15:54]MH_SAM_APDU [17:15:54]CAPDU: 80 0D 01 02 [17:15:54]Write to MH i2c: E2 08 00 C4 04 80 0D 01 02 00 00 00 00 41 [17:15:54]Write i2c OK [17:15:54]MH_I2C_Read... [17:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:54]Read from MH i2c: E2 [17:15:54]MH_I2C_Read... [17:15:54]Read from MH i2c: E2 03 00 [17:15:54]MH_I2C_Read... [17:15:54]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [17:15:54]RAPDU: 90 00 [17:15:54]wFMCommunicate OK [17:15:54]wFMCommunicate request_size=255 [17:15:54]MH_SAM_APDU [17:15:54]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C9 7C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [17:15:54]Write to MH i2c: E2 02 01 C5 04 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C9 7C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 91 [17:15:54]Write i2c OK [17:15:54]MH_I2C_Read... [17:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:55]Read from MH i2c: E2 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 03 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [17:15:55]RAPDU: 90 00 [17:15:55]wFMCommunicate OK [17:15:55]wFMCommunicate request_size=27 [17:15:55]MH_SAM_APDU [17:15:55]CAPDU: 80 0D 02 02 16 34 39 34 31 10 04 04 00 A4 AE 00 00 35 04 06 00 48 0E BB 65 B8 9E [17:15:55]Write to MH i2c: E2 1E 00 C6 04 80 0D 02 02 16 00 34 39 34 31 10 04 04 00 A4 AE 00 00 35 04 06 00 48 0E BB 65 B8 9E 00 00 B7 [17:15:55]Write i2c OK [17:15:55]MH_I2C_Read... [17:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:55]Read from MH i2c: E2 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 03 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [17:15:55]RAPDU: 90 00 [17:15:55]wFMCommunicate OK [17:15:55]wFMCommunicate request_size=4 [17:15:55]MH_SAM_APDU [17:15:55]CAPDU: 80 0D 03 02 [17:15:55]Write to MH i2c: E2 08 00 C7 04 80 0D 03 02 00 00 00 00 46 [17:15:55]Write i2c OK [17:15:55]MH_I2C_Read... [17:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:55]Read from MH i2c: E2 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 0B 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 0B 00 C7 04 00 7B DB 8A C0 92 10 5F B9 90 00 A1 [17:15:55]RAPDU: 7B DB 8A C0 92 10 5F B9 90 00 [17:15:55]wFMCommunicate OK [17:15:55]SAM_PROTO_SignData done [17:15:55]FM_MakeSignedData done [17:15:55]CreateOFDProtocolMessage [17:15:55]wFMCommunicate request_size=4 [17:15:55]MH_SAM_APDU [17:15:55]CAPDU: 80 11 00 00 [17:15:55]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [17:15:55]Write i2c OK [17:15:55]MH_I2C_Read... [17:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:55]Read from MH i2c: E2 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 17 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9A [17:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:15:55]wFMCommunicate OK [17:15:55]CreateOFDProtocolMessage done [17:15:55]OFDSenderStorePacket 44708 [17:15:55]StoreOFDPacket docnum=44708 [17:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 32 38 18 01 B8 83 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C9 7C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A4 AE 00 00 35 04 06 00 48 0E BB 65 B8 9E 7B DB 8A C0 92 10 5F B9 [17:15:55]CheckFolder [17:15:55]dirname=/storage/ofd_packets [17:15:55]CheckFolder done [17:15:55]ProducePacketName [17:15:55]name=ofd_packets/00044708 [17:15:55]NVStorageSaveData ofd_packets/00044708 [17:15:55]File name is /storage/ofd_packets/00044708 [17:15:55]Write 318 bytes [17:15:55]NVStorageSaveData done [17:15:55]OFDSenderStorePacket done [17:15:55]KKMCreateOFDPacket done [17:15:55]NVStorageSaveData kkm_last_timestamp [17:15:55]File name is /storage/kkm_last_timestamp [17:15:55]Write 4 bytes [17:15:55]NVStorageSaveData done [17:15:55]ExternCall_PrintAddStr [17:15:55]wPrintStart [17:15:55]Write to MH i2c: 01 00 00 C9 04 CD [17:15:55]Write i2c OK [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 07 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [17:15:55]RasterBufferAndPrint [17:15:55]line Счет N : (3)14600 [17:15:55]line ИНН: 02508201610067 [17:15:55]line Контрольно-Кассовый Чек [17:15:55]line ПРОДАЖА [17:15:55]line Товар: 4700003610560 [17:15:55]line Вода Энесай 5л. [17:15:55]line 1.000 * 60.00 [17:15:55]line = 60.00 [17:15:55]line НДС 12% НСП 1% [17:15:55]line > о реализуемом товаре [17:15:55]line ИТОГО: 60.00 [17:15:55]line НСП 1% : 0.53 [17:15:55]line НДС 12% : 6.37 [17:15:55]line Наличными: 0.00 [17:15:55]line Безнал.: 60.00 [17:15:55]line Место: АЗС № 128 "Партнер Нефть" [17:15:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [17:15:55]line СНО: Общий режим [17:15:55]line Чек 79 28.07.2024 17:15 [17:15:55]line Смена: 430 ФФД: 1.0 [17:15:55]line ЗНМ: 0300000045 [17:15:55]line РНМ: 0000000000092655 [17:15:55]line Версия ККМ: 001 [17:15:55]line Платежная система: Бакай Банк [17:15:55]line ФМ: 0000000000874941 [17:15:55]line ФД: 44708 [17:15:55]line ФПД: 79228110747806 [17:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171553&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44708&fm=79228110747806&tin=02508201610067®Number=0000000000092655&sum=6000 [17:15:55]line 0 [17:15:55]OFD Sender: Processing packet 44708 [packets to send 7, broken 6] [17:15:55]ProducePacketName [17:15:55]name=ofd_packets/00044708 [17:15:55]OFD Sender: To server: pG, [17:15:55]CommunicateWithHost lk.salyk.kg:30040 [17:15:55]ConnectInit lk.salyk.kg [17:15:55]written 0, free lines is 4095 [17:15:55]Connected sock=10 [17:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 20 01 00 00 32 38 18 01 B8 83 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C9 7C A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A4 AE 00 00 35 04 06 00 48 0E BB 65 B8 9E 7B DB 8A C0 92 10 5F B9 [17:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 BD 2F 47 00 BA B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A4 AE 00 00 F4 03 04 00 DB 28 A6 66 B6 04 01 00 00 79 B7 DF 86 E0 17 19 07 [17:15:55]CommunicateWithHost err = 0 [17:15:55]CheckOFDResponse [17:15:55]1017 (14) - 77093643461234 [17:15:55]1041 (16) - 0000000000874941 [17:15:55]1040 (4) - 44708 [17:15:55]1012 (4) - 28.07.2024 11:17 [17:15:55]1206 (1) - 0 [17:15:55]OFD Sender: Remove packet 44708 [17:15:55]ProducePacketName [17:15:55]name=ofd_packets/00044708 [17:15:55]NVStorageDeleteData [17:15:55]Write to MH i2c: 01 00 00 F3 04 F7 [17:15:55]Write i2c OK [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 07 00 [17:15:55]MH_I2C_Read... [17:15:55]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 DB 0C E5 [17:15:55]RasterBufferAndPrint [17:15:55]line [17:15:55]line [17:15:55]line [17:15:55]line [17:15:55]line [17:15:55]written 0, free lines is 3296 [17:15:56]process_action close_receipt done [17:15:56]requested_data is exist [17:15:56]produce_requested_data [17:15:56]requested_item fm.sn is exist - process it [17:15:56]wFMCommunicate request_size=4 [17:15:56]MH_SAM_APDU [17:15:56]CAPDU: 80 11 00 00 [17:15:56]Write to MH i2c: E2 08 00 FA 04 80 11 00 00 00 00 00 00 78 [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:56]Read from MH i2c: E2 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 17 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 17 00 FA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CC [17:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:15:56]wFMCommunicate OK [17:15:56]requested_item fd.num is exist - process it [17:15:56]SAM_PROTO_GetFieldsCounters [17:15:56]wFMCommunicate request_size=4 [17:15:56]MH_SAM_APDU [17:15:56]CAPDU: 80 13 00 00 [17:15:56]Write to MH i2c: E2 08 00 FB 04 80 13 00 00 00 00 00 00 7B [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:56]Read from MH i2c: E2 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 62 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 62 00 FB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:56]wFMCommunicate OK [17:15:56]SAM_PROTO_GetFieldsCounters done [17:15:56]requested_item shift.num is exist - process it [17:15:56]requested_item shift.opened is exist - process it [17:15:56]req_shift_opened [17:15:56]FM_GetShiftState [17:15:56]SAM_PROTO_GetShiftState [17:15:56]wFMCommunicate request_size=4 [17:15:56]MH_SAM_APDU [17:15:56]CAPDU: 80 13 01 00 [17:15:56]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [17:15:56]Write i2c OK [17:15:56]MH_I2C_Read... [17:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:56]Read from MH i2c: E2 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 0E 00 [17:15:56]MH_I2C_Read... [17:15:56]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 16 [17:15:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:15:56]wFMCommunicate OK [17:15:56]SAM_PROTO_GetShiftState done [17:15:56]FM_GetShiftState done [17:15:56]req_shift_opened done [17:15:56]requested_item shift.open_date is exist - process it [17:15:56]req_shift_open_date [17:15:56]req_shift_open_date done [17:15:56]produce_requested_data done [17:15:56]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44708,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [17:15:56]process_action_free close_receipt [17:15:56]json_value_free [17:15:56]json_value_free done [17:15:56]process_json_proto returns [17:15:56]Send response to host [17:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44708,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [17:15:56]free response buf [17:15:56]execute_script done [17:15:56]execute_script returns [17:15:56]free content buf [17:15:56]Sock 8.Close socket [17:15:56]Sock 8.Thread stoped [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:24]accept exits with 9 [17:18:24]New connection [17:18:24]New thread 3066875236 created [17:18:24]Thread 3067018596 joined [17:18:24]Waiting for new connection... [17:18:24] Sock 9.Parse request [17:18:24]Sock 9.Check first char [17:18:24]Sock 9.First char is OK [17:18:24]request: POST /json_proto HTTP/1.0 [17:18:24]Method: POST [17:18:24]URL: /json_proto [17:18:24]Method is POST - this is cgi request [17:18:24]url: /json_proto [17:18:24]query_string will be loaded in cgi processing [17:18:24]execute_cgi json_proto POST (null) [17:18:24]execute_cgi path=json_proto method=POST [17:18:24]POST find Content-Length [17:18:24]Host: 172.17.45.196:8080 [17:18:24]Content-Length: 662 [17:18:24]Content-Type: application/json [17:18:24] [17:18:24]POST finish read [17:18:24]Found Content-Length = 662 [17:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14601", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:24]execute_script... [17:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14601", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:24]POST & json_proto [17:18:24]process_json_proto [17:18:24]json parsed OK: [17:18:24]protocol is kg_v1.0 [17:18:24]action value=close_receipt [17:18:24]process_action close_receipt [17:18:24]cmd_close_receipt [17:18:24]MH_GetDate [17:18:24]Write to MH i2c: F0 00 00 FD 04 F0 [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: F0 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: F0 09 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: F0 09 00 FD 04 00 60 7D A6 66 BB 03 A5 66 AB [17:18:24]GetLastDocTimeStamp 1722186953 [17:18:24]current date 1722187104 [17:18:24]FM_GetShiftState [17:18:24]SAM_PROTO_GetShiftState [17:18:24]wFMCommunicate request_size=4 [17:18:24]MH_SAM_APDU [17:18:24]CAPDU: 80 13 01 00 [17:18:24]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [17:18:24]Write i2c OK [17:18:24]MH_I2C_Read... [17:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:24]Read from MH i2c: E2 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 0E 00 [17:18:24]MH_I2C_Read... [17:18:24]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 18 [17:18:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:18:24]wFMCommunicate OK [17:18:24]SAM_PROTO_GetShiftState done [17:18:24]FM_GetShiftState done [17:18:24]opened in 1722126323 [17:18:24]opened+sec_in_day 1722212723 [17:18:24]quantity*price = 18000 [17:18:24]sum+1 = 18001 [17:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 80 28.07.2024 17:18 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44709 ФПД: 187217574439289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171824&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44709&fm=187217574439289&tin=02508201610067®Number=0000000000092655&sum=18000 0 [17:18:25]StoreToDocumentArchive [17:18:25]shift 430 fd 44709 [17:18:25]save to /storage/0430/doc_00044709 [17:18:25]save last doc name /storage/0430/doc_00044709 to /storage/kkm_last_doc_name [17:18:25]save OK [17:18:25]Clear old archive folders... [17:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=287 [17:18:25]tlvbuf is 01510200 [17:18:25]SAM_PROTO_ClearQueue [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 09 00 00 [17:18:25]Write to MH i2c: E2 08 00 0B 05 80 09 00 00 00 00 00 00 82 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:25]Read from MH i2c: E2 03 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [17:18:25]RAPDU: 90 00 [17:18:25]wFMCommunicate OK [17:18:25]SAM_PROTO_ClearQueue done [17:18:25]KKMCreateOFDPacket [17:18:25]OFDProtocolAddRootSTLVToBuf [17:18:25]FM_MakeSignedData [17:18:25]FM_MakeSignedData [17:18:25]SAM_PROTO_SignData [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 0D 01 02 [17:18:25]Write to MH i2c: E2 08 00 0C 05 80 0D 01 02 00 00 00 00 8A [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 03 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [17:18:25]RAPDU: 90 00 [17:18:25]wFMCommunicate OK [17:18:25]wFMCommunicate request_size=255 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 7D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [17:18:25]Write to MH i2c: E2 02 01 0D 05 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 7D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 18 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 03 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [17:18:26]RAPDU: 90 00 [17:18:26]wFMCommunicate OK [17:18:26]wFMCommunicate request_size=46 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 0D 02 02 29 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A5 AE 00 00 35 04 06 00 AA 45 FD 05 29 79 [17:18:26]Write to MH i2c: E2 31 00 0E 05 80 0D 02 02 29 00 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A5 AE 00 00 35 04 06 00 AA 45 FD 05 29 79 00 00 02 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 03 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [17:18:26]RAPDU: 90 00 [17:18:26]wFMCommunicate OK [17:18:26]wFMCommunicate request_size=4 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 0D 03 02 [17:18:26]Write to MH i2c: E2 08 00 0F 05 80 0D 03 02 00 00 00 00 8F [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 0B 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 0B 00 0F 05 00 46 87 3C 63 44 38 A5 16 90 00 33 [17:18:26]RAPDU: 46 87 3C 63 44 38 A5 16 90 00 [17:18:26]wFMCommunicate OK [17:18:26]SAM_PROTO_SignData done [17:18:26]FM_MakeSignedData done [17:18:26]CreateOFDProtocolMessage [17:18:26]wFMCommunicate request_size=4 [17:18:26]MH_SAM_APDU [17:18:26]CAPDU: 80 11 00 00 [17:18:26]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:26]Read from MH i2c: E2 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 17 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E3 [17:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:18:26]wFMCommunicate OK [17:18:26]CreateOFDProtocolMessage done [17:18:26]OFDSenderStorePacket 44709 [17:18:26]StoreOFDPacket docnum=44709 [17:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 33 01 00 00 23 1E 2B 01 68 1B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 7D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A5 AE 00 00 35 04 06 00 AA 45 FD 05 29 79 46 87 3C 63 44 38 A5 16 [17:18:26]CheckFolder [17:18:26]dirname=/storage/ofd_packets [17:18:26]CheckFolder done [17:18:26]ProducePacketName [17:18:26]name=ofd_packets/00044709 [17:18:26]NVStorageSaveData ofd_packets/00044709 [17:18:26]File name is /storage/ofd_packets/00044709 [17:18:26]Write 337 bytes [17:18:26]NVStorageSaveData done [17:18:26]OFDSenderStorePacket done [17:18:26]KKMCreateOFDPacket done [17:18:26]NVStorageSaveData kkm_last_timestamp [17:18:26]File name is /storage/kkm_last_timestamp [17:18:26]Write 4 bytes [17:18:26]NVStorageSaveData done [17:18:26]ExternCall_PrintAddStr [17:18:26]wPrintStart [17:18:26]Write to MH i2c: 01 00 00 11 05 16 [17:18:26]Write i2c OK [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: 01 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: 01 07 00 [17:18:26]MH_I2C_Read... [17:18:26]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [17:18:26]RasterBufferAndPrint [17:18:26]line Счет N : (3)14601 [17:18:26]line ИНН: 02508201610067 [17:18:26]line Контрольно-Кассовый Чек [17:18:26]line ПРОДАЖА [17:18:26]line Товар: 5449000176448 [17:18:26]line Сок Piko Pulpy апельсин ПЭТ 1л [17:18:26]line 1.000 * 180.00 [17:18:26]line = 180.00 [17:18:26]line НДС 12% НСП 1% [17:18:26]line > о реализуемом товаре [17:18:26]line ИТОГО: 180.00 [17:18:26]line НСП 1% : 1.59 [17:18:26]line НДС 12% : 19.11 [17:18:26]line Наличными: 180.00 [17:18:26]line Безнал.: 0.00 [17:18:26]line Место: АЗС № 128 "Партнер Нефть" [17:18:26]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [17:18:26]line СНО: Общий режим [17:18:26]line Чек 80 28.07.2024 17:18 [17:18:26]line Смена: 430 ФФД: 1.0 [17:18:26]line ЗНМ: 0300000045 [17:18:26]line РНМ: 0000000000092655 [17:18:26]line Версия ККМ: 001 [17:18:26]line ФМ: 0000000000874941 [17:18:26]line ФД: 44709 [17:18:26]line ФПД: 187217574439289 [17:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T171824&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44709&fm=187217574439289&tin=02508201610067®Number=0000000000092655&sum=18000 [17:18:26]line 0 [17:18:26]OFD Sender: Processing packet 44709 [packets to send 7, broken 6] [17:18:26]ProducePacketName [17:18:26]name=ofd_packets/00044709 [17:18:26]OFD Sender: To server: pG, [17:18:26]CommunicateWithHost lk.salyk.kg:30040 [17:18:26]ConnectInit lk.salyk.kg [17:18:26]written 0, free lines is 4095 [17:18:26]Connected sock=10 [17:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 33 01 00 00 23 1E 2B 01 68 1B 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 60 7D A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A5 AE 00 00 35 04 06 00 AA 45 FD 05 29 79 46 87 3C 63 44 38 A5 16 [17:18:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A0 C4 47 00 C4 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A5 AE 00 00 F4 03 04 00 73 29 A6 66 B6 04 01 00 00 7E 65 66 90 B2 08 01 48 [17:18:26]CommunicateWithHost err = 0 [17:18:26]CheckOFDResponse [17:18:26]1017 (14) - 77093643461234 [17:18:26]1041 (16) - 0000000000874941 [17:18:26]1040 (4) - 44709 [17:18:26]1012 (4) - 28.07.2024 11:20 [17:18:26]1206 (1) - 0 [17:18:26]OFD Sender: Remove packet 44709 [17:18:26]ProducePacketName [17:18:26]name=ofd_packets/00044709 [17:18:26]NVStorageDeleteData [17:18:27]Write to MH i2c: 01 00 00 3A 05 3F [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: 01 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: 01 07 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 DE 0C 30 [17:18:27]RasterBufferAndPrint [17:18:27]line [17:18:27]line [17:18:27]line [17:18:27]line [17:18:27]line [17:18:27]written 0, free lines is 3300 [17:18:27]process_action close_receipt done [17:18:27]requested_data is exist [17:18:27]produce_requested_data [17:18:27]requested_item fm.sn is exist - process it [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 11 00 00 [17:18:27]Write to MH i2c: E2 08 00 41 05 80 11 00 00 00 00 00 00 C0 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 17 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 17 00 41 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 14 [17:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:18:27]wFMCommunicate OK [17:18:27]requested_item fd.num is exist - process it [17:18:27]SAM_PROTO_GetFieldsCounters [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 13 00 00 [17:18:27]Write to MH i2c: E2 08 00 42 05 80 13 00 00 00 00 00 00 C3 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 62 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 62 00 42 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [17:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:27]wFMCommunicate OK [17:18:27]SAM_PROTO_GetFieldsCounters done [17:18:27]requested_item shift.num is exist - process it [17:18:27]requested_item shift.opened is exist - process it [17:18:27]req_shift_opened [17:18:27]FM_GetShiftState [17:18:27]SAM_PROTO_GetShiftState [17:18:27]wFMCommunicate request_size=4 [17:18:27]MH_SAM_APDU [17:18:27]CAPDU: 80 13 01 00 [17:18:27]Write to MH i2c: E2 08 00 43 05 80 13 01 00 00 00 00 00 C5 [17:18:27]Write i2c OK [17:18:27]MH_I2C_Read... [17:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:27]Read from MH i2c: E2 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 0E 00 [17:18:27]MH_I2C_Read... [17:18:27]Read from MH i2c: E2 0E 00 43 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5E [17:18:27]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:18:27]wFMCommunicate OK [17:18:27]SAM_PROTO_GetShiftState done [17:18:27]FM_GetShiftState done [17:18:27]req_shift_opened done [17:18:27]requested_item shift.open_date is exist - process it [17:18:27]req_shift_open_date [17:18:27]req_shift_open_date done [17:18:27]produce_requested_data done [17:18:27]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44709,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [17:18:27]process_action_free close_receipt [17:18:27]json_value_free [17:18:27]json_value_free done [17:18:27]process_json_proto returns [17:18:27]Send response to host [17:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44709,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [17:18:27]free response buf [17:18:27]execute_script done [17:18:27]execute_script returns [17:18:27]free content buf [17:18:27]Sock 9.Close socket [17:18:27]Sock 9.Thread stoped [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:03]int [17:21:03]Write to MH i2c: 01 00 00 44 05 49 [17:21:03]*** FLAG_PRN_KEY set [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 44 05 00 08 00 00 00 FF 0F 66 [17:21:03]state=0 [17:21:03]Key pressed [17:21:03]Feed [17:21:03]Write to MH i2c: D8 00 00 45 05 21 [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: D8 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: D8 01 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: D8 01 00 45 05 00 22 [17:21:03]int [17:21:03]Write to MH i2c: 01 00 00 46 05 4B [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 46 05 00 48 00 00 00 3D 00 D7 [17:21:03]state=2 [17:21:03]Key pressed [17:21:03]int [17:21:03]Write to MH i2c: 01 00 00 47 05 4C [17:21:03]*** FLAG_PRN_KEY reset [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 F6 0F 58 [17:21:03]state=2 [17:21:03]Stop feed [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:52]accept exits with 8 [17:23:52]New connection [17:23:52]New thread 3067018596 created [17:23:52]Thread 3066875236 joined [17:23:52]Waiting for new connection... [17:23:52] Sock 8.Parse request [17:23:52]Sock 8.Check first char [17:23:52]Sock 8.First char is OK [17:23:52]request: POST /json_proto HTTP/1.0 [17:23:52]Method: POST [17:23:52]URL: /json_proto [17:23:52]Method is POST - this is cgi request [17:23:52]url: /json_proto [17:23:52]query_string will be loaded in cgi processing [17:23:52]execute_cgi json_proto POST (null) [17:23:52]execute_cgi path=json_proto method=POST [17:23:52]POST find Content-Length [17:23:52]Host: 172.17.45.196:8080 [17:23:52]Content-Length: 1188 [17:23:52]Content-Type: application/json [17:23:52] [17:23:52]POST finish read [17:23:52]Found Content-Length = 1188 [17:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14602", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 426.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]execute_script... [17:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14602", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 426.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]POST & json_proto [17:23:52]process_json_proto [17:23:52]json parsed OK: [17:23:52]protocol is kg_v1.0 [17:23:52]action value=close_receipt [17:23:52]process_action close_receipt [17:23:52]cmd_close_receipt [17:23:52]MH_GetDate [17:23:52]Write to MH i2c: F0 00 00 48 05 3C [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 48 05 00 A9 7E A6 66 BB 03 A5 66 41 [17:23:52]GetLastDocTimeStamp 1722187104 [17:23:52]current date 1722187433 [17:23:52]FM_GetShiftState [17:23:52]SAM_PROTO_GetShiftState [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 13 01 00 [17:23:52]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 64 [17:23:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_GetShiftState done [17:23:52]FM_GetShiftState done [17:23:52]opened in 1722126323 [17:23:52]opened+sec_in_day 1722212723 [17:23:52]quantity*price = 36000 [17:23:52]sum+1 = 36001 [17:23:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 1.000 * 17.00 = 17.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030024 Курут копченный 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 426.00 НСП 1% : 3.77 НДС 12% : 45.23 Наличными: 426.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 81 28.07.2024 17:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44710 ФПД: 85237359440945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172353&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44710&fm=85237359440945&tin=02508201610067®Number=0000000000092655&sum=42600 0 [17:23:53]StoreToDocumentArchive [17:23:53]shift 430 fd 44710 [17:23:53]save to /storage/0430/doc_00044710 [17:23:53]save last doc name /storage/0430/doc_00044710 to /storage/kkm_last_doc_name [17:23:53]save OK [17:23:53]Clear old archive folders... [17:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=493 [17:23:53]tlvbuf is 014D95B0 [17:23:53]SAM_PROTO_ClearQueue [17:23:53]wFMCommunicate request_size=4 [17:23:53]MH_SAM_APDU [17:23:53]CAPDU: 80 09 00 00 [17:23:53]Write to MH i2c: E2 08 00 56 05 80 09 00 00 00 00 00 00 CD [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_ClearQueue done [17:23:54]KKMCreateOFDPacket [17:23:54]OFDProtocolAddRootSTLVToBuf [17:23:54]FM_MakeSignedData [17:23:54]FM_MakeSignedData [17:23:54]SAM_PROTO_SignData [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 01 02 [17:23:54]Write to MH i2c: E2 08 00 57 05 80 0D 01 02 00 00 00 00 D5 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=255 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 02 02 FA 03 00 ED 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 [17:23:54]Write to MH i2c: E2 02 01 58 05 80 0D 02 02 FA 00 03 00 ED 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 00 00 88 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=252 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 02 02 F7 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 11 00 00 00 00 07 04 06 00 68 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 7E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A6 AE 00 00 35 04 06 00 4D 85 DE 87 F4 31 [17:23:54]Write to MH i2c: E2 FF 00 59 05 80 0D 02 02 F7 00 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 11 00 00 00 00 07 04 06 00 68 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 7E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A6 AE 00 00 35 04 06 00 4D 85 DE 87 F4 31 00 00 9E [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 03 02 [17:23:54]Write to MH i2c: E2 08 00 5A 05 80 0D 03 02 00 00 00 00 DA [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0B 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0B 00 5A 05 00 1C 78 9B D6 59 38 65 78 90 00 4E [17:23:55]RAPDU: 1C 78 9B D6 59 38 65 78 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_SignData done [17:23:55]FM_MakeSignedData done [17:23:55]CreateOFDProtocolMessage [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 11 00 00 [17:23:55]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2E [17:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:23:55]wFMCommunicate OK [17:23:55]CreateOFDProtocolMessage done [17:23:55]OFDSenderStorePacket 44710 [17:23:55]StoreOFDPacket docnum=44710 [17:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 01 02 00 00 E1 8D F9 01 AA 5B 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 11 00 00 00 00 07 04 06 00 68 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 7E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A6 AE 00 00 35 04 06 00 4D 85 DE 87 F4 31 1C 78 9B D6 59 38 65 78 [17:23:55]CheckFolder [17:23:55]dirname=/storage/ofd_packets [17:23:55]CheckFolder done [17:23:55]ProducePacketName [17:23:55]name=ofd_packets/00044710 [17:23:55]NVStorageSaveData ofd_packets/00044710 [17:23:55]File name is /storage/ofd_packets/00044710 [17:23:55]Write 543 bytes [17:23:55]NVStorageSaveData done [17:23:55]OFDSenderStorePacket done [17:23:55]KKMCreateOFDPacket done [17:23:55]NVStorageSaveData kkm_last_timestamp [17:23:55]File name is /storage/kkm_last_timestamp [17:23:55]Write 4 bytes [17:23:55]NVStorageSaveData done [17:23:55]ExternCall_PrintAddStr [17:23:55]wPrintStart [17:23:55]Write to MH i2c: 01 00 00 5C 05 61 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [17:23:55]RasterBufferAndPrint [17:23:55]line Счет N : (3)14602 [17:23:55]line ИНН: 02508201610067 [17:23:55]line Контрольно-Кассовый Чек [17:23:55]line ПРОДАЖА [17:23:55]line Товар: 4700000480517 [17:23:55]line Пиво Живое 1л ПЭТ [17:23:55]line 2.000 * 180.00 [17:23:55]line = 360.00 [17:23:55]line НДС 12% НСП 1% [17:23:55]line > о реализуемом товаре [17:23:55]line Товар: 4620017451303 [17:23:55]line Кар.с жев.конф.Страйк 11.3г/50 [17:23:55]line 1.000 * 17.00 [17:23:55]line = 17.00 [17:23:55]line НДС 12% НСП 1% [17:23:55]line > о реализуемом товаре [17:23:55]line Товар: 4700026030024 [17:23:55]line Курут копченный [17:23:55]line 1.000 * 49.00 [17:23:55]line = 49.00 [17:23:55]line НДС 12% НСП 1% [17:23:55]line > о реализуемом товаре [17:23:55]line ИТОГО: 426.00 [17:23:55]line НСП 1% : 3.77 [17:23:55]line НДС 12% : 45.23 [17:23:55]line Наличными: 426.00 [17:23:55]line Безнал.: 0.00 [17:23:55]line Место: АЗС № 128 "Партнер Нефть" [17:23:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [17:23:55]line СНО: Общий режим [17:23:55]line Чек 81 28.07.2024 17:23 [17:23:55]line Смена: 430 ФФД: 1.0 [17:23:55]line ЗНМ: 0300000045 [17:23:55]line РНМ: 0000000000092655 [17:23:55]line Версия ККМ: 001 [17:23:55]line ФМ: 0000000000874941 [17:23:55]line ФД: 44710 [17:23:55]line ФПД: 85237359440945 [17:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T172353&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44710&fm=85237359440945&tin=02508201610067®Number=0000000000092655&sum=42600 [17:23:55]line 0 [17:23:55]written 0, free lines is 4095 [17:23:55]OFD Sender: Processing packet 44710 [packets to send 7, broken 6] [17:23:55]ProducePacketName [17:23:55]name=ofd_packets/00044710 [17:23:55]OFD Sender: To server: pG, [17:23:55]CommunicateWithHost lk.salyk.kg:30040 [17:23:55]ConnectInit lk.salyk.kg [17:23:55]Connected sock=11 [17:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 01 02 00 00 E1 8D F9 01 AA 5B 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 11 00 00 00 00 07 04 06 00 68 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 7E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A6 AE 00 00 35 04 06 00 4D 85 DE 87 F4 31 1C 78 9B D6 59 38 65 78 [17:23:55]Write to MH i2c: 01 00 00 91 05 96 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 25 0C CE [17:23:55]RasterBufferAndPrint [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]written 0, free lines is 3117 [17:23:55]process_action close_receipt done [17:23:55]requested_data is exist [17:23:55]produce_requested_data [17:23:55]requested_item fm.sn is exist - process it [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 11 00 00 [17:23:55]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E9 8E 47 00 AB B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A6 AE 00 00 F4 03 04 00 BB 2A A6 66 B6 04 01 00 00 67 F8 88 E6 44 E9 4B 76 [17:23:55]CommunicateWithHost err = 0 [17:23:55]CheckOFDResponse [17:23:55]1017 (14) - 77093643461234 [17:23:55]1041 (16) - 0000000000874941 [17:23:55]1040 (4) - 44710 [17:23:55]1012 (4) - 28.07.2024 11:25 [17:23:55]1206 (1) - 0 [17:23:55]OFD Sender: Remove packet 44710 [17:23:55]ProducePacketName [17:23:55]name=ofd_packets/00044710 [17:23:55]NVStorageDeleteData [17:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6B [17:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [17:23:55]wFMCommunicate OK [17:23:55]requested_item fd.num is exist - process it [17:23:55]SAM_PROTO_GetFieldsCounters [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 00 00 [17:23:55]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetFieldsCounters done [17:23:55]requested_item shift.num is exist - process it [17:23:55]requested_item shift.opened is exist - process it [17:23:55]req_shift_opened [17:23:55]FM_GetShiftState [17:23:55]SAM_PROTO_GetShiftState [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 01 00 [17:23:55]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B5 [17:23:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetShiftState done [17:23:55]FM_GetShiftState done [17:23:55]req_shift_opened done [17:23:55]requested_item shift.open_date is exist - process it [17:23:55]req_shift_open_date [17:23:55]req_shift_open_date done [17:23:55]produce_requested_data done [17:23:55]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44710,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [17:23:55]process_action_free close_receipt [17:23:55]json_value_free [17:23:55]json_value_free done [17:23:55]process_json_proto returns [17:23:55]Send response to host [17:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44710,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [17:23:55]free response buf [17:23:55]execute_script done [17:23:55]execute_script returns [17:23:55]free content buf [17:23:55]Sock 8.Close socket [17:23:55]Sock 8.Thread stoped [17:23:56]OFD Sender: No OFD packet to send [17:23:57]int [17:23:57]Write to MH i2c: 01 00 00 9B 05 A0 [17:23:57]*** FLAG_PRN_KEY set [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 9B 05 00 08 00 00 00 FF 0F BD [17:23:57]state=0 [17:23:57]Key pressed [17:23:57]Feed [17:23:57]Write to MH i2c: D8 00 00 9C 05 78 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D8 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D8 01 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D8 01 00 9C 05 00 79 [17:23:57]int [17:23:57]Write to MH i2c: 01 00 00 9D 05 A2 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 9D 05 00 48 00 00 00 3D 00 2E [17:23:57]state=2 [17:23:57]Key pressed [17:23:57]int [17:23:58]Write to MH i2c: 01 00 00 9E 05 A3 [17:23:58]*** FLAG_PRN_KEY reset [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 FF 0F B8 [17:23:58]state=2 [17:23:58]Stop feed [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:05]accept exits with 9 [17:28:05]New connection [17:28:05]New thread 3066875236 created [17:28:05]Thread 3067018596 joined [17:28:05]Waiting for new connection... [17:28:05] Sock 9.Parse request [17:28:05]Sock 9.Check first char [17:28:05]Sock 9.First char is OK [17:28:05]request: POST /json_proto HTTP/1.0 [17:28:05]Method: POST [17:28:05]URL: /json_proto [17:28:05]Method is POST - this is cgi request [17:28:05]url: /json_proto [17:28:05]query_string will be loaded in cgi processing [17:28:05]execute_cgi json_proto POST (null) [17:28:05]execute_cgi path=json_proto method=POST [17:28:05]POST find Content-Length [17:28:05]Host: 172.17.45.196:8080 [17:28:05]Content-Length: 2765 [17:28:05]Content-Type: application/json [17:28:05] [17:28:05]POST finish read [17:28:05]Found Content-Length = 2765 [17:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14603", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"typeA [17:28:05]execute_script... [17:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14603", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"typeA [17:28:05]POST & json_proto [17:28:05]process_json_proto [17:28:05]json parse error [17:28:05]process_json_proto returns [17:28:05]execute_script returns [17:28:05]free content buf [17:28:05]Sock 9.Close socket [17:28:05]Sock 9.Thread stoped [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 101849+1722090427=1722192276 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 95 91 A6 66 BB 03 A5 66 FA [18:44:37]Current date/time: 28.07.2024 18:44 [18:44:37]FM_Init [18:44:37]wFMConnect [18:44:37]MH_SAM_On [18:44:37]Write to MH i2c: E0 00 00 08 00 E7 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_init finished! [18:44:37]*** atr: [18:44:37]*** 0F 3B D5 18 FF 81 91 FE [18:44:37]*** 1F C3 80 73 C8 21 10 0A [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]*** 00 00 00 00 00 00 00 00 [18:44:37]Read from MH i2c: E0 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E0 10 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:44:37]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:44:37]wFMCommunicate request_size=10 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:44:37]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:44:37]RAPDU: 90 00 [18:44:37]wFMCommunicate OK [18:44:37]wFMCommunicate request_size=4 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 11 00 00 [18:44:37]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 17 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [18:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:37]wFMCommunicate OK [18:44:37]Detected FM SN is 0000000000874941 [18:44:37]Stored FM SN is 0000000000874941 [18:44:37]wFMCommunicate request_size=9 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 16 00 00 04 FA 44 01 00 [18:44:37]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:44:37]RAPDU: 90 00 [18:44:37]wFMCommunicate OK [18:44:37]FM PIN OK [18:44:37]wFMCommunicate request_size=8 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 14 04 00 03 02 00 01 [18:44:37]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:44:37]RAPDU: 90 00 [18:44:37]wFMCommunicate OK [18:44:37]wFMCommunicate request_size=13 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:44:37]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:44:37]RAPDU: 90 00 [18:44:37]wFMCommunicate OK [18:44:37]wFMCommunicate request_size=4 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 11 00 00 [18:44:37]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 17 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [18:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:37]wFMCommunicate OK [18:44:37]DocumentArchiveInit [18:44:37]Start Httpd... [18:44:37]Httpd thread 3067047268 created [18:44:37]Write to MH i2c: 01 00 00 0F 00 0F [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:44:37]MH Int Process started [18:44:37]Allocated Socket 8 [18:44:37]Bind OK [18:44:37]Listen OK [18:44:37]httpd running on port 8080 [18:44:37]Waiting for new connection... [18:44:37]OFD Sender: No OFD packet to send [18:44:41]accept exits with 9 [18:44:41]New connection [18:44:41]New thread 3066760548 created [18:44:41]Waiting for new connection... [18:44:41] Sock 9.Parse request [18:44:41]Sock 9.Check first char [18:44:41]Sock 9.First char is OK [18:44:41]request: POST /json_proto HTTP/1.0 [18:44:41]Method: POST [18:44:41]URL: /json_proto [18:44:41]Method is POST - this is cgi request [18:44:41]url: /json_proto [18:44:41]query_string will be loaded in cgi processing [18:44:41]execute_cgi json_proto POST (null) [18:44:41]execute_cgi path=json_proto method=POST [18:44:41]POST find Content-Length [18:44:41]Host: 172.17.45.196:8080 [18:44:41]Content-Length: 215 [18:44:41]Content-Type: application/json [18:44:41] [18:44:41]POST finish read [18:44:41]Found Content-Length = 215 [18:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:41]execute_script... [18:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:41]POST & json_proto [18:44:41]process_json_proto [18:44:41]json parsed OK: [18:44:41]protocol is kg_v1.0 [18:44:41]action value=get_value [18:44:41]process_action get_value [18:44:41]cmd_get_value [18:44:41]process_action get_value done [18:44:41]requested_data is exist [18:44:41]produce_requested_data [18:44:41]requested_item kkm.sn is exist - process it [18:44:41]requested_item kkm.ver is exist - process it [18:44:41]requested_item fm.sn is exist - process it [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 11 00 00 [18:44:41]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 17 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [18:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:41]wFMCommunicate OK [18:44:41]requested_item fd.num is exist - process it [18:44:41]SAM_PROTO_GetFieldsCounters [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 00 00 [18:44:41]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetFieldsCounters done [18:44:41]requested_item shift.num is exist - process it [18:44:41]requested_item shift.opened is exist - process it [18:44:41]req_shift_opened [18:44:41]FM_GetShiftState [18:44:41]SAM_PROTO_GetShiftState [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 01 00 [18:44:41]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [18:44:41]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetShiftState done [18:44:41]FM_GetShiftState done [18:44:41]req_shift_opened done [18:44:41]requested_item shift.open_date is exist - process it [18:44:41]req_shift_open_date [18:44:41]req_shift_open_date done [18:44:41]produce_requested_data done [18:44:41]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44710,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:44:41]process_action_free get_value [18:44:41]json_value_free [18:44:41]json_value_free done [18:44:41]process_json_proto returns [18:44:41]Send response to host [18:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44710,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:44:41]free response buf [18:44:41]execute_script done [18:44:41]execute_script returns [18:44:41]free content buf [18:44:41]Sock 9.Close socket [18:44:41]Sock 9.Thread stoped [18:44:41]accept exits with 10 [18:44:41]New connection [18:44:41]New thread 3066617188 created [18:44:41]Thread 3066760548 joined [18:44:41]Waiting for new connection... [18:44:41] Sock 10.Parse request [18:44:41]Sock 10.Check first char [18:44:41]Sock 10.First char is OK [18:44:41]request: POST /json_proto HTTP/1.0 [18:44:41]Method: POST [18:44:41]URL: /json_proto [18:44:41]Method is POST - this is cgi request [18:44:41]url: /json_proto [18:44:41]query_string will be loaded in cgi processing [18:44:41]execute_cgi json_proto POST (null) [18:44:41]execute_cgi path=json_proto method=POST [18:44:41]POST find Content-Length [18:44:41]Host: 172.17.45.196:8080 [18:44:41]Content-Length: 331 [18:44:41]Content-Type: application/json [18:44:41] [18:44:41]POST finish read [18:44:41]Found Content-Length = 331 [18:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:44:41]execute_script... [18:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:44:41]POST & json_proto [18:44:41]process_json_proto [18:44:41]json parsed OK: [18:44:41]protocol is kg_v1.0 [18:44:41]action value=get_value [18:44:41]process_action get_value [18:44:41]cmd_get_value [18:44:41]process_action get_value done [18:44:41]requested_data is exist [18:44:41]produce_requested_data [18:44:41]requested_item fm.sale.total is exist - process it [18:44:41]SAM_PROTO_GetFMData [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 03 00 [18:44:41]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 4A AB 00 00 69 04 A0 00 6F 04 04 00 BB AA 00 00 B1 04 04 00 01 49 23 40 70 04 04 00 30 B0 B6 3B 72 04 04 00 D1 98 6C 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 AB CF 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4E 3A 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 03 [18:44:42]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 4A AB 00 00 69 04 A0 00 6F 04 04 00 BB AA 00 00 B1 04 04 00 01 49 23 40 70 04 04 00 30 B0 B6 3B 72 04 04 00 D1 98 6C 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 93 AB CF 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4E 3A 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 17 00 00 [18:44:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]OFD Sender: No OFD packet to send [18:44:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [18:44:42]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 17 00 00 [18:44:42]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:42]Read from MH i2c: E2 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 [18:44:42]MH_I2C_Read... [18:44:42]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [18:44:42]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [18:44:42]wFMCommunicate OK [18:44:42]wFMCommunicate request_size=4 [18:44:42]MH_SAM_APDU [18:44:42]CAPDU: 80 17 00 00 [18:44:42]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:44:42]Write i2c OK [18:44:42]MH_I2C_Read... [18:44:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:43]Read from MH i2c: E2 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 FD 00 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [18:44:43]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [18:44:43]wFMCommunicate OK [18:44:43]wFMCommunicate request_size=4 [18:44:43]MH_SAM_APDU [18:44:43]CAPDU: 80 17 00 00 [18:44:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [18:44:43]Read from MH i2c: E2 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 DF 00 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [18:44:43]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:44:43]wFMCommunicate OK [18:44:43]SAM_PROTO_GetFMData done [18:44:43]requested_item fm.sale_refund.total is exist - process it [18:44:43]requested_item fm.buy.total is exist - process it [18:44:43]requested_item shift.sale.total is exist - process it [18:44:43]SAM_PROTO_GetShiftData [18:44:43]wFMCommunicate request_size=4 [18:44:43]MH_SAM_APDU [18:44:43]CAPDU: 80 13 02 00 [18:44:43]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:44:43]Read from MH i2c: E2 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 FD 00 [18:44:43]MH_I2C_Read... [18:44:43]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 51 00 00 00 B1 04 03 00 BC 86 1C 70 04 03 00 E8 80 19 72 04 03 00 D4 05 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 79 07 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 07 [18:44:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 51 00 00 00 B1 04 03 00 BC 86 1C 70 04 03 00 E8 80 19 72 04 03 00 D4 05 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 79 07 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 40 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [18:44:43]wFMCommunicate OK [18:44:43]wFMCommunicate request_size=4 [18:44:43]MH_SAM_APDU [18:44:43]CAPDU: 80 17 00 00 [18:44:43]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:44:43]Write i2c OK [18:44:43]MH_I2C_Read... [18:44:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:44]Read from MH i2c: E2 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [18:44:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [18:44:44]wFMCommunicate OK [18:44:44]wFMCommunicate request_size=4 [18:44:44]MH_SAM_APDU [18:44:44]CAPDU: 80 17 00 00 [18:44:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:44:44]Write i2c OK [18:44:44]MH_I2C_Read... [18:44:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:44]Read from MH i2c: E2 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [18:44:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [18:44:44]wFMCommunicate OK [18:44:44]wFMCommunicate request_size=4 [18:44:44]MH_SAM_APDU [18:44:44]CAPDU: 80 17 00 00 [18:44:44]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:44:44]Write i2c OK [18:44:44]MH_I2C_Read... [18:44:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:44:44]Read from MH i2c: E2 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [18:44:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [18:44:44]wFMCommunicate OK [18:44:44]wFMCommunicate request_size=4 [18:44:44]MH_SAM_APDU [18:44:44]CAPDU: 80 17 00 00 [18:44:44]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:44:44]Write i2c OK [18:44:44]MH_I2C_Read... [18:44:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:44:44]Read from MH i2c: E2 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 CB 00 [18:44:44]MH_I2C_Read... [18:44:44]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [18:44:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:44:45]wFMCommunicate OK [18:44:45]SAM_PROTO_GetShiftData done [18:44:45]requested_item shift.sale.total_cash is exist - process it [18:44:45]requested_item shift.sale_refund.total is exist - process it [18:44:45]requested_item shift.sale_refund.total_cash is exist - process it [18:44:45]requested_item shift.buy.total is exist - process it [18:44:45]requested_item shift.buy.total_cash is exist - process it [18:44:45]produce_requested_data done [18:44:45]produce_requested_data return {"fm.sale.total":10760542.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":18695.00,"shift.sale.total_cash":16714.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:44:45]process_action_free get_value [18:44:45]json_value_free [18:44:45]json_value_free done [18:44:45]process_json_proto returns [18:44:45]Send response to host [18:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10760542.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":18695.00,"shift.sale.total_cash":16714.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:44:45]free response buf [18:44:45]execute_script done [18:44:45]execute_script returns [18:44:45]free content buf [18:44:45]Sock 10.Close socket [18:44:45]Sock 10.Thread stoped [18:44:47]OFD Sender: No OFD packet to send [18:44:49]accept exits with 6 [18:44:49]New connection [18:44:49]New thread 3066760548 created [18:44:49]Thread 3066617188 joined [18:44:49]Waiting for new connection... [18:44:49] Sock 6.Parse request [18:44:49]Sock 6.Check first char [18:44:49]Sock 6.First char is OK [18:44:49]request: POST /json_proto HTTP/1.0 [18:44:49]Method: POST [18:44:49]URL: /json_proto [18:44:49]Method is POST - this is cgi request [18:44:49]url: /json_proto [18:44:49]query_string will be loaded in cgi processing [18:44:49]execute_cgi json_proto POST (null) [18:44:49]execute_cgi path=json_proto method=POST [18:44:49]POST find Content-Length [18:44:49]Host: 172.17.45.196:8080 [18:44:49]Content-Length: 2765 [18:44:49]Content-Type: application/json [18:44:49] [18:44:49]POST finish read [18:44:49]Found Content-Length = 2765 [18:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14603", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607144732451", "name": "\u041F\u0435\u0447 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B. \u043C\u043E\u043B. \u0441 \u0433\u043B\u0430\u0437\u0443\u0440\u044C\u044E 115\u0433\u0440", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:49]execute_script... [18:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14603", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607144732451", "name": "\u041F\u0435\u0447 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B. \u043C\u043E\u043B. \u0441 \u0433\u043B\u0430\u0437\u0443\u0440\u044C\u044E 115\u0433\u0440", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:50]POST & json_proto [18:44:50]process_json_proto [18:44:50]json parsed OK: [18:44:50]protocol is kg_v1.0 [18:44:50]action value=close_receipt [18:44:50]process_action close_receipt [18:44:50]cmd_close_receipt [18:44:50]MH_GetDate [18:44:50]Write to MH i2c: F0 00 00 1D 00 0C [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 09 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: F0 09 00 1D 00 00 A2 91 A6 66 BB 03 A5 66 1D [18:44:50]GetLastDocTimeStamp 1722187433 [18:44:50]current date 1722192290 [18:44:50]FM_GetShiftState [18:44:50]SAM_PROTO_GetShiftState [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 13 01 00 [18:44:50]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0E 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [18:44:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:44:50]wFMCommunicate OK [18:44:50]SAM_PROTO_GetShiftState done [18:44:50]FM_GetShiftState done [18:44:50]opened in 1722126323 [18:44:50]opened+sec_in_day 1722212723 [18:44:50]quantity*price = 13000 [18:44:50]sum+1 = 13001 [18:44:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015232868 Вафли Яшкино в шоколадной глазури 200г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607144732451 Печ Коровка топл. мол. с глазурью 115гр 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005024 Миндаль Mike жареный соленый 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.44 НДС 12% : 77.39 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 82 28.07.2024 18:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44711 ФПД: 196868540150028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184450&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44711&fm=196868540150028&tin=02508201610067®Number=0000000000092655&sum=72900 0 [18:44:51]StoreToDocumentArchive [18:44:51]shift 430 fd 44711 [18:44:51]save to /storage/0430/doc_00044711 [18:44:51]save last doc name /storage/0430/doc_00044711 to /storage/kkm_last_doc_name [18:44:51]save OK [18:44:51]Clear old archive folders... [18:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=1128 [18:44:51]tlvbuf is 01473EF0 [18:44:51]SAM_PROTO_ClearQueue [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 09 00 00 [18:44:51]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 03 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:44:51]RAPDU: 90 00 [18:44:51]wFMCommunicate OK [18:44:51]SAM_PROTO_ClearQueue done [18:44:51]KKMCreateOFDPacket [18:44:51]OFDProtocolAddRootSTLVToBuf [18:44:51]FM_MakeSignedData [18:44:51]FM_MakeSignedData [18:44:51]SAM_PROTO_SignData [18:44:51]wFMCommunicate request_size=4 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 0D 01 02 [18:44:51]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:51]Read from MH i2c: E2 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 03 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:44:51]RAPDU: 90 00 [18:44:51]wFMCommunicate OK [18:44:51]wFMCommunicate request_size=255 [18:44:51]MH_SAM_APDU [18:44:51]CAPDU: 80 0D 02 02 FA 03 00 68 04 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 [18:44:51]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 68 04 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 00 27 [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=255 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 FA 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 [18:44:52]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 00 00 19 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]OFD Sender: No OFD packet to send [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=255 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 FA 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 [18:44:52]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 00 00 3B [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [18:44:52]RAPDU: 90 00 [18:44:52]wFMCommunicate OK [18:44:52]wFMCommunicate request_size=255 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 0D 02 02 FA 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 [18:44:53]Write to MH i2c: E2 02 01 30 00 80 0D 02 02 FA 00 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 00 00 BD [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=137 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A7 AE 00 00 35 04 06 00 B3 0D 07 67 31 0C [18:44:53]Write to MH i2c: E2 8C 00 31 00 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A7 AE 00 00 35 04 06 00 B3 0D 07 67 31 0C 00 00 1D [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [18:44:53]RAPDU: 90 00 [18:44:53]wFMCommunicate OK [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 0D 03 02 [18:44:53]Write to MH i2c: E2 08 00 32 00 80 0D 03 02 00 00 00 00 AD [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0B 00 32 00 00 FA 64 A9 C3 04 F7 6E 40 90 00 21 [18:44:53]RAPDU: FA 64 A9 C3 04 F7 6E 40 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_SignData done [18:44:53]FM_MakeSignedData done [18:44:53]CreateOFDProtocolMessage [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 11 00 00 [18:44:53]Write to MH i2c: E2 08 00 33 00 80 11 00 00 00 00 00 00 AD [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 33 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 01 [18:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:53]wFMCommunicate OK [18:44:53]CreateOFDProtocolMessage done [18:44:53]OFDSenderStorePacket 44711 [18:44:53]StoreOFDPacket docnum=44711 [18:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 7C 04 00 00 6E 3D 74 04 64 52 5A 03 01 00 03 00 68 04 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A7 AE 00 00 35 04 06 00 B3 0D 07 67 31 0C FA 64 A9 C3 04 F7 6E 40 [18:44:53]CheckFolder [18:44:53]dirname=/storage/ofd_packets [18:44:53]CheckFolder done [18:44:53]ProducePacketName [18:44:53]name=ofd_packets/00044711 [18:44:53]NVStorageSaveData ofd_packets/00044711 [18:44:53]File name is /storage/ofd_packets/00044711 [18:44:53]Write 1178 bytes [18:44:53]NVStorageSaveData done [18:44:53]OFDSenderStorePacket done [18:44:53]KKMCreateOFDPacket done [18:44:53]NVStorageSaveData kkm_last_timestamp [18:44:53]File name is /storage/kkm_last_timestamp [18:44:53]Write 4 bytes [18:44:53]NVStorageSaveData done [18:44:53]ExternCall_PrintAddStr [18:44:53]wPrintStart [18:44:53]Write to MH i2c: 01 00 00 34 00 34 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 34 00 00 00 00 00 00 FF 0F 49 [18:44:53]RasterBufferAndPrint [18:44:53]line Счет N : (3)14603 [18:44:53]line ИНН: 02508201610067 [18:44:54]line Контрольно-Кассовый Чек [18:44:54]line ПРОДАЖА [18:44:54]line Товар: 2000036220012 [18:44:54]line Кофе Капучино XL(GABB TRADE) [18:44:54]line 1.000 * 130.00 [18:44:54]line = 130.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 4700000310326 [18:44:54]line Вода Адыгене 1л б/г [18:44:54]line 2.000 * 35.00 [18:44:54]line = 70.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 5449000027450 [18:44:54]line Напиток FuzeTea чай манго,ром 0,5л [18:44:54]line 1.000 * 75.00 [18:44:54]line = 75.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 4607015232868 [18:44:54]line Вафли Яшкино в шоколадной глазури 200г [18:44:54]line 1.000 * 95.00 [18:44:54]line = 95.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 4607144732451 [18:44:54]line Печ Коровка топл. мол. с глазурью 115гр [18:44:54]line 1.000 * 95.00 [18:44:54]line = 95.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 4630007400389 [18:44:54]line Семечки ДЖИНН 140г [18:44:54]line 1.000 * 130.00 [18:44:54]line = 130.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 4700321005024 [18:44:54]line Миндаль Mike жареный соленый 50г [18:44:54]line 1.000 * 130.00 [18:44:54]line = 130.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line Товар: 2000031750019 [18:44:54]line Пакет Партнер Нефть [18:44:54]line 1.000 * 4.00 [18:44:54]line = 4.00 [18:44:54]line НДС 12% НСП 1% [18:44:54]line > о реализуемом товаре [18:44:54]line ИТОГО: 729.00 [18:44:54]line НСП 1% : 6.44 [18:44:54]line НДС 12% : 77.39 [18:44:54]line Наличными: 729.00 [18:44:54]line Безнал.: 0.00 [18:44:54]line Место: АЗС № 128 "Партнер Нефть" [18:44:54]OFD Sender: Processing packet 44711 [packets to send 7, broken 6] [18:44:54]ProducePacketName [18:44:54]name=ofd_packets/00044711 [18:44:54]OFD Sender: To server: pG, [18:44:54]CommunicateWithHost lk.salyk.kg:30040 [18:44:54]ConnectInit lk.salyk.kg [18:44:54]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:44:54]line СНО: Общий режим [18:44:54]line Чек 82 28.07.2024 18:44 [18:44:54]line Смена: 430 ФФД: 1.0 [18:44:54]line ЗНМ: 0300000045 [18:44:54]line РНМ: 0000000000092655 [18:44:54]line Версия ККМ: 001 [18:44:54]line ФМ: 0000000000874941 [18:44:54]line ФД: 44711 [18:44:54]line ФПД: 196868540150028 [18:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184450&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44711&fm=196868540150028&tin=02508201610067®Number=0000000000092655&sum=72900 [18:44:54]line 0 [18:44:54]written 0, free lines is 4095 [18:44:54]Connected sock=10 [18:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 7C 04 00 00 6E 3D 74 04 64 52 5A 03 01 00 03 00 68 04 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A7 AE 00 00 35 04 06 00 B3 0D 07 67 31 0C FA 64 A9 C3 04 F7 6E 40 [18:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 84 0D 47 00 13 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A7 AE 00 00 F4 03 04 00 B7 3D A6 66 B6 04 01 00 00 42 DB 99 AE CD 93 C3 AE [18:44:55]CommunicateWithHost err = 0 [18:44:55]CheckOFDResponse [18:44:55]1017 (14) - 77093643461234 [18:44:55]1041 (16) - 0000000000874941 [18:44:55]1040 (4) - 44711 [18:44:55]1012 (4) - 28.07.2024 12:46 [18:44:55]1206 (1) - 0 [18:44:55]OFD Sender: Remove packet 44711 [18:44:55]ProducePacketName [18:44:55]name=ofd_packets/00044711 [18:44:55]NVStorageDeleteData [18:44:55]Write to MH i2c: 01 00 00 8B 00 8B [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 07 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: 01 07 00 8B 00 00 00 00 00 00 28 0A C4 [18:44:55]RasterBufferAndPrint [18:44:55]line [18:44:55]line [18:44:55]line [18:44:55]line [18:44:55]line [18:44:55]written 0, free lines is 2624 [18:44:55]process_action close_receipt done [18:44:55]requested_data is exist [18:44:55]produce_requested_data [18:44:55]requested_item fm.sn is exist - process it [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 11 00 00 [18:44:55]Write to MH i2c: E2 08 00 92 00 80 11 00 00 00 00 00 00 0C [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 17 00 92 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 60 [18:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:55]wFMCommunicate OK [18:44:55]requested_item fd.num is exist - process it [18:44:55]SAM_PROTO_GetFieldsCounters [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 13 00 00 [18:44:55]Write to MH i2c: E2 08 00 93 00 80 13 00 00 00 00 00 00 0F [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 62 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 62 00 93 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_GetFieldsCounters done [18:44:55]requested_item shift.num is exist - process it [18:44:55]requested_item shift.opened is exist - process it [18:44:55]req_shift_opened [18:44:55]FM_GetShiftState [18:44:55]SAM_PROTO_GetShiftState [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 13 01 00 [18:44:55]Write to MH i2c: E2 08 00 94 00 80 13 01 00 00 00 00 00 11 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0E 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 0E 00 94 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AA [18:44:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_GetShiftState done [18:44:55]FM_GetShiftState done [18:44:55]req_shift_opened done [18:44:55]requested_item shift.open_date is exist - process it [18:44:55]req_shift_open_date [18:44:55]req_shift_open_date done [18:44:55]produce_requested_data done [18:44:55]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44711,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:44:55]process_action_free close_receipt [18:44:55]json_value_free [18:44:55]json_value_free done [18:44:55]process_json_proto returns [18:44:55]Send response to host [18:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44711,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:44:55]free response buf [18:44:55]execute_script done [18:44:55]execute_script returns [18:44:55]free content buf [18:44:55]Sock 6.Close socket [18:44:55]Sock 6.Thread stoped [18:44:55]OFD Sender: No OFD packet to send [18:44:56]accept exits with 9 [18:44:56]New connection [18:44:56]New thread 3066617188 created [18:44:56]Thread 3066760548 joined [18:44:56]Waiting for new connection... [18:44:56] Sock 9.Parse request [18:44:56]Sock 9.Check first char [18:44:56]Sock 9.First char is OK [18:44:56]request: POST /json_proto HTTP/1.0 [18:44:56]Method: POST [18:44:56]URL: /json_proto [18:44:56]Method is POST - this is cgi request [18:44:56]url: /json_proto [18:44:56]query_string will be loaded in cgi processing [18:44:56]execute_cgi json_proto POST (null) [18:44:56]execute_cgi path=json_proto method=POST [18:44:56]POST find Content-Length [18:44:56]Host: 172.17.45.196:8080 [18:44:56]Content-Length: 710 [18:44:56]Content-Type: application/json [18:44:56] [18:44:56]POST finish read [18:44:56]Found Content-Length = 710 [18:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14604", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:56]execute_script... [18:44:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14604", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:56]POST & json_proto [18:44:56]process_json_proto [18:44:56]json parsed OK: [18:44:56]protocol is kg_v1.0 [18:44:56]action value=close_receipt [18:44:56]process_action close_receipt [18:44:56]cmd_close_receipt [18:44:56]MH_GetDate [18:44:56]Write to MH i2c: F0 00 00 95 00 84 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 09 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 09 00 95 00 00 A9 91 A6 66 BB 03 A5 66 9C [18:44:56]GetLastDocTimeStamp 1722192290 [18:44:56]current date 1722192297 [18:44:56]FM_GetShiftState [18:44:56]SAM_PROTO_GetShiftState [18:44:56]wFMCommunicate request_size=4 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 13 01 00 [18:44:56]Write to MH i2c: E2 08 00 96 00 80 13 01 00 00 00 00 00 13 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0E 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0E 00 96 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AC [18:44:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:44:56]wFMCommunicate OK [18:44:56]SAM_PROTO_GetShiftState done [18:44:56]FM_GetShiftState done [18:44:56]opened in 1722126323 [18:44:56]opened+sec_in_day 1722212723 [18:44:56]quantity*price = 8400 [18:44:56]sum+1 = 8401 [18:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 83 28.07.2024 18:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44712 ФПД: 244444429872198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184457&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44712&fm=244444429872198&tin=02508201610067®Number=0000000000092655&sum=8400 0 [18:44:58]StoreToDocumentArchive [18:44:58]shift 430 fd 44712 [18:44:58]save to /storage/0430/doc_00044712 [18:44:58]save last doc name /storage/0430/doc_00044712 to /storage/kkm_last_doc_name [18:44:58]save OK [18:44:58]Clear old archive folders... [18:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=302 [18:44:58]tlvbuf is 01473D70 [18:44:58]SAM_PROTO_ClearQueue [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 09 00 00 [18:44:58]Write to MH i2c: E2 08 00 A3 00 80 09 00 00 00 00 00 00 15 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:58]Read from MH i2c: E2 03 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [18:44:58]RAPDU: 90 00 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_ClearQueue done [18:44:58]KKMCreateOFDPacket [18:44:58]OFDProtocolAddRootSTLVToBuf [18:44:58]FM_MakeSignedData [18:44:58]FM_MakeSignedData [18:44:58]SAM_PROTO_SignData [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 0D 01 02 [18:44:58]Write to MH i2c: E2 08 00 A4 00 80 0D 01 02 00 00 00 00 1D [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [18:44:58]RAPDU: 90 00 [18:44:58]wFMCommunicate OK [18:44:58]wFMCommunicate request_size=255 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 [18:44:58]Write to MH i2c: E2 02 01 A5 00 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 00 00 03 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [18:44:58]RAPDU: 90 00 [18:44:58]wFMCommunicate OK [18:44:58]wFMCommunicate request_size=61 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A8 AE 00 00 35 04 06 00 DE 52 27 68 EC 46 [18:44:58]Write to MH i2c: E2 40 00 A6 00 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A8 AE 00 00 35 04 06 00 DE 52 27 68 EC 46 00 00 9F [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [18:44:58]RAPDU: 90 00 [18:44:58]wFMCommunicate OK [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 0D 03 02 [18:44:58]Write to MH i2c: E2 08 00 A7 00 80 0D 03 02 00 00 00 00 22 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0B 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0B 00 A7 00 00 04 8F 32 B5 8B FC 64 D9 90 00 61 [18:44:58]RAPDU: 04 8F 32 B5 8B FC 64 D9 90 00 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_SignData done [18:44:58]FM_MakeSignedData done [18:44:58]CreateOFDProtocolMessage [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 11 00 00 [18:44:58]Write to MH i2c: E2 08 00 A8 00 80 11 00 00 00 00 00 00 22 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 A8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 76 [18:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:58]wFMCommunicate OK [18:44:58]CreateOFDProtocolMessage done [18:44:58]OFDSenderStorePacket 44712 [18:44:58]StoreOFDPacket docnum=44712 [18:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 6C 16 3A 01 58 C5 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A8 AE 00 00 35 04 06 00 DE 52 27 68 EC 46 04 8F 32 B5 8B FC 64 D9 [18:44:58]CheckFolder [18:44:58]dirname=/storage/ofd_packets [18:44:58]CheckFolder done [18:44:58]ProducePacketName [18:44:58]name=ofd_packets/00044712 [18:44:58]NVStorageSaveData ofd_packets/00044712 [18:44:58]File name is /storage/ofd_packets/00044712 [18:44:58]Write 352 bytes [18:44:58]NVStorageSaveData done [18:44:58]OFDSenderStorePacket done [18:44:58]KKMCreateOFDPacket done [18:44:58]NVStorageSaveData kkm_last_timestamp [18:44:58]File name is /storage/kkm_last_timestamp [18:44:58]Write 4 bytes [18:44:58]NVStorageSaveData done [18:44:58]ExternCall_PrintAddStr [18:44:58]wPrintStart [18:44:58]Write to MH i2c: 01 00 00 A9 00 A9 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: 01 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: 01 07 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [18:44:58]RasterBufferAndPrint [18:44:58]line Счет N : (3)14604 [18:44:58]line ИНН: 02508201610067 [18:44:58]line Контрольно-Кассовый Чек [18:44:58]line ПРОДАЖА [18:44:58]line Товар: 4870001571030 [18:44:58]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [18:44:58]line 1.000 * 84.00 [18:44:58]line = 84.00 [18:44:58]line НДС 12% НСП 1% [18:44:58]line > о реализуемом товаре [18:44:58]line ИТОГО: 84.00 [18:44:58]line НСП 1% : 0.74 [18:44:58]line НДС 12% : 8.92 [18:44:58]line Наличными: 84.00 [18:44:58]line Безнал.: 0.00 [18:44:58]line Место: АЗС № 128 "Партнер Нефть" [18:44:58]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:44:58]line СНО: Общий режим [18:44:58]line Чек 83 28.07.2024 18:44 [18:44:58]line Смена: 430 ФФД: 1.0 [18:44:58]line ЗНМ: 0300000045 [18:44:58]line РНМ: 0000000000092655 [18:44:58]line Версия ККМ: 001 [18:44:58]line ФМ: 0000000000874941 [18:44:58]line ФД: 44712 [18:44:58]line ФПД: 244444429872198 [18:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184457&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44712&fm=244444429872198&tin=02508201610067®Number=0000000000092655&sum=8400 [18:44:58]line 0 [18:44:58]written 0, free lines is 4095 [18:44:59]OFD Sender: Processing packet 44712 [packets to send 7, broken 6] [18:44:59]ProducePacketName [18:44:59]name=ofd_packets/00044712 [18:44:59]OFD Sender: To server: pG, [18:44:59]CommunicateWithHost lk.salyk.kg:30040 [18:44:59]ConnectInit lk.salyk.kg [18:44:59]Connected sock=10 [18:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 42 01 00 00 6C 16 3A 01 58 C5 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A8 AE 00 00 35 04 06 00 DE 52 27 68 EC 46 04 8F 32 B5 8B FC 64 D9 [18:44:59]Write to MH i2c: 01 00 00 D2 00 D2 [18:44:59]Write i2c OK [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: 01 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: 01 07 00 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: 01 07 00 D2 00 00 00 00 00 00 EA 0C CF [18:44:59]RasterBufferAndPrint [18:44:59]line [18:44:59]line [18:44:59]line [18:44:59]line [18:44:59]line [18:44:59]written 0, free lines is 3337 [18:44:59]process_action close_receipt done [18:44:59]requested_data is exist [18:44:59]produce_requested_data [18:44:59]requested_item fm.sn is exist - process it [18:44:59]wFMCommunicate request_size=4 [18:44:59]MH_SAM_APDU [18:44:59]CAPDU: 80 11 00 00 [18:44:59]Write to MH i2c: E2 08 00 D9 00 80 11 00 00 00 00 00 00 53 [18:44:59]Write i2c OK [18:44:59]MH_I2C_Read... [18:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:59]Read from MH i2c: E2 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 17 00 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 17 00 D9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A7 [18:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:44:59]wFMCommunicate OK [18:44:59]requested_item fd.num is exist - process it [18:44:59]SAM_PROTO_GetFieldsCounters [18:44:59]wFMCommunicate request_size=4 [18:44:59]MH_SAM_APDU [18:44:59]CAPDU: 80 13 00 00 [18:44:59]Write to MH i2c: E2 08 00 DA 00 80 13 00 00 00 00 00 00 56 [18:44:59]Write i2c OK [18:44:59]MH_I2C_Read... [18:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 DC C9 47 00 11 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A8 AE 00 00 F4 03 04 00 BB 3D A6 66 B6 04 01 00 00 9D 2F 51 5B A9 58 4A 97 [18:44:59]CommunicateWithHost err = 0 [18:44:59]CheckOFDResponse [18:44:59]1017 (14) - 77093643461234 [18:44:59]1041 (16) - 0000000000874941 [18:44:59]1040 (4) - 44712 [18:44:59]1012 (4) - 28.07.2024 12:46 [18:44:59]1206 (1) - 0 [18:44:59]OFD Sender: Remove packet 44712 [18:44:59]ProducePacketName [18:44:59]name=ofd_packets/00044712 [18:44:59]NVStorageDeleteData [18:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:59]Read from MH i2c: E2 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 62 00 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 62 00 DA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [18:44:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 A8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:59]wFMCommunicate OK [18:44:59]SAM_PROTO_GetFieldsCounters done [18:44:59]requested_item shift.num is exist - process it [18:44:59]requested_item shift.opened is exist - process it [18:44:59]req_shift_opened [18:44:59]FM_GetShiftState [18:44:59]SAM_PROTO_GetShiftState [18:44:59]wFMCommunicate request_size=4 [18:44:59]MH_SAM_APDU [18:44:59]CAPDU: 80 13 01 00 [18:44:59]Write to MH i2c: E2 08 00 DB 00 80 13 01 00 00 00 00 00 58 [18:44:59]Write i2c OK [18:44:59]MH_I2C_Read... [18:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:59]Read from MH i2c: E2 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 0E 00 [18:44:59]MH_I2C_Read... [18:44:59]Read from MH i2c: E2 0E 00 DB 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F1 [18:44:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:44:59]wFMCommunicate OK [18:44:59]SAM_PROTO_GetShiftState done [18:44:59]FM_GetShiftState done [18:44:59]req_shift_opened done [18:44:59]requested_item shift.open_date is exist - process it [18:44:59]req_shift_open_date [18:44:59]req_shift_open_date done [18:44:59]produce_requested_data done [18:44:59]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44712,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:44:59]process_action_free close_receipt [18:44:59]json_value_free [18:44:59]json_value_free done [18:44:59]process_json_proto returns [18:44:59]Send response to host [18:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44712,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:44:59]free response buf [18:44:59]execute_script done [18:44:59]execute_script returns [18:44:59]free content buf [18:44:59]Sock 9.Close socket [18:44:59]Sock 9.Thread stoped [18:45:00]OFD Sender: No OFD packet to send [18:45:01]accept exits with 6 [18:45:01]New connection [18:45:01]New thread 3066760548 created [18:45:01]Thread 3066617188 joined [18:45:01]Waiting for new connection... [18:45:01] Sock 6.Parse request [18:45:01]Sock 6.Check first char [18:45:01]Sock 6.First char is OK [18:45:01]request: POST /json_proto HTTP/1.0 [18:45:01]Method: POST [18:45:01]URL: /json_proto [18:45:01]Method is POST - this is cgi request [18:45:01]url: /json_proto [18:45:01]query_string will be loaded in cgi processing [18:45:01]execute_cgi json_proto POST (null) [18:45:01]execute_cgi path=json_proto method=POST [18:45:01]POST find Content-Length [18:45:01]Host: 172.17.45.196:8080 [18:45:01]Content-Length: 613 [18:45:01]Content-Type: application/json [18:45:01] [18:45:01]POST finish read [18:45:01]Found Content-Length = 613 [18:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14605", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:01]execute_script... [18:45:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14605", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:01]POST & json_proto [18:45:01]process_json_proto [18:45:01]json parsed OK: [18:45:01]protocol is kg_v1.0 [18:45:01]action value=close_receipt [18:45:01]process_action close_receipt [18:45:01]cmd_close_receipt [18:45:01]MH_GetDate [18:45:01]Write to MH i2c: F0 00 00 DC 00 CB [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 09 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 09 00 DC 00 00 AE 91 A6 66 BB 03 A5 66 E8 [18:45:01]GetLastDocTimeStamp 1722192297 [18:45:01]current date 1722192302 [18:45:01]FM_GetShiftState [18:45:01]SAM_PROTO_GetShiftState [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 13 01 00 [18:45:01]Write to MH i2c: E2 08 00 DD 00 80 13 01 00 00 00 00 00 5A [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0E 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0E 00 DD 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F3 [18:45:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_GetShiftState done [18:45:01]FM_GetShiftState done [18:45:01]opened in 1722126323 [18:45:01]opened+sec_in_day 1722212723 [18:45:01]quantity*price = 11100 [18:45:01]sum+1 = 11101 [18:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 84 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44713 ФПД: 168536124100612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184502&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44713&fm=168536124100612&tin=02508201610067®Number=0000000000092655&sum=11100 0 [18:45:03]StoreToDocumentArchive [18:45:03]shift 430 fd 44713 [18:45:03]save to /storage/0430/doc_00044713 [18:45:03]save last doc name /storage/0430/doc_00044713 to /storage/kkm_last_doc_name [18:45:03]save OK [18:45:03]Clear old archive folders... [18:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:45:03]tlvbuf is B6F26880 [18:45:03]SAM_PROTO_ClearQueue [18:45:03]wFMCommunicate request_size=4 [18:45:03]MH_SAM_APDU [18:45:03]CAPDU: 80 09 00 00 [18:45:03]Write to MH i2c: E2 08 00 EA 00 80 09 00 00 00 00 00 00 5C [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:03]Read from MH i2c: E2 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [18:45:03]RAPDU: 90 00 [18:45:03]wFMCommunicate OK [18:45:03]SAM_PROTO_ClearQueue done [18:45:03]KKMCreateOFDPacket [18:45:03]OFDProtocolAddRootSTLVToBuf [18:45:03]FM_MakeSignedData [18:45:03]FM_MakeSignedData [18:45:03]SAM_PROTO_SignData [18:45:03]wFMCommunicate request_size=4 [18:45:03]MH_SAM_APDU [18:45:03]CAPDU: 80 0D 01 02 [18:45:03]Write to MH i2c: E2 08 00 EB 00 80 0D 01 02 00 00 00 00 64 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:03]Read from MH i2c: E2 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [18:45:03]RAPDU: 90 00 [18:45:03]wFMCommunicate OK [18:45:03]wFMCommunicate request_size=255 [18:45:03]MH_SAM_APDU [18:45:03]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [18:45:03]Write to MH i2c: E2 02 01 EC 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 CF [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:03]Read from MH i2c: E2 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [18:45:03]RAPDU: 90 00 [18:45:03]wFMCommunicate OK [18:45:03]wFMCommunicate request_size=25 [18:45:03]MH_SAM_APDU [18:45:03]CAPDU: 80 0D 02 02 14 34 31 10 04 04 00 A9 AE 00 00 35 04 06 00 99 48 5F CF 10 04 [18:45:03]Write to MH i2c: E2 1C 00 ED 00 80 0D 02 02 14 00 34 31 10 04 04 00 A9 AE 00 00 35 04 06 00 99 48 5F CF 10 04 00 00 C5 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 03 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 03 00 ED 00 00 90 00 61 [18:45:04]RAPDU: 90 00 [18:45:04]wFMCommunicate OK [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 0D 03 02 [18:45:04]Write to MH i2c: E2 08 00 EE 00 80 0D 03 02 00 00 00 00 69 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0B 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0B 00 EE 00 00 49 9F DC E0 8F 45 84 B6 90 00 1C [18:45:04]RAPDU: 49 9F DC E0 8F 45 84 B6 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_SignData done [18:45:04]FM_MakeSignedData done [18:45:04]CreateOFDProtocolMessage [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 11 00 00 [18:45:04]Write to MH i2c: E2 08 00 EF 00 80 11 00 00 00 00 00 00 69 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 EF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 BD [18:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:04]wFMCommunicate OK [18:45:04]CreateOFDProtocolMessage done [18:45:04]OFDSenderStorePacket 44713 [18:45:04]StoreOFDPacket docnum=44713 [18:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 E9 33 16 01 71 E2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 A9 AE 00 00 35 04 06 00 99 48 5F CF 10 04 49 9F DC E0 8F 45 84 B6 [18:45:04]CheckFolder [18:45:04]dirname=/storage/ofd_packets [18:45:04]CheckFolder done [18:45:04]ProducePacketName [18:45:04]name=ofd_packets/00044713 [18:45:04]NVStorageSaveData ofd_packets/00044713 [18:45:04]File name is /storage/ofd_packets/00044713 [18:45:04]Write 316 bytes [18:45:04]NVStorageSaveData done [18:45:04]OFDSenderStorePacket done [18:45:04]KKMCreateOFDPacket done [18:45:04]NVStorageSaveData kkm_last_timestamp [18:45:04]File name is /storage/kkm_last_timestamp [18:45:04]Write 4 bytes [18:45:04]NVStorageSaveData done [18:45:04]ExternCall_PrintAddStr [18:45:04]wPrintStart [18:45:04]Write to MH i2c: 01 00 00 F0 00 F0 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 FF 0F 05 [18:45:04]RasterBufferAndPrint [18:45:04]line Счет N : (3)14605 [18:45:04]line ИНН: 02508201610067 [18:45:04]line Контрольно-Кассовый Чек [18:45:04]line ПРОДАЖА [18:45:04]line Товар: 4870001570071 [18:45:04]line Напиток Pepsi 1л [18:45:04]line 1.000 * 111.00 [18:45:04]line = 111.00 [18:45:04]line НДС 12% НСП 1% [18:45:04]line > о реализуемом товаре [18:45:04]line ИТОГО: 111.00 [18:45:04]line НСП 1% : 0.98 [18:45:04]line НДС 12% : 11.79 [18:45:04]line Наличными: 111.00 [18:45:04]line Безнал.: 0.00 [18:45:04]line Место: АЗС № 128 "Партнер Нефть" [18:45:04]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:04]line СНО: Общий режим [18:45:04]line Чек 84 28.07.2024 18:45 [18:45:04]line Смена: 430 ФФД: 1.0 [18:45:04]line ЗНМ: 0300000045 [18:45:04]line РНМ: 0000000000092655 [18:45:04]line Версия ККМ: 001 [18:45:04]line ФМ: 0000000000874941 [18:45:04]line ФД: 44713 [18:45:04]line ФПД: 168536124100612 [18:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184502&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44713&fm=168536124100612&tin=02508201610067®Number=0000000000092655&sum=11100 [18:45:04]line 0 [18:45:04]written 0, free lines is 4095 [18:45:04]OFD Sender: Processing packet 44713 [packets to send 7, broken 6] [18:45:04]ProducePacketName [18:45:04]name=ofd_packets/00044713 [18:45:04]OFD Sender: To server: pG, [18:45:04]CommunicateWithHost lk.salyk.kg:30040 [18:45:04]ConnectInit lk.salyk.kg [18:45:04]Write to MH i2c: 01 00 00 18 01 19 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 F5 0C 21 [18:45:04]RasterBufferAndPrint [18:45:04]line [18:45:04]line [18:45:04]line [18:45:04]line [18:45:04]line [18:45:04]written 0, free lines is 3350 [18:45:04]process_action close_receipt done [18:45:04]requested_data is exist [18:45:04]produce_requested_data [18:45:04]requested_item fm.sn is exist - process it [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 11 00 00 [18:45:04]Write to MH i2c: E2 08 00 1F 01 80 11 00 00 00 00 00 00 9A [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]Connected sock=10 [18:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 E9 33 16 01 71 E2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 Read from MH i2c: 30 E2 30 17 30 00 30 30 [18:45:05]30 MH_I2C_Read... [18:45:05]30 30 Read from MH i2c: 30 E2 38 17 37 00 34 1F 39 01 34 00 31 11 10 04 04 10 04 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EE A9 [18:45:05]AE RAPDU: 00 11 00 04 35 10 04 00 06 30 00 30 99 30 48 5F CF 10 04 49 9F DC E0 8F 45 84 B6 [18:45:05]30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:05]wFMCommunicate OK [18:45:05]requested_item fd.num is exist - process it [18:45:05]SAM_PROTO_GetFieldsCounters [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 13 00 00 [18:45:05]Write to MH i2c: E2 08 00 20 01 80 13 00 00 00 00 00 00 9D [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 62 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 62 00 20 01 00 5D 00 B9 04 Received data: 01 87 00 95 01 F6 11 70 04 47 10 2C 00 01 30 00 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 38 30 37 39 34 32 39 36 34 35 31 4F 35 00 10 00 04 00 04 B7 00 57 A9 47 AE 00 00 AE 00 6B 0E A5 04 07 04 01 00 AE 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 07 00 00 57 3B 04 00 04 F9 00 03 55 0E 00 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [18:45:05]RAPDU: 5D 00 B9 04 37 01 37 00 30 01 39 11 33 04 36 10 34 00 33 30 34 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 36 30 31 30 32 30 33 30 34 30 11 30 04 30 10 30 00 30 30 30 30 30 30 39 30 32 30 36 30 35 30 35 30 10 30 04 30 04 38 00 37 A9 34 AE 39 00 34 00 31 0E 10 04 04 04 04 00 00 AE A9 01 AE 00 00 00 00 12 F4 04 03 04 04 00 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_GetFieldsCounters done [18:45:05]requested_item shift.num is exist - process it [18:45:05]requested_item shift.opened is exist - process it [18:45:05]req_shift_opened [18:45:05]FM_GetShiftState [18:45:05]SAM_PROTO_GetShiftState [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 13 01 00 [18:45:05]Write to MH i2c: E2 08 00 21 01 80 13 01 00 00 00 00 00 9F [18:45:05]C1 3D A6 66 B6 04 01 00 00 22 54 B6 06 F7 DC 64 FB [18:45:05]CommunicateWithHost err = 0 [18:45:05]CheckOFDResponse [18:45:05]1017 (14) - 77093643461234 [18:45:05]1041 (16) - 0000000000874941 [18:45:05]1040 (4) - 44713 [18:45:05]1012 (4) - 28.07.2024 12:46 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]1206 (1) - 0 [18:45:05]OFD Sender: Remove packet 44713 [18:45:05]ProducePacketName [18:45:05]name=ofd_packets/00044713 [18:45:05]NVStorageDeleteData [18:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0E 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0E 00 21 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 38 [18:45:05]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_GetShiftState done [18:45:05]FM_GetShiftState done [18:45:05]req_shift_opened done [18:45:05]requested_item shift.open_date is exist - process it [18:45:05]req_shift_open_date [18:45:05]req_shift_open_date done [18:45:05]produce_requested_data done [18:45:05]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44713,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:05]process_action_free close_receipt [18:45:05]json_value_free [18:45:05]json_value_free done [18:45:05]process_json_proto returns [18:45:05]Send response to host [18:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44713,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:05]free response buf [18:45:05]execute_script done [18:45:05]execute_script returns [18:45:05]free content buf [18:45:05]Sock 6.Close socket [18:45:05]Sock 6.Thread stoped [18:45:06]OFD Sender: No OFD packet to send [18:45:06]accept exits with 9 [18:45:06]New connection [18:45:06]New thread 3066617188 created [18:45:06]Thread 3066760548 joined [18:45:06]Waiting for new connection... [18:45:06] Sock 9.Parse request [18:45:06]Sock 9.Check first char [18:45:06]Sock 9.First char is OK [18:45:06]request: POST /json_proto HTTP/1.0 [18:45:06]Method: POST [18:45:06]URL: /json_proto [18:45:06]Method is POST - this is cgi request [18:45:06]url: /json_proto [18:45:06]query_string will be loaded in cgi processing [18:45:06]execute_cgi json_proto POST (null) [18:45:06]execute_cgi path=json_proto method=POST [18:45:06]POST find Content-Length [18:45:06]Host: 172.17.45.196:8080 [18:45:06]Content-Length: 613 [18:45:06]Content-Type: application/json [18:45:06] [18:45:06]POST finish read [18:45:06]Found Content-Length = 613 [18:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14606", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:06]execute_script... [18:45:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14606", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:06]POST & json_proto [18:45:06]process_json_proto [18:45:06]json parsed OK: [18:45:06]protocol is kg_v1.0 [18:45:06]action value=close_receipt [18:45:06]process_action close_receipt [18:45:06]cmd_close_receipt [18:45:06]MH_GetDate [18:45:06]Write to MH i2c: F0 00 00 22 01 12 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 09 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: F0 09 00 22 01 00 B2 91 A6 66 BB 03 A5 66 33 [18:45:06]GetLastDocTimeStamp 1722192302 [18:45:06]current date 1722192306 [18:45:06]FM_GetShiftState [18:45:06]SAM_PROTO_GetShiftState [18:45:06]wFMCommunicate request_size=4 [18:45:06]MH_SAM_APDU [18:45:06]CAPDU: 80 13 01 00 [18:45:06]Write to MH i2c: E2 08 00 23 01 80 13 01 00 00 00 00 00 A1 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 23 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3A [18:45:06]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:06]wFMCommunicate OK [18:45:06]SAM_PROTO_GetShiftState done [18:45:06]FM_GetShiftState done [18:45:06]opened in 1722126323 [18:45:06]opened+sec_in_day 1722212723 [18:45:06]quantity*price = 11100 [18:45:06]sum+1 = 11101 [18:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 85 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44714 ФПД: 207374820070537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184507&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44714&fm=207374820070537&tin=02508201610067®Number=0000000000092655&sum=11100 0 [18:45:08]StoreToDocumentArchive [18:45:08]shift 430 fd 44714 [18:45:08]save to /storage/0430/doc_00044714 [18:45:08]save last doc name /storage/0430/doc_00044714 to /storage/kkm_last_doc_name [18:45:08]save OK [18:45:08]Clear old archive folders... [18:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:45:08]tlvbuf is 0140EF30 [18:45:08]SAM_PROTO_ClearQueue [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 09 00 00 [18:45:08]Write to MH i2c: E2 08 00 30 01 80 09 00 00 00 00 00 00 A3 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 30 01 00 90 00 A5 [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_ClearQueue done [18:45:08]KKMCreateOFDPacket [18:45:08]OFDProtocolAddRootSTLVToBuf [18:45:08]FM_MakeSignedData [18:45:08]FM_MakeSignedData [18:45:08]SAM_PROTO_SignData [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 01 02 [18:45:08]Write to MH i2c: E2 08 00 31 01 80 0D 01 02 00 00 00 00 AB [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 31 01 00 90 00 A6 [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=255 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B3 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [18:45:08]Write to MH i2c: E2 02 01 32 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B3 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 1C [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=25 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 02 02 14 34 31 10 04 04 00 AA AE 00 00 35 04 06 00 BC 9B 36 7C 54 89 [18:45:09]Write to MH i2c: E2 1C 00 33 01 80 0D 02 02 14 00 34 31 10 04 04 00 AA AE 00 00 35 04 06 00 BC 9B 36 7C 54 89 00 00 D0 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 03 02 [18:45:09]Write to MH i2c: E2 08 00 34 01 80 0D 03 02 00 00 00 00 B0 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 34 01 00 AC 7E D7 68 10 D6 74 99 90 00 0D [18:45:09]RAPDU: AC 7E D7 68 10 D6 74 99 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_SignData done [18:45:09]FM_MakeSignedData done [18:45:09]CreateOFDProtocolMessage [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 11 00 00 [18:45:09]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 04 [18:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:09]wFMCommunicate OK [18:45:09]CreateOFDProtocolMessage done [18:45:09]OFDSenderStorePacket 44714 [18:45:09]StoreOFDPacket docnum=44714 [18:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 61 AC 16 01 38 2B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B3 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AA AE 00 00 35 04 06 00 BC 9B 36 7C 54 89 AC 7E D7 68 10 D6 74 99 [18:45:09]CheckFolder [18:45:09]dirname=/storage/ofd_packets [18:45:09]CheckFolder done [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00044714 [18:45:09]NVStorageSaveData ofd_packets/00044714 [18:45:09]File name is /storage/ofd_packets/00044714 [18:45:09]Write 316 bytes [18:45:09]NVStorageSaveData done [18:45:09]OFDSenderStorePacket done [18:45:09]KKMCreateOFDPacket done [18:45:09]NVStorageSaveData kkm_last_timestamp [18:45:09]File name is /storage/kkm_last_timestamp [18:45:09]Write 4 bytes [18:45:09]NVStorageSaveData done [18:45:09]ExternCall_PrintAddStr [18:45:09]wPrintStart [18:45:09]Write to MH i2c: 01 00 00 36 01 37 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 FF 0F 4C [18:45:09]RasterBufferAndPrint [18:45:09]line Счет N : (3)14606 [18:45:09]line ИНН: 02508201610067 [18:45:09]line Контрольно-Кассовый Чек [18:45:09]line ПРОДАЖА [18:45:09]line Товар: 4870001570071 [18:45:09]line Напиток Pepsi 1л [18:45:09]line 1.000 * 111.00 [18:45:09]line = 111.00 [18:45:09]line НДС 12% НСП 1% [18:45:09]line > о реализуемом товаре [18:45:09]line ИТОГО: 111.00 [18:45:09]line НСП 1% : 0.98 [18:45:09]line НДС 12% : 11.79 [18:45:09]line Наличными: 111.00 [18:45:09]line Безнал.: 0.00 [18:45:09]line Место: АЗС № 128 "Партнер Нефть" [18:45:09]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:09]line СНО: Общий режим [18:45:09]line Чек 85 28.07.2024 18:45 [18:45:09]line Смена: 430 ФФД: 1.0 [18:45:09]line ЗНМ: 0300000045 [18:45:09]line РНМ: 0000000000092655 [18:45:09]line Версия ККМ: 001 [18:45:09]line ФМ: 0000000000874941 [18:45:09]line ФД: 44714 [18:45:09]line ФПД: 207374820070537 [18:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184507&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44714&fm=207374820070537&tin=02508201610067®Number=0000000000092655&sum=11100 [18:45:09]line 0 [18:45:09]OFD Sender: Processing packet 44714 [packets to send 7, broken 6] [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00044714 [18:45:09]OFD Sender: To server: pG, [18:45:09]CommunicateWithHost lk.salyk.kg:30040 [18:45:09]ConnectInit lk.salyk.kg [18:45:09]written 0, free lines is 4095 [18:45:09]Connected sock=10 [18:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 61 AC 16 01 38 2B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B3 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AA AE 00 00 35 04 06 00 BC 9B 36 7C 54 89 AC 7E D7 68 10 D6 74 99 [18:45:09]Write to MH i2c: 01 00 00 5E 01 5F [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 5E 0D D1 [18:45:09]RasterBufferAndPrint [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]written 0, free lines is 3454 [18:45:09]process_action close_receipt done [18:45:09]requested_data is exist [18:45:09]produce_requested_data [18:45:09]requested_item fm.sn is exist - process it [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 11 00 00 [18:45:09]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 34 [18:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:10]wFMCommunicate OK [18:45:10]requested_item fd.num is exist - process it [18:45:10]SAM_PROTO_GetFieldsCounters [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 13 00 00 [18:45:10]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [18:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 C0 4C 47 00 68 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 Write i2c OK [18:45:10]30 MH_I2C_Read... [18:45:10]30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AA AE 00 00 F4 03 04 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:10]C6 3D A6 66 B6 04 01 00 00 CE 7C E7 42 81 73 EE F2 [18:45:10]CommunicateWithHost err = 0 [18:45:10]CheckOFDResponse [18:45:10]1017 (14) - 77093643461234 [18:45:10]1041 (16) - 0000000000874941 [18:45:10]1040 (4) - 44714 [18:45:10]1012 (4) - 28.07.2024 12:47 [18:45:10]1206 (1) - 0 [18:45:10]OFD Sender: Remove packet 44714 [18:45:10]ProducePacketName [18:45:10]name=ofd_packets/00044714 [18:45:10]NVStorageDeleteData [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 62 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 62 00 66 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [18:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:10]wFMCommunicate OK [18:45:10]SAM_PROTO_GetFieldsCounters done [18:45:10]requested_item shift.num is exist - process it [18:45:10]requested_item shift.opened is exist - process it [18:45:10]req_shift_opened [18:45:10]FM_GetShiftState [18:45:10]SAM_PROTO_GetShiftState [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 13 01 00 [18:45:10]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 0E 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7E [18:45:10]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:10]wFMCommunicate OK [18:45:10]SAM_PROTO_GetShiftState done [18:45:10]FM_GetShiftState done [18:45:10]req_shift_opened done [18:45:10]requested_item shift.open_date is exist - process it [18:45:10]req_shift_open_date [18:45:10]req_shift_open_date done [18:45:10]produce_requested_data done [18:45:10]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44714,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:10]process_action_free close_receipt [18:45:10]json_value_free [18:45:10]json_value_free done [18:45:10]process_json_proto returns [18:45:10]Send response to host [18:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44714,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:10]free response buf [18:45:10]execute_script done [18:45:10]execute_script returns [18:45:10]free content buf [18:45:10]Sock 9.Close socket [18:45:10]Sock 9.Thread stoped [18:45:10]OFD Sender: No OFD packet to send [18:45:11]accept exits with 6 [18:45:11]New connection [18:45:11]New thread 3066760548 created [18:45:11]Thread 3066617188 joined [18:45:11]Waiting for new connection... [18:45:11] Sock 6.Parse request [18:45:11]Sock 6.Check first char [18:45:11]Sock 6.First char is OK [18:45:11]request: POST /json_proto HTTP/1.0 [18:45:11]Method: POST [18:45:11]URL: /json_proto [18:45:11]Method is POST - this is cgi request [18:45:11]url: /json_proto [18:45:11]query_string will be loaded in cgi processing [18:45:11]execute_cgi json_proto POST (null) [18:45:11]execute_cgi path=json_proto method=POST [18:45:11]POST find Content-Length [18:45:11]Host: 172.17.45.196:8080 [18:45:11]Content-Length: 983 [18:45:11]Content-Type: application/json [18:45:11] [18:45:11]POST finish read [18:45:11]Found Content-Length = 983 [18:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14607", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:11]execute_script... [18:45:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14607", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601025117788", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0430\u0440\u0431\u0443\u0437 \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 0,5", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:11]POST & json_proto [18:45:11]process_json_proto [18:45:11]json parsed OK: [18:45:11]protocol is kg_v1.0 [18:45:11]action value=close_receipt [18:45:11]process_action close_receipt [18:45:11]cmd_close_receipt [18:45:11]MH_GetDate [18:45:11]Write to MH i2c: F0 00 00 68 01 58 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: F0 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: F0 09 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: F0 09 00 68 01 00 B8 91 A6 66 BB 03 A5 66 7F [18:45:11]GetLastDocTimeStamp 1722192307 [18:45:11]current date 1722192312 [18:45:11]FM_GetShiftState [18:45:11]SAM_PROTO_GetShiftState [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 01 00 [18:45:11]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 80 [18:45:11]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetShiftState done [18:45:11]FM_GetShiftState done [18:45:11]opened in 1722126323 [18:45:11]opened+sec_in_day 1722212723 [18:45:11]quantity*price = 5000 [18:45:11]sum+1 = 5001 [18:45:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4601025117788 Напиток Фрутмотив арбуз клубника 0,5 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 86 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44715 ФПД: 114580468812088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184512&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44715&fm=114580468812088&tin=02508201610067®Number=0000000000092655&sum=13000 0 [18:45:13]StoreToDocumentArchive [18:45:13]shift 430 fd 44715 [18:45:13]save to /storage/0430/doc_00044715 [18:45:13]save last doc name /storage/0430/doc_00044715 to /storage/kkm_last_doc_name [18:45:13]save OK [18:45:13]Clear old archive folders... [18:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=406 [18:45:13]tlvbuf is 014C37A0 [18:45:13]SAM_PROTO_ClearQueue [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 09 00 00 [18:45:13]Write to MH i2c: E2 08 00 76 01 80 09 00 00 00 00 00 00 E9 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 03 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 03 00 76 01 00 90 00 EB [18:45:13]RAPDU: 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_ClearQueue done [18:45:13]KKMCreateOFDPacket [18:45:13]OFDProtocolAddRootSTLVToBuf [18:45:13]FM_MakeSignedData [18:45:13]FM_MakeSignedData [18:45:13]SAM_PROTO_SignData [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 0D 01 02 [18:45:13]Write to MH i2c: E2 08 00 77 01 80 0D 01 02 00 00 00 00 F1 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 03 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [18:45:13]RAPDU: 90 00 [18:45:13]wFMCommunicate OK [18:45:13]wFMCommunicate request_size=255 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 [18:45:14]Write to MH i2c: E2 02 01 78 01 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 99 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]wFMCommunicate request_size=165 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 0D 02 02 A0 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B8 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AB AE 00 00 35 04 06 00 68 35 D8 24 49 38 [18:45:14]Write to MH i2c: E2 A8 00 79 01 80 0D 02 02 A0 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B8 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AB AE 00 00 35 04 06 00 68 35 D8 24 49 38 00 00 4A [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]wFMCommunicate request_size=4 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 0D 03 02 [18:45:14]Write to MH i2c: E2 08 00 7A 01 80 0D 03 02 00 00 00 00 F6 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:15]Read from MH i2c: E2 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: E2 0B 00 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: E2 0B 00 7A 01 00 2F 7E 15 D6 B0 D4 35 B9 90 00 01 [18:45:15]RAPDU: 2F 7E 15 D6 B0 D4 35 B9 90 00 [18:45:15]wFMCommunicate OK [18:45:15]SAM_PROTO_SignData done [18:45:15]FM_MakeSignedData done [18:45:15]CreateOFDProtocolMessage [18:45:15]wFMCommunicate request_size=4 [18:45:15]MH_SAM_APDU [18:45:15]CAPDU: 80 11 00 00 [18:45:15]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [18:45:15]Write i2c OK [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: E2 [18:45:15]MH_I2C_Read... [18:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:15]Read from MH i2c: E2 17 00 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4A [18:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:15]wFMCommunicate OK [18:45:15]CreateOFDProtocolMessage done [18:45:15]OFDSenderStorePacket 44715 [18:45:15]StoreOFDPacket docnum=44715 [18:45:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AA 01 00 00 9A C4 A2 01 EE 51 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B8 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AB AE 00 00 35 04 06 00 68 35 D8 24 49 38 2F 7E 15 D6 B0 D4 35 B9 [18:45:15]CheckFolder [18:45:15]dirname=/storage/ofd_packets [18:45:15]CheckFolder done [18:45:15]ProducePacketName [18:45:15]name=ofd_packets/00044715 [18:45:15]NVStorageSaveData ofd_packets/00044715 [18:45:15]File name is /storage/ofd_packets/00044715 [18:45:15]Write 456 bytes [18:45:15]NVStorageSaveData done [18:45:15]OFDSenderStorePacket done [18:45:15]KKMCreateOFDPacket done [18:45:15]NVStorageSaveData kkm_last_timestamp [18:45:15]File name is /storage/kkm_last_timestamp [18:45:15]Write 4 bytes [18:45:15]NVStorageSaveData done [18:45:15]ExternCall_PrintAddStr [18:45:15]wPrintStart [18:45:15]Write to MH i2c: 01 00 00 7C 01 7D [18:45:15]Write i2c OK [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 07 00 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [18:45:15]RasterBufferAndPrint [18:45:15]line Счет N : (3)14607 [18:45:15]line ИНН: 02508201610067 [18:45:15]line Контрольно-Кассовый Чек [18:45:15]line ПРОДАЖА [18:45:15]line Товар: 4700000160358 [18:45:15]line Вода Легенда 1л [18:45:15]line 1.000 * 50.00 [18:45:15]line = 50.00 [18:45:15]line НДС 12% НСП 1% [18:45:15]line > о реализуемом товаре [18:45:15]line Товар: 4601025117788 [18:45:15]line Напиток Фрутмотив арбуз клубника 0,5 [18:45:15]line 1.000 * 80.00 [18:45:15]line = 80.00 [18:45:15]line НДС 12% НСП 1% [18:45:15]line > о реализуемом товаре [18:45:15]line ИТОГО: 130.00 [18:45:15]line НСП 1% : 1.15 [18:45:15]line НДС 12% : 13.81 [18:45:15]line Наличными: 130.00 [18:45:15]line Безнал.: 0.00 [18:45:15]line Место: АЗС № 128 "Партнер Нефть" [18:45:15]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:15]line СНО: Общий режим [18:45:15]line Чек 86 28.07.2024 18:45 [18:45:15]line Смена: 430 ФФД: 1.0 [18:45:15]line ЗНМ: 0300000045 [18:45:15]line РНМ: 0000000000092655 [18:45:15]line Версия ККМ: 001 [18:45:15]line ФМ: 0000000000874941 [18:45:15]line ФД: 44715 [18:45:15]line ФПД: 114580468812088 [18:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184512&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44715&fm=114580468812088&tin=02508201610067®Number=0000000000092655&sum=13000 [18:45:15]line 0 [18:45:15]OFD Sender: Processing packet 44715 [packets to send 7, broken 6] [18:45:15]ProducePacketName [18:45:15]name=ofd_packets/00044715 [18:45:15]OFD Sender: To server: pG, [18:45:15]CommunicateWithHost lk.salyk.kg:30040 [18:45:15]ConnectInit lk.salyk.kg [18:45:15]written 0, free lines is 4095 [18:45:15]Connected sock=10 [18:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AA 01 00 00 9A C4 A2 01 EE 51 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 37 38 38 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B8 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AB AE 00 00 35 04 06 00 68 35 D8 24 49 38 Write to MH i2c: 2F 01 7E 00 15 00 D6 AB B0 01 D4 AC 35 [18:45:16]B9 Write i2c OK [18:45:16] [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: 01 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: 01 07 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0D BF [18:45:16]RasterBufferAndPrint [18:45:16]line [18:45:16]line [18:45:16]line [18:45:16]line [18:45:16]line [18:45:16]written 0, free lines is 3629 [18:45:16]process_action close_receipt done [18:45:16]requested_data is exist [18:45:16]produce_requested_data [18:45:16]requested_item fm.sn is exist - process it [18:45:16]wFMCommunicate request_size=4 [18:45:16]MH_SAM_APDU [18:45:16]CAPDU: 80 11 00 00 [18:45:16]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [18:45:16]Write i2c OK [18:45:16]MH_I2C_Read... [18:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:16]Read from MH i2c: E2 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 17 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 81 [18:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:16]wFMCommunicate OK [18:45:16]requested_item fd.num is exist - process it [18:45:16]SAM_PROTO_GetFieldsCounters [18:45:16]wFMCommunicate request_size=4 [18:45:16]MH_SAM_APDU [18:45:16]CAPDU: 80 13 00 00 [18:45:16]Received data: Write to MH i2c: 87 E2 95 08 F6 00 70 B3 47 01 80 13 00 00 00 00 00 00 30 [18:45:16]2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 37 B7 47 00 5C 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AB *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:16]AE 00 00 F4 03 04 00 CC 3D A6 66 B6 04 01 00 00 3C D4 66 5E FA 12 41 00 [18:45:16]CommunicateWithHost err = 0 [18:45:16]CheckOFDResponse [18:45:16]1017 (14) - 77093643461234 [18:45:16]1041 (16) - 0000000000874941 [18:45:16]1040 (4) - 44715 [18:45:16]1012 (4) - 28.07.2024 12:47 [18:45:16]1206 (1) - 0 [18:45:16]OFD Sender: Remove packet 44715 [18:45:16]ProducePacketName [18:45:16]name=ofd_packets/00044715 [18:45:16]NVStorageDeleteData [18:45:16]Write i2c OK [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 62 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 62 00 B3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:45:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:16]wFMCommunicate OK [18:45:16]SAM_PROTO_GetFieldsCounters done [18:45:16]requested_item shift.num is exist - process it [18:45:16]requested_item shift.opened is exist - process it [18:45:16]req_shift_opened [18:45:16]FM_GetShiftState [18:45:16]SAM_PROTO_GetShiftState [18:45:16]wFMCommunicate request_size=4 [18:45:16]MH_SAM_APDU [18:45:16]CAPDU: 80 13 01 00 [18:45:16]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [18:45:16]Write i2c OK [18:45:16]MH_I2C_Read... [18:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:16]Read from MH i2c: E2 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 0E 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CB [18:45:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:16]wFMCommunicate OK [18:45:16]SAM_PROTO_GetShiftState done [18:45:16]FM_GetShiftState done [18:45:16]req_shift_opened done [18:45:16]requested_item shift.open_date is exist - process it [18:45:16]req_shift_open_date [18:45:16]req_shift_open_date done [18:45:16]produce_requested_data done [18:45:16]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44715,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:16]process_action_free close_receipt [18:45:16]json_value_free [18:45:16]json_value_free done [18:45:16]process_json_proto returns [18:45:16]Send response to host [18:45:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44715,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:16]free response buf [18:45:16]execute_script done [18:45:16]execute_script returns [18:45:16]free content buf [18:45:16]Sock 6.Close socket [18:45:16]Sock 6.Thread stoped [18:45:16]OFD Sender: No OFD packet to send [18:45:17]accept exits with 9 [18:45:17]New connection [18:45:17]New thread 3066617188 created [18:45:17] Sock 9.Parse request [18:45:17]Thread 3066760548 joined [18:45:17]Sock 9.Check first char [18:45:17]Waiting for new connection... [18:45:17]Sock 9.First char is OK [18:45:17]request: POST /json_proto HTTP/1.0 [18:45:17]Method: POST [18:45:17]URL: /json_proto [18:45:17]Method is POST - this is cgi request [18:45:17]url: /json_proto [18:45:17]query_string will be loaded in cgi processing [18:45:17]execute_cgi json_proto POST (null) [18:45:17]execute_cgi path=json_proto method=POST [18:45:17]POST find Content-Length [18:45:17]Host: 172.17.45.196:8080 [18:45:17]Content-Length: 877 [18:45:17]Content-Type: application/json [18:45:17] [18:45:17]POST finish read [18:45:17]Found Content-Length = 877 [18:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14608", "tax_sys" : 0, "items" : [ { "code": "4700007690025", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 1,0 \u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:17]execute_script... [18:45:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14608", "tax_sys" : 0, "items" : [ { "code": "4700007690025", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 1,0 \u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:17]POST & json_proto [18:45:17]process_json_proto [18:45:17]json parsed OK: [18:45:17]protocol is kg_v1.0 [18:45:17]action value=close_receipt [18:45:17]process_action close_receipt [18:45:17]cmd_close_receipt [18:45:17]MH_GetDate [18:45:17]Write to MH i2c: F0 00 00 B5 01 A5 [18:45:17]Write i2c OK [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: F0 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: F0 09 00 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: F0 09 00 B5 01 00 BE 91 A6 66 BB 03 A5 66 D2 [18:45:17]GetLastDocTimeStamp 1722192312 [18:45:17]current date 1722192318 [18:45:17]FM_GetShiftState [18:45:17]SAM_PROTO_GetShiftState [18:45:17]wFMCommunicate request_size=4 [18:45:17]MH_SAM_APDU [18:45:17]CAPDU: 80 13 01 00 [18:45:17]Write to MH i2c: E2 08 00 B6 01 80 13 01 00 00 00 00 00 34 [18:45:17]Write i2c OK [18:45:17]MH_I2C_Read... [18:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:17]Read from MH i2c: E2 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 0E 00 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 0E 00 B6 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CD [18:45:17]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:17]wFMCommunicate OK [18:45:17]SAM_PROTO_GetShiftState done [18:45:17]FM_GetShiftState done [18:45:17]opened in 1722126323 [18:45:17]opened+sec_in_day 1722212723 [18:45:17]quantity*price = 4000 [18:45:17]sum+1 = 4001 [18:45:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000014535 Напит Спрайт 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.28 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 87 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44716 ФПД: 91224226234265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184518&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44716&fm=91224226234265&tin=02508201610067®Number=0000000000092655&sum=12500 0 [18:45:19]StoreToDocumentArchive [18:45:19]shift 430 fd 44716 [18:45:19]save to /storage/0430/doc_00044716 [18:45:19]save last doc name /storage/0430/doc_00044716 to /storage/kkm_last_doc_name [18:45:19]save OK [18:45:19]Clear old archive folders... [18:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=376 [18:45:19]tlvbuf is 014FC800 [18:45:19]SAM_PROTO_ClearQueue [18:45:19]wFMCommunicate request_size=4 [18:45:19]MH_SAM_APDU [18:45:19]CAPDU: 80 09 00 00 [18:45:19]Write to MH i2c: E2 08 00 C3 01 80 09 00 00 00 00 00 00 36 [18:45:19]Write i2c OK [18:45:19]MH_I2C_Read... [18:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:19]Read from MH i2c: E2 [18:45:19]MH_I2C_Read... [18:45:19]Read from MH i2c: E2 03 00 [18:45:19]MH_I2C_Read... [18:45:19]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [18:45:19]RAPDU: 90 00 [18:45:19]wFMCommunicate OK [18:45:19]SAM_PROTO_ClearQueue done [18:45:19]KKMCreateOFDPacket [18:45:19]OFDProtocolAddRootSTLVToBuf [18:45:19]FM_MakeSignedData [18:45:19]FM_MakeSignedData [18:45:19]SAM_PROTO_SignData [18:45:19]wFMCommunicate request_size=4 [18:45:19]MH_SAM_APDU [18:45:19]CAPDU: 80 0D 01 02 [18:45:19]Write to MH i2c: E2 08 00 C4 01 80 0D 01 02 00 00 00 00 3E [18:45:19]Write i2c OK [18:45:19]MH_I2C_Read... [18:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:19]Read from MH i2c: E2 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 03 00 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [18:45:20]RAPDU: 90 00 [18:45:20]wFMCommunicate OK [18:45:20]wFMCommunicate request_size=255 [18:45:20]MH_SAM_APDU [18:45:20]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 32 35 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 [18:45:20]Write to MH i2c: E2 02 01 C5 01 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 32 35 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 00 00 E7 [18:45:20]Write i2c OK [18:45:20]MH_I2C_Read... [18:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:20]Read from MH i2c: E2 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 03 00 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 03 00 C5 01 00 90 00 3A [18:45:20]RAPDU: 90 00 [18:45:20]wFMCommunicate OK [18:45:20]wFMCommunicate request_size=135 [18:45:20]MH_SAM_APDU [18:45:20]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AC AE 00 00 35 04 06 00 52 F7 CB 99 7F 99 [18:45:20]Write to MH i2c: E2 8A 00 C6 01 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AC AE 00 00 35 04 06 00 52 F7 CB 99 7F 99 00 00 3D [18:45:20]Write i2c OK [18:45:20]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 C6 01 00 90 00 3B [18:45:21]RAPDU: 90 00 [18:45:21]wFMCommunicate OK [18:45:21]wFMCommunicate request_size=4 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 0D 03 02 [18:45:21]Write to MH i2c: E2 08 00 C7 01 80 0D 03 02 00 00 00 00 43 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 0B 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 0B 00 C7 01 00 A7 67 5D 58 73 86 8B 95 90 00 20 [18:45:21]RAPDU: A7 67 5D 58 73 86 8B 95 90 00 [18:45:21]wFMCommunicate OK [18:45:21]SAM_PROTO_SignData done [18:45:21]FM_MakeSignedData done [18:45:21]CreateOFDProtocolMessage [18:45:21]wFMCommunicate request_size=4 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 11 00 00 [18:45:21]Write to MH i2c: E2 08 00 C8 01 80 11 00 00 00 00 00 00 43 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 17 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 17 00 C8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 97 [18:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:21]wFMCommunicate OK [18:45:21]CreateOFDProtocolMessage done [18:45:21]OFDSenderStorePacket 44716 [18:45:21]StoreOFDPacket docnum=44716 [18:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8C 01 00 00 AA AF 84 01 1D 0B 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 32 35 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AC AE 00 00 35 04 06 00 52 F7 CB 99 7F 99 A7 67 5D 58 73 86 8B 95 [18:45:21]CheckFolder [18:45:21]dirname=/storage/ofd_packets [18:45:21]CheckFolder done [18:45:21]ProducePacketName [18:45:21]name=ofd_packets/00044716 [18:45:21]NVStorageSaveData ofd_packets/00044716 [18:45:21]File name is /storage/ofd_packets/00044716 [18:45:21]Write 426 bytes [18:45:21]NVStorageSaveData done [18:45:21]OFDSenderStorePacket done [18:45:21]KKMCreateOFDPacket done [18:45:21]NVStorageSaveData kkm_last_timestamp [18:45:21]File name is /storage/kkm_last_timestamp [18:45:21]Write 4 bytes [18:45:21]NVStorageSaveData done [18:45:21]ExternCall_PrintAddStr [18:45:21]wPrintStart [18:45:21]Write to MH i2c: 01 00 00 C9 01 CA [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: 01 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: 01 07 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [18:45:21]RasterBufferAndPrint [18:45:21]line Счет N : (3)14608 [18:45:21]line ИНН: 02508201610067 [18:45:21]line Контрольно-Кассовый Чек [18:45:21]line ПРОДАЖА [18:45:21]line Товар: 4700007690025 [18:45:21]line Негаз вода Pamir 1,0 л [18:45:21]line 1.000 * 40.00 [18:45:21]line = 40.00 [18:45:21]line НДС 12% НСП 1% [18:45:21]line > о реализуемом товаре [18:45:21]line Товар: 5449000014535 [18:45:21]line Напит Спрайт 0,33л [18:45:21]line 1.000 * 85.00 [18:45:21]line = 85.00 [18:45:21]line НДС 12% НСП 1% [18:45:21]line > о реализуемом товаре [18:45:21]line ИТОГО: 125.00 [18:45:21]line НСП 1% : 1.10 [18:45:21]line НДС 12% : 13.28 [18:45:21]line Наличными: 125.00 [18:45:21]line Безнал.: 0.00 [18:45:21]line Место: АЗС № 128 "Партнер Нефть" [18:45:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:21]line СНО: Общий режим [18:45:21]line Чек 87 28.07.2024 18:45 [18:45:21]line Смена: 430 ФФД: 1.0 [18:45:21]line ЗНМ: 0300000045 [18:45:21]line РНМ: 0000000000092655 [18:45:21]line Версия ККМ: 001 [18:45:21]line ФМ: 0000000000874941 [18:45:21]line ФД: 44716 [18:45:21]line ФПД: 91224226234265 [18:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184518&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44716&fm=91224226234265&tin=02508201610067®Number=0000000000092655&sum=12500 [18:45:21]line 0 [18:45:21]written 0, free lines is 4095 [18:45:21]OFD Sender: Processing packet 44716 [packets to send 7, broken 6] [18:45:21]ProducePacketName [18:45:21]name=ofd_packets/00044716 [18:45:21]OFD Sender: To server: pG, [18:45:21]CommunicateWithHost lk.salyk.kg:30040 [18:45:21]ConnectInit lk.salyk.kg [18:45:21]Connected sock=10 [18:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8C 01 00 00 AA AF 84 01 1D 0B 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 32 35 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 30 00 30 F7 38 01 37 F8 34 [18:45:22]39 Write i2c OK [18:45:22]34 MH_I2C_Read... [18:45:22]31 Read from MH i2c: 10 01 04 [18:45:22]04 MH_I2C_Read... [18:45:22]00 AC AE 00 00 35 04 06 00 52 F7 CB 99 7F 99 A7 67 5D Read from MH i2c: 58 01 73 07 86 00 8B [18:45:22]95 MH_I2C_Read... [18:45:22] [18:45:22]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 16 0E 23 [18:45:22]RasterBufferAndPrint [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]written 0, free lines is 3696 [18:45:22]process_action close_receipt done [18:45:22]requested_data is exist [18:45:22]produce_requested_data [18:45:22]requested_item fm.sn is exist - process it [18:45:22]wFMCommunicate request_size=4 [18:45:22]MH_SAM_APDU [18:45:22]CAPDU: 80 11 00 00 [18:45:22]Write to MH i2c: E2 08 00 FE 01 80 11 00 00 00 00 00 00 79 [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:22]Read from MH i2c: E2 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 17 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 17 00 FE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CD [18:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:22]wFMCommunicate OK [18:45:22]requested_item fd.num is exist - process it [18:45:22]SAM_PROTO_GetFieldsCounters [18:45:22]wFMCommunicate request_size=4 [18:45:22]MH_SAM_APDU [18:45:22]CAPDU: 80 13 00 00 [18:45:22]Write to MH i2c: E2 08 00 FF 01 80 13 00 00 00 00 00 00 7C [18:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 FC 34 47 00 49 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:22]30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AC AE 00 00 F4 03 04 00 D2 3D A6 66 B6 04 01 00 00 FD E3 DF 58 23 5E 6B 77 [18:45:22]CommunicateWithHost err = 0 [18:45:22]Write i2c OK [18:45:22]CheckOFDResponse [18:45:22]MH_I2C_Read... [18:45:22]1017 (14) - 77093643461234 [18:45:22]Read from MH i2c: 1041 (16) - 0000000000874941 [18:45:22]E2 1040 (4) - 44716 [18:45:22] [18:45:22]1012 (4) - 28.07.2024 12:47 [18:45:22]MH_I2C_Read... [18:45:22]1206 (1) - 0 [18:45:22]Read from MH i2c: OFD Sender: Remove packet 44716 [18:45:22]E2 ProducePacketName [18:45:22]62 name=ofd_packets/00044716 [18:45:22]00 NVStorageDeleteData [18:45:22] [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 62 00 FF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [18:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:22]wFMCommunicate OK [18:45:22]SAM_PROTO_GetFieldsCounters done [18:45:22]requested_item shift.num is exist - process it [18:45:22]requested_item shift.opened is exist - process it [18:45:22]req_shift_opened [18:45:22]FM_GetShiftState [18:45:22]SAM_PROTO_GetShiftState [18:45:22]wFMCommunicate request_size=4 [18:45:22]MH_SAM_APDU [18:45:22]CAPDU: 80 13 01 00 [18:45:22]Write to MH i2c: E2 08 00 00 02 80 13 01 00 00 00 00 00 7F [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:23]Read from MH i2c: E2 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: E2 0E 00 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: E2 0E 00 00 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 18 [18:45:23]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:23]wFMCommunicate OK [18:45:23]SAM_PROTO_GetShiftState done [18:45:23]FM_GetShiftState done [18:45:23]req_shift_opened done [18:45:23]requested_item shift.open_date is exist - process it [18:45:23]req_shift_open_date [18:45:23]req_shift_open_date done [18:45:23]produce_requested_data done [18:45:23]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44716,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:23]process_action_free close_receipt [18:45:23]json_value_free [18:45:23]json_value_free done [18:45:23]process_json_proto returns [18:45:23]Send response to host [18:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44716,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:23]free response buf [18:45:23]execute_script done [18:45:23]execute_script returns [18:45:23]free content buf [18:45:23]Sock 9.Close socket [18:45:23]Sock 9.Thread stoped [18:45:23]OFD Sender: No OFD packet to send [18:45:24]accept exits with 7 [18:45:24]New connection [18:45:24]New thread 3066760548 created [18:45:24]Thread 3066617188 joined [18:45:24]Waiting for new connection... [18:45:24] Sock 7.Parse request [18:45:24]Sock 7.Check first char [18:45:24]Sock 7.First char is OK [18:45:24]request: POST /json_proto HTTP/1.0 [18:45:24]Method: POST [18:45:24]URL: /json_proto [18:45:24]Method is POST - this is cgi request [18:45:24]url: /json_proto [18:45:24]query_string will be loaded in cgi processing [18:45:24]execute_cgi json_proto POST (null) [18:45:24]execute_cgi path=json_proto method=POST [18:45:24]POST find Content-Length [18:45:24]Host: 172.17.45.196:8080 [18:45:24]Content-Length: 684 [18:45:24]Content-Type: application/json [18:45:24] [18:45:24]POST finish read [18:45:24]Found Content-Length = 684 [18:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14609", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:24]execute_script... [18:45:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14609", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:24]POST & json_proto [18:45:24]process_json_proto [18:45:24]json parsed OK: [18:45:24]protocol is kg_v1.0 [18:45:24]action value=close_receipt [18:45:24]process_action close_receipt [18:45:24]cmd_close_receipt [18:45:24]MH_GetDate [18:45:24]Write to MH i2c: F0 00 00 01 02 F2 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 01 02 00 C5 91 A6 66 BB 03 A5 66 26 [18:45:24]GetLastDocTimeStamp 1722192318 [18:45:24]current date 1722192325 [18:45:24]FM_GetShiftState [18:45:24]SAM_PROTO_GetShiftState [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 01 00 [18:45:24]Write to MH i2c: E2 08 00 02 02 80 13 01 00 00 00 00 00 81 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 02 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 1A [18:45:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetShiftState done [18:45:24]FM_GetShiftState done [18:45:24]opened in 1722126323 [18:45:24]opened+sec_in_day 1722212723 [18:45:24]quantity*price = 8000 [18:45:24]sum+1 = 8001 [18:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 88 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44717 ФПД: 108726929057534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184525&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44717&fm=108726929057534&tin=02508201610067®Number=0000000000092655&sum=8000 0 [18:45:26]StoreToDocumentArchive [18:45:26]shift 430 fd 44717 [18:45:26]save to /storage/0430/doc_00044717 [18:45:26]save last doc name /storage/0430/doc_00044717 to /storage/kkm_last_doc_name [18:45:26]save OK [18:45:26]Clear old archive folders... [18:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=296 [18:45:26]tlvbuf is 01422900 [18:45:26]SAM_PROTO_ClearQueue [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 09 00 00 [18:45:26]Write to MH i2c: E2 08 00 0F 02 80 09 00 00 00 00 00 00 83 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 0F 02 00 90 00 85 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_ClearQueue done [18:45:26]KKMCreateOFDPacket [18:45:26]OFDProtocolAddRootSTLVToBuf [18:45:26]FM_MakeSignedData [18:45:26]FM_MakeSignedData [18:45:26]SAM_PROTO_SignData [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 01 02 [18:45:26]Write to MH i2c: E2 08 00 10 02 80 0D 01 02 00 00 00 00 8B [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 10 02 00 90 00 86 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=255 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [18:45:26]Write to MH i2c: E2 02 01 11 02 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B3 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 11 02 00 90 00 87 [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=55 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AD AE 00 00 35 04 06 00 62 E2 F5 FB E6 FE [18:45:27]Write to MH i2c: E2 3A 00 12 02 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AD AE 00 00 35 04 06 00 62 E2 F5 FB E6 FE 00 00 5D [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 12 02 00 90 00 88 [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 03 02 [18:45:27]Write to MH i2c: E2 08 00 13 02 80 0D 03 02 00 00 00 00 90 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 13 02 00 C7 C4 3C B1 D1 C8 EF 54 90 00 E5 [18:45:27]RAPDU: C7 C4 3C B1 D1 C8 EF 54 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_SignData done [18:45:27]FM_MakeSignedData done [18:45:27]CreateOFDProtocolMessage [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 11 00 00 [18:45:27]Write to MH i2c: E2 08 00 14 02 80 11 00 00 00 00 00 00 90 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 14 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E4 [18:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:27]wFMCommunicate OK [18:45:27]CreateOFDProtocolMessage done [18:45:27]OFDSenderStorePacket 44717 [18:45:27]StoreOFDPacket docnum=44717 [18:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 E2 70 34 01 09 EF 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AD AE 00 00 35 04 06 00 62 E2 F5 FB E6 FE C7 C4 3C B1 D1 C8 EF 54 [18:45:27]CheckFolder [18:45:27]dirname=/storage/ofd_packets [18:45:27]CheckFolder done [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00044717 [18:45:27]NVStorageSaveData ofd_packets/00044717 [18:45:27]File name is /storage/ofd_packets/00044717 [18:45:27]Write 346 bytes [18:45:27]NVStorageSaveData done [18:45:27]OFDSenderStorePacket done [18:45:27]KKMCreateOFDPacket done [18:45:27]NVStorageSaveData kkm_last_timestamp [18:45:27]File name is /storage/kkm_last_timestamp [18:45:27]Write 4 bytes [18:45:27]NVStorageSaveData done [18:45:27]ExternCall_PrintAddStr [18:45:27]wPrintStart [18:45:27]Write to MH i2c: 01 00 00 15 02 17 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 FF 0F 2C [18:45:27]RasterBufferAndPrint [18:45:27]line Счет N : (3)14609 [18:45:27]line ИНН: 02508201610067 [18:45:27]line Контрольно-Кассовый Чек [18:45:27]line ПРОДАЖА [18:45:27]line Товар: 4700003010476 [18:45:27]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [18:45:27]line 1.000 * 80.00 [18:45:27]line = 80.00 [18:45:27]line НДС 12% НСП 1% [18:45:27]line > о реализуемом товаре [18:45:27]line ИТОГО: 80.00 [18:45:27]line НСП 1% : 0.71 [18:45:27]line НДС 12% : 8.50 [18:45:27]line Наличными: 80.00 [18:45:27]line Безнал.: 0.00 [18:45:27]line Место: АЗС № 128 "Партнер Нефть" [18:45:27]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:27]line СНО: Общий режим [18:45:27]line Чек 88 28.07.2024 18:45 [18:45:27]line Смена: 430 ФФД: 1.0 [18:45:27]line ЗНМ: 0300000045 [18:45:27]line РНМ: 0000000000092655 [18:45:27]line Версия ККМ: 001 [18:45:27]line ФМ: 0000000000874941 [18:45:27]line ФД: 44717 [18:45:27]line ФПД: 108726929057534 [18:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184525&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44717&fm=108726929057534&tin=02508201610067®Number=0000000000092655&sum=8000 [18:45:27]line 0 [18:45:27]OFD Sender: Processing packet 44717 [packets to send 7, broken 6] [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00044717 [18:45:27]OFD Sender: To server: pG, [18:45:27]CommunicateWithHost lk.salyk.kg:30040 [18:45:27]ConnectInit lk.salyk.kg [18:45:27]written 0, free lines is 4095 [18:45:28]Connected sock=10 [18:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 E2 70 34 01 09 EF 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C5 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 Write to MH i2c: 01 30 00 30 00 30 3E 30 02 30 40 30 [18:45:28]30 Write i2c OK [18:45:28]30 MH_I2C_Read... [18:45:28]30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 Read from MH i2c: 30 30 01 30 [18:45:28]30 MH_I2C_Read... [18:45:28]30 Read from MH i2c: 30 01 38 07 37 00 34 [18:45:28]39 MH_I2C_Read... [18:45:28]34 Read from MH i2c: 31 01 10 07 04 00 04 3E 00 02 AD 00 AE 00 00 00 00 00 35 00 04 1E 06 0D 00 72 62 [18:45:28]E2 RasterBufferAndPrint [18:45:28]F5 line [18:45:28]FB line [18:45:28]E6 line [18:45:28]FE line [18:45:28]C7 line [18:45:28]C4 3C written 0, free lines is 3538 [18:45:28]B1 D1 C8 EF 54 [18:45:28]process_action close_receipt done [18:45:28]requested_data is exist [18:45:28]produce_requested_data [18:45:28]requested_item fm.sn is exist - process it [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 45 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 15 [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:28]wFMCommunicate OK [18:45:28]requested_item fd.num is exist - process it [18:45:28]SAM_PROTO_GetFieldsCounters [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 00 00 [18:45:28]Write to MH i2c: E2 08 00 46 02 80 13 00 00 00 00 00 00 C4 [18:45:28]Received data: 87 95 F6 70 47 Write i2c OK [18:45:28]2C MH_I2C_Read... [18:45:28]01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 05 61 47 00 9A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AD AE 00 00 F4 03 04 00 D8 3D A6 66 B6 04 01 00 00 A3 F0 5D 7E 03 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:28]E8 F5 83 [18:45:28]CommunicateWithHost err = 0 [18:45:28]CheckOFDResponse [18:45:28]1017 (14) - 77093643461234 [18:45:28]1041 (16) - 0000000000874941 [18:45:28]1040 (4) - 44717 [18:45:28]1012 (4) - 28.07.2024 12:47 [18:45:28]Read from MH i2c: 1206 (1) - 0 [18:45:28]E2 OFD Sender: Remove packet 44717 [18:45:28] [18:45:28]ProducePacketName [18:45:28]MH_I2C_Read... [18:45:28]name=ofd_packets/00044717 [18:45:28]NVStorageDeleteData [18:45:28]Read from MH i2c: E2 62 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 46 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [18:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetFieldsCounters done [18:45:29]requested_item shift.num is exist - process it [18:45:29]requested_item shift.opened is exist - process it [18:45:29]req_shift_opened [18:45:29]FM_GetShiftState [18:45:29]SAM_PROTO_GetShiftState [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 13 01 00 [18:45:29]Write to MH i2c: E2 08 00 47 02 80 13 01 00 00 00 00 00 C6 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 47 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5F [18:45:29]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetShiftState done [18:45:29]FM_GetShiftState done [18:45:29]req_shift_opened done [18:45:29]requested_item shift.open_date is exist - process it [18:45:29]req_shift_open_date [18:45:29]req_shift_open_date done [18:45:29]produce_requested_data done [18:45:29]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44717,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:29]process_action_free close_receipt [18:45:29]json_value_free [18:45:29]json_value_free done [18:45:29]process_json_proto returns [18:45:29]Send response to host [18:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44717,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:29]free response buf [18:45:29]execute_script done [18:45:29]execute_script returns [18:45:29]free content buf [18:45:29]Sock 7.Close socket [18:45:29]Sock 7.Thread stoped [18:45:29]OFD Sender: No OFD packet to send [18:45:30]accept exits with 9 [18:45:30]New connection [18:45:30]New thread 3066617188 created [18:45:30]Thread 3066760548 joined [18:45:30]Waiting for new connection... [18:45:30] Sock 9.Parse request [18:45:30]Sock 9.Check first char [18:45:30]Sock 9.First char is OK [18:45:30]request: POST /json_proto HTTP/1.0 [18:45:30]Method: POST [18:45:30]URL: /json_proto [18:45:30]Method is POST - this is cgi request [18:45:30]url: /json_proto [18:45:30]query_string will be loaded in cgi processing [18:45:30]execute_cgi json_proto POST (null) [18:45:30]execute_cgi path=json_proto method=POST [18:45:30]POST find Content-Length [18:45:30]Host: 172.17.45.196:8080 [18:45:30]Content-Length: 621 [18:45:30]Content-Type: application/json [18:45:30] [18:45:30]POST finish read [18:45:30]Found Content-Length = 621 [18:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14610", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:30]execute_script... [18:45:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14610", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:30]POST & json_proto [18:45:30]process_json_proto [18:45:30]json parsed OK: [18:45:30]protocol is kg_v1.0 [18:45:30]action value=close_receipt [18:45:30]process_action close_receipt [18:45:30]cmd_close_receipt [18:45:30]MH_GetDate [18:45:30]Write to MH i2c: F0 00 00 48 02 39 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 48 02 00 CB 91 A6 66 BB 03 A5 66 73 [18:45:30]GetLastDocTimeStamp 1722192325 [18:45:30]current date 1722192331 [18:45:30]FM_GetShiftState [18:45:30]SAM_PROTO_GetShiftState [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 01 00 [18:45:30]Write to MH i2c: E2 08 00 49 02 80 13 01 00 00 00 00 00 C8 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 49 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 61 [18:45:30]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetShiftState done [18:45:30]FM_GetShiftState done [18:45:30]opened in 1722126323 [18:45:30]opened+sec_in_day 1722212723 [18:45:30]quantity*price = 15000 [18:45:30]sum+1 = 15001 [18:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 89 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44718 ФПД: 25078254698953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184531&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44718&fm=25078254698953&tin=02508201610067®Number=0000000000092655&sum=15000 0 [18:45:32]StoreToDocumentArchive [18:45:32]shift 430 fd 44718 [18:45:32]save to /storage/0430/doc_00044718 [18:45:32]save last doc name /storage/0430/doc_00044718 to /storage/kkm_last_doc_name [18:45:32]save OK [18:45:32]Clear old archive folders... [18:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:45:32]tlvbuf is 0152FAD0 [18:45:32]SAM_PROTO_ClearQueue [18:45:32]wFMCommunicate request_size=4 [18:45:32]MH_SAM_APDU [18:45:32]CAPDU: 80 09 00 00 [18:45:32]Write to MH i2c: E2 08 00 56 02 80 09 00 00 00 00 00 00 CA [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 03 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [18:45:32]RAPDU: 90 00 [18:45:32]wFMCommunicate OK [18:45:32]SAM_PROTO_ClearQueue done [18:45:32]KKMCreateOFDPacket [18:45:32]OFDProtocolAddRootSTLVToBuf [18:45:32]FM_MakeSignedData [18:45:32]FM_MakeSignedData [18:45:32]SAM_PROTO_SignData [18:45:32]wFMCommunicate request_size=4 [18:45:32]MH_SAM_APDU [18:45:32]CAPDU: 80 0D 01 02 [18:45:32]Write to MH i2c: E2 08 00 57 02 80 0D 01 02 00 00 00 00 D2 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 03 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 03 00 57 02 00 90 00 CD [18:45:33]RAPDU: 90 00 [18:45:33]wFMCommunicate OK [18:45:33]wFMCommunicate request_size=255 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CB 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [18:45:33]Write to MH i2c: E2 02 01 58 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CB 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 E5 [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 03 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 03 00 58 02 00 90 00 CE [18:45:33]RAPDU: 90 00 [18:45:33]wFMCommunicate OK [18:45:33]wFMCommunicate request_size=33 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AE AE 00 00 35 04 06 00 16 CE FC 76 81 C9 [18:45:33]Write to MH i2c: E2 24 00 59 02 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AE AE 00 00 35 04 06 00 16 CE FC 76 81 C9 00 00 61 [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 03 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 03 00 59 02 00 90 00 CF [18:45:34]RAPDU: 90 00 [18:45:34]wFMCommunicate OK [18:45:34]wFMCommunicate request_size=4 [18:45:34]MH_SAM_APDU [18:45:34]CAPDU: 80 0D 03 02 [18:45:34]Write to MH i2c: E2 08 00 5A 02 80 0D 03 02 00 00 00 00 D7 [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0B 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0B 00 5A 02 00 81 27 E6 04 E1 45 1A 72 90 00 1C [18:45:34]RAPDU: 81 27 E6 04 E1 45 1A 72 90 00 [18:45:34]wFMCommunicate OK [18:45:34]SAM_PROTO_SignData done [18:45:34]FM_MakeSignedData done [18:45:34]CreateOFDProtocolMessage [18:45:34]wFMCommunicate request_size=4 [18:45:34]MH_SAM_APDU [18:45:34]CAPDU: 80 11 00 00 [18:45:34]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 17 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2B [18:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:34]wFMCommunicate OK [18:45:34]CreateOFDProtocolMessage done [18:45:34]OFDSenderStorePacket 44718 [18:45:34]StoreOFDPacket docnum=44718 [18:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 56 4E 1E 01 01 DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CB 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AE AE 00 00 35 04 06 00 16 CE FC 76 81 C9 81 27 E6 04 E1 45 1A 72 [18:45:34]CheckFolder [18:45:34]dirname=/storage/ofd_packets [18:45:34]CheckFolder done [18:45:34]ProducePacketName [18:45:34]name=ofd_packets/00044718 [18:45:34]NVStorageSaveData ofd_packets/00044718 [18:45:34]File name is /storage/ofd_packets/00044718 [18:45:34]Write 324 bytes [18:45:34]NVStorageSaveData done [18:45:34]OFDSenderStorePacket done [18:45:34]KKMCreateOFDPacket done [18:45:34]NVStorageSaveData kkm_last_timestamp [18:45:34]File name is /storage/kkm_last_timestamp [18:45:34]Write 4 bytes [18:45:34]NVStorageSaveData done [18:45:34]ExternCall_PrintAddStr [18:45:34]wPrintStart [18:45:34]Write to MH i2c: 01 00 00 5C 02 5E [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: 01 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: 01 07 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 FF 0F 73 [18:45:34]RasterBufferAndPrint [18:45:34]line Счет N : (3)14610 [18:45:34]line ИНН: 02508201610067 [18:45:34]line Контрольно-Кассовый Чек [18:45:34]line ПРОДАЖА [18:45:34]line Товар: 4640030091621 [18:45:34]line Сигареты ESSE Exchange W [18:45:34]line 1.000 * 150.00 [18:45:34]line = 150.00 [18:45:34]line НДС 12% НСП 1% [18:45:34]line > о реализуемом товаре [18:45:34]line ИТОГО: 150.00 [18:45:34]line НСП 1% : 1.33 [18:45:34]line НДС 12% : 15.93 [18:45:34]line Наличными: 150.00 [18:45:34]line Безнал.: 0.00 [18:45:34]line Место: АЗС № 128 "Партнер Нефть" [18:45:34]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:34]line СНО: Общий режим [18:45:34]line Чек 89 28.07.2024 18:45 [18:45:34]line Смена: 430 ФФД: 1.0 [18:45:34]line ЗНМ: 0300000045 [18:45:34]line РНМ: 0000000000092655 [18:45:34]line Версия ККМ: 001 [18:45:34]line ФМ: 0000000000874941 [18:45:34]line ФД: 44718 [18:45:34]line ФПД: 25078254698953 [18:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184531&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44718&fm=25078254698953&tin=02508201610067®Number=0000000000092655&sum=15000 [18:45:34]line 0 [18:45:34]OFD Sender: Processing packet 44718 [packets to send 7, broken 6] [18:45:34]ProducePacketName [18:45:34]name=ofd_packets/00044718 [18:45:34]OFD Sender: To server: pG, [18:45:34]CommunicateWithHost lk.salyk.kg:30040 [18:45:34]ConnectInit lk.salyk.kg [18:45:34]written 0, free lines is 4095 [18:45:34]Connected sock=7 [18:45:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 56 4E 1E 01 01 DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CB 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 Write to MH i2c: 30 01 30 00 30 00 30 84 02 86 [18:45:34]30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AE AE 00 00 35 04 06 00 Write i2c OK [18:45:35]16 MH_I2C_Read... [18:45:35]CE Read from MH i2c: FC 01 76 81 C9 [18:45:35]81 MH_I2C_Read... [18:45:35]27 E6 04 E1 Read from MH i2c: 45 01 1A 07 72 00 [18:45:35] [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 B0 0D 4A [18:45:35]RasterBufferAndPrint [18:45:35]line [18:45:35]line [18:45:35]line [18:45:35]line [18:45:35]line [18:45:35]written 0, free lines is 3662 [18:45:35]process_action close_receipt done [18:45:35]requested_data is exist [18:45:35]produce_requested_data [18:45:35]requested_item fm.sn is exist - process it [18:45:35]wFMCommunicate request_size=4 [18:45:35]MH_SAM_APDU [18:45:35]CAPDU: 80 11 00 00 [18:45:35]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [18:45:35]Write i2c OK [18:45:35]MH_I2C_Read... [18:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:35]Read from MH i2c: E2 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 17 00 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 Received data: 30 87 30 95 38 F6 37 70 34 47 39 2C 34 01 31 00 90 30 00 30 5B 30 [18:45:35]30 RAPDU: 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:35]wFMCommunicate OK [18:45:35]38 requested_item fd.num is exist - process it [18:45:35]37 SAM_PROTO_GetFieldsCounters [18:45:35]34 wFMCommunicate request_size=4 [18:45:35]39 MH_SAM_APDU [18:45:35]34 CAPDU: 31 80 4F 13 00 00 00 00 00 [18:45:35]23 Write to MH i2c: 17 E2 47 08 00 00 8C 02 80 13 00 00 00 00 00 00 6F 0A D7 [18:45:35]A5 07 01 00 07 00 Write i2c OK [18:45:35]3B MH_I2C_Read... [18:45:35]00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AE AE 00 00 F4 03 04 00 DF 3D A6 66 B6 04 01 00 00 F4 E8 D8 63 ED ED 86 2F [18:45:35]CommunicateWithHost err = 0 [18:45:35]CheckOFDResponse [18:45:35]1017 (14) - 77093643461234 [18:45:35]1041 (16) - 0000000000874941 [18:45:35]1040 (4) - 44718 [18:45:35]1012 (4) - 28.07.2024 12:47 [18:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:35]1206 (1) - 0 [18:45:35]OFD Sender: Remove packet 44718 [18:45:35]ProducePacketName [18:45:35]name=ofd_packets/00044718 [18:45:35]NVStorageDeleteData [18:45:35]Read from MH i2c: E2 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 62 00 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 62 00 8C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [18:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:35]wFMCommunicate OK [18:45:35]SAM_PROTO_GetFieldsCounters done [18:45:35]requested_item shift.num is exist - process it [18:45:35]requested_item shift.opened is exist - process it [18:45:35]req_shift_opened [18:45:35]FM_GetShiftState [18:45:35]SAM_PROTO_GetShiftState [18:45:35]wFMCommunicate request_size=4 [18:45:35]MH_SAM_APDU [18:45:35]CAPDU: 80 13 01 00 [18:45:35]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [18:45:35]Write i2c OK [18:45:35]MH_I2C_Read... [18:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:35]Read from MH i2c: E2 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 0E 00 [18:45:35]MH_I2C_Read... [18:45:35]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A5 [18:45:35]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:35]wFMCommunicate OK [18:45:35]SAM_PROTO_GetShiftState done [18:45:35]FM_GetShiftState done [18:45:35]req_shift_opened done [18:45:35]requested_item shift.open_date is exist - process it [18:45:35]req_shift_open_date [18:45:35]req_shift_open_date done [18:45:35]produce_requested_data done [18:45:35]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44718,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:35]process_action_free close_receipt [18:45:35]json_value_free [18:45:35]json_value_free done [18:45:35]process_json_proto returns [18:45:35]Send response to host [18:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44718,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:35]free response buf [18:45:35]execute_script done [18:45:35]execute_script returns [18:45:35]free content buf [18:45:35]Sock 9.Close socket [18:45:35]Sock 9.Thread stoped [18:45:36]OFD Sender: No OFD packet to send [18:45:37]accept exits with 10 [18:45:37]New connection [18:45:37]New thread 3066760548 created [18:45:37]Thread 3066617188 joined [18:45:37]Waiting for new connection... [18:45:37] Sock 10.Parse request [18:45:37]Sock 10.Check first char [18:45:37]Sock 10.First char is OK [18:45:37]request: POST /json_proto HTTP/1.0 [18:45:37]Method: POST [18:45:37]URL: /json_proto [18:45:37]Method is POST - this is cgi request [18:45:37]url: /json_proto [18:45:37]query_string will be loaded in cgi processing [18:45:37]execute_cgi json_proto POST (null) [18:45:37]execute_cgi path=json_proto method=POST [18:45:37]POST find Content-Length [18:45:37]Host: 172.17.45.196:8080 [18:45:37]Content-Length: 727 [18:45:37]Content-Type: application/json [18:45:37] [18:45:37]POST finish read [18:45:37]Found Content-Length = 727 [18:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14611", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:37]execute_script... [18:45:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14611", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:37]POST & json_proto [18:45:37]process_json_proto [18:45:37]json parsed OK: [18:45:37]protocol is kg_v1.0 [18:45:37]action value=close_receipt [18:45:37]process_action close_receipt [18:45:37]cmd_close_receipt [18:45:37]MH_GetDate [18:45:37]Write to MH i2c: F0 00 00 8E 02 7F [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 09 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 09 00 8E 02 00 D2 91 A6 66 BB 03 A5 66 C0 [18:45:37]GetLastDocTimeStamp 1722192331 [18:45:37]current date 1722192338 [18:45:37]FM_GetShiftState [18:45:37]SAM_PROTO_GetShiftState [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 13 01 00 [18:45:37]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A7 [18:45:37]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_GetShiftState done [18:45:37]FM_GetShiftState done [18:45:37]opened in 1722126323 [18:45:37]opened+sec_in_day 1722212723 [18:45:37]quantity*price = 10700 [18:45:37]sum+1 = 10701 [18:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 90 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44719 ФПД: 96693906905699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184538&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44719&fm=96693906905699&tin=02508201610067®Number=0000000000092655&sum=10700 0 [18:45:39]StoreToDocumentArchive [18:45:39]shift 430 fd 44719 [18:45:39]save to /storage/0430/doc_00044719 [18:45:39]save last doc name /storage/0430/doc_00044719 to /storage/kkm_last_doc_name [18:45:39]save OK [18:45:39]Clear old archive folders... [18:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=308 [18:45:39]tlvbuf is 01570770 [18:45:39]SAM_PROTO_ClearQueue [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 09 00 00 [18:45:39]Write to MH i2c: E2 08 00 9C 02 80 09 00 00 00 00 00 00 10 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 03 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [18:45:39]RAPDU: 90 00 [18:45:39]wFMCommunicate OK [18:45:39]SAM_PROTO_ClearQueue done [18:45:39]KKMCreateOFDPacket [18:45:39]OFDProtocolAddRootSTLVToBuf [18:45:39]FM_MakeSignedData [18:45:39]FM_MakeSignedData [18:45:39]SAM_PROTO_SignData [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 0D 01 02 [18:45:39]Write to MH i2c: E2 08 00 9D 02 80 0D 01 02 00 00 00 00 18 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 03 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [18:45:39]RAPDU: 90 00 [18:45:39]wFMCommunicate OK [18:45:39]wFMCommunicate request_size=255 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 [18:45:40]Write to MH i2c: E2 02 01 9E 02 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 00 00 C7 [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 03 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [18:45:40]RAPDU: 90 00 [18:45:40]wFMCommunicate OK [18:45:40]wFMCommunicate request_size=67 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AF AE 00 00 35 04 06 00 57 F1 4D F9 1A 63 [18:45:40]Write to MH i2c: E2 46 00 9F 02 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AF AE 00 00 35 04 06 00 57 F1 4D F9 1A 63 00 00 DE [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 03 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [18:45:40]RAPDU: 90 00 [18:45:40]wFMCommunicate OK [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 0D 03 02 [18:45:40]Write to MH i2c: E2 08 00 A0 02 80 0D 03 02 00 00 00 00 1D [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 OFD Sender: No OFD packet to send [18:45:41]0B 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 0B 00 A0 02 00 E5 49 78 0F ED 3E F4 98 90 00 8A [18:45:41]RAPDU: E5 49 78 0F ED 3E F4 98 90 00 [18:45:41]wFMCommunicate OK [18:45:41]SAM_PROTO_SignData done [18:45:41]FM_MakeSignedData done [18:45:41]CreateOFDProtocolMessage [18:45:41]wFMCommunicate request_size=4 [18:45:41]MH_SAM_APDU [18:45:41]CAPDU: 80 11 00 00 [18:45:41]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 17 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 71 [18:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:41]wFMCommunicate OK [18:45:41]CreateOFDProtocolMessage done [18:45:41]OFDSenderStorePacket 44719 [18:45:41]StoreOFDPacket docnum=44719 [18:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 3A 54 40 01 46 49 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 AF AE 00 00 35 04 06 00 57 F1 4D F9 1A 63 E5 49 78 0F ED 3E F4 98 [18:45:41]CheckFolder [18:45:41]dirname=/storage/ofd_packets [18:45:41]CheckFolder done [18:45:41]ProducePacketName [18:45:41]name=ofd_packets/00044719 [18:45:41]NVStorageSaveData ofd_packets/00044719 [18:45:41]File name is /storage/ofd_packets/00044719 [18:45:41]Write 358 bytes [18:45:41]NVStorageSaveData done [18:45:41]OFDSenderStorePacket done [18:45:41]KKMCreateOFDPacket done [18:45:41]NVStorageSaveData kkm_last_timestamp [18:45:41]File name is /storage/kkm_last_timestamp [18:45:41]Write 4 bytes [18:45:41]NVStorageSaveData done [18:45:41]ExternCall_PrintAddStr [18:45:41]wPrintStart [18:45:41]Write to MH i2c: 01 00 00 A2 02 A4 [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: 01 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: 01 07 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [18:45:41]RasterBufferAndPrint [18:45:41]line Счет N : (3)14611 [18:45:41]line ИНН: 02508201610067 [18:45:41]line Контрольно-Кассовый Чек [18:45:41]line ПРОДАЖА [18:45:41]line Товар: 5449000027474 [18:45:41]line Напиток FuzeTea зел чай манго,ромашка 1л [18:45:41]line 1.000 * 107.00 [18:45:41]line = 107.00 [18:45:41]line НДС 12% НСП 1% [18:45:41]line > о реализуемом товаре [18:45:41]line ИТОГО: 107.00 [18:45:41]line НСП 1% : 0.95 [18:45:41]line НДС 12% : 11.36 [18:45:41]line Наличными: 107.00 [18:45:41]line Безнал.: 0.00 [18:45:41]line Место: АЗС № 128 "Партнер Нефть" [18:45:41]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:41]line СНО: Общий режим [18:45:41]OFD Sender: Processing packet 44719 [packets to send 7, broken 6] [18:45:41]line Чек 90 28.07.2024 18:45 [18:45:41]ProducePacketName [18:45:41]line Смена: 430 ФФД: 1.0 [18:45:41]name=ofd_packets/00044719 [18:45:41]line ЗНМ: 0300000045 [18:45:41]OFD Sender: To server: pG, [18:45:41]line РНМ: 0000000000092655 [18:45:41]CommunicateWithHost lk.salyk.kg:30040 [18:45:41]line Версия ККМ: 001 [18:45:41]ConnectInit lk.salyk.kg [18:45:41]line ФМ: 0000000000874941 [18:45:41]line ФД: 44719 [18:45:41]line ФПД: 96693906905699 [18:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184538&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44719&fm=96693906905699&tin=02508201610067®Number=0000000000092655&sum=10700 [18:45:41]line 0 [18:45:41]written 0, free lines is 4095 [18:45:41]Connected sock=11 [18:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 48 01 00 00 3A 54 40 01 46 49 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 Write to MH i2c: 01 01 00 00 01 00 BC CB 04 02 01 CD 00 [18:45:41]01 Write i2c OK [18:45:41]FC MH_I2C_Read... [18:45:41]03 06 00 CC 29 00 00 00 Read from MH i2c: 00 01 EB [18:45:41]03 MH_I2C_Read... [18:45:41]26 00 EF 03 0F 00 F6 03 01 00 Read from MH i2c: 01 01 F7 07 03 00 06 [18:45:41]00 MH_I2C_Read... [18:45:41]5F Read from MH i2c: 00 01 00 07 00 00 00 EE 03 0F 00 F2 03 01 00 00 CB 01 02 F3 00 03 00 06 00 00 00 70 00 04 A6 00 00 00 00 07 04 06 00 CC 29 0D 00 87 00 [18:45:42]00 RasterBufferAndPrint [18:45:42]00 line [18:45:42]39 line [18:45:42]04 line [18:45:42]06 line [18:45:42]00 line [18:45:42]00 00 written 0, free lines is 3722 [18:45:42]00 00 00 00 1F 04 02 00 01 process_action close_receipt done [18:45:42]00 requested_data is exist [18:45:42]12 produce_requested_data [18:45:42]04 requested_item fm.sn is exist - process it [18:45:42]04 wFMCommunicate request_size=4 [18:45:42]00 MH_SAM_APDU [18:45:42]5A 00 00 00 F4 03 04 00 D2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 CAPDU: 00 80 30 11 30 00 30 00 [18:45:42]Write to MH i2c: E2 08 00 D2 02 80 30 11 30 00 30 00 30 30 00 00 00 00 4E [18:45:42]30 30 30 39 32 36 35 35 11 04 10 00 Write i2c OK [18:45:42]30 MH_I2C_Read... [18:45:42]30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 Read from MH i2c: 10 E2 04 [18:45:42]04 MH_I2C_Read... [18:45:42]00 AF AE 00 00 35 Read from MH i2c: 04 E2 06 17 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:42]00 00 [18:45:42]57 MH_I2C_Read... [18:45:42]F1 4D F9 Read from MH i2c: 1A E2 63 17 E5 00 49 D2 78 02 0F ED 3E F4 98 [18:45:42]00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A2 [18:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:42]wFMCommunicate OK [18:45:42]requested_item fd.num is exist - process it [18:45:42]SAM_PROTO_GetFieldsCounters [18:45:42]wFMCommunicate request_size=4 [18:45:42]MH_SAM_APDU [18:45:42]CAPDU: 80 13 00 00 [18:45:42]Write to MH i2c: E2 08 00 D3 02 80 13 00 00 00 00 00 00 51 [18:45:42]Write i2c OK [18:45:42]MH_I2C_Read... [18:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 1C 6C 47 00 7B 85 A5 07 01 00 07 00 3B 00 F9 03 Read from MH i2c: 0E E2 00 [18:45:42]37 MH_I2C_Read... [18:45:42]37 Read from MH i2c: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:42]E2 30 62 39 00 33 36 34 33 34 36 31 32 33 34 [18:45:42]11 MH_I2C_Read... [18:45:42]04 10 00 Read from MH i2c: 30 E2 30 62 30 00 30 D3 30 02 30 00 30 5D 30 00 30 B9 30 38 37 34 39 34 31 10 04 04 04 00 01 AF 00 AE 01 00 11 00 04 F4 10 03 00 04 30 00 E6 3D A6 66 B6 04 01 00 30 00 30 F1 30 93 30 8E 30 0C 30 0F 30 7A 30 6B 30 90 [18:45:42]CommunicateWithHost err = 0 [18:45:42]CheckOFDResponse [18:45:42]1017 (14) - 77093643461234 [18:45:42]1041 (16) - 0000000000874941 [18:45:42]1040 (4) - 44719 [18:45:42]1012 (4) - 28.07.2024 12:47 [18:45:42]1206 (1) - 0 [18:45:42]38 OFD Sender: Remove packet 44719 [18:45:42]37 ProducePacketName [18:45:42]34 name=ofd_packets/00044719 [18:45:42]39 NVStorageDeleteData [18:45:42]34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [18:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 AF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:43]wFMCommunicate OK [18:45:43]SAM_PROTO_GetFieldsCounters done [18:45:43]requested_item shift.num is exist - process it [18:45:43]requested_item shift.opened is exist - process it [18:45:43]req_shift_opened [18:45:43]FM_GetShiftState [18:45:43]SAM_PROTO_GetShiftState [18:45:43]wFMCommunicate request_size=4 [18:45:43]MH_SAM_APDU [18:45:43]CAPDU: 80 13 01 00 [18:45:43]Write to MH i2c: E2 08 00 D4 02 80 13 01 00 00 00 00 00 53 [18:45:43]Write i2c OK [18:45:43]MH_I2C_Read... [18:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:43]Read from MH i2c: E2 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 0E 00 [18:45:43]MH_I2C_Read... [18:45:43]Read from MH i2c: E2 0E 00 D4 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 EC [18:45:43]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:43]wFMCommunicate OK [18:45:43]SAM_PROTO_GetShiftState done [18:45:43]FM_GetShiftState done [18:45:43]req_shift_opened done [18:45:43]requested_item shift.open_date is exist - process it [18:45:43]req_shift_open_date [18:45:43]req_shift_open_date done [18:45:43]produce_requested_data done [18:45:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44719,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:43]process_action_free close_receipt [18:45:43]json_value_free [18:45:43]json_value_free done [18:45:43]process_json_proto returns [18:45:43]Send response to host [18:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44719,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:43]free response buf [18:45:43]execute_script done [18:45:43]execute_script returns [18:45:43]free content buf [18:45:43]Sock 10.Close socket [18:45:43]Sock 10.Thread stoped [18:45:43]OFD Sender: No OFD packet to send [18:45:44]accept exits with 7 [18:45:44]New connection [18:45:44]New thread 3066617188 created [18:45:44]Thread 3066760548 joined [18:45:44]Waiting for new connection... [18:45:44] Sock 7.Parse request [18:45:44]Sock 7.Check first char [18:45:44]Sock 7.First char is OK [18:45:44]request: POST /json_proto HTTP/1.0 [18:45:44]Method: POST [18:45:44]URL: /json_proto [18:45:44]Method is POST - this is cgi request [18:45:44]url: /json_proto [18:45:44]query_string will be loaded in cgi processing [18:45:44]execute_cgi json_proto POST (null) [18:45:44]execute_cgi path=json_proto method=POST [18:45:44]POST find Content-Length [18:45:44]Host: 172.17.45.196:8080 [18:45:44]Content-Length: 1249 [18:45:44]Content-Type: application/json [18:45:44] [18:45:44]POST finish read [18:45:44]Found Content-Length = 1249 [18:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14612", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 357.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:44]execute_script... [18:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14612", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 357.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:44]POST & json_proto [18:45:44]process_json_proto [18:45:44]json parsed OK: [18:45:44]protocol is kg_v1.0 [18:45:44]action value=close_receipt [18:45:44]process_action close_receipt [18:45:44]cmd_close_receipt [18:45:44]MH_GetDate [18:45:44]Write to MH i2c: F0 00 00 D5 02 C6 [18:45:44]Write i2c OK [18:45:44]MH_I2C_Read... [18:45:44]Read from MH i2c: F0 [18:45:44]MH_I2C_Read... [18:45:44]Read from MH i2c: F0 09 00 [18:45:44]MH_I2C_Read... [18:45:44]Read from MH i2c: F0 09 00 D5 02 00 D9 91 A6 66 BB 03 A5 66 0E [18:45:44]GetLastDocTimeStamp 1722192338 [18:45:44]current date 1722192345 [18:45:44]FM_GetShiftState [18:45:44]SAM_PROTO_GetShiftState [18:45:44]wFMCommunicate request_size=4 [18:45:44]MH_SAM_APDU [18:45:44]CAPDU: 80 13 01 00 [18:45:44]Write to MH i2c: E2 08 00 D6 02 80 13 01 00 00 00 00 00 55 [18:45:44]Write i2c OK [18:45:44]MH_I2C_Read... [18:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:44]Read from MH i2c: E2 [18:45:44]MH_I2C_Read... [18:45:44]Read from MH i2c: E2 0E 00 [18:45:44]MH_I2C_Read... [18:45:44]Read from MH i2c: E2 0E 00 D6 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 EE [18:45:44]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:44]wFMCommunicate OK [18:45:44]SAM_PROTO_GetShiftState done [18:45:44]FM_GetShiftState done [18:45:44]opened in 1722126323 [18:45:44]opened+sec_in_day 1722212723 [18:45:45]quantity*price = 11000 [18:45:45]sum+1 = 11001 [18:45:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 357.00 НСП 1% : 3.16 НДС 12% : 37.91 Наличными: 357.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 91 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44720 ФПД: 157611815819053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184545&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44720&fm=157611815819053&tin=02508201610067®Number=0000000000092655&sum=35700 0 [18:45:47]StoreToDocumentArchive [18:45:47]shift 430 fd 44720 [18:45:47]save to /storage/0430/doc_00044720 [18:45:47]save last doc name /storage/0430/doc_00044720 to /storage/kkm_last_doc_name [18:45:47]save OK [18:45:47]Clear old archive folders... [18:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=534 [18:45:47]tlvbuf is 014C25B0 [18:45:47]SAM_PROTO_ClearQueue [18:45:47]wFMCommunicate request_size=4 [18:45:47]MH_SAM_APDU [18:45:47]CAPDU: 80 09 00 00 [18:45:47]Write to MH i2c: E2 08 00 E3 02 80 09 00 00 00 00 00 00 57 [18:45:47]Write i2c OK [18:45:47]MH_I2C_Read... [18:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:47]Read from MH i2c: E2 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 03 00 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [18:45:47]RAPDU: 90 00 [18:45:47]wFMCommunicate OK [18:45:47]SAM_PROTO_ClearQueue done [18:45:47]KKMCreateOFDPacket [18:45:47]OFDProtocolAddRootSTLVToBuf [18:45:47]FM_MakeSignedData [18:45:47]FM_MakeSignedData [18:45:47]SAM_PROTO_SignData [18:45:47]wFMCommunicate request_size=4 [18:45:47]MH_SAM_APDU [18:45:47]CAPDU: 80 0D 01 02 [18:45:47]Write to MH i2c: E2 08 00 E4 02 80 0D 01 02 00 00 00 00 5F [18:45:47]Write i2c OK [18:45:47]MH_I2C_Read... [18:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:47]Read from MH i2c: E2 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 03 00 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [18:45:47]RAPDU: 90 00 [18:45:47]wFMCommunicate OK [18:45:47]wFMCommunicate request_size=255 [18:45:47]MH_SAM_APDU [18:45:47]CAPDU: 80 0D 02 02 FA 03 00 16 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC [18:45:47]Write to MH i2c: E2 02 01 E5 02 80 0D 02 02 FA 00 03 00 16 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 00 00 39 [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:48]Read from MH i2c: E2 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [18:45:48]RAPDU: 90 00 [18:45:48]wFMCommunicate OK [18:45:48]wFMCommunicate request_size=255 [18:45:48]MH_SAM_APDU [18:45:48]CAPDU: 80 0D 02 02 FA 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B OFD Sender: No OFD packet to send [18:45:48]00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0E 00 00 00 00 07 04 06 00 74 8B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [18:45:48]Write to MH i2c: E2 02 01 E6 02 80 0D 02 02 FA 00 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0E 00 00 00 00 07 04 06 00 74 8B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 02 [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=43 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B0 AE 00 00 35 04 06 00 8F 58 DC 4B 57 2D [18:45:49]Write to MH i2c: E2 2E 00 E7 02 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B0 AE 00 00 35 04 06 00 8F 58 DC 4B 57 2D 00 00 3C [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 03 02 [18:45:49]Write to MH i2c: E2 08 00 E8 02 80 0D 03 02 00 00 00 00 65 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 0B 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 0B 00 E8 02 00 E4 86 07 57 DF CC 67 7A 90 00 BA [18:45:49]RAPDU: E4 86 07 57 DF CC 67 7A 90 00 [18:45:49]wFMCommunicate OK [18:45:49]SAM_PROTO_SignData done [18:45:49]FM_MakeSignedData done [18:45:49]CreateOFDProtocolMessage [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 11 00 00 [18:45:49]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 17 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B9 [18:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:49]wFMCommunicate OK [18:45:49]CreateOFDProtocolMessage done [18:45:49]OFDSenderStorePacket 44720 [18:45:49]StoreOFDPacket docnum=44720 [18:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 02 00 00 3B F1 22 02 E1 83 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0E 00 00 00 00 07 04 06 00 74 8B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B0 AE 00 00 35 04 06 00 8F 58 DC 4B 57 2D E4 86 07 57 DF CC 67 7A [18:45:49]CheckFolder [18:45:49]dirname=/storage/ofd_packets [18:45:49]CheckFolder done [18:45:49]ProducePacketName [18:45:49]name=ofd_packets/00044720 [18:45:49]NVStorageSaveData ofd_packets/00044720 [18:45:49]File name is /storage/ofd_packets/00044720 [18:45:49]Write 584 bytes [18:45:49]NVStorageSaveData done [18:45:49]OFDSenderStorePacket done [18:45:49]KKMCreateOFDPacket done [18:45:49]NVStorageSaveData kkm_last_timestamp [18:45:49]File name is /storage/kkm_last_timestamp [18:45:49]Write 4 bytes [18:45:49]NVStorageSaveData done [18:45:49]ExternCall_PrintAddStr [18:45:49]wPrintStart [18:45:49]Write to MH i2c: 01 00 00 EA 02 EC [18:45:49]OFD Sender: Processing packet 44720 [packets to send 7, broken 6] [18:45:49]ProducePacketName [18:45:49]name=ofd_packets/00044720 [18:45:49]OFD Sender: To server: pG, [18:45:49]CommunicateWithHost lk.salyk.kg:30040 [18:45:49]ConnectInit lk.salyk.kg [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 FF 0F 01 [18:45:49]RasterBufferAndPrint [18:45:49]line Счет N : (3)14612 [18:45:49]line ИНН: 02508201610067 [18:45:49]line Контрольно-Кассовый Чек [18:45:49]line ПРОДАЖА [18:45:49]line Товар: 4870022003305 [18:45:49]line Напиток Gorilla эн нат ж/б 0,5/0,45л [18:45:49]line 1.000 * 110.00 [18:45:49]line = 110.00 [18:45:49]line НДС 12% НСП 1% [18:45:49]line > о реализуемом товаре [18:45:49]line Товар: 5449000027474 [18:45:49]line Напиток FuzeTea зел чай манго,ромашка 1л [18:45:49]line 1.000 * 107.00 [18:45:49]line = 107.00 [18:45:49]line НДС 12% НСП 1% [18:45:49]line > о реализуемом товаре [18:45:49]line Товар: 48743570 [18:45:49]line Сигареты Winston XStyle Blue [18:45:49]line 1.000 * 140.00 [18:45:49]line = 140.00 [18:45:49]line НДС 12% НСП 1% [18:45:49]line > о реализуемом товаре [18:45:49]line ИТОГО: 357.00 [18:45:49]line НСП 1% : 3.16 [18:45:49]line НДС 12% : 37.91 [18:45:49]line Наличными: 357.00 [18:45:49]line Безнал.: 0.00 [18:45:49]line Место: АЗС № 128 "Партнер Нефть" [18:45:49]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:49]line СНО: Общий режим [18:45:49]line Чек 91 28.07.2024 18:45 [18:45:49]line Смена: 430 ФФД: 1.0 [18:45:49]line ЗНМ: 0300000045 [18:45:49]line РНМ: 0000000000092655 [18:45:49]line Версия ККМ: 001 [18:45:49]line ФМ: 0000000000874941 [18:45:49]line ФД: 44720 [18:45:49]line ФПД: 157611815819053 [18:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184545&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44720&fm=157611815819053&tin=02508201610067®Number=0000000000092655&sum=35700 [18:45:49]line 0 [18:45:49]written 0, free lines is 4095 [18:45:50]Connected sock=10 [18:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 02 00 00 3B F1 22 02 E1 83 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 Write to MH i2c: 00 01 01 00 BC 00 04 01 00 01 FC 03 06 00 74 20 8B 03 00 23 00 [18:45:50]00 00 EB 03 26 00 EF 03 0F Write i2c OK [18:45:50]00 MH_I2C_Read... [18:45:50]F6 03 01 00 Read from MH i2c: 01 01 F7 [18:45:50]03 MH_I2C_Read... [18:45:50]06 00 3C 01 00 00 00 00 EE Read from MH i2c: 03 01 0F 07 00 00 F2 03 01 00 01 F3 03 06 00 [18:45:50]CF MH_I2C_Read... [18:45:50]0E Read from MH i2c: 01 00 07 00 00 00 20 00 03 07 00 04 00 06 00 00 00 74 00 8B C3 00 0C 00 F9 00 [18:45:50]00 RasterBufferAndPrint [18:45:50]39 line [18:45:50]04 line [18:45:50]06 line [18:45:50]00 line [18:45:50]00 line [18:45:50]00 00 written 0, free lines is 3510 [18:45:50]00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 process_action close_receipt done [18:45:50]F4 requested_data is exist [18:45:50]03 produce_requested_data [18:45:50]04 requested_item fm.sn is exist - process it [18:45:50]00 wFMCommunicate request_size=4 [18:45:50]D9 MH_SAM_APDU [18:45:50]91 CAPDU: A6 66 0E 04 04 00 AE 01 00 00 80 B9 11 04 00 01 00 00 01 0D 04 10 00 30 30 [18:45:50]30 Write to MH i2c: 30 E2 30 08 30 00 30 27 30 03 30 80 30 11 00 00 00 00 00 00 A4 [18:45:50]30 Write i2c OK [18:45:50]39 MH_I2C_Read... [18:45:50]32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B0 AE 00 00 35 04 06 00 8F Read from MH i2c: 58 E2 DC [18:45:50]4B MH_I2C_Read... [18:45:50]57 Read from MH i2c: 2D E4 86 07 57 DF CC 67 7A E2 [18:45:51]17 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:51]00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 17 00 27 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F8 [18:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:51]wFMCommunicate OK [18:45:51]requested_item fd.num is exist - process it [18:45:51]SAM_PROTO_GetFieldsCounters [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 13 00 00 [18:45:51]Write to MH i2c: E2 08 00 28 03 80 13 00 00 00 00 00 00 A7 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F8 F5 47 00 06 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 Read from MH i2c: 36 E2 34 [18:45:51]33 MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:51]34 36 31 32 33 34 11 Read from MH i2c: 04 E2 10 62 00 00 30 30 30 30 30 30 30 30 30 [18:45:51]30 MH_I2C_Read... [18:45:51]38 37 34 Read from MH i2c: 39 E2 34 62 31 00 10 28 04 04 00 B0 AE 00 00 F4 03 03 04 00 00 5D EF 00 3D A6 66 B6 04 01 00 00 90 B9 32 04 33 01 FD 00 9C 01 25 11 07 04 4F 10 [18:45:51]CommunicateWithHost err = 0 [18:45:51]CheckOFDResponse [18:45:51]1017 (14) - 77093643461234 [18:45:51]1041 (16) - 0000000000874941 [18:45:51]1040 (4) - 44720 [18:45:51]1012 (4) - 28.07.2024 12:47 [18:45:51]1206 (1) - 0 [18:45:51]OFD Sender: Remove packet 44720 [18:45:51]00 ProducePacketName [18:45:51]30 name=ofd_packets/00044720 [18:45:51]30 NVStorageDeleteData [18:45:51]30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:51]wFMCommunicate OK [18:45:51]SAM_PROTO_GetFieldsCounters done [18:45:51]requested_item shift.num is exist - process it [18:45:51]requested_item shift.opened is exist - process it [18:45:51]req_shift_opened [18:45:51]FM_GetShiftState [18:45:51]SAM_PROTO_GetShiftState [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 13 01 00 [18:45:51]Write to MH i2c: E2 08 00 29 03 80 13 01 00 00 00 00 00 A9 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:51]Read from MH i2c: E2 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 29 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 42 [18:45:51]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:51]wFMCommunicate OK [18:45:51]SAM_PROTO_GetShiftState done [18:45:51]FM_GetShiftState done [18:45:51]req_shift_opened done [18:45:51]requested_item shift.open_date is exist - process it [18:45:51]req_shift_open_date [18:45:51]req_shift_open_date done [18:45:51]produce_requested_data done [18:45:51]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44720,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:51]process_action_free close_receipt [18:45:51]json_value_free [18:45:51]json_value_free done [18:45:51]process_json_proto returns [18:45:51]Send response to host [18:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44720,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:51]free response buf [18:45:51]execute_script done [18:45:51]execute_script returns [18:45:51]free content buf [18:45:51]Sock 7.Close socket [18:45:51]Sock 7.Thread stoped [18:45:51]OFD Sender: No OFD packet to send [18:45:53]accept exits with 9 [18:45:53]New connection [18:45:53]New thread 3066760548 created [18:45:53]Thread 3066617188 joined [18:45:53]Waiting for new connection... [18:45:53] Sock 9.Parse request [18:45:53]Sock 9.Check first char [18:45:53]Sock 9.First char is OK [18:45:53]request: POST /json_proto HTTP/1.0 [18:45:53]Method: POST [18:45:53]URL: /json_proto [18:45:53]Method is POST - this is cgi request [18:45:53]url: /json_proto [18:45:53]query_string will be loaded in cgi processing [18:45:53]execute_cgi json_proto POST (null) [18:45:53]execute_cgi path=json_proto method=POST [18:45:53]POST find Content-Length [18:45:53]Host: 172.17.45.196:8080 [18:45:53]Content-Length: 682 [18:45:53]Content-Type: application/json [18:45:53] [18:45:53]POST finish read [18:45:53]Found Content-Length = 682 [18:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14613", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:53]execute_script... [18:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14613", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:53]POST & json_proto [18:45:53]process_json_proto [18:45:53]json parsed OK: [18:45:53]protocol is kg_v1.0 [18:45:53]action value=close_receipt [18:45:53]process_action close_receipt [18:45:53]cmd_close_receipt [18:45:53]MH_GetDate [18:45:53]Write to MH i2c: F0 00 00 2A 03 1C [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 09 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 09 00 2A 03 00 E2 91 A6 66 BB 03 A5 66 6D [18:45:53]GetLastDocTimeStamp 1722192345 [18:45:53]current date 1722192354 [18:45:53]FM_GetShiftState [18:45:53]SAM_PROTO_GetShiftState [18:45:53]wFMCommunicate request_size=4 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 13 01 00 [18:45:53]Write to MH i2c: E2 08 00 2B 03 80 13 01 00 00 00 00 00 AB [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0E 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0E 00 2B 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 44 [18:45:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:53]wFMCommunicate OK [18:45:53]SAM_PROTO_GetShiftState done [18:45:53]FM_GetShiftState done [18:45:53]opened in 1722126323 [18:45:53]opened+sec_in_day 1722212723 [18:45:53]quantity*price = 50000 [18:45:53]sum+1 = 50001 [18:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 92 28.07.2024 18:45 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44721 ФПД: 157280370990905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184554&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44721&fm=157280370990905&tin=02508201610067®Number=0000000000092655&sum=50000 0 [18:45:55]StoreToDocumentArchive [18:45:55]shift 430 fd 44721 [18:45:55]save to /storage/0430/doc_00044721 [18:45:55]save last doc name /storage/0430/doc_00044721 to /storage/kkm_last_doc_name [18:45:55]save OK [18:45:55]Clear old archive folders... [18:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=291 [18:45:55]tlvbuf is 01592910 [18:45:55]SAM_PROTO_ClearQueue [18:45:55]wFMCommunicate request_size=4 [18:45:55]MH_SAM_APDU [18:45:55]CAPDU: 80 09 00 00 [18:45:55]Write to MH i2c: E2 08 00 38 03 80 09 00 00 00 00 00 00 AD [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:55]Read from MH i2c: E2 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 03 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 03 00 38 03 00 90 00 AF [18:45:55]RAPDU: 90 00 [18:45:55]wFMCommunicate OK [18:45:55]SAM_PROTO_ClearQueue done [18:45:55]KKMCreateOFDPacket [18:45:55]OFDProtocolAddRootSTLVToBuf [18:45:55]FM_MakeSignedData [18:45:55]FM_MakeSignedData [18:45:55]SAM_PROTO_SignData [18:45:55]wFMCommunicate request_size=4 [18:45:55]MH_SAM_APDU [18:45:55]CAPDU: 80 0D 01 02 [18:45:55]Write to MH i2c: E2 08 00 39 03 80 0D 01 02 00 00 00 00 B5 [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:55]Read from MH i2c: E2 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 03 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: E2 03 00 39 03 00 90 00 B0 [18:45:56]RAPDU: 90 00 [18:45:56]wFMCommunicate OK [18:45:56]wFMCommunicate request_size=255 [18:45:56]MH_SAM_APDU [18:45:56]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [18:45:56]Write to MH i2c: E2 02 01 3A 03 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B2 [18:45:56]Write i2c OK [18:45:56]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 03 00 [18:45:56]MH_I2C_Read... [18:45:56]OFD Sender: No OFD packet to send [18:45:56]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [18:45:57]RAPDU: 90 00 [18:45:57]wFMCommunicate OK [18:45:57]wFMCommunicate request_size=50 [18:45:57]MH_SAM_APDU [18:45:57]CAPDU: 80 0D 02 02 2D 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B1 AE 00 00 35 04 06 00 8F 0B B0 A4 9F 39 [18:45:57]Write to MH i2c: E2 35 00 3B 03 80 0D 02 02 2D 00 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B1 AE 00 00 35 04 06 00 8F 0B B0 A4 9F 39 00 00 3F [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:57]Read from MH i2c: E2 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 03 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [18:45:57]RAPDU: 90 00 [18:45:57]wFMCommunicate OK [18:45:57]wFMCommunicate request_size=4 [18:45:57]MH_SAM_APDU [18:45:57]CAPDU: 80 0D 03 02 [18:45:57]Write to MH i2c: E2 08 00 3C 03 80 0D 03 02 00 00 00 00 BA [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:57]Read from MH i2c: E2 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 0B 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 0B 00 3C 03 00 BC 9F 12 06 4E 99 5C D8 90 00 49 [18:45:57]RAPDU: BC 9F 12 06 4E 99 5C D8 90 00 [18:45:57]wFMCommunicate OK [18:45:57]SAM_PROTO_SignData done [18:45:57]FM_MakeSignedData done [18:45:57]CreateOFDProtocolMessage [18:45:57]wFMCommunicate request_size=4 [18:45:57]MH_SAM_APDU [18:45:57]CAPDU: 80 11 00 00 [18:45:57]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:57]Read from MH i2c: E2 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 17 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0E [18:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:57]wFMCommunicate OK [18:45:57]CreateOFDProtocolMessage done [18:45:57]OFDSenderStorePacket 44721 [18:45:57]StoreOFDPacket docnum=44721 [18:45:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 37 01 00 00 07 91 2F 01 7E 14 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E2 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B1 AE 00 00 35 04 06 00 8F 0B B0 A4 9F 39 BC 9F 12 06 4E 99 5C D8 [18:45:57]CheckFolder [18:45:57]dirname=/storage/ofd_packets [18:45:57]CheckFolder done [18:45:57]ProducePacketName [18:45:57]name=ofd_packets/00044721 [18:45:57]NVStorageSaveData ofd_packets/00044721 [18:45:57]File name is /storage/ofd_packets/00044721 [18:45:57]Write 341 bytes [18:45:57]NVStorageSaveData done [18:45:57]OFDSenderStorePacket done [18:45:57]KKMCreateOFDPacket done [18:45:57]NVStorageSaveData kkm_last_timestamp [18:45:57]File name is /storage/kkm_last_timestamp [18:45:57]Write 4 bytes [18:45:57]NVStorageSaveData done [18:45:57]ExternCall_PrintAddStr [18:45:57]wPrintStart [18:45:57]Write to MH i2c: 01 00 00 3E 03 41 [18:45:57]Write i2c OK [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 07 00 [18:45:57]MH_I2C_Read... [18:45:57]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 FF 0F 56 [18:45:57]RasterBufferAndPrint [18:45:57]line Счет N : (3)14613 [18:45:57]line ИНН: 02508201610067 [18:45:57]line Контрольно-Кассовый Чек [18:45:57]line ПРОДАЖА [18:45:57]line Товар: 4870002328398 [18:45:57]line Вода ASU пит н.газ мята ПЭТ 1л [18:45:57]line 5.000 * 100.00 [18:45:57]line = 500.00 [18:45:57]line НДС 12% НСП 1% [18:45:57]line > о реализуемом товаре [18:45:57]line ИТОГО: 500.00 [18:45:57]line НСП 1% : 4.42 [18:45:57]line НДС 12% : 53.10 [18:45:57]line Наличными: 500.00 [18:45:57]line Безнал.: 0.00 [18:45:57]line Место: АЗС № 128 "Партнер Нефть" [18:45:57]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:45:57]line СНО: Общий режим [18:45:57]line Чек 92 28.07.2024 18:45 [18:45:57]line Смена: 430 ФФД: 1.0 [18:45:57]line ЗНМ: 0300000045 [18:45:57]line РНМ: 0000000000092655 [18:45:57]line Версия ККМ: 001 [18:45:57]line ФМ: 0000000000874941 [18:45:57]line ФД: 44721 [18:45:57]line ФПД: 157280370990905 [18:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184554&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44721&fm=157280370990905&tin=02508201610067®Number=0000000000092655&sum=50000 [18:45:57]line 0 [18:45:57]OFD Sender: Processing packet 44721 [packets to send 7, broken 6] [18:45:57]ProducePacketName [18:45:57]name=ofd_packets/00044721 [18:45:57]OFD Sender: To server: pG, [18:45:57]CommunicateWithHost lk.salyk.kg:30040 [18:45:57]ConnectInit lk.salyk.kg [18:45:57]written 0, free lines is 4095 [18:45:57]Connected sock=11 [18:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 37 01 00 00 07 91 2F 01 7E 14 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 Write to MH i2c: 00 01 00 00 EE 00 03 67 0F 03 00 6A F2 [18:45:58]03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 Write i2c OK [18:45:58]00 MH_I2C_Read... [18:45:58]01 Read from MH i2c: 00 01 12 04 04 [18:45:58]00 MH_I2C_Read... [18:45:58]5C 00 00 00 F4 Read from MH i2c: 03 01 04 07 00 00 E2 [18:45:58]91 MH_I2C_Read... [18:45:58]A6 66 0E 04 Read from MH i2c: 04 01 00 07 AE 00 01 67 00 03 00 00 B9 00 04 01 00 01 0D 04 10 00 30 00 30 00 30 00 30 A9 30 30 30 30 30 30 30 39 0D 32 27 36 [18:45:58]35 RasterBufferAndPrint [18:45:58]35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B1 AE 00 00 35 04 06 00 8F 0B B0 A4 9F 39 BC 9F 12 06 4E 99 5C D8 [18:45:58]line [18:45:58]line [18:45:58]line [18:45:58]line [18:45:58]line [18:45:58]written 0, free lines is 4035 [18:45:58]process_action close_receipt done [18:45:58]requested_data is exist [18:45:58]produce_requested_data [18:45:58]requested_item fm.sn is exist - process it [18:45:58]wFMCommunicate request_size=4 [18:45:58]MH_SAM_APDU [18:45:58]CAPDU: 80 11 00 00 [18:45:58]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [18:45:58]Write i2c OK [18:45:58]MH_I2C_Read... [18:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:58]Read from MH i2c: E2 [18:45:58]MH_I2C_Read... [18:45:58]Read from MH i2c: E2 17 00 [18:45:58]MH_I2C_Read... [18:45:58]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3F [18:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:45:58]wFMCommunicate OK [18:45:58]requested_item fd.num is exist - process it [18:45:58]SAM_PROTO_GetFieldsCounters [18:45:58]wFMCommunicate request_size=4 [18:45:58]MH_SAM_APDU [18:45:58]CAPDU: 80 13 00 00 [18:45:58]Write to MH i2c: E2 08 00 6F 03 80 13 00 00 00 00 00 00 Received data: EE 87 [18:45:58]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F Write i2c OK [18:45:59]00 MH_I2C_Read... [18:45:59]00 00 40 D4 47 00 11 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 Read from MH i2c: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:59]E2 30 [18:45:59]38 MH_I2C_Read... [18:45:59]37 34 39 34 31 10 04 04 Read from MH i2c: 00 E2 B1 62 AE 00 00 00 F4 03 04 00 F6 3D A6 [18:45:59]66 MH_I2C_Read... [18:45:59]B6 04 01 Read from MH i2c: 00 E2 00 62 36 00 25 6F 74 03 2D 00 DB 5D 8C 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 1C 00 EE 00 [18:45:59]90 CommunicateWithHost err = 0 [18:45:59]00 CheckOFDResponse [18:45:59]34 1017 (14) - 77093643461234 [18:45:59] [18:45:59]1041 (16) - 0000000000874941 [18:45:59]RAPDU: 1040 (4) - 44721 [18:45:59]5D 1012 (4) - 28.07.2024 12:47 [18:45:59]00 1206 (1) - 0 [18:45:59]B9 OFD Sender: Remove packet 44721 [18:45:59]04 ProducePacketName [18:45:59]01 name=ofd_packets/00044721 [18:45:59]00 NVStorageDeleteData [18:45:59]01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:59]wFMCommunicate OK [18:45:59]SAM_PROTO_GetFieldsCounters done [18:45:59]requested_item shift.num is exist - process it [18:45:59]requested_item shift.opened is exist - process it [18:45:59]req_shift_opened [18:45:59]FM_GetShiftState [18:45:59]SAM_PROTO_GetShiftState [18:45:59]wFMCommunicate request_size=4 [18:45:59]MH_SAM_APDU [18:45:59]CAPDU: 80 13 01 00 [18:45:59]Write to MH i2c: E2 08 00 70 03 80 13 01 00 00 00 00 00 F0 [18:45:59]Write i2c OK [18:45:59]MH_I2C_Read... [18:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:59]Read from MH i2c: E2 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: E2 0E 00 [18:45:59]MH_I2C_Read... [18:45:59]Read from MH i2c: E2 0E 00 70 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 89 [18:45:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:45:59]wFMCommunicate OK [18:45:59]SAM_PROTO_GetShiftState done [18:45:59]FM_GetShiftState done [18:45:59]req_shift_opened done [18:45:59]requested_item shift.open_date is exist - process it [18:45:59]req_shift_open_date [18:45:59]req_shift_open_date done [18:45:59]produce_requested_data done [18:45:59]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44721,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:45:59]process_action_free close_receipt [18:45:59]json_value_free [18:45:59]json_value_free done [18:45:59]process_json_proto returns [18:45:59]Send response to host [18:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44721,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:45:59]free response buf [18:45:59]execute_script done [18:45:59]execute_script returns [18:45:59]free content buf [18:45:59]Sock 9.Close socket [18:45:59]Sock 9.Thread stoped [18:46:00]OFD Sender: No OFD packet to send [18:46:00]accept exits with 7 [18:46:00]New connection [18:46:00]New thread 3066617188 created [18:46:00]Thread 3066760548 joined [18:46:00]Waiting for new connection... [18:46:00] Sock 7.Parse request [18:46:00]Sock 7.Check first char [18:46:00]Sock 7.First char is OK [18:46:00]request: POST /json_proto HTTP/1.0 [18:46:00]Method: POST [18:46:00]URL: /json_proto [18:46:00]Method is POST - this is cgi request [18:46:00]url: /json_proto [18:46:00]query_string will be loaded in cgi processing [18:46:00]execute_cgi json_proto POST (null) [18:46:00]execute_cgi path=json_proto method=POST [18:46:00]POST find Content-Length [18:46:00]Host: 172.17.45.196:8080 [18:46:00]Content-Length: 667 [18:46:00]Content-Type: application/json [18:46:00] [18:46:00]POST finish read [18:46:00]Found Content-Length = 667 [18:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14614", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:00]execute_script... [18:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14614", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:00]POST & json_proto [18:46:00]process_json_proto [18:46:00]json parsed OK: [18:46:00]protocol is kg_v1.0 [18:46:00]action value=close_receipt [18:46:00]process_action close_receipt [18:46:00]cmd_close_receipt [18:46:00]MH_GetDate [18:46:00]Write to MH i2c: F0 00 00 71 03 63 [18:46:00]Write i2c OK [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: F0 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: F0 09 00 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: F0 09 00 71 03 00 E9 91 A6 66 BB 03 A5 66 BB [18:46:00]GetLastDocTimeStamp 1722192354 [18:46:00]current date 1722192361 [18:46:00]FM_GetShiftState [18:46:00]SAM_PROTO_GetShiftState [18:46:00]wFMCommunicate request_size=4 [18:46:00]MH_SAM_APDU [18:46:00]CAPDU: 80 13 01 00 [18:46:00]Write to MH i2c: E2 08 00 72 03 80 13 01 00 00 00 00 00 F2 [18:46:00]Write i2c OK [18:46:00]MH_I2C_Read... [18:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:00]Read from MH i2c: E2 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: E2 0E 00 [18:46:00]MH_I2C_Read... [18:46:00]Read from MH i2c: E2 0E 00 72 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 8B [18:46:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:00]wFMCommunicate OK [18:46:00]SAM_PROTO_GetShiftState done [18:46:00]FM_GetShiftState done [18:46:00]opened in 1722126323 [18:46:00]opened+sec_in_day 1722212723 [18:46:00]quantity*price = 5900 [18:46:00]sum+1 = 5901 [18:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 93 28.07.2024 18:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44722 ФПД: 111637492571613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184601&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44722&fm=111637492571613&tin=02508201610067®Number=0000000000092655&sum=5900 0 [18:46:03]StoreToDocumentArchive [18:46:03]shift 430 fd 44722 [18:46:03]save to /storage/0430/doc_00044722 [18:46:03]save last doc name /storage/0430/doc_00044722 to /storage/kkm_last_doc_name [18:46:03]save OK [18:46:03]Clear old archive folders... [18:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=283 [18:46:03]tlvbuf is 0148A540 [18:46:03]SAM_PROTO_ClearQueue [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 09 00 00 [18:46:03]Write to MH i2c: E2 08 00 7F 03 80 09 00 00 00 00 00 00 F4 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [18:46:03]RAPDU: 90 00 [18:46:03]wFMCommunicate OK [18:46:03]SAM_PROTO_ClearQueue done [18:46:03]KKMCreateOFDPacket [18:46:03]OFDProtocolAddRootSTLVToBuf [18:46:03]FM_MakeSignedData [18:46:03]FM_MakeSignedData [18:46:03]SAM_PROTO_SignData [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 0D 01 02 [18:46:03]Write to MH i2c: E2 08 00 80 03 80 0D 01 02 00 00 00 00 FC [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 80 03 00 90 00 F7 [18:46:03]RAPDU: 90 00 [18:46:03]wFMCommunicate OK [18:46:03]wFMCommunicate request_size=255 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 [18:46:03]Write to MH i2c: E2 02 01 81 03 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 00 00 EE [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [18:46:04]RAPDU: 90 00 [18:46:04]wFMCommunicate OK [18:46:04]wFMCommunicate request_size=42 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B2 AE 00 00 35 04 06 00 65 88 A1 16 9D DD [18:46:04]Write to MH i2c: E2 2D 00 82 03 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B2 AE 00 00 35 04 06 00 65 88 A1 16 9D DD 00 00 53 [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [18:46:04]RAPDU: 90 00 [18:46:04]wFMCommunicate OK [18:46:04]wFMCommunicate request_size=4 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 0D 03 02 [18:46:04]Write to MH i2c: E2 08 00 83 03 80 0D 03 02 00 00 00 00 01 [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0B 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0B 00 83 03 00 FD 54 4D 70 2C 69 98 1D 90 00 5A [18:46:04]RAPDU: FD 54 4D 70 2C 69 98 1D 90 00 [18:46:04]wFMCommunicate OK [18:46:04]SAM_PROTO_SignData done [18:46:04]FM_MakeSignedData done [18:46:04]CreateOFDProtocolMessage [18:46:04]wFMCommunicate request_size=4 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 11 00 00 [18:46:05]Write to MH i2c: E2 08 00 84 03 80 11 00 00 00 00 00 00 01 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]OFD Sender: No OFD packet to send [18:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 17 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 17 00 84 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 55 [18:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:05]wFMCommunicate OK [18:46:05]CreateOFDProtocolMessage done [18:46:05]OFDSenderStorePacket 44722 [18:46:05]StoreOFDPacket docnum=44722 [18:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 FB B3 27 01 B2 E0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B2 AE 00 00 35 04 06 00 65 88 A1 16 9D DD FD 54 4D 70 2C 69 98 1D [18:46:05]CheckFolder [18:46:05]dirname=/storage/ofd_packets [18:46:05]CheckFolder done [18:46:05]ProducePacketName [18:46:05]name=ofd_packets/00044722 [18:46:05]NVStorageSaveData ofd_packets/00044722 [18:46:05]File name is /storage/ofd_packets/00044722 [18:46:05]Write 333 bytes [18:46:05]NVStorageSaveData done [18:46:05]OFDSenderStorePacket done [18:46:05]KKMCreateOFDPacket done [18:46:05]NVStorageSaveData kkm_last_timestamp [18:46:05]File name is /storage/kkm_last_timestamp [18:46:05]Write 4 bytes [18:46:05]NVStorageSaveData done [18:46:05]ExternCall_PrintAddStr [18:46:05]wPrintStart [18:46:05]Write to MH i2c: 01 00 00 85 03 88 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [18:46:05]RasterBufferAndPrint [18:46:05]line Счет N : (3)14614 [18:46:05]line ИНН: 02508201610067 [18:46:05]line Контрольно-Кассовый Чек [18:46:05]line ПРОДАЖА [18:46:05]line Товар: 4011100977624 [18:46:05]line Шок Батончик Баунти 55г [18:46:05]line 1.000 * 59.00 [18:46:05]line = 59.00 [18:46:05]line НДС 12% НСП 1% [18:46:05]line > о реализуемом товаре [18:46:05]line ИТОГО: 59.00 [18:46:05]line НСП 1% : 0.52 [18:46:05]line НДС 12% : 6.26 [18:46:05]line Наличными: 59.00 [18:46:05]OFD Sender: Processing packet 44722 [packets to send 7, broken 6] [18:46:05]line Безнал.: 0.00 [18:46:05]ProducePacketName [18:46:05]line Место: АЗС № 128 "Партнер Нефть" [18:46:05]name=ofd_packets/00044722 [18:46:05]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:46:05]line СНО: Общий режим [18:46:05]line Чек 93 28.07.2024 18:46 [18:46:05]line Смена: 430 ФФД: 1.0 [18:46:05]line ЗНМ: 0300000045 [18:46:05]line РНМ: 0000000000092655 [18:46:05]line Версия ККМ: 001 [18:46:05]line ФМ: 0000000000874941 [18:46:05]OFD Sender: To server: pG, [18:46:05]line ФД: 44722 [18:46:05]CommunicateWithHost lk.salyk.kg:30040 [18:46:05]line ФПД: 111637492571613 [18:46:05]ConnectInit lk.salyk.kg [18:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184601&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44722&fm=111637492571613&tin=02508201610067®Number=0000000000092655&sum=5900 [18:46:05]line 0 [18:46:05]written 0, free lines is 4095 [18:46:05]Connected sock=10 [18:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2F 01 00 00 FB B3 27 01 B2 E0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 Write to MH i2c: 06 01 00 00 72 00 02 AD 00 03 00 00 B0 00 [18:46:05]07 Write i2c OK [18:46:05]04 MH_I2C_Read... [18:46:05]06 00 0C 17 00 00 00 00 Read from MH i2c: 39 01 04 [18:46:05]06 MH_I2C_Read... [18:46:05]00 00 00 00 00 00 00 Read from MH i2c: 1F 01 04 07 00 02 00 01 00 12 04 04 00 [18:46:05]5D MH_I2C_Read... [18:46:05]00 Read from MH i2c: 00 01 00 07 F4 00 03 AD 04 00 E9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 03 04 00 01 00 00 00 01 00 0D 00 04 DE 10 00 30 30 30 30 30 30 0D 30 A2 30 [18:46:06]30 RasterBufferAndPrint [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]line [18:46:06]30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B2 AE 00 00 35 04 06 00 65 88 A1 16 9D DD FD 54 4D 70 2C 69 98 1D [18:46:06]written 0, free lines is 3795 [18:46:06]process_action close_receipt done [18:46:06]requested_data is exist [18:46:06]produce_requested_data [18:46:06]requested_item fm.sn is exist - process it [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 11 00 00 [18:46:06]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 85 [18:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 Received data: 30 87 38 95 37 F6 34 70 39 34 31 90 00 [18:46:06]wFMCommunicate OK [18:46:06]requested_item fd.num is exist - process it [18:46:06]SAM_PROTO_GetFieldsCounters [18:46:06]47 wFMCommunicate request_size=4 [18:46:06]2C MH_SAM_APDU [18:46:06]01 CAPDU: 80 13 00 00 [18:46:06]Write to MH i2c: E2 08 00 00 30 B5 30 03 80 13 00 00 30 00 30 00 30 00 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 47 29 47 00 E8 C2 A5 00 34 [18:46:06]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B2 AE Write i2c OK [18:46:06]00 MH_I2C_Read... [18:46:06]00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:06]F4 Read from MH i2c: 03 E2 04 [18:46:06]00 MH_I2C_Read... [18:46:06]Read from MH i2c: E2 62 00 [18:46:06]MH_I2C_Read... [18:46:06]FE 3D A6 66 B6 04 01 00 00 4B FE CD CB 78 AC AF 2B [18:46:06]CommunicateWithHost err = 0 [18:46:06]CheckOFDResponse [18:46:06]1017 (14) - 77093643461234 [18:46:06]1041 (16) - 0000000000874941 [18:46:06]1040 (4) - 44722 [18:46:06]1012 (4) - 28.07.2024 12:47 [18:46:06]1206 (1) - 0 [18:46:06]OFD Sender: Remove packet 44722 [18:46:06]ProducePacketName [18:46:06]name=ofd_packets/00044722 [18:46:06]NVStorageDeleteData [18:46:06]Read from MH i2c: E2 62 00 B5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [18:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:07]wFMCommunicate OK [18:46:07]SAM_PROTO_GetFieldsCounters done [18:46:07]requested_item shift.num is exist - process it [18:46:07]requested_item shift.opened is exist - process it [18:46:07]req_shift_opened [18:46:07]FM_GetShiftState [18:46:07]SAM_PROTO_GetShiftState [18:46:07]wFMCommunicate request_size=4 [18:46:07]MH_SAM_APDU [18:46:07]CAPDU: 80 13 01 00 [18:46:07]Write to MH i2c: E2 08 00 B6 03 80 13 01 00 00 00 00 00 36 [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:07]Read from MH i2c: E2 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: E2 0E 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: E2 0E 00 B6 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CF [18:46:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:07]wFMCommunicate OK [18:46:07]SAM_PROTO_GetShiftState done [18:46:07]FM_GetShiftState done [18:46:07]req_shift_opened done [18:46:07]requested_item shift.open_date is exist - process it [18:46:07]req_shift_open_date [18:46:07]req_shift_open_date done [18:46:07]produce_requested_data done [18:46:07]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44722,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:46:07]process_action_free close_receipt [18:46:07]json_value_free [18:46:07]json_value_free done [18:46:07]process_json_proto returns [18:46:07]Send response to host [18:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44722,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:46:07]free response buf [18:46:07]execute_script done [18:46:07]execute_script returns [18:46:07]free content buf [18:46:07]Sock 7.Close socket [18:46:07]Sock 7.Thread stoped [18:46:07]OFD Sender: No OFD packet to send [18:46:08]accept exits with 9 [18:46:08]New connection [18:46:08]New thread 3066760548 created [18:46:08]Thread 3066617188 joined [18:46:08]Waiting for new connection... [18:46:08] Sock 9.Parse request [18:46:08]Sock 9.Check first char [18:46:08]Sock 9.First char is OK [18:46:08]request: POST /json_proto HTTP/1.0 [18:46:08]Method: POST [18:46:08]URL: /json_proto [18:46:08]Method is POST - this is cgi request [18:46:08]url: /json_proto [18:46:08]query_string will be loaded in cgi processing [18:46:08]execute_cgi json_proto POST (null) [18:46:08]execute_cgi path=json_proto method=POST [18:46:08]POST find Content-Length [18:46:08]Host: 172.17.45.196:8080 [18:46:08]Content-Length: 707 [18:46:08]Content-Type: application/json [18:46:08] [18:46:08]POST finish read [18:46:08]Found Content-Length = 707 [18:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14615", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:08]execute_script... [18:46:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14615", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:08]POST & json_proto [18:46:08]process_json_proto [18:46:08]json parsed OK: [18:46:08]protocol is kg_v1.0 [18:46:08]action value=close_receipt [18:46:08]process_action close_receipt [18:46:08]cmd_close_receipt [18:46:08]MH_GetDate [18:46:08]Write to MH i2c: F0 00 00 B7 03 A9 [18:46:08]Write i2c OK [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: F0 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: F0 09 00 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: F0 09 00 B7 03 00 F1 91 A6 66 BB 03 A5 66 09 [18:46:08]GetLastDocTimeStamp 1722192361 [18:46:08]current date 1722192369 [18:46:08]FM_GetShiftState [18:46:08]SAM_PROTO_GetShiftState [18:46:08]wFMCommunicate request_size=4 [18:46:08]MH_SAM_APDU [18:46:08]CAPDU: 80 13 01 00 [18:46:08]Write to MH i2c: E2 08 00 B8 03 80 13 01 00 00 00 00 00 38 [18:46:08]Write i2c OK [18:46:08]MH_I2C_Read... [18:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:08]Read from MH i2c: E2 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 0E 00 [18:46:08]MH_I2C_Read... [18:46:08]Read from MH i2c: E2 0E 00 B8 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D1 [18:46:08]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:08]wFMCommunicate OK [18:46:08]SAM_PROTO_GetShiftState done [18:46:08]FM_GetShiftState done [18:46:08]opened in 1722126323 [18:46:08]opened+sec_in_day 1722212723 [18:46:08]quantity*price = 10000 [18:46:08]sum+1 = 10001 [18:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 94 28.07.2024 18:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44723 ФПД: 240841524926625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184609&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44723&fm=240841524926625&tin=02508201610067®Number=0000000000092655&sum=10000 0 [18:46:11]StoreToDocumentArchive [18:46:11]shift 430 fd 44723 [18:46:11]save to /storage/0430/doc_00044723 [18:46:11]save last doc name /storage/0430/doc_00044723 to /storage/kkm_last_doc_name [18:46:11]save OK [18:46:11]Clear old archive folders... [18:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=304 [18:46:11]tlvbuf is 015B2C00 [18:46:11]SAM_PROTO_ClearQueue [18:46:11]wFMCommunicate request_size=4 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 09 00 00 [18:46:11]Write to MH i2c: E2 08 00 C5 03 80 09 00 00 00 00 00 00 3A [18:46:11]Write i2c OK [18:46:11]MH_I2C_Read... [18:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:11]Read from MH i2c: E2 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 03 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [18:46:11]RAPDU: 90 00 [18:46:11]wFMCommunicate OK [18:46:11]SAM_PROTO_ClearQueue done [18:46:11]KKMCreateOFDPacket [18:46:11]OFDProtocolAddRootSTLVToBuf [18:46:11]FM_MakeSignedData [18:46:11]FM_MakeSignedData [18:46:11]SAM_PROTO_SignData [18:46:11]wFMCommunicate request_size=4 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 0D 01 02 [18:46:11]Write to MH i2c: E2 08 00 C6 03 80 0D 01 02 00 00 00 00 42 [18:46:11]Write i2c OK [18:46:11]MH_I2C_Read... [18:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:11]Read from MH i2c: E2 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 03 00 [18:46:11]MH_I2C_Read... [18:46:11]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [18:46:11]RAPDU: 90 00 [18:46:11]wFMCommunicate OK [18:46:11]wFMCommunicate request_size=255 [18:46:11]MH_SAM_APDU [18:46:11]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F1 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 [18:46:11]Write to MH i2c: E2 02 01 C7 03 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F1 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 00 00 B8 [18:46:12]Write i2c OK [18:46:12]MH_I2C_Read... [18:46:12]OFD Sender: No OFD packet to send [18:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:12]Read from MH i2c: E2 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 03 00 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [18:46:12]RAPDU: 90 00 [18:46:12]wFMCommunicate OK [18:46:12]wFMCommunicate request_size=63 [18:46:12]MH_SAM_APDU [18:46:12]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B3 AE 00 00 35 04 06 00 DB 0B 49 8A 58 A1 [18:46:12]Write to MH i2c: E2 42 00 C8 03 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B3 AE 00 00 35 04 06 00 DB 0B 49 8A 58 A1 00 00 A5 [18:46:12]Write i2c OK [18:46:12]MH_I2C_Read... [18:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:12]Read from MH i2c: E2 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 03 00 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [18:46:12]RAPDU: 90 00 [18:46:12]wFMCommunicate OK [18:46:12]wFMCommunicate request_size=4 [18:46:12]MH_SAM_APDU [18:46:12]CAPDU: 80 0D 03 02 [18:46:12]Write to MH i2c: E2 08 00 C9 03 80 0D 03 02 00 00 00 00 47 [18:46:12]Write i2c OK [18:46:12]MH_I2C_Read... [18:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:12]Read from MH i2c: E2 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 0B 00 [18:46:12]MH_I2C_Read... [18:46:12]Read from MH i2c: E2 0B 00 C9 03 00 13 A4 6B A0 8C 0B A8 20 90 00 69 [18:46:12]RAPDU: 13 A4 6B A0 8C 0B A8 20 90 00 [18:46:12]wFMCommunicate OK [18:46:12]SAM_PROTO_SignData done [18:46:12]FM_MakeSignedData done [18:46:12]CreateOFDProtocolMessage [18:46:12]wFMCommunicate request_size=4 [18:46:12]MH_SAM_APDU [18:46:12]CAPDU: 80 11 00 00 [18:46:12]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [18:46:12]Write i2c OK [18:46:12]MH_I2C_Read... [18:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:12]Read from MH i2c: E2 [18:46:13]MH_I2C_Read... [18:46:13]Read from MH i2c: E2 17 00 [18:46:13]MH_I2C_Read... [18:46:13]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9B [18:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:13]wFMCommunicate OK [18:46:13]CreateOFDProtocolMessage done [18:46:13]OFDSenderStorePacket 44723 [18:46:13]StoreOFDPacket docnum=44723 [18:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 44 01 00 00 D5 FC 3C 01 02 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F1 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B3 AE 00 00 35 04 06 00 DB 0B 49 8A 58 A1 13 A4 6B A0 8C 0B A8 20 [18:46:13]CheckFolder [18:46:13]dirname=/storage/ofd_packets [18:46:13]CheckFolder done [18:46:13]ProducePacketName [18:46:13]name=ofd_packets/00044723 [18:46:13]NVStorageSaveData ofd_packets/00044723 [18:46:13]File name is /storage/ofd_packets/00044723 [18:46:13]Write 354 bytes [18:46:13]NVStorageSaveData done [18:46:13]OFDSenderStorePacket done [18:46:13]KKMCreateOFDPacket done [18:46:13]NVStorageSaveData kkm_last_timestamp [18:46:13]File name is /storage/kkm_last_timestamp [18:46:13]Write 4 bytes [18:46:13]NVStorageSaveData done [18:46:13]ExternCall_PrintAddStr [18:46:13]wPrintStart [18:46:13]Write to MH i2c: 01 00 00 CB 03 CE [18:46:13]Write i2c OK [18:46:13]MH_I2C_Read... [18:46:13]Read from MH i2c: 01 [18:46:13]MH_I2C_Read... [18:46:13]Read from MH i2c: 01 07 00 [18:46:13]MH_I2C_Read... [18:46:13]OFD Sender: Processing packet 44723 [packets to send 7, broken 6] [18:46:13]ProducePacketName [18:46:13]name=ofd_packets/00044723 [18:46:13]OFD Sender: To server: pG, [18:46:13]CommunicateWithHost lk.salyk.kg:30040 [18:46:13]ConnectInit lk.salyk.kg [18:46:13]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [18:46:13]RasterBufferAndPrint [18:46:13]line Счет N : (3)14615 [18:46:13]line ИНН: 02508201610067 [18:46:13]line Контрольно-Кассовый Чек [18:46:13]line ПРОДАЖА [18:46:13]line Товар: 5449000273680 [18:46:13]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [18:46:13]line 1.000 * 100.00 [18:46:13]line = 100.00 [18:46:13]line НДС 12% НСП 1% [18:46:13]line > о реализуемом товаре [18:46:13]line ИТОГО: 100.00 [18:46:13]line НСП 1% : 0.88 [18:46:13]line НДС 12% : 10.62 [18:46:13]line Наличными: 100.00 [18:46:13]line Безнал.: 0.00 [18:46:13]line Место: АЗС № 128 "Партнер Нефть" [18:46:13]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:46:13]line СНО: Общий режим [18:46:13]line Чек 94 28.07.2024 18:46 [18:46:13]line Смена: 430 ФФД: 1.0 [18:46:13]line ЗНМ: 0300000045 [18:46:13]line РНМ: 0000000000092655 [18:46:13]line Версия ККМ: 001 [18:46:13]line ФМ: 0000000000874941 [18:46:13]line ФД: 44723 [18:46:13]line ФПД: 240841524926625 [18:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184609&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44723&fm=240841524926625&tin=02508201610067®Number=0000000000092655&sum=10000 [18:46:13]line 0 [18:46:13]written 0, free lines is 4095 [18:46:13]Connected sock=7 [18:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 44 01 00 00 D5 FC 3C 01 02 3C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F1 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B3 AE 00 00 35 04 06 00 DB 0B 49 8A 58 A1 13 A4 6B A0 8C 0B A8 20 [18:46:14]Write to MH i2c: 01 00 00 F4 03 F7 [18:46:14]Write i2c OK [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: 01 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: 01 07 00 [18:46:14]MH_I2C_Read... [18:46:14]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 E7 0F F4 [18:46:14]RasterBufferAndPrint [18:46:14]line [18:46:14]line [18:46:14]line [18:46:14]line [18:46:14]line [18:46:14]written 0, free lines is 4092 [18:46:14]process_action close_receipt done [18:46:14]requested_data is exist [18:46:14]produce_requested_data [18:46:14]requested_item fm.sn is exist - process it [18:46:14]wFMCommunicate request_size=4 [18:46:14]MH_SAM_APDU [18:46:14]CAPDU: 80 11 00 00 [18:46:14]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [18:46:14]Write i2c OK [18:46:14]MH_I2C_Read... [18:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 AD D4 47 00 Read from MH i2c: 54 E2 E7 [18:46:14]A5 MH_I2C_Read... [18:46:14]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 Read from MH i2c: 38 E2 37 17 34 00 39 [18:46:14]34 MH_I2C_Read... [18:46:14]31 Read from MH i2c: 10 E2 04 17 04 00 00 FB B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CC [18:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:14]wFMCommunicate OK [18:46:14]requested_item fd.num is exist - process it [18:46:14]SAM_PROTO_GetFieldsCounters [18:46:14]wFMCommunicate request_size=4 [18:46:14]MH_SAM_APDU [18:46:14]CAPDU: 80 13 00 00 [18:46:14]Write to MH i2c: E2 08 00 FC 03 80 13 00 00 00 00 00 00 7B [18:46:14]AE 00 00 F4 03 04 00 06 3E A6 66 B6 04 01 00 00 7B 65 6D 7C 77 CE 4D 72 [18:46:15]CommunicateWithHost err = 0 [18:46:15]CheckOFDResponse [18:46:15]1017 (14) - 77093643461234 [18:46:15]1041 (16) - 0000000000874941 [18:46:15]1040 (4) - 44723 [18:46:15]1012 (4) - 28.07.2024 12:48 [18:46:15]1206 (1) - 0 [18:46:15]OFD Sender: Remove packet 44723 [18:46:15]ProducePacketName [18:46:15]name=ofd_packets/00044723 [18:46:15]NVStorageDeleteData [18:46:15]Write i2c OK [18:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 62 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 62 00 FC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:15]wFMCommunicate OK [18:46:15]SAM_PROTO_GetFieldsCounters done [18:46:15]requested_item shift.num is exist - process it [18:46:15]requested_item shift.opened is exist - process it [18:46:15]req_shift_opened [18:46:15]FM_GetShiftState [18:46:15]SAM_PROTO_GetShiftState [18:46:15]wFMCommunicate request_size=4 [18:46:15]MH_SAM_APDU [18:46:15]CAPDU: 80 13 01 00 [18:46:15]Write to MH i2c: E2 08 00 FD 03 80 13 01 00 00 00 00 00 7D [18:46:15]Write i2c OK [18:46:15]MH_I2C_Read... [18:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:15]Read from MH i2c: E2 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 0E 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 0E 00 FD 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 16 [18:46:15]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:15]wFMCommunicate OK [18:46:15]SAM_PROTO_GetShiftState done [18:46:15]FM_GetShiftState done [18:46:15]req_shift_opened done [18:46:15]requested_item shift.open_date is exist - process it [18:46:15]req_shift_open_date [18:46:15]req_shift_open_date done [18:46:15]produce_requested_data done [18:46:15]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44723,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:46:15]process_action_free close_receipt [18:46:15]json_value_free [18:46:15]json_value_free done [18:46:15]process_json_proto returns [18:46:15]Send response to host [18:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44723,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:46:15]OFD Sender: No OFD packet to send [18:46:15]free response buf [18:46:15]execute_script done [18:46:15]execute_script returns [18:46:15]free content buf [18:46:15]Sock 9.Close socket [18:46:15]Sock 9.Thread stoped [18:46:16]accept exits with 10 [18:46:16]New connection [18:46:16]New thread 3066617188 created [18:46:16]Thread 3066760548 joined [18:46:16]Waiting for new connection... [18:46:16] Sock 10.Parse request [18:46:16]Sock 10.Check first char [18:46:16]Sock 10.First char is OK [18:46:16]request: POST /json_proto HTTP/1.0 [18:46:16]Method: POST [18:46:16]URL: /json_proto [18:46:16]Method is POST - this is cgi request [18:46:16]url: /json_proto [18:46:16]query_string will be loaded in cgi processing [18:46:16]execute_cgi json_proto POST (null) [18:46:16]execute_cgi path=json_proto method=POST [18:46:16]POST find Content-Length [18:46:16]Host: 172.17.45.196:8080 [18:46:16]Content-Length: 629 [18:46:16]Content-Type: application/json [18:46:16] [18:46:16]POST finish read [18:46:16]Found Content-Length = 629 [18:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14616", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:16]execute_script... [18:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14616", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:16]POST & json_proto [18:46:16]process_json_proto [18:46:16]json parsed OK: [18:46:16]protocol is kg_v1.0 [18:46:16]action value=close_receipt [18:46:16]process_action close_receipt [18:46:16]cmd_close_receipt [18:46:16]MH_GetDate [18:46:16]Write to MH i2c: F0 00 00 FE 03 F0 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: F0 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: F0 09 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: F0 09 00 FE 03 00 F9 91 A6 66 BB 03 A5 66 58 [18:46:16]GetLastDocTimeStamp 1722192369 [18:46:16]current date 1722192377 [18:46:16]FM_GetShiftState [18:46:16]SAM_PROTO_GetShiftState [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 13 01 00 [18:46:16]Write to MH i2c: E2 08 00 FF 03 80 13 01 00 00 00 00 00 7F [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0E 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0E 00 FF 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 18 [18:46:16]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:16]wFMCommunicate OK [18:46:16]SAM_PROTO_GetShiftState done [18:46:16]FM_GetShiftState done [18:46:16]opened in 1722126323 [18:46:16]opened+sec_in_day 1722212723 [18:46:16]quantity*price = 5000 [18:46:16]sum+1 = 5001 [18:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 95 28.07.2024 18:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44724 ФПД: 141150453130370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184617&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44724&fm=141150453130370&tin=02508201610067®Number=0000000000092655&sum=5000 0 [18:46:19]StoreToDocumentArchive [18:46:19]shift 430 fd 44724 [18:46:19]save to /storage/0430/doc_00044724 [18:46:19]save last doc name /storage/0430/doc_00044724 to /storage/kkm_last_doc_name [18:46:19]save OK [18:46:19]Clear old archive folders... [18:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:46:19]tlvbuf is 015CF120 [18:46:19]SAM_PROTO_ClearQueue [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 09 00 00 [18:46:19]Write to MH i2c: E2 08 00 0C 04 80 09 00 00 00 00 00 00 82 [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [18:46:19]RAPDU: 90 00 [18:46:19]wFMCommunicate OK [18:46:19]SAM_PROTO_ClearQueue done [18:46:19]KKMCreateOFDPacket [18:46:19]OFDProtocolAddRootSTLVToBuf [18:46:19]FM_MakeSignedData [18:46:19]FM_MakeSignedData [18:46:19]SAM_PROTO_SignData [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 0D 01 02 [18:46:19]Write to MH i2c: E2 08 00 0D 04 80 0D 01 02 00 00 00 00 8A [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [18:46:19]RAPDU: 90 00 [18:46:19]wFMCommunicate OK [18:46:19]wFMCommunicate request_size=255 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:46:19]Write to MH i2c: E2 02 01 0E 04 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 47 [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]OFD Sender: No OFD packet to send [18:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [18:46:20]RAPDU: 90 00 [18:46:20]wFMCommunicate OK [18:46:20]wFMCommunicate request_size=28 [18:46:20]MH_SAM_APDU [18:46:20]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 B4 AE 00 00 35 04 06 00 80 60 26 9E 64 82 [18:46:20]Write to MH i2c: E2 1F 00 0F 04 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 B4 AE 00 00 35 04 06 00 80 60 26 9E 64 82 00 00 07 [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:20]Read from MH i2c: E2 03 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [18:46:20]RAPDU: 90 00 [18:46:20]wFMCommunicate OK [18:46:20]wFMCommunicate request_size=4 [18:46:20]MH_SAM_APDU [18:46:20]CAPDU: 80 0D 03 02 [18:46:20]Write to MH i2c: E2 08 00 10 04 80 0D 03 02 00 00 00 00 8F [18:46:20]Write i2c OK [18:46:20]MH_I2C_Read... [18:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:20]Read from MH i2c: E2 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 0B 00 [18:46:20]MH_I2C_Read... [18:46:20]Read from MH i2c: E2 0B 00 10 04 00 5E C0 E8 F1 F9 DE BD AA 90 00 C5 [18:46:21]RAPDU: 5E C0 E8 F1 F9 DE BD AA 90 00 [18:46:21]wFMCommunicate OK [18:46:21]SAM_PROTO_SignData done [18:46:21]FM_MakeSignedData done [18:46:21]CreateOFDProtocolMessage [18:46:21]wFMCommunicate request_size=4 [18:46:21]MH_SAM_APDU [18:46:21]CAPDU: 80 11 00 00 [18:46:21]Write to MH i2c: E2 08 00 11 04 80 11 00 00 00 00 00 00 8F [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:21]Read from MH i2c: E2 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: E2 17 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: E2 17 00 11 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E3 [18:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:21]wFMCommunicate OK [18:46:21]CreateOFDProtocolMessage done [18:46:21]OFDSenderStorePacket 44724 [18:46:21]StoreOFDPacket docnum=44724 [18:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 4C 48 19 01 EB E7 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F9 91 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B4 AE 00 00 35 04 06 00 80 60 26 9E 64 82 5E C0 E8 F1 F9 DE BD AA [18:46:21]CheckFolder [18:46:21]dirname=/storage/ofd_packets [18:46:21]CheckFolder done [18:46:21]ProducePacketName [18:46:21]name=ofd_packets/00044724 [18:46:21]NVStorageSaveData ofd_packets/00044724 [18:46:21]File name is /storage/ofd_packets/00044724 [18:46:21]Write 319 bytes [18:46:21]NVStorageSaveData done [18:46:21]OFDSenderStorePacket done [18:46:21]KKMCreateOFDPacket done [18:46:21]NVStorageSaveData kkm_last_timestamp [18:46:21]File name is /storage/kkm_last_timestamp [18:46:21]Write 4 bytes [18:46:21]NVStorageSaveData done [18:46:21]ExternCall_PrintAddStr [18:46:21]wPrintStart [18:46:21]Write to MH i2c: 01 00 00 12 04 16 [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 07 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FF 0F 2B [18:46:21]RasterBufferAndPrint [18:46:21]line Счет N : (3)14616 [18:46:21]line ИНН: 02508201610067 [18:46:21]line Контрольно-Кассовый Чек [18:46:21]line ПРОДАЖА [18:46:21]line Товар: 4700000160358 [18:46:21]line Вода Легенда 1л [18:46:21]line 1.000 * 50.00 [18:46:21]line = 50.00 [18:46:21]line НДС 12% НСП 1% [18:46:21]line > о реализуемом товаре [18:46:21]line ИТОГО: 50.00 [18:46:21]line НСП 1% : 0.44 [18:46:21]line НДС 12% : 5.31 [18:46:21]line Наличными: 50.00 [18:46:21]line Безнал.: 0.00 [18:46:21]line Место: АЗС № 128 "Партнер Нефть" [18:46:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:46:21]line СНО: Общий режим [18:46:21]line Чек 95 28.07.2024 18:46 [18:46:21]line Смена: 430 ФФД: 1.0 [18:46:21]line ЗНМ: 0300000045 [18:46:21]line РНМ: 0000000000092655 [18:46:21]line Версия ККМ: 001 [18:46:21]line ФМ: 0000000000874941 [18:46:21]line ФД: 44724 [18:46:21]line ФПД: 141150453130370 [18:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184617&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44724&fm=141150453130370&tin=02508201610067®Number=0000000000092655&sum=5000 [18:46:21]line 0 [18:46:21]OFD Sender: Processing packet 44724 [packets to send 7, broken 6] [18:46:21]ProducePacketName [18:46:21]name=ofd_packets/00044724 [18:46:21]OFD Sender: To server: pG, [18:46:21]CommunicateWithHost lk.salyk.kg:30040 [18:46:21]ConnectInit lk.salyk.kg [18:46:21]written 0, free lines is 4095 [18:46:21]Connected sock=9 [18:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 4C 48 19 01 EB E7 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 Write to MH i2c: 00 01 07 00 04 06 00 88 13 00 00 00 00 00 3A 39 04 04 06 00 00 00 00 00 3E 00 [18:46:22]00 Write i2c OK [18:46:22]1F MH_I2C_Read... [18:46:22]04 02 00 01 00 12 Read from MH i2c: 04 01 04 [18:46:22]00 5F 00 00 00 F4 03 MH_I2C_Read... [18:46:22]04 Read from MH i2c: 00 01 F9 91 A6 66 0E 04 04 00 07 AE 00 01 [18:46:22]00 00 B9 04 01 00 01 MH_I2C_Read... [18:46:22]0D Read from MH i2c: 04 01 10 00 30 30 30 30 30 07 30 00 30 3A 30 04 30 00 30 00 30 00 00 00 D0 0D 22 [18:46:22]RasterBufferAndPrint [18:46:22]line [18:46:22]line [18:46:22]line [18:46:22]line [18:46:22]line [18:46:22]39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B4 AE 00 00 35 04 06 00 80 60 26 9E 64 82 written 0, free lines is 3798 [18:46:22]5E C0 E8 F1 F9 DE BD AA process_action close_receipt done [18:46:22] [18:46:22]requested_data is exist [18:46:22]produce_requested_data [18:46:22]requested_item fm.sn is exist - process it [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 11 00 00 [18:46:22]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 13 [18:46:22]RAPDU: 11 04 10 00 30 Received data: 30 87 30 95 30 F6 30 70 30 47 30 2C 30 30 01 00 30 30 30 30 30 30 30 38 30 37 30 34 30 39 30 34 38 31 37 90 34 00 39 [18:46:22]34 31 4F 00 00 00 EB 51 47 00 51 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B4 AE 00 00 F4 03 04 00 0E 3E A6 66 B6 04 01 00 00 E6 6C 21 wFMCommunicate OK [18:46:22]requested_item fd.num is exist - process it [18:46:22]SAM_PROTO_GetFieldsCounters [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 33 80 AA 13 7B 00 00 [18:46:22]Write to MH i2c: E2 08 00 C8 42 50 04 [18:46:22]80 13 00 00 00 00 00 00 CommunicateWithHost err = 0 [18:46:22]C2 CheckOFDResponse [18:46:22] [18:46:22]1017 (14) - 77093643461234 [18:46:22]1041 (16) - 0000000000874941 [18:46:22]1040 (4) - 44724 [18:46:22]Write i2c OK [18:46:22]1012 (4) - 28.07.2024 12:48 [18:46:22]MH_I2C_Read... [18:46:22]1206 (1) - 0 [18:46:22]OFD Sender: Remove packet 44724 [18:46:22]ProducePacketName [18:46:22]name=ofd_packets/00044724 [18:46:22]NVStorageDeleteData [18:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:23]Read from MH i2c: E2 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 62 00 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 62 00 42 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:23]wFMCommunicate OK [18:46:23]SAM_PROTO_GetFieldsCounters done [18:46:23]requested_item shift.num is exist - process it [18:46:23]requested_item shift.opened is exist - process it [18:46:23]req_shift_opened [18:46:23]FM_GetShiftState [18:46:23]SAM_PROTO_GetShiftState [18:46:23]wFMCommunicate request_size=4 [18:46:23]MH_SAM_APDU [18:46:23]CAPDU: 80 13 01 00 [18:46:23]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:23]OFD Sender: No OFD packet to send [18:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:23]Read from MH i2c: E2 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 0E 00 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5D [18:46:23]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:23]wFMCommunicate OK [18:46:23]SAM_PROTO_GetShiftState done [18:46:23]FM_GetShiftState done [18:46:23]req_shift_opened done [18:46:23]requested_item shift.open_date is exist - process it [18:46:23]req_shift_open_date [18:46:23]req_shift_open_date done [18:46:23]produce_requested_data done [18:46:23]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44724,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:46:23]process_action_free close_receipt [18:46:23]json_value_free [18:46:23]json_value_free done [18:46:23]process_json_proto returns [18:46:23]Send response to host [18:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44724,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:46:23]free response buf [18:46:23]execute_script done [18:46:23]execute_script returns [18:46:23]free content buf [18:46:23]Sock 10.Close socket [18:46:23]Sock 10.Thread stoped [18:46:24]accept exits with 7 [18:46:24]New connection [18:46:24]New thread 3066760548 created [18:46:24]Thread 3066617188 joined [18:46:24]Waiting for new connection... [18:46:24] Sock 7.Parse request [18:46:24]Sock 7.Check first char [18:46:24]Sock 7.First char is OK [18:46:24]request: POST /json_proto HTTP/1.0 [18:46:24]Method: POST [18:46:24]URL: /json_proto [18:46:24]Method is POST - this is cgi request [18:46:24]url: /json_proto [18:46:24]query_string will be loaded in cgi processing [18:46:24]execute_cgi json_proto POST (null) [18:46:24]execute_cgi path=json_proto method=POST [18:46:24]POST find Content-Length [18:46:24]Host: 172.17.45.196:8080 [18:46:24]Content-Length: 631 [18:46:24]Content-Type: application/json [18:46:24] [18:46:24]POST finish read [18:46:24]Found Content-Length = 631 [18:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14617", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:24]execute_script... [18:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14617", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:24]POST & json_proto [18:46:24]process_json_proto [18:46:24]json parsed OK: [18:46:24]protocol is kg_v1.0 [18:46:24]action value=close_receipt [18:46:24]process_action close_receipt [18:46:24]cmd_close_receipt [18:46:24]MH_GetDate [18:46:24]Write to MH i2c: F0 00 00 44 04 37 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: F0 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: F0 09 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: F0 09 00 44 04 00 01 92 A6 66 BB 03 A5 66 A8 [18:46:24]GetLastDocTimeStamp 1722192377 [18:46:24]current date 1722192385 [18:46:24]FM_GetShiftState [18:46:24]SAM_PROTO_GetShiftState [18:46:24]wFMCommunicate request_size=4 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 13 01 00 [18:46:24]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 0E 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5F [18:46:24]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:24]wFMCommunicate OK [18:46:24]SAM_PROTO_GetShiftState done [18:46:24]FM_GetShiftState done [18:46:24]opened in 1722126323 [18:46:24]opened+sec_in_day 1722212723 [18:46:24]quantity*price = 6000 [18:46:24]sum+1 = 6001 [18:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 96 28.07.2024 18:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44725 ФПД: 233206143519850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184625&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44725&fm=233206143519850&tin=02508201610067®Number=0000000000092655&sum=6000 0 [18:46:27]StoreToDocumentArchive [18:46:27]shift 430 fd 44725 [18:46:27]save to /storage/0430/doc_00044725 [18:46:27]save last doc name /storage/0430/doc_00044725 to /storage/kkm_last_doc_name [18:46:27]save OK [18:46:27]Clear old archive folders... [18:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:46:27]tlvbuf is 01610740 [18:46:27]SAM_PROTO_ClearQueue [18:46:27]wFMCommunicate request_size=4 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 09 00 00 [18:46:27]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [18:46:27]RAPDU: 90 00 [18:46:27]wFMCommunicate OK [18:46:27]SAM_PROTO_ClearQueue done [18:46:27]KKMCreateOFDPacket [18:46:27]OFDProtocolAddRootSTLVToBuf [18:46:27]FM_MakeSignedData [18:46:27]FM_MakeSignedData [18:46:27]SAM_PROTO_SignData [18:46:27]wFMCommunicate request_size=4 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 0D 01 02 [18:46:27]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [18:46:27]RAPDU: 90 00 [18:46:27]wFMCommunicate OK [18:46:27]wFMCommunicate request_size=255 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 01 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:46:28]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 01 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 AF [18:46:28]Write i2c OK [18:46:28]MH_I2C_Read... [18:46:28]OFD Sender: No OFD packet to send [18:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:28]Read from MH i2c: E2 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: E2 03 00 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [18:46:28]RAPDU: 90 00 [18:46:28]wFMCommunicate OK [18:46:28]wFMCommunicate request_size=30 [18:46:28]MH_SAM_APDU [18:46:28]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 31 10 04 04 00 B5 AE 00 00 35 04 06 00 D4 19 89 58 0C 6A [18:46:28]Write to MH i2c: E2 21 00 55 04 80 0D 02 02 19 00 30 38 37 34 39 34 31 10 04 04 00 B5 AE 00 00 35 04 06 00 D4 19 89 58 0C 6A 00 00 74 [18:46:28]Write i2c OK [18:46:28]MH_I2C_Read... [18:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:28]Read from MH i2c: E2 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: E2 03 00 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [18:46:28]RAPDU: 90 00 [18:46:28]wFMCommunicate OK [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 0D 03 02 [18:46:29]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0B 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0B 00 56 04 00 A6 5A C7 DA 62 69 CD 17 90 00 26 [18:46:29]RAPDU: A6 5A C7 DA 62 69 CD 17 90 00 [18:46:29]wFMCommunicate OK [18:46:29]SAM_PROTO_SignData done [18:46:29]FM_MakeSignedData done [18:46:29]CreateOFDProtocolMessage [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 11 00 00 [18:46:29]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 17 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 29 [18:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:29]wFMCommunicate OK [18:46:29]CreateOFDProtocolMessage done [18:46:29]OFDSenderStorePacket 44725 [18:46:29]StoreOFDPacket docnum=44725 [18:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 E4 95 1B 01 44 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 01 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B5 AE 00 00 35 04 06 00 D4 19 89 58 0C 6A A6 5A C7 DA 62 69 CD 17 [18:46:29]CheckFolder [18:46:29]dirname=/storage/ofd_packets [18:46:29]CheckFolder done [18:46:29]ProducePacketName [18:46:29]name=ofd_packets/00044725 [18:46:29]NVStorageSaveData ofd_packets/00044725 [18:46:29]File name is /storage/ofd_packets/00044725 [18:46:29]Write 321 bytes [18:46:29]NVStorageSaveData done [18:46:29]OFDSenderStorePacket done [18:46:29]KKMCreateOFDPacket done [18:46:29]NVStorageSaveData kkm_last_timestamp [18:46:29]File name is /storage/kkm_last_timestamp [18:46:29]Write 4 bytes [18:46:29]NVStorageSaveData done [18:46:29]ExternCall_PrintAddStr [18:46:29]wPrintStart [18:46:29]Write to MH i2c: 01 00 00 58 04 5C [18:46:29]OFD Sender: Processing packet 44725 [packets to send 7, broken 6] [18:46:29]ProducePacketName [18:46:29]name=ofd_packets/00044725 [18:46:29]OFD Sender: To server: pG, [18:46:29]CommunicateWithHost lk.salyk.kg:30040 [18:46:29]ConnectInit lk.salyk.kg [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: 01 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: 01 07 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [18:46:29]RasterBufferAndPrint [18:46:29]line Счет N : (3)14617 [18:46:29]line ИНН: 02508201610067 [18:46:29]line Контрольно-Кассовый Чек [18:46:29]line ПРОДАЖА [18:46:29]line Товар: 4700000160204 [18:46:29]line Вода Легенда 1,5л [18:46:29]line 1.000 * 60.00 [18:46:29]line = 60.00 [18:46:29]line НДС 12% НСП 1% [18:46:29]line > о реализуемом товаре [18:46:29]line ИТОГО: 60.00 [18:46:29]line НСП 1% : 0.53 [18:46:29]line НДС 12% : 6.37 [18:46:29]line Наличными: 60.00 [18:46:29]line Безнал.: 0.00 [18:46:29]line Место: АЗС № 128 "Партнер Нефть" [18:46:29]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:46:29]line СНО: Общий режим [18:46:29]line Чек 96 28.07.2024 18:46 [18:46:29]line Смена: 430 ФФД: 1.0 [18:46:29]line ЗНМ: 0300000045 [18:46:29]line РНМ: 0000000000092655 [18:46:29]line Версия ККМ: 001 [18:46:29]line ФМ: 0000000000874941 [18:46:29]line ФД: 44725 [18:46:29]line ФПД: 233206143519850 [18:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184625&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44725&fm=233206143519850&tin=02508201610067®Number=0000000000092655&sum=6000 [18:46:29]line 0 [18:46:29]written 0, free lines is 4095 [18:46:29]Connected sock=10 [18:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 E4 95 1B 01 44 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 Write to MH i2c: 00 01 F4 00 03 00 04 80 00 04 84 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: 01 01 92 [18:46:30]A6 MH_I2C_Read... [18:46:30]Read from MH i2c: 01 07 00 [18:46:30]MH_I2C_Read... [18:46:30]66 Read from MH i2c: 0E 01 04 07 04 00 00 80 AE 04 01 00 00 00 00 00 B9 00 04 00 01 CC 00 0D 01 64 0D [18:46:30]04 RasterBufferAndPrint [18:46:30]10 line [18:46:30]00 30 line [18:46:30]30 line [18:46:30]30 30 30 30 30 30 30 line [18:46:30]30 line [18:46:30]30 39 32 36 35 written 0, free lines is 3785 [18:46:30]35 11 04 10 00 30 process_action close_receipt done [18:46:30]30 requested_data is exist [18:46:30]30 produce_requested_data [18:46:30]30 requested_item fm.sn is exist - process it [18:46:30]30 wFMCommunicate request_size=4 [18:46:30]30 MH_SAM_APDU [18:46:30]30 30 30 30 38 37 34 39 34 31 10 04 04 00 B5 AE 00 00 35 04 06 00 D4 19 89 58 0C 6A A6 5A C7 CAPDU: DA 80 62 11 69 00 CD 00 17 [18:46:30] [18:46:30]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 17 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 59 [18:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:30]wFMCommunicate OK [18:46:30]Received data: requested_item fd.num is exist - process it [18:46:30]87 SAM_PROTO_GetFieldsCounters [18:46:30]95 wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 13 00 00 F6 [18:46:30]70 Write to MH i2c: 47 E2 2C 08 01 00 00 88 30 04 30 80 30 13 30 00 30 00 30 00 30 00 30 00 00 08 [18:46:30]30 30 38 37 34 39 34 31 4F Write i2c OK [18:46:30]00 MH_I2C_Read... [18:46:30]00 00 F7 EB 47 00 88 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B5 AE 00 00 F4 03 04 00 16 3E A6 66 B6 04 01 00 00 BE 47 4E F6 BC D2 Read from MH i2c: F3 E2 8E [18:46:31] [18:46:31]CommunicateWithHost err = 0 [18:46:31]CheckOFDResponse [18:46:31]1017 (14) - 77093643461234 [18:46:31]1041 (16) - 0000000000874941 [18:46:31]1040 (4) - 44725 [18:46:31]1012 (4) - 28.07.2024 12:48 [18:46:31]MH_I2C_Read... [18:46:31]1206 (1) - 0 [18:46:31]OFD Sender: Remove packet 44725 [18:46:31]Read from MH i2c: ProducePacketName [18:46:31]E2 name=ofd_packets/00044725 [18:46:31]62 NVStorageDeleteData [18:46:31]00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:31] [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 62 00 88 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_GetFieldsCounters done [18:46:31]requested_item shift.num is exist - process it [18:46:31]requested_item shift.opened is exist - process it [18:46:31]req_shift_opened [18:46:31]FM_GetShiftState [18:46:31]SAM_PROTO_GetShiftState [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 13 01 00 [18:46:31]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]OFD Sender: No OFD packet to send [18:46:31]Read from MH i2c: E2 0E 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A3 [18:46:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_GetShiftState done [18:46:31]FM_GetShiftState done [18:46:31]req_shift_opened done [18:46:31]requested_item shift.open_date is exist - process it [18:46:31]req_shift_open_date [18:46:31]req_shift_open_date done [18:46:31]produce_requested_data done [18:46:31]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44725,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:46:31]process_action_free close_receipt [18:46:31]json_value_free [18:46:31]json_value_free done [18:46:31]process_json_proto returns [18:46:31]Send response to host [18:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44725,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:46:31]free response buf [18:46:31]execute_script done [18:46:31]execute_script returns [18:46:31]free content buf [18:46:31]Sock 7.Close socket [18:46:31]Sock 7.Thread stoped [18:46:33]accept exits with 9 [18:46:33]New connection [18:46:33]New thread 3066617188 created [18:46:33]Thread 3066760548 joined [18:46:33]Waiting for new connection... [18:46:33] Sock 9.Parse request [18:46:33]Sock 9.Check first char [18:46:33]Sock 9.First char is OK [18:46:33]request: POST /json_proto HTTP/1.0 [18:46:33]Method: POST [18:46:33]URL: /json_proto [18:46:33]Method is POST - this is cgi request [18:46:33]url: /json_proto [18:46:33]query_string will be loaded in cgi processing [18:46:33]execute_cgi json_proto POST (null) [18:46:33]execute_cgi path=json_proto method=POST [18:46:33]POST find Content-Length [18:46:33]Host: 172.17.45.196:8080 [18:46:33]Content-Length: 1136 [18:46:33]Content-Type: application/json [18:46:33] [18:46:33]POST finish read [18:46:33]Found Content-Length = 1136 [18:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14618", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:33]execute_script... [18:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14618", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:33]POST & json_proto [18:46:33]process_json_proto [18:46:33]json parsed OK: [18:46:33]protocol is kg_v1.0 [18:46:33]action value=close_receipt [18:46:33]process_action close_receipt [18:46:33]cmd_close_receipt [18:46:33]MH_GetDate [18:46:33]Write to MH i2c: F0 00 00 8A 04 7D [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 09 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: F0 09 00 8A 04 00 0A 92 A6 66 BB 03 A5 66 F7 [18:46:33]GetLastDocTimeStamp 1722192385 [18:46:33]current date 1722192394 [18:46:33]FM_GetShiftState [18:46:33]SAM_PROTO_GetShiftState [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 01 00 [18:46:33]Write to MH i2c: E2 08 00 8B 04 80 13 01 00 00 00 00 00 0C [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 8B 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A5 [18:46:33]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_GetShiftState done [18:46:33]FM_GetShiftState done [18:46:33]opened in 1722126323 [18:46:33]opened+sec_in_day 1722212723 [18:46:33]quantity*price = 15700 [18:46:33]sum+1 = 15701 [18:46:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.27 НДС 12% : 27.29 Наличными: 0.00 Безнал.: 257.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 97 28.07.2024 18:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44726 ФПД: 141903969996220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184634&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44726&fm=141903969996220&tin=02508201610067®Number=0000000000092655&sum=25700 0 [18:46:36]StoreToDocumentArchive [18:46:36]shift 430 fd 44726 [18:46:36]save to /storage/0430/doc_00044726 [18:46:36]save last doc name /storage/0430/doc_00044726 to /storage/kkm_last_doc_name [18:46:36]save OK [18:46:36]Clear old archive folders... [18:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=406 [18:46:36]tlvbuf is 015F93A0 [18:46:36]SAM_PROTO_ClearQueue [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 09 00 00 [18:46:36]Write to MH i2c: E2 08 00 98 04 80 09 00 00 00 00 00 00 0E [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]OFD Sender: No OFD packet to send [18:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [18:46:36]RAPDU: 90 00 [18:46:36]wFMCommunicate OK [18:46:36]SAM_PROTO_ClearQueue done [18:46:36]KKMCreateOFDPacket [18:46:36]OFDProtocolAddRootSTLVToBuf [18:46:36]FM_MakeSignedData [18:46:36]FM_MakeSignedData [18:46:36]SAM_PROTO_SignData [18:46:36]wFMCommunicate request_size=4 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 0D 01 02 [18:46:36]Write to MH i2c: E2 08 00 99 04 80 0D 01 02 00 00 00 00 16 [18:46:36]Write i2c OK [18:46:36]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [18:46:36]RAPDU: 90 00 [18:46:36]wFMCommunicate OK [18:46:36]wFMCommunicate request_size=255 [18:46:36]MH_SAM_APDU [18:46:36]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 [18:46:37]Write to MH i2c: E2 02 01 9A 04 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 1F [18:46:38]Write i2c OK [18:46:38]MH_I2C_Read... [18:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:38]Read from MH i2c: E2 [18:46:38]MH_I2C_Read... [18:46:38]Read from MH i2c: E2 03 00 [18:46:38]MH_I2C_Read... [18:46:38]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [18:46:38]RAPDU: 90 00 [18:46:38]wFMCommunicate OK [18:46:38]wFMCommunicate request_size=165 [18:46:38]MH_SAM_APDU [18:46:38]CAPDU: 80 0D 02 02 A0 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 0A 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B6 AE 00 00 35 04 06 00 81 0F 97 B9 4D BC [18:46:38]Write to MH i2c: E2 A8 00 9B 04 80 0D 02 02 A0 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 0A 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B6 AE 00 00 35 04 06 00 81 0F 97 B9 4D BC 00 00 60 [18:46:38]Write i2c OK [18:46:38]MH_I2C_Read... [18:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:39]Read from MH i2c: E2 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 03 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [18:46:39]RAPDU: 90 00 [18:46:39]wFMCommunicate OK [18:46:39]wFMCommunicate request_size=4 [18:46:39]MH_SAM_APDU [18:46:39]CAPDU: 80 0D 03 02 [18:46:39]Write to MH i2c: E2 08 00 9C 04 80 0D 03 02 00 00 00 00 1B [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:39]Read from MH i2c: E2 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 0B 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 0B 00 9C 04 00 40 7F 57 DA DF B1 31 09 90 00 D6 [18:46:39]RAPDU: 40 7F 57 DA DF B1 31 09 90 00 [18:46:39]wFMCommunicate OK [18:46:39]SAM_PROTO_SignData done [18:46:39]FM_MakeSignedData done [18:46:39]CreateOFDProtocolMessage [18:46:39]wFMCommunicate request_size=4 [18:46:39]MH_SAM_APDU [18:46:39]CAPDU: 80 11 00 00 [18:46:39]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:39]Read from MH i2c: E2 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 17 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6F [18:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:39]wFMCommunicate OK [18:46:39]CreateOFDProtocolMessage done [18:46:39]OFDSenderStorePacket 44726 [18:46:39]StoreOFDPacket docnum=44726 [18:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AA 01 00 00 5E 05 A2 01 C0 80 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 0A 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B6 AE 00 00 35 04 06 00 81 0F 97 B9 4D BC 40 7F 57 DA DF B1 31 09 [18:46:39]CheckFolder [18:46:39]dirname=/storage/ofd_packets [18:46:39]CheckFolder done [18:46:39]ProducePacketName [18:46:39]name=ofd_packets/00044726 [18:46:39]NVStorageSaveData ofd_packets/00044726 [18:46:39]File name is /storage/ofd_packets/00044726 [18:46:39]Write 456 bytes [18:46:39]NVStorageSaveData done [18:46:39]OFDSenderStorePacket done [18:46:39]KKMCreateOFDPacket done [18:46:39]NVStorageSaveData kkm_last_timestamp [18:46:39]File name is /storage/kkm_last_timestamp [18:46:39]Write 4 bytes [18:46:39]NVStorageSaveData done [18:46:39]ExternCall_PrintAddStr [18:46:39]wPrintStart [18:46:39]Write to MH i2c: 01 00 00 9E 04 A2 [18:46:39]OFD Sender: Processing packet 44726 [packets to send 7, broken 6] [18:46:39]ProducePacketName [18:46:39]name=ofd_packets/00044726 [18:46:39]OFD Sender: To server: pG, [18:46:39]CommunicateWithHost lk.salyk.kg:30040 [18:46:39]ConnectInit lk.salyk.kg [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: 01 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: 01 07 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [18:46:39]RasterBufferAndPrint [18:46:39]line Счет N : (3)14618 [18:46:39]line ИНН: 02508201610067 [18:46:39]line Контрольно-Кассовый Чек [18:46:39]line ПРОДАЖА [18:46:39]line Товар: 90162602 [18:46:39]line Энерг напиток Red bull 0,25л [18:46:39]line 1.000 * 157.00 [18:46:39]line = 157.00 [18:46:39]line НДС 12% НСП 1% [18:46:39]line > о реализуемом товаре [18:46:39]line Товар: 4870001571528 [18:46:39]line Вода ASU пит н.газ персик ПЭТ 1,0 л [18:46:39]line 1.000 * 100.00 [18:46:39]line = 100.00 [18:46:39]line НДС 12% НСП 1% [18:46:39]line > о реализуемом товаре [18:46:39]line ИТОГО: 257.00 [18:46:39]line НСП 1% : 2.27 [18:46:39]line НДС 12% : 27.29 [18:46:39]line Наличными: 0.00 [18:46:39]line Безнал.: 257.00 [18:46:39]line Место: АЗС № 128 "Партнер Нефть" [18:46:39]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:46:39]line СНО: Общий режим [18:46:39]line Чек 97 28.07.2024 18:46 [18:46:39]line Смена: 430 ФФД: 1.0 [18:46:39]line ЗНМ: 0300000045 [18:46:39]line РНМ: 0000000000092655 [18:46:39]line Версия ККМ: 001 [18:46:39]line Платежная система: Бакай Банк [18:46:39]line ФМ: 0000000000874941 [18:46:39]line ФД: 44726 [18:46:39]line ФПД: 141903969996220 [18:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184634&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44726&fm=141903969996220&tin=02508201610067®Number=0000000000092655&sum=25700 [18:46:39]line 0 [18:46:39]written 0, free lines is 4095 [18:46:39]Connected sock=10 [18:46:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AA 01 00 00 5E 05 A2 01 C0 80 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 Write to MH i2c: 00 01 01 00 BC 04 01 00 01 FC 03 00 06 CF 00 04 64 D3 64 [18:46:40]00 Write i2c OK [18:46:40]00 MH_I2C_Read... [18:46:40]00 00 EB 03 26 00 EF 03 0F Read from MH i2c: 00 01 F6 [18:46:40]03 MH_I2C_Read... [18:46:40]01 00 01 F7 Read from MH i2c: 03 01 06 07 00 E3 00 00 00 00 00 00 [18:46:40]EE MH_I2C_Read... [18:46:40]03 0F 00 F2 03 01 Read from MH i2c: 00 01 01 07 F3 03 06 00 A9 0A 00 00 00 00 07 04 00 06 CF 00 04 00 00 00 00 00 00 00 39 00 00 04 00 06 00 00 48 64 0D 64 2F 00 [18:46:40]00 00 00 1F 04 02 00 RasterBufferAndPrint [18:46:40]01 line [18:46:40]00 line [18:46:40]12 line [18:46:40]04 line [18:46:40]04 line [18:46:40]00 61 written 0, free lines is 3757 [18:46:40]00 00 00 F4 03 04 00 process_action close_receipt done [18:46:40]0A requested_data is exist [18:46:40]92 produce_requested_data [18:46:40]A6 66 0E 04 04 00 AE requested_item fm.sn is exist - process it [18:46:40]01 wFMCommunicate request_size=4 [18:46:40]00 MH_SAM_APDU [18:46:40]00 CAPDU: B9 80 04 11 01 00 00 00 [18:46:40]Write to MH i2c: E2 08 00 D6 04 01 80 0D 11 04 00 10 00 00 00 30 00 30 00 30 00 54 [18:46:40]30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:40]10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B6 AE 00 00 35 04 06 00 81 0F 97 B9 4D BC 40 7F 57 DA DF B1 31 09 [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: E2 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: E2 17 00 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: E2 17 00 D6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A8 [18:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:46:41]wFMCommunicate OK [18:46:41]requested_item fd.num is exist - process it [18:46:41]SAM_PROTO_GetFieldsCounters [18:46:41]wFMCommunicate request_size=4 [18:46:41]MH_SAM_APDU [18:46:41]CAPDU: 80 13 00 00 [18:46:41]Write to MH i2c: E2 08 00 D7 04 80 13 00 00 00 00 00 00 57 [18:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 68 48 47 00 B9 AF *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:41]A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 Write i2c OK [18:46:41]30 MH_I2C_Read... [18:46:41]30 30 30 Read from MH i2c: 30 E2 38 [18:46:41]37 MH_I2C_Read... [18:46:41]34 Read from MH i2c: 39 E2 34 31 10 04 04 62 00 00 B6 [18:46:41]AE 00 00 F4 03 04 00 MH_I2C_Read... [18:46:41]21 3E Read from MH i2c: A6 66 E2 B6 62 04 01 00 00 2D 1B AE 00 2C D7 19 04 6C 00 17 5D D8 00 [18:46:41]B9 CommunicateWithHost err = 0 [18:46:41]04 CheckOFDResponse [18:46:41]1017 (14) - 77093643461234 [18:46:41]1041 (16) - 0000000000874941 [18:46:41]1040 (4) - 44726 [18:46:41]1012 (4) - 28.07.2024 12:48 [18:46:41]1206 (1) - 0 [18:46:41]01 OFD Sender: Remove packet 44726 [18:46:41]00 ProducePacketName [18:46:41]01 name=ofd_packets/00044726 [18:46:41]11 NVStorageDeleteData [18:46:41]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:41]wFMCommunicate OK [18:46:41]SAM_PROTO_GetFieldsCounters done [18:46:41]requested_item shift.num is exist - process it [18:46:41]requested_item shift.opened is exist - process it [18:46:41]req_shift_opened [18:46:41]FM_GetShiftState [18:46:42]SAM_PROTO_GetShiftState [18:46:42]wFMCommunicate request_size=4 [18:46:42]MH_SAM_APDU [18:46:42]CAPDU: 80 13 01 00 [18:46:42]Write to MH i2c: E2 08 00 D8 04 80 13 01 00 00 00 00 00 59 [18:46:42]Write i2c OK [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:42]E2 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: E2 0E 00 [18:46:42]MH_I2C_Read... [18:46:42]Read from MH i2c: E2 0E 00 D8 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F2 [18:46:42]RAPDU: 09 00 01 F3 8F A5 66 OFD Sender: No OFD packet to send [18:46:42]00 00 00 00 90 00 [18:46:42]wFMCommunicate OK [18:46:42]SAM_PROTO_GetShiftState done [18:46:42]FM_GetShiftState done [18:46:42]req_shift_opened done [18:46:42]requested_item shift.open_date is exist - process it [18:46:42]req_shift_open_date [18:46:42]req_shift_open_date done [18:46:42]produce_requested_data done [18:46:42]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44726,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:46:42]process_action_free close_receipt [18:46:42]json_value_free [18:46:42]json_value_free done [18:46:42]process_json_proto returns [18:46:42]Send response to host [18:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44726,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:46:42]free response buf [18:46:42]execute_script done [18:46:42]execute_script returns [18:46:42]free content buf [18:46:42]Sock 9.Close socket [18:46:42]Sock 9.Thread stoped [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:12]int [18:47:12]Write to MH i2c: 01 00 00 D9 04 DD [18:47:12]*** FLAG_PRN_KEY set [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 D9 04 00 08 00 00 00 FF 0F FA [18:47:12]state=0 [18:47:12]Key pressed [18:47:12]Feed [18:47:12]Write to MH i2c: D8 00 00 DA 04 B5 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D8 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D8 01 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: D8 01 00 DA 04 00 B6 [18:47:12]int line is 0 - check status [18:47:12]Write to MH i2c: 01 00 00 DB 04 DF [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]*** FLAG_PRN_KEY reset [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 DB 04 00 48 00 00 00 3C 00 6A [18:47:12]state=2 [18:47:12]Key pressed [18:47:12]int line is 0 - check status [18:47:12]Write to MH i2c: 01 00 00 DC 04 E0 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [18:47:12]state=2 [18:47:12]Stop feed [18:47:12]int [18:47:12]Write to MH i2c: 01 00 00 DD 04 E1 [18:47:12]Write i2c OK [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 [18:47:12]MH_I2C_Read... [18:47:12]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [18:47:12]state=0 [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:40]accept exits with 7 [18:47:40]New connection [18:47:40]New thread 3066760548 created [18:47:40]Thread 3066617188 joined [18:47:40]Waiting for new connection... [18:47:40] Sock 7.Parse request [18:47:40]Sock 7.Check first char [18:47:40]Sock 7.First char is OK [18:47:40]request: POST /json_proto HTTP/1.0 [18:47:40]Method: POST [18:47:40]URL: /json_proto [18:47:40]Method is POST - this is cgi request [18:47:40]url: /json_proto [18:47:40]query_string will be loaded in cgi processing [18:47:40]execute_cgi json_proto POST (null) [18:47:40]execute_cgi path=json_proto method=POST [18:47:40]POST find Content-Length [18:47:40]Host: 172.17.45.196:8080 [18:47:40]Content-Length: 758 [18:47:40]Content-Type: application/json [18:47:40] [18:47:40]POST finish read [18:47:40]Found Content-Length = 758 [18:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14619", "tax_sys" : 0, "items" : [ { "code": "4870066001268", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:40]execute_script... [18:47:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14619", "tax_sys" : 0, "items" : [ { "code": "4870066001268", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:40]POST & json_proto [18:47:40]process_json_proto [18:47:40]json parsed OK: [18:47:40]protocol is kg_v1.0 [18:47:40]action value=close_receipt [18:47:40]process_action close_receipt [18:47:40]cmd_close_receipt [18:47:40]MH_GetDate [18:47:40]Write to MH i2c: F0 00 00 DE 04 D1 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: F0 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: F0 09 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: F0 09 00 DE 04 00 4D 92 A6 66 BB 03 A5 66 8E [18:47:40]GetLastDocTimeStamp 1722192394 [18:47:40]current date 1722192461 [18:47:40]FM_GetShiftState [18:47:40]SAM_PROTO_GetShiftState [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 13 01 00 [18:47:40]Write to MH i2c: E2 08 00 DF 04 80 13 01 00 00 00 00 00 60 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0E 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0E 00 DF 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F9 [18:47:40]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_GetShiftState done [18:47:40]FM_GetShiftState done [18:47:40]opened in 1722126323 [18:47:40]opened+sec_in_day 1722212723 [18:47:40]quantity*price = 2700 [18:47:40]sum+1 = 2701 [18:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 27.00 НСП 1% : 0.24 НДС 12% : 2.87 Наличными: 27.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 98 28.07.2024 18:47 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44727 ФПД: 274856340416232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184741&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44727&fm=274856340416232&tin=02508201610067®Number=0000000000092655&sum=2700 0 [18:47:42]StoreToDocumentArchive [18:47:42]shift 430 fd 44727 [18:47:42]save to /storage/0430/doc_00044727 [18:47:42]save last doc name /storage/0430/doc_00044727 to /storage/kkm_last_doc_name [18:47:42]save OK [18:47:42]Clear old archive folders... [18:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=314 [18:47:42]tlvbuf is 014D62F0 [18:47:42]SAM_PROTO_ClearQueue [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 09 00 00 [18:47:42]Write to MH i2c: E2 08 00 EC 04 80 09 00 00 00 00 00 00 62 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:43]Read from MH i2c: E2 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 03 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [18:47:43]RAPDU: 90 00 [18:47:43]wFMCommunicate OK [18:47:43]SAM_PROTO_ClearQueue done [18:47:43]KKMCreateOFDPacket [18:47:43]OFDProtocolAddRootSTLVToBuf [18:47:43]FM_MakeSignedData [18:47:43]FM_MakeSignedData [18:47:43]SAM_PROTO_SignData [18:47:43]wFMCommunicate request_size=4 [18:47:43]MH_SAM_APDU [18:47:43]CAPDU: 80 0D 01 02 [18:47:43]Write to MH i2c: E2 08 00 ED 04 80 0D 01 02 00 00 00 00 6A [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:43]Read from MH i2c: E2 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 03 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [18:47:43]RAPDU: 90 00 [18:47:43]wFMCommunicate OK [18:47:43]wFMCommunicate request_size=255 [18:47:43]MH_SAM_APDU [18:47:43]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 01 00 00 00 00 07 04 06 00 8C 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 4D 92 A6 66 0E 04 04 [18:47:43]Write to MH i2c: E2 02 01 EE 04 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 01 00 00 00 00 07 04 06 00 8C 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 4D 92 A6 66 0E 04 04 00 00 1E [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 03 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [18:47:44]RAPDU: 90 00 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=73 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 0D 02 02 44 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B7 AE 00 00 35 04 06 00 F9 FA FA 88 E6 E8 [18:47:44]Write to MH i2c: E2 4C 00 EF 04 80 0D 02 02 44 00 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B7 AE 00 00 35 04 06 00 F9 FA FA 88 E6 E8 00 00 E4 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 03 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [18:47:44]RAPDU: 90 00 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 0D 03 02 [18:47:44]Write to MH i2c: E2 08 00 F0 04 80 0D 03 02 00 00 00 00 6F [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0B 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0B 00 F0 04 00 34 63 86 4B FE D5 D7 14 90 00 96 [18:47:44]RAPDU: 34 63 86 4B FE D5 D7 14 90 00 [18:47:44]wFMCommunicate OK [18:47:44]SAM_PROTO_SignData done [18:47:44]FM_MakeSignedData done [18:47:44]CreateOFDProtocolMessage [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 11 00 00 [18:47:44]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C3 [18:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:47:45]wFMCommunicate OK [18:47:45]CreateOFDProtocolMessage done [18:47:45]OFDSenderStorePacket 44727 [18:47:45]StoreOFDPacket docnum=44727 [18:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4E 01 00 00 7D 9D 46 01 BA CE 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 01 00 00 00 00 07 04 06 00 8C 0A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 4D 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B7 AE 00 00 35 04 06 00 F9 FA FA 88 E6 E8 34 63 86 4B FE D5 D7 14 [18:47:45]CheckFolder [18:47:45]dirname=/storage/ofd_packets [18:47:45]CheckFolder done [18:47:45]ProducePacketName [18:47:45]name=ofd_packets/00044727 [18:47:45]NVStorageSaveData ofd_packets/00044727 [18:47:45]File name is /storage/ofd_packets/00044727 [18:47:45]Write 364 bytes [18:47:45]NVStorageSaveData done [18:47:45]OFDSenderStorePacket done [18:47:45]KKMCreateOFDPacket done [18:47:45]NVStorageSaveData kkm_last_timestamp [18:47:45]File name is /storage/kkm_last_timestamp [18:47:45]Write 4 bytes [18:47:45]NVStorageSaveData done [18:47:45]ExternCall_PrintAddStr [18:47:45]wPrintStart [18:47:45]Write to MH i2c: 01 00 00 F2 04 F6 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [18:47:45]RasterBufferAndPrint [18:47:45]line Счет N : (3)14619 [18:47:45]line ИНН: 02508201610067 [18:47:45]line Контрольно-Кассовый Чек [18:47:45]line ПРОДАЖА [18:47:45]line Товар: 4870066001268 [18:47:45]line Палочки Алматинский Продукт соленые 50г [18:47:45]line 1.000 * 27.00 [18:47:45]line = 27.00 [18:47:45]line НДС 12% НСП 1% [18:47:45]line > о реализуемом товаре [18:47:45]line ИТОГО: 27.00 [18:47:45]line НСП 1% : 0.24 [18:47:45]line НДС 12% : 2.87 [18:47:45]line Наличными: 27.00 [18:47:45]line Безнал.: 0.00 [18:47:45]line Место: АЗС № 128 "Партнер Нефть" [18:47:45]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:47:45]line СНО: Общий режим [18:47:45]line Чек 98 28.07.2024 18:47 [18:47:45]line Смена: 430 ФФД: 1.0 [18:47:45]line ЗНМ: 0300000045 [18:47:45]line РНМ: 0000000000092655 [18:47:45]line Версия ККМ: 001 [18:47:45]line ФМ: 0000000000874941 [18:47:45]line ФД: 44727 [18:47:45]line ФПД: 274856340416232 [18:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184741&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44727&fm=274856340416232&tin=02508201610067®Number=0000000000092655&sum=2700 [18:47:45]line 0 [18:47:45]OFD Sender: Processing packet 44727 [packets to send 7, broken 6] [18:47:45]ProducePacketName [18:47:45]name=ofd_packets/00044727 [18:47:45]OFD Sender: To server: pG, [18:47:45]CommunicateWithHost lk.salyk.kg:30040 [18:47:45]ConnectInit lk.salyk.kg [18:47:45]written 0, free lines is 4095 [18:47:45]Connected sock=10 [18:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4E 01 00 00 7D 9D 46 01 BA CE 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 31 32 36 38 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 Write to MH i2c: 01 01 BC 00 04 00 01 00 01 FC 03 06 00 8C 1B 0A 05 00 20 00 [18:47:45]00 Write i2c OK [18:47:45]00 MH_I2C_Read... [18:47:45]EB 03 26 00 EF 03 0F 00 F6 03 Read from MH i2c: 01 01 00 [18:47:45]01 MH_I2C_Read... [18:47:45]F7 Read from MH i2c: 03 01 06 07 00 00 18 [18:47:45]00 MH_I2C_Read... [18:47:45]00 00 00 00 EE 03 0F 00 F2 03 Read from MH i2c: 01 01 00 07 01 00 F3 1B 03 05 06 00 00 00 1F 00 01 00 00 00 00 00 00 07 04 06 00 8C 0A 27 00 0E 00 5C 00 [18:47:46]00 RasterBufferAndPrint [18:47:46]39 line [18:47:46]04 line [18:47:46]06 00 00 00 00 00 00 00 line [18:47:46]1F line [18:47:46]04 line [18:47:46]02 00 01 00 12 04 04 00 62 00 written 0, free lines is 3882 [18:47:46]00 00 F4 03 04 00 4D process_action close_receipt done [18:47:46]92 requested_data is exist [18:47:46]A6 produce_requested_data [18:47:46]66 requested_item fm.sn is exist - process it [18:47:46]0E wFMCommunicate request_size=4 [18:47:46]04 MH_SAM_APDU [18:47:46]04 CAPDU: 00 80 AE 11 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B7 AE 00 00 35 04 06 00 F9 FA FA 88 E6 E8 34 63 86 00 4B 00 FE [18:47:46]D5 Write to MH i2c: D7 E2 14 08 [18:47:46]00 22 05 80 11 00 00 00 00 00 00 A1 [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:46]Read from MH i2c: E2 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: E2 17 00 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F5 [18:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:47:46]wFMCommunicate OK [18:47:46]requested_item fd.num is exist - process it [18:47:46]SAM_PROTO_GetFieldsCounters [18:47:46]wFMCommunicate request_size=4 [18:47:46]MH_SAM_APDU [18:47:46]CAPDU: 80 13 00 00 [18:47:46]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [18:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 15 0F 47 00 4F 9D A5 07 01 00 07 00 3B 00 F9 Write i2c OK [18:47:46]03 MH_I2C_Read... [18:47:46]0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 Read from MH i2c: 30 E2 30 [18:47:46]30 MH_I2C_Read... [18:47:46]30 30 38 37 34 39 34 31 Read from MH i2c: 10 E2 04 62 04 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:46] [18:47:46]00 MH_I2C_Read... [18:47:46]B7 AE 00 00 F4 03 04 00 Read from MH i2c: 62 E2 3E 62 A6 00 66 23 B6 05 04 00 01 00 00 21 5B 95 EA 50 5D D6 00 6F B9 7F 04 [18:47:46]01 CommunicateWithHost err = 0 [18:47:46]00 CheckOFDResponse [18:47:46]01 1017 (14) - 77093643461234 [18:47:46]1041 (16) - 0000000000874941 [18:47:46]1040 (4) - 44727 [18:47:46]1012 (4) - 28.07.2024 12:49 [18:47:46]1206 (1) - 0 [18:47:46]OFD Sender: Remove packet 44727 [18:47:46]ProducePacketName [18:47:46]name=ofd_packets/00044727 [18:47:46]11 NVStorageDeleteData [18:47:46]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [18:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:47]wFMCommunicate OK [18:47:47]SAM_PROTO_GetFieldsCounters done [18:47:47]requested_item shift.num is exist - process it [18:47:47]requested_item shift.opened is exist - process it [18:47:47]req_shift_opened [18:47:47]FM_GetShiftState [18:47:47]SAM_PROTO_GetShiftState [18:47:47]wFMCommunicate request_size=4 [18:47:47]MH_SAM_APDU [18:47:47]CAPDU: 80 13 01 00 [18:47:47]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [18:47:47]Write i2c OK [18:47:47]MH_I2C_Read... [18:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:47]Read from MH i2c: E2 [18:47:47]MH_I2C_Read... [18:47:47]Read from MH i2c: E2 0E 00 [18:47:47]MH_I2C_Read... [18:47:47]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3F [18:47:47]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:47:47]wFMCommunicate OK [18:47:47]SAM_PROTO_GetShiftState done [18:47:47]FM_GetShiftState done [18:47:47]req_shift_opened done [18:47:47]requested_item shift.open_date is exist - process it [18:47:47]req_shift_open_date [18:47:47]req_shift_open_date done [18:47:47]produce_requested_data done [18:47:47]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44727,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:47:47]process_action_free close_receipt [18:47:47]json_value_free [18:47:47]json_value_free done [18:47:47]process_json_proto returns [18:47:47]Send response to host [18:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44727,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:47:47]free response buf [18:47:47]execute_script done [18:47:47]execute_script returns [18:47:47]free content buf [18:47:47]Sock 7.Close socket [18:47:47]Sock 7.Thread stoped [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:46]accept exits with 9 [18:48:46]New connection [18:48:46]New thread 3066617188 created [18:48:46]Thread 3066760548 joined [18:48:46]Waiting for new connection... [18:48:46] Sock 9.Parse request [18:48:46]Sock 9.Check first char [18:48:46]Sock 9.First char is OK [18:48:46]request: POST /json_proto HTTP/1.0 [18:48:46]Method: POST [18:48:46]URL: /json_proto [18:48:46]Method is POST - this is cgi request [18:48:46]url: /json_proto [18:48:46]query_string will be loaded in cgi processing [18:48:46]execute_cgi json_proto POST (null) [18:48:46]execute_cgi path=json_proto method=POST [18:48:46]POST find Content-Length [18:48:46]Host: 172.17.45.196:8080 [18:48:46]Content-Length: 644 [18:48:46]Content-Type: application/json [18:48:46] [18:48:46]POST finish read [18:48:46]Found Content-Length = 644 [18:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14620", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]execute_script... [18:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14620", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]POST & json_proto [18:48:46]process_json_proto [18:48:46]json parsed OK: [18:48:46]protocol is kg_v1.0 [18:48:46]action value=close_receipt [18:48:46]process_action close_receipt [18:48:46]cmd_close_receipt [18:48:46]MH_GetDate [18:48:46]Write to MH i2c: F0 00 00 25 05 19 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 09 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: F0 09 00 25 05 00 8F 92 A6 66 BB 03 A5 66 18 [18:48:47]GetLastDocTimeStamp 1722192461 [18:48:47]current date 1722192527 [18:48:47]FM_GetShiftState [18:48:47]SAM_PROTO_GetShiftState [18:48:47]wFMCommunicate request_size=4 [18:48:47]MH_SAM_APDU [18:48:47]CAPDU: 80 13 01 00 [18:48:47]Write to MH i2c: E2 08 00 26 05 80 13 01 00 00 00 00 00 A8 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:47]Read from MH i2c: E2 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0E 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: E2 0E 00 26 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 41 [18:48:47]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:48:47]wFMCommunicate OK [18:48:47]SAM_PROTO_GetShiftState done [18:48:47]FM_GetShiftState done [18:48:47]opened in 1722126323 [18:48:47]opened+sec_in_day 1722212723 [18:48:47]quantity*price = 1000 [18:48:47]sum+1 = 1001 [18:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 99 28.07.2024 18:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44728 ФПД: 3863611081264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184847&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44728&fm=3863611081264&tin=02508201610067®Number=0000000000092655&sum=1000 0 [18:48:48]StoreToDocumentArchive [18:48:48]shift 430 fd 44728 [18:48:48]save to /storage/0430/doc_00044728 [18:48:48]save last doc name /storage/0430/doc_00044728 to /storage/kkm_last_doc_name [18:48:48]save OK [18:48:48]Clear old archive folders... [18:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [18:48:48]tlvbuf is 01516310 [18:48:48]SAM_PROTO_ClearQueue [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 09 00 00 [18:48:48]Write to MH i2c: E2 08 00 33 05 80 09 00 00 00 00 00 00 AA [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_ClearQueue done [18:48:49]KKMCreateOFDPacket [18:48:49]OFDProtocolAddRootSTLVToBuf [18:48:49]FM_MakeSignedData [18:48:49]FM_MakeSignedData [18:48:49]SAM_PROTO_SignData [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 01 02 [18:48:49]Write to MH i2c: E2 08 00 34 05 80 0D 01 02 00 00 00 00 B2 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=255 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 [18:48:49]Write to MH i2c: E2 02 01 35 05 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 00 00 37 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [18:48:49]RAPDU: 90 00 [18:48:49]wFMCommunicate OK [18:48:49]wFMCommunicate request_size=39 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B8 AE 00 00 35 04 06 00 03 83 91 2A 82 30 [18:48:50]Write to MH i2c: E2 2A 00 36 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B8 AE 00 00 35 04 06 00 03 83 91 2A 82 30 00 00 CA [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 03 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [18:48:50]RAPDU: 90 00 [18:48:50]wFMCommunicate OK [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 0D 03 02 [18:48:50]Write to MH i2c: E2 08 00 37 05 80 0D 03 02 00 00 00 00 B7 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0B 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0B 00 37 05 00 A7 CF 76 FE EF 57 85 EB 90 00 58 [18:48:50]RAPDU: A7 CF 76 FE EF 57 85 EB 90 00 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_SignData done [18:48:50]FM_MakeSignedData done [18:48:50]CreateOFDProtocolMessage [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 11 00 00 [18:48:50]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0B [18:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:48:50]wFMCommunicate OK [18:48:50]CreateOFDProtocolMessage done [18:48:50]OFDSenderStorePacket 44728 [18:48:50]StoreOFDPacket docnum=44728 [18:48:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 62 9B 24 01 E7 B6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 92 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B8 AE 00 00 35 04 06 00 03 83 91 2A 82 30 A7 CF 76 FE EF 57 85 EB [18:48:50]CheckFolder [18:48:50]dirname=/storage/ofd_packets [18:48:50]CheckFolder done [18:48:50]ProducePacketName [18:48:50]name=ofd_packets/00044728 [18:48:50]NVStorageSaveData ofd_packets/00044728 [18:48:50]File name is /storage/ofd_packets/00044728 [18:48:50]Write 330 bytes [18:48:50]NVStorageSaveData done [18:48:50]OFDSenderStorePacket done [18:48:50]KKMCreateOFDPacket done [18:48:50]NVStorageSaveData kkm_last_timestamp [18:48:50]File name is /storage/kkm_last_timestamp [18:48:50]Write 4 bytes [18:48:50]NVStorageSaveData done [18:48:50]ExternCall_PrintAddStr [18:48:50]wPrintStart [18:48:50]Write to MH i2c: 01 00 00 39 05 3E [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [18:48:50]RasterBufferAndPrint [18:48:50]line Счет N : (3)14620 [18:48:50]line ИНН: 02508201610067 [18:48:50]line Контрольно-Кассовый Чек [18:48:50]line ПРОДАЖА [18:48:50]line Товар: 46226617 [18:48:50]line Mentos ПВ Нежная Мята 6*100*2г [18:48:50]line 1.000 * 10.00 [18:48:50]line = 10.00 [18:48:50]line НДС 12% НСП 1% [18:48:50]line > о реализуемом товаре [18:48:50]line ИТОГО: 10.00 [18:48:50]line НСП 1% : 0.09 [18:48:50]line НДС 12% : 1.06 [18:48:50]line Наличными: 10.00 [18:48:50]line Безнал.: 0.00 [18:48:50]line Место: АЗС № 128 "Партнер Нефть" [18:48:50]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:48:50]line СНО: Общий режим [18:48:50]line Чек 99 28.07.2024 18:48 [18:48:50]line Смена: 430 ФФД: 1.0 [18:48:50]line ЗНМ: 0300000045 [18:48:50]line РНМ: 0000000000092655 [18:48:50]line Версия ККМ: 001 [18:48:50]line ФМ: 0000000000874941 [18:48:50]line ФД: 44728 [18:48:50]line ФПД: 3863611081264 [18:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T184847&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44728&fm=3863611081264&tin=02508201610067®Number=0000000000092655&sum=1000 [18:48:50]line 0 [18:48:50]OFD Sender: Processing packet 44728 [packets to send 7, broken 6] [18:48:50]ProducePacketName [18:48:50]name=ofd_packets/00044728 [18:48:50]OFD Sender: To server: pG, [18:48:50]CommunicateWithHost lk.salyk.kg:30040 [18:48:50]ConnectInit lk.salyk.kg [18:48:50]written 0, free lines is 4095 [18:48:50]Connected sock=10 [18:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 62 9B 24 01 E7 B6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 Write to MH i2c: 00 01 00 00 F4 00 03 62 04 05 00 67 8F [18:48:51]92 Write i2c OK [18:48:51]A6 MH_I2C_Read... [18:48:51]66 Read from MH i2c: 0E 01 04 [18:48:51]04 MH_I2C_Read... [18:48:51]00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B8 AE 00 00 35 04 06 00 03 83 91 2A 82 30 Read from MH i2c: A7 01 CF 07 76 00 FE [18:48:51]EF MH_I2C_Read... [18:48:51]57 Read from MH i2c: 85 01 EB 07 [18:48:51]00 62 05 00 00 00 00 00 52 0D CD [18:48:51]RasterBufferAndPrint [18:48:51]line [18:48:51]line [18:48:51]line [18:48:51]line [18:48:51]line [18:48:51]written 0, free lines is 3632 [18:48:51]process_action close_receipt done [18:48:51]requested_data is exist [18:48:51]produce_requested_data [18:48:51]requested_item fm.sn is exist - process it [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 11 00 00 [18:48:51]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3C [18:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:48:51]wFMCommunicate OK [18:48:51]requested_item fd.num is exist - process it [18:48:51]SAM_PROTO_GetFieldsCounters [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 00 00 [18:48:51]Write to MH i2c: E2 08 00 6A 05 80 13 00 00 00 00 00 00 EB [18:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 DD 98 47 00 95 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:51]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B8 AE 00 00 Write i2c OK [18:48:51]F4 MH_I2C_Read... [18:48:51]03 Read from MH i2c: 04 E2 00 [18:48:51]A3 MH_I2C_Read... [18:48:51]3E Read from MH i2c: A6 E2 66 62 B6 00 04 [18:48:51]01 MH_I2C_Read... [18:48:51]00 00 DB Read from MH i2c: A5 E2 D4 62 1E 00 E7 6A 18 05 4F 00 A4 5D [18:48:51]00 CommunicateWithHost err = 0 [18:48:51]B9 CheckOFDResponse [18:48:51]04 1017 (14) - 77093643461234 [18:48:51]01 1041 (16) - 0000000000874941 [18:48:51]00 1040 (4) - 44728 [18:48:51]01 1012 (4) - 28.07.2024 12:50 [18:48:51]1206 (1) - 0 [18:48:51]OFD Sender: Remove packet 44728 [18:48:51]ProducePacketName [18:48:51]name=ofd_packets/00044728 [18:48:51]NVStorageDeleteData [18:48:51]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [18:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:51]wFMCommunicate OK [18:48:51]SAM_PROTO_GetFieldsCounters done [18:48:51]requested_item shift.num is exist - process it [18:48:51]requested_item shift.opened is exist - process it [18:48:51]req_shift_opened [18:48:51]FM_GetShiftState [18:48:51]SAM_PROTO_GetShiftState [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 13 01 00 [18:48:51]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:52]Read from MH i2c: E2 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 86 [18:48:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:48:52]wFMCommunicate OK [18:48:52]SAM_PROTO_GetShiftState done [18:48:52]FM_GetShiftState done [18:48:52]req_shift_opened done [18:48:52]requested_item shift.open_date is exist - process it [18:48:52]req_shift_open_date [18:48:52]req_shift_open_date done [18:48:52]produce_requested_data done [18:48:52]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44728,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:48:52]process_action_free close_receipt [18:48:52]json_value_free [18:48:52]json_value_free done [18:48:52]process_json_proto returns [18:48:52]Send response to host [18:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44728,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:48:52]free response buf [18:48:52]execute_script done [18:48:52]execute_script returns [18:48:52]free content buf [18:48:52]Sock 9.Close socket [18:48:52]Sock 9.Thread stoped [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:36]int [18:50:36]Write to MH i2c: 01 00 00 6C 05 71 [18:50:36]*** FLAG_PRN_KEY set [18:50:36]Write i2c OK [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 [18:50:36]MH_I2C_Read... [18:50:36]Read from MH i2c: 01 07 00 6C 05 00 08 00 00 00 FF 0F 8E [18:50:37]state=0 [18:50:37]Key pressed [18:50:37]Feed [18:50:37]Write to MH i2c: D8 00 00 6D 05 49 [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: D8 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: D8 01 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: D8 01 00 6D 05 00 4A [18:50:37]int [18:50:37]Write to MH i2c: 01 00 00 6E 05 73 [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 6E 05 00 48 00 00 00 3D 00 FF [18:50:37]state=2 [18:50:37]Key pressed [18:50:37]int [18:50:37]Write to MH i2c: 01 00 00 6F 05 74 [18:50:37]*** FLAG_PRN_KEY reset [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 F6 0F 80 [18:50:37]state=2 [18:50:37]Stop feed [18:50:37]OFD Sender: No OFD packet to send [18:50:38]int [18:50:38]Write to MH i2c: 01 00 00 70 05 75 [18:50:38]*** FLAG_PRN_KEY set [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 70 05 00 08 00 00 00 FF 0F 92 [18:50:38]state=0 [18:50:38]Key pressed [18:50:38]Feed [18:50:38]Write to MH i2c: D8 00 00 71 05 4D [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: D8 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: D8 01 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: D8 01 00 71 05 00 4E [18:50:38]int [18:50:38]Write to MH i2c: 01 00 00 72 05 77 [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 72 05 00 48 00 00 00 3C 00 02 [18:50:38]state=2 [18:50:38]Key pressed [18:50:38]int [18:50:38]Write to MH i2c: 01 00 00 73 05 78 [18:50:38]*** FLAG_PRN_KEY reset [18:50:38]Write i2c OK [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 [18:50:38]MH_I2C_Read... [18:50:38]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 F6 0F 84 [18:50:38]state=2 [18:50:38]Stop feed [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:56]accept exits with 7 [18:54:56]New connection [18:54:56]New thread 3066760548 created [18:54:56]Thread 3066617188 joined [18:54:56]Waiting for new connection... [18:54:56] Sock 7.Parse request [18:54:56]Sock 7.Check first char [18:54:56]Sock 7.First char is OK [18:54:56]request: POST /json_proto HTTP/1.0 [18:54:56]Method: POST [18:54:56]URL: /json_proto [18:54:56]Method is POST - this is cgi request [18:54:56]url: /json_proto [18:54:56]query_string will be loaded in cgi processing [18:54:56]execute_cgi json_proto POST (null) [18:54:56]execute_cgi path=json_proto method=POST [18:54:56]POST find Content-Length [18:54:56]Host: 172.17.45.196:8080 [18:54:56]Content-Length: 686 [18:54:56]Content-Type: application/json [18:54:56] [18:54:56]POST finish read [18:54:56]Found Content-Length = 686 [18:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14621", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:56]execute_script... [18:54:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14621", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:56]POST & json_proto [18:54:56]process_json_proto [18:54:56]json parsed OK: [18:54:56]protocol is kg_v1.0 [18:54:56]action value=close_receipt [18:54:56]process_action close_receipt [18:54:56]cmd_close_receipt [18:54:56]MH_GetDate [18:54:56]Write to MH i2c: F0 00 00 74 05 68 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: F0 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: F0 09 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: F0 09 00 74 05 00 01 94 A6 66 BB 03 A5 66 DB [18:54:56]GetLastDocTimeStamp 1722192527 [18:54:56]current date 1722192897 [18:54:56]FM_GetShiftState [18:54:56]SAM_PROTO_GetShiftState [18:54:56]wFMCommunicate request_size=4 [18:54:56]MH_SAM_APDU [18:54:56]CAPDU: 80 13 01 00 [18:54:56]Write to MH i2c: E2 08 00 75 05 80 13 01 00 00 00 00 00 F7 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:56]Read from MH i2c: E2 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 0E 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 0E 00 75 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 90 [18:54:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:54:56]wFMCommunicate OK [18:54:56]SAM_PROTO_GetShiftState done [18:54:56]FM_GetShiftState done [18:54:56]opened in 1722126323 [18:54:56]opened+sec_in_day 1722212723 [18:54:56]quantity*price = 5000 [18:54:56]sum+1 = 5001 [18:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 100 28.07.2024 18:54 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44729 ФПД: 77031559823264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185457&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44729&fm=77031559823264&tin=02508201610067®Number=0000000000092655&sum=5000 0 [18:54:57]StoreToDocumentArchive [18:54:57]shift 430 fd 44729 [18:54:57]save to /storage/0430/doc_00044729 [18:54:57]save last doc name /storage/0430/doc_00044729 to /storage/kkm_last_doc_name [18:54:57]save OK [18:54:57]Clear old archive folders... [18:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=298 [18:54:57]tlvbuf is 015D7770 [18:54:57]SAM_PROTO_ClearQueue [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 09 00 00 [18:54:57]Write to MH i2c: E2 08 00 82 05 80 09 00 00 00 00 00 00 F9 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 03 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [18:54:57]RAPDU: 90 00 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_ClearQueue done [18:54:57]KKMCreateOFDPacket [18:54:57]OFDProtocolAddRootSTLVToBuf [18:54:57]FM_MakeSignedData [18:54:57]FM_MakeSignedData [18:54:57]SAM_PROTO_SignData [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 0D 01 02 [18:54:57]Write to MH i2c: E2 08 00 83 05 80 0D 01 02 00 00 00 00 01 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 03 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [18:54:57]RAPDU: 90 00 [18:54:57]wFMCommunicate OK [18:54:57]wFMCommunicate request_size=255 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 01 94 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [18:54:57]Write to MH i2c: E2 02 01 84 05 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 01 94 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 B5 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [18:54:58]RAPDU: 90 00 [18:54:58]wFMCommunicate OK [18:54:58]wFMCommunicate request_size=57 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B9 AE 00 00 35 04 06 00 46 0F 4E C2 7F A0 [18:54:58]Write to MH i2c: E2 3C 00 85 05 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B9 AE 00 00 35 04 06 00 46 0F 4E C2 7F A0 00 00 AF [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [18:54:58]RAPDU: 90 00 [18:54:58]wFMCommunicate OK [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 0D 03 02 [18:54:58]Write to MH i2c: E2 08 00 86 05 80 0D 03 02 00 00 00 00 06 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0B 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0B 00 86 05 00 A5 7C DD C5 8E FC 1C 98 90 00 08 [18:54:58]RAPDU: A5 7C DD C5 8E FC 1C 98 90 00 [18:54:58]wFMCommunicate OK [18:54:58]SAM_PROTO_SignData done [18:54:58]FM_MakeSignedData done [18:54:58]CreateOFDProtocolMessage [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 11 00 00 [18:54:58]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 17 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5A [18:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:54:58]wFMCommunicate OK [18:54:58]CreateOFDProtocolMessage done [18:54:58]OFDSenderStorePacket 44729 [18:54:58]StoreOFDPacket docnum=44729 [18:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 EE 90 36 01 BA 64 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 01 94 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B9 AE 00 00 35 04 06 00 46 0F 4E C2 7F A0 A5 7C DD C5 8E FC 1C 98 [18:54:58]CheckFolder [18:54:58]dirname=/storage/ofd_packets [18:54:58]CheckFolder done [18:54:58]ProducePacketName [18:54:58]name=ofd_packets/00044729 [18:54:58]NVStorageSaveData ofd_packets/00044729 [18:54:58]File name is /storage/ofd_packets/00044729 [18:54:58]Write 348 bytes [18:54:58]NVStorageSaveData done [18:54:58]OFDSenderStorePacket done [18:54:58]KKMCreateOFDPacket done [18:54:58]NVStorageSaveData kkm_last_timestamp [18:54:58]File name is /storage/kkm_last_timestamp [18:54:58]Write 4 bytes [18:54:58]NVStorageSaveData done [18:54:58]ExternCall_PrintAddStr [18:54:58]wPrintStart [18:54:58]Write to MH i2c: 01 00 00 88 05 8D [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: 01 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: 01 07 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [18:54:58]RasterBufferAndPrint [18:54:58]line Счет N : (3)14621 [18:54:58]line ИНН: 02508201610067 [18:54:58]line Контрольно-Кассовый Чек [18:54:58]line ПРОДАЖА [18:54:58]line Товар: 4700003010032 [18:54:58]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [18:54:58]line 1.000 * 50.00 [18:54:58]line = 50.00 [18:54:58]line НДС 12% НСП 1% [18:54:58]line > о реализуемом товаре [18:54:58]line ИТОГО: 50.00 [18:54:58]line НСП 1% : 0.44 [18:54:58]line НДС 12% : 5.31 [18:54:58]line Наличными: 50.00 [18:54:58]line Безнал.: 0.00 [18:54:58]line Место: АЗС № 128 "Партнер Нефть" [18:54:58]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [18:54:58]line СНО: Общий режим [18:54:58]line Чек 100 28.07.2024 18:54 [18:54:58]line Смена: 430 ФФД: 1.0 [18:54:58]line ЗНМ: 0300000045 [18:54:58]line РНМ: 0000000000092655 [18:54:58]line Версия ККМ: 001 [18:54:58]line ФМ: 0000000000874941 [18:54:58]line ФД: 44729 [18:54:58]line ФПД: 77031559823264 [18:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T185457&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44729&fm=77031559823264&tin=02508201610067®Number=0000000000092655&sum=5000 [18:54:58]line 0 [18:54:58]OFD Sender: Processing packet 44729 [packets to send 7, broken 6] [18:54:58]ProducePacketName [18:54:58]name=ofd_packets/00044729 [18:54:58]OFD Sender: To server: pG, [18:54:58]CommunicateWithHost lk.salyk.kg:30040 [18:54:58]ConnectInit lk.salyk.kg [18:54:58]written 0, free lines is 4095 [18:54:58]Connected sock=10 [18:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 EE 90 36 01 BA 64 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 01 94 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B9 AE 00 00 35 04 06 00 46 0F 4E C2 7F A0 A5 7C DD C5 8E FC 1C 98 [18:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F5 FD 47 00 83 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 B9 AE 00 00 F4 03 04 00 13 40 A6 66 B6 04 01 00 00 AC 4D EE 94 DE 1F AE E6 [18:54:58]CommunicateWithHost err = 0 [18:54:58]CheckOFDResponse [18:54:58]1017 (14) - 77093643461234 [18:54:58]1041 (16) - 0000000000874941 [18:54:58]1040 (4) - 44729 [18:54:58]1012 (4) - 28.07.2024 12:56 [18:54:58]1206 (1) - 0 [18:54:59]OFD Sender: Remove packet 44729 [18:54:59]ProducePacketName [18:54:59]name=ofd_packets/00044729 [18:54:59]NVStorageDeleteData [18:54:59]Write to MH i2c: 01 00 00 B1 05 B6 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 D2 0C 9B [18:54:59]RasterBufferAndPrint [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]line [18:54:59]written 0, free lines is 3288 [18:54:59]process_action close_receipt done [18:54:59]requested_data is exist [18:54:59]produce_requested_data [18:54:59]requested_item fm.sn is exist - process it [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 11 00 00 [18:54:59]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 17 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8B [18:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [18:54:59]wFMCommunicate OK [18:54:59]requested_item fd.num is exist - process it [18:54:59]SAM_PROTO_GetFieldsCounters [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 13 00 00 [18:54:59]Write to MH i2c: E2 08 00 B9 05 80 13 00 00 00 00 00 00 3A [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 62 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 62 00 B9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:59]wFMCommunicate OK [18:54:59]SAM_PROTO_GetFieldsCounters done [18:54:59]requested_item shift.num is exist - process it [18:54:59]requested_item shift.opened is exist - process it [18:54:59]req_shift_opened [18:54:59]FM_GetShiftState [18:54:59]SAM_PROTO_GetShiftState [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 13 01 00 [18:54:59]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0E 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D5 [18:54:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [18:54:59]wFMCommunicate OK [18:54:59]SAM_PROTO_GetShiftState done [18:54:59]FM_GetShiftState done [18:54:59]req_shift_opened done [18:54:59]requested_item shift.open_date is exist - process it [18:54:59]req_shift_open_date [18:54:59]req_shift_open_date done [18:54:59]produce_requested_data done [18:54:59]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44729,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [18:54:59]process_action_free close_receipt [18:54:59]json_value_free [18:54:59]json_value_free done [18:54:59]process_json_proto returns [18:54:59]Send response to host [18:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44729,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [18:54:59]free response buf [18:54:59]execute_script done [18:54:59]execute_script returns [18:54:59]free content buf [18:54:59]Sock 7.Close socket [18:54:59]Sock 7.Thread stoped [18:54:59]OFD Sender: No OFD packet to send [18:55:01]int [18:55:01]Write to MH i2c: 01 00 00 BB 05 C0 [18:55:01]*** FLAG_PRN_KEY set [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 BB 05 00 08 00 00 00 FF 0F DD [18:55:01]state=0 [18:55:01]Key pressed [18:55:01]Feed [18:55:01]Write to MH i2c: D8 00 00 BC 05 98 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D8 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D8 01 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D8 01 00 BC 05 00 99 [18:55:01]int [18:55:01]Write to MH i2c: 01 00 00 BD 05 C2 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 BD 05 00 48 00 00 00 3C 00 4D [18:55:01]state=2 [18:55:01]Key pressed [18:55:01]int [18:55:01]Write to MH i2c: 01 00 00 BE 05 C3 [18:55:01]*** FLAG_PRN_KEY reset [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 F7 0F D0 [18:55:01]state=2 [18:55:01]Stop feed [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 104203+1722090427=1722194630 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 C6 9A A6 66 BB 03 A5 66 34 [19:23:50]Current date/time: 28.07.2024 19:23 [19:23:50]FM_Init [19:23:50]wFMConnect [19:23:50]MH_SAM_On [19:23:50]Write to MH i2c: E0 00 00 08 00 E7 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_init finished! [19:23:50]*** atr: [19:23:50]*** 0F 3B D5 18 FF 81 91 FE [19:23:50]*** 1F C3 80 73 C8 21 10 0A [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]*** 00 00 00 00 00 00 00 00 [19:23:50]Read from MH i2c: E0 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E0 10 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:23:50]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:23:50]wFMCommunicate request_size=10 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:23:50]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:23:50]RAPDU: 90 00 [19:23:50]wFMCommunicate OK [19:23:50]wFMCommunicate request_size=4 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 11 00 00 [19:23:50]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 17 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [19:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:23:50]wFMCommunicate OK [19:23:50]Detected FM SN is 0000000000874941 [19:23:50]Stored FM SN is 0000000000874941 [19:23:50]wFMCommunicate request_size=9 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 16 00 00 04 FA 44 01 00 [19:23:50]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:23:50]RAPDU: 90 00 [19:23:50]wFMCommunicate OK [19:23:50]FM PIN OK [19:23:50]wFMCommunicate request_size=8 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 14 04 00 03 02 00 01 [19:23:50]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:23:50]RAPDU: 90 00 [19:23:50]wFMCommunicate OK [19:23:50]wFMCommunicate request_size=13 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:23:50]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:23:50]RAPDU: 90 00 [19:23:50]wFMCommunicate OK [19:23:50]wFMCommunicate request_size=4 [19:23:50]MH_SAM_APDU [19:23:50]CAPDU: 80 11 00 00 [19:23:50]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:50]Read from MH i2c: E2 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 17 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [19:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:23:50]wFMCommunicate OK [19:23:50]DocumentArchiveInit [19:23:50]Start Httpd... [19:23:50]Httpd thread 3067055460 created [19:23:50]Write to MH i2c: 01 00 00 0F 00 0F [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 07 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:23:50]MH Int Process started [19:23:50]Allocated Socket 8 [19:23:50]Bind OK [19:23:50]Listen OK [19:23:50]httpd running on port 8080 [19:23:50]Waiting for new connection... [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:01]accept exits with 9 [19:24:01]New connection [19:24:01]New thread 3066768740 created [19:24:01]Waiting for new connection... [19:24:01] Sock 9.Parse request [19:24:01]Sock 9.Check first char [19:24:01]Sock 9.First char is OK [19:24:01]request: POST /json_proto HTTP/1.0 [19:24:01]Method: POST [19:24:01]URL: /json_proto [19:24:01]Method is POST - this is cgi request [19:24:01]url: /json_proto [19:24:01]query_string will be loaded in cgi processing [19:24:01]execute_cgi json_proto POST (null) [19:24:01]execute_cgi path=json_proto method=POST [19:24:01]POST find Content-Length [19:24:01]Host: 172.17.45.196:8080 [19:24:01]Content-Length: 215 [19:24:01]Content-Type: application/json [19:24:01] [19:24:01]POST finish read [19:24:01]Found Content-Length = 215 [19:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:01]execute_script... [19:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:01]POST & json_proto [19:24:01]process_json_proto [19:24:01]json parsed OK: [19:24:01]protocol is kg_v1.0 [19:24:01]action value=get_value [19:24:01]process_action get_value [19:24:01]cmd_get_value [19:24:01]process_action get_value done [19:24:01]requested_data is exist [19:24:01]produce_requested_data [19:24:01]requested_item kkm.sn is exist - process it [19:24:01]requested_item kkm.ver is exist - process it [19:24:01]requested_item fm.sn is exist - process it [19:24:01]wFMCommunicate request_size=4 [19:24:01]MH_SAM_APDU [19:24:01]CAPDU: 80 11 00 00 [19:24:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 [19:24:01]MH_I2C_Read... [19:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:01]Read from MH i2c: E2 17 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [19:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:24:01]wFMCommunicate OK [19:24:01]requested_item fd.num is exist - process it [19:24:01]SAM_PROTO_GetFieldsCounters [19:24:01]wFMCommunicate request_size=4 [19:24:01]MH_SAM_APDU [19:24:01]CAPDU: 80 13 00 00 [19:24:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:01]Read from MH i2c: E2 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 62 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [19:24:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 B9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:01]wFMCommunicate OK [19:24:01]SAM_PROTO_GetFieldsCounters done [19:24:01]requested_item shift.num is exist - process it [19:24:01]requested_item shift.opened is exist - process it [19:24:01]req_shift_opened [19:24:01]FM_GetShiftState [19:24:01]SAM_PROTO_GetShiftState [19:24:01]wFMCommunicate request_size=4 [19:24:01]MH_SAM_APDU [19:24:01]CAPDU: 80 13 01 00 [19:24:01]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:24:01]Write i2c OK [19:24:01]MH_I2C_Read... [19:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:01]Read from MH i2c: E2 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 0E 00 [19:24:01]MH_I2C_Read... [19:24:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [19:24:01]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:24:01]wFMCommunicate OK [19:24:01]SAM_PROTO_GetShiftState done [19:24:01]FM_GetShiftState done [19:24:01]req_shift_opened done [19:24:01]requested_item shift.open_date is exist - process it [19:24:01]req_shift_open_date [19:24:01]req_shift_open_date done [19:24:01]produce_requested_data done [19:24:01]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44729,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [19:24:01]process_action_free get_value [19:24:01]json_value_free [19:24:01]json_value_free done [19:24:01]process_json_proto returns [19:24:01]Send response to host [19:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44729,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [19:24:01]free response buf [19:24:01]execute_script done [19:24:01]execute_script returns [19:24:01]free content buf [19:24:01]Sock 9.Close socket [19:24:01]Sock 9.Thread stoped [19:24:01]accept exits with 7 [19:24:01]New connection [19:24:01]New thread 3066625380 created [19:24:01]Thread 3066768740 joined [19:24:01]Waiting for new connection... [19:24:01] Sock 7.Parse request [19:24:01]Sock 7.Check first char [19:24:01]Sock 7.First char is OK [19:24:01]request: POST /json_proto HTTP/1.0 [19:24:01]Method: POST [19:24:01]URL: /json_proto [19:24:01]Method is POST - this is cgi request [19:24:01]url: /json_proto [19:24:01]query_string will be loaded in cgi processing [19:24:01]execute_cgi json_proto POST (null) [19:24:01]execute_cgi path=json_proto method=POST [19:24:01]POST find Content-Length [19:24:01]Host: 172.17.45.196:8080 [19:24:01]Content-Length: 331 [19:24:01]Content-Type: application/json [19:24:01] [19:24:01]POST finish read [19:24:01]Found Content-Length = 331 [19:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:24:01]execute_script... [19:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:24:02]POST & json_proto [19:24:02]process_json_proto [19:24:02]json parsed OK: [19:24:02]protocol is kg_v1.0 [19:24:02]action value=get_value [19:24:02]process_action get_value [19:24:02]cmd_get_value [19:24:02]process_action get_value done [19:24:02]requested_data is exist [19:24:02]produce_requested_data [19:24:02]requested_item fm.sale.total is exist - process it [19:24:02]SAM_PROTO_GetFMData [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 13 03 00 [19:24:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 FD 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 5D AB 00 00 69 04 A0 00 6F 04 04 00 CE AA 00 00 B1 04 04 00 C5 02 28 40 70 04 04 00 90 05 BB 3B 72 04 04 00 35 FD 6C 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 2C D0 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FF 44 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 E2 [19:24:02]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 5D AB 00 00 69 04 A0 00 6F 04 04 00 CE AA 00 00 B1 04 04 00 C5 02 28 40 70 04 04 00 90 05 BB 3B 72 04 04 00 35 FD 6C 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 2C D0 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FF 44 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [19:24:02]wFMCommunicate OK [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 17 00 00 [19:24:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 FD 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [19:24:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [19:24:02]wFMCommunicate OK [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 17 00 00 [19:24:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 FD 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [19:24:03]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [19:24:03]wFMCommunicate OK [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 17 00 00 [19:24:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 FD 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [19:24:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [19:24:03]wFMCommunicate OK [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 17 00 00 [19:24:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 DF 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [19:24:03]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:24:03]wFMCommunicate OK [19:24:03]SAM_PROTO_GetFMData done [19:24:03]requested_item fm.sale_refund.total is exist - process it [19:24:03]requested_item fm.buy.total is exist - process it [19:24:03]requested_item shift.sale.total is exist - process it [19:24:03]SAM_PROTO_GetShiftData [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 13 02 00 [19:24:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 64 00 00 00 69 04 9B 00 6F 04 04 00 64 00 00 00 B1 04 03 00 80 40 21 70 04 03 00 48 D6 1D 72 04 03 00 38 6A 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 87 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 4B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E6 [19:24:04]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 64 00 00 00 69 04 9B 00 6F 04 04 00 64 00 00 00 B1 04 03 00 80 40 21 70 04 03 00 48 D6 1D 72 04 03 00 38 6A 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 87 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 4B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 17 00 00 [19:24:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [19:24:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 17 00 00 [19:24:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [19:24:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 17 00 00 [19:24:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [19:24:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 17 00 00 [19:24:04]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:24:05]Read from MH i2c: E2 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: E2 CB 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [19:24:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:24:05]wFMCommunicate OK [19:24:05]SAM_PROTO_GetShiftData done [19:24:05]requested_item shift.sale.total_cash is exist - process it [19:24:05]requested_item shift.sale_refund.total is exist - process it [19:24:05]requested_item shift.sale_refund.total_cash is exist - process it [19:24:05]requested_item shift.buy.total is exist - process it [19:24:05]requested_item shift.buy.total_cash is exist - process it [19:24:05]produce_requested_data done [19:24:05]produce_requested_data return {"fm.sale.total":10763639.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":21792.00,"shift.sale.total_cash":19554.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:24:05]process_action_free get_value [19:24:05]json_value_free [19:24:05]json_value_free done [19:24:05]process_json_proto returns [19:24:05]Send response to host [19:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10763639.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":21792.00,"shift.sale.total_cash":19554.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:24:05]free response buf [19:24:05]execute_script done [19:24:05]execute_script returns [19:24:05]free content buf [19:24:05]Sock 7.Close socket [19:24:05]Sock 7.Thread stoped [19:24:05]OFD Sender: No OFD packet to send [19:24:07]accept exits with 9 [19:24:07]New connection [19:24:07]New thread 3066768740 created [19:24:07]Thread 3066625380 joined [19:24:07]Waiting for new connection... [19:24:07] Sock 9.Parse request [19:24:07]Sock 9.Check first char [19:24:07]Sock 9.First char is OK [19:24:07]request: POST /json_proto HTTP/1.0 [19:24:07]Method: POST [19:24:07]URL: /json_proto [19:24:07]Method is POST - this is cgi request [19:24:07]url: /json_proto [19:24:07]query_string will be loaded in cgi processing [19:24:07]execute_cgi json_proto POST (null) [19:24:07]execute_cgi path=json_proto method=POST [19:24:07]POST find Content-Length [19:24:07]Host: 172.17.45.196:8080 [19:24:07]Content-Length: 2261 [19:24:07]Content-Type: application/json [19:24:07] [19:24:07]POST finish read [19:24:07]Found Content-Length = 2261 [19:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14622", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 421.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:07]execute_script... [19:24:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14622", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 421.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:07]POST & json_proto [19:24:07]process_json_proto [19:24:07]json parsed OK: [19:24:07]protocol is kg_v1.0 [19:24:07]action value=close_receipt [19:24:07]process_action close_receipt [19:24:07]cmd_close_receipt [19:24:07]MH_GetDate [19:24:07]Write to MH i2c: F0 00 00 1D 00 0C [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: F0 09 00 1D 00 00 D8 9A A6 66 BB 03 A5 66 5C [19:24:07]GetLastDocTimeStamp 1722192897 [19:24:07]current date 1722194648 [19:24:07]FM_GetShiftState [19:24:07]SAM_PROTO_GetShiftState [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 01 00 [19:24:07]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [19:24:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetShiftState done [19:24:07]FM_GetShiftState done [19:24:07]opened in 1722126323 [19:24:07]opened+sec_in_day 1722212723 [19:24:07]quantity*price = 8500 [19:24:07]sum+1 = 8501 [19:24:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120854184 Снек Орехи BEERKa Арахис 90г 1.000 * 62.00 = 62.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 421.00 НСП 1% : 3.71 НДС 12% : 44.69 Наличными: 0.00 Безнал.: 421.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 101 28.07.2024 19:24 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44730 ФПД: 183984380985080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192408&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44730&fm=183984380985080&tin=02508201610067®Number=0000000000092655&sum=42100 0 [19:24:09]StoreToDocumentArchive [19:24:09]shift 430 fd 44730 [19:24:09]save to /storage/0430/doc_00044730 [19:24:09]save last doc name /storage/0430/doc_00044730 to /storage/kkm_last_doc_name [19:24:09]save OK [19:24:09]Clear old archive folders... [19:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=871 [19:24:09]tlvbuf is 00C17FE0 [19:24:09]SAM_PROTO_ClearQueue [19:24:09]wFMCommunicate request_size=4 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 09 00 00 [19:24:09]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]SAM_PROTO_ClearQueue done [19:24:09]KKMCreateOFDPacket [19:24:09]OFDProtocolAddRootSTLVToBuf [19:24:09]FM_MakeSignedData [19:24:09]FM_MakeSignedData [19:24:09]SAM_PROTO_SignData [19:24:09]wFMCommunicate request_size=4 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 01 02 [19:24:09]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]wFMCommunicate request_size=255 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 02 02 FA 03 00 67 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [19:24:09]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 67 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 29 [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]wFMCommunicate request_size=255 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 02 02 FA 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 [19:24:09]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 00 00 8B [19:24:09]Write i2c OK [19:24:09]MH_I2C_Read... [19:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:09]Read from MH i2c: E2 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 [19:24:09]MH_I2C_Read... [19:24:09]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:24:09]RAPDU: 90 00 [19:24:09]wFMCommunicate OK [19:24:09]wFMCommunicate request_size=255 [19:24:09]MH_SAM_APDU [19:24:09]CAPDU: 80 0D 02 02 FA D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 [19:24:10]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 BF [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:10]Read from MH i2c: E2 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 03 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [19:24:10]RAPDU: 90 00 [19:24:10]wFMCommunicate OK [19:24:10]wFMCommunicate request_size=130 [19:24:10]MH_SAM_APDU [19:24:10]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D8 9A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BA AE 00 00 35 04 06 00 A7 55 33 AC 3E F8 [19:24:10]Write to MH i2c: E2 85 00 30 00 80 0D 02 02 7D 00 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D8 9A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BA AE 00 00 35 04 06 00 A7 55 33 AC 3E F8 00 00 87 [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]OFD Sender: No OFD packet to send [19:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:10]Read from MH i2c: E2 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 03 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [19:24:10]RAPDU: 90 00 [19:24:10]wFMCommunicate OK [19:24:10]wFMCommunicate request_size=4 [19:24:10]MH_SAM_APDU [19:24:10]CAPDU: 80 0D 03 02 [19:24:10]Write to MH i2c: E2 08 00 31 00 80 0D 03 02 00 00 00 00 AC [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:10]Read from MH i2c: E2 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 0B 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 0B 00 31 00 00 A3 F1 C8 58 05 C3 D1 8C 90 00 86 [19:24:10]RAPDU: A3 F1 C8 58 05 C3 D1 8C 90 00 [19:24:10]wFMCommunicate OK [19:24:10]SAM_PROTO_SignData done [19:24:10]FM_MakeSignedData done [19:24:10]CreateOFDProtocolMessage [19:24:10]wFMCommunicate request_size=4 [19:24:10]MH_SAM_APDU [19:24:10]CAPDU: 80 11 00 00 [19:24:10]Write to MH i2c: E2 08 00 32 00 80 11 00 00 00 00 00 00 AC [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:10]Read from MH i2c: E2 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 17 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: E2 17 00 32 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 00 [19:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:24:10]wFMCommunicate OK [19:24:10]CreateOFDProtocolMessage done [19:24:10]OFDSenderStorePacket 44730 [19:24:10]StoreOFDPacket docnum=44730 [19:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 7B 03 00 00 8E A6 73 03 63 53 5A 03 01 00 03 00 67 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D8 9A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BA AE 00 00 35 04 06 00 A7 55 33 AC 3E F8 A3 F1 C8 58 05 C3 D1 8C [19:24:10]CheckFolder [19:24:10]dirname=/storage/ofd_packets [19:24:10]CheckFolder done [19:24:10]ProducePacketName [19:24:10]name=ofd_packets/00044730 [19:24:10]NVStorageSaveData ofd_packets/00044730 [19:24:10]File name is /storage/ofd_packets/00044730 [19:24:10]Write 921 bytes [19:24:10]NVStorageSaveData done [19:24:10]OFDSenderStorePacket done [19:24:10]KKMCreateOFDPacket done [19:24:10]NVStorageSaveData kkm_last_timestamp [19:24:10]File name is /storage/kkm_last_timestamp [19:24:10]Write 4 bytes [19:24:10]NVStorageSaveData done [19:24:10]ExternCall_PrintAddStr [19:24:10]wPrintStart [19:24:10]Write to MH i2c: 01 00 00 33 00 33 [19:24:10]Write i2c OK [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 07 00 [19:24:10]MH_I2C_Read... [19:24:10]Read from MH i2c: 01 07 00 33 00 00 00 00 00 00 FF 0F 48 [19:24:10]RasterBufferAndPrint [19:24:10]line Счет N : (3)14622 [19:24:10]line ИНН: 02508201610067 [19:24:10]line Контрольно-Кассовый Чек [19:24:10]line ПРОДАЖА [19:24:10]line Товар: 4600682557456 [19:24:10]line Напиток FLash up energy эн ж/б 0,5/0,45л [19:24:10]line 1.000 * 85.00 [19:24:10]line = 85.00 [19:24:10]line НДС 12% НСП 1% [19:24:10]line > о реализуемом товаре [19:24:10]line Товар: 4700040114120 [19:24:10]line Султан чай 1л. чер персик [19:24:10]line 1.000 * 65.00 [19:24:10]line = 65.00 [19:24:10]line НДС 12% НСП 1% [19:24:10]line > о реализуемом товаре [19:24:10]line Товар: 4607120854184 [19:24:10]line Снек Орехи BEERKa Арахис 90г [19:24:10]line 1.000 * 62.00 [19:24:10]line = 62.00 [19:24:10]line НДС 12% НСП 1% [19:24:10]line > о реализуемом товаре [19:24:10]line Товар: 4630007400389 [19:24:10]line Семечки ДЖИНН 140г [19:24:10]line 1.000 * 130.00 [19:24:10]line = 130.00 [19:24:10]line НДС 12% НСП 1% [19:24:10]line > о реализуемом товаре [19:24:10]line Товар: 4870112003956 [19:24:11]line Шок батончик ALBENI SUPER Альбени Супер [19:24:11]line 1.000 * 75.00 [19:24:11]line = 75.00 [19:24:11]line НДС 12% НСП 1% [19:24:11]line > о реализуемом товаре [19:24:11]line Товар: 2000031750019 [19:24:11]line Пакет Партнер Нефть [19:24:11]line 1.000 * 4.00 [19:24:11]line = 4.00 [19:24:11]line НДС 12% НСП 1% [19:24:11]line > о реализуемом товаре [19:24:11]line ИТОГО: 421.00 [19:24:11]line НСП 1% : 3.71 [19:24:11]line НДС 12% : 44.69 [19:24:11]line Наличными: 0.00 [19:24:11]line Безнал.: 421.00 [19:24:11]line Место: АЗС № 128 "Партнер Нефть" [19:24:11]OFD Sender: Processing packet 44730 [packets to send 7, broken 6] [19:24:11]ProducePacketName [19:24:11]name=ofd_packets/00044730 [19:24:11]OFD Sender: To server: pG, [19:24:11]CommunicateWithHost lk.salyk.kg:30040 [19:24:11]ConnectInit lk.salyk.kg [19:24:11]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [19:24:11]line СНО: Общий режим [19:24:11]line Чек 101 28.07.2024 19:24 [19:24:11]line Смена: 430 ФФД: 1.0 [19:24:11]line ЗНМ: 0300000045 [19:24:11]line РНМ: 0000000000092655 [19:24:11]line Версия ККМ: 001 [19:24:11]line Платежная система: Бакай Банк [19:24:11]line ФМ: 0000000000874941 [19:24:11]line ФД: 44730 [19:24:11]line ФПД: 183984380985080 [19:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T192408&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44730&fm=183984380985080&tin=02508201610067®Number=0000000000092655&sum=42100 [19:24:11]line 0 [19:24:11]written 0, free lines is 4095 [19:24:11]Connected sock=10 [19:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 7B 03 00 00 8E A6 73 03 63 53 5A 03 01 00 03 00 67 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 A4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D8 9A A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BA AE 00 00 35 04 06 00 A7 55 33 AC 3E F8 A3 F1 C8 58 05 C3 D1 8C [19:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F7 69 47 00 2C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BA AE 00 00 F4 03 04 00 EB 46 A6 66 B6 04 01 00 00 9A 9B BD A9 D7 D3 C8 2C [19:24:11]CommunicateWithHost err = 0 [19:24:11]CheckOFDResponse [19:24:11]1017 (14) - 77093643461234 [19:24:11]1041 (16) - 0000000000874941 [19:24:11]1040 (4) - 44730 [19:24:11]1012 (4) - 28.07.2024 13:26 [19:24:11]1206 (1) - 0 [19:24:11]OFD Sender: Remove packet 44730 [19:24:11]ProducePacketName [19:24:11]name=ofd_packets/00044730 [19:24:11]NVStorageDeleteData [19:24:11]Write to MH i2c: 01 00 00 7E 00 7E [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: 01 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: 01 07 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 DB 0A 6A [19:24:11]RasterBufferAndPrint [19:24:11]line [19:24:11]line [19:24:11]line [19:24:11]line [19:24:11]line [19:24:11]written 0, free lines is 2795 [19:24:11]process_action close_receipt done [19:24:11]requested_data is exist [19:24:11]produce_requested_data [19:24:11]requested_item fm.sn is exist - process it [19:24:11]wFMCommunicate request_size=4 [19:24:11]MH_SAM_APDU [19:24:11]CAPDU: 80 11 00 00 [19:24:11]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:11]Read from MH i2c: E2 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 17 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 53 [19:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:24:11]wFMCommunicate OK [19:24:11]requested_item fd.num is exist - process it [19:24:11]SAM_PROTO_GetFieldsCounters [19:24:11]wFMCommunicate request_size=4 [19:24:11]MH_SAM_APDU [19:24:11]CAPDU: 80 13 00 00 [19:24:11]Write to MH i2c: E2 08 00 86 00 80 13 00 00 00 00 00 00 02 [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 62 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 62 00 86 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [19:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_GetFieldsCounters done [19:24:12]requested_item shift.num is exist - process it [19:24:12]requested_item shift.opened is exist - process it [19:24:12]req_shift_opened [19:24:12]FM_GetShiftState [19:24:12]SAM_PROTO_GetShiftState [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 13 01 00 [19:24:12]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [19:24:12]OFD Sender: No OFD packet to send [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 9D [19:24:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_GetShiftState done [19:24:12]FM_GetShiftState done [19:24:12]req_shift_opened done [19:24:12]requested_item shift.open_date is exist - process it [19:24:12]req_shift_open_date [19:24:12]req_shift_open_date done [19:24:12]produce_requested_data done [19:24:12]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44730,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [19:24:12]process_action_free close_receipt [19:24:12]json_value_free [19:24:12]json_value_free done [19:24:12]process_json_proto returns [19:24:12]Send response to host [19:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44730,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [19:24:12]free response buf [19:24:12]execute_script done [19:24:12]execute_script returns [19:24:12]free content buf [19:24:12]Sock 9.Close socket [19:24:12]Sock 9.Thread stoped [19:24:16]int [19:24:16]Write to MH i2c: 01 00 00 88 00 88 [19:24:16]*** FLAG_PRN_KEY set [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 88 00 00 08 00 00 00 FF 0F A5 [19:24:16]state=0 [19:24:16]Key pressed [19:24:16]Feed [19:24:16]Write to MH i2c: D8 00 00 89 00 60 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D8 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D8 01 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D8 01 00 89 00 00 61 [19:24:16]int [19:24:16]Write to MH i2c: 01 00 00 8A 00 8A [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 8A 00 00 48 00 00 00 3C 00 15 [19:24:16]state=2 [19:24:16]Key pressed [19:24:16]int [19:24:16]Write to MH i2c: 01 00 00 8B 00 8B [19:24:16]*** FLAG_PRN_KEY reset [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 8B 00 00 00 00 00 00 FF 0F A0 [19:24:16]state=2 [19:24:16]Stop feed [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 8C 00 8C [19:34:04]*** FLAG_PRN_PAP1 set [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 8C 00 00 01 00 00 00 FF 0F A2 [19:34:04]state=0 [19:34:04]No paper [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 8D 00 8D [19:34:04]*** FLAG_PRN_PAP2 set [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 8D 00 00 03 00 00 00 FF 0F A5 [19:34:04]state=0 [19:34:04]No paper [19:34:04]Cover opened [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 8E 00 8E [19:34:04]*** FLAG_PRN_PAP2 reset [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 8E 00 00 01 00 00 00 FF 0F A4 [19:34:04]state=3 [19:34:04]No paper [19:34:04]Cover closed [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 8F 00 8F [19:34:04]*** FLAG_PRN_PAP2 set [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 8F 00 00 03 00 00 00 FF 0F A7 [19:34:04]state=0 [19:34:04]No paper [19:34:04]Cover opened [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 90 00 90 [19:34:04]*** FLAG_PRN_PAP2 reset [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 90 00 00 01 00 00 00 FF 0F A6 [19:34:04]state=3 [19:34:04]No paper [19:34:04]Cover closed [19:34:04]int [19:34:04]Write to MH i2c: 01 00 00 91 00 91 [19:34:04]*** FLAG_PRN_PAP2 set [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 91 00 00 03 00 00 00 FF 0F A9 [19:34:04]state=0 [19:34:04]No paper [19:34:04]Cover opened [19:34:05]int [19:34:05]Write to MH i2c: 01 00 00 92 00 92 [19:34:05]*** FLAG_PRN_PAP2 reset [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 92 00 00 01 00 00 00 FF 0F A8 [19:34:05]state=3 [19:34:05]No paper [19:34:05]Cover closed [19:34:05]int [19:34:05]Write to MH i2c: 01 00 00 93 00 93 [19:34:05]*** FLAG_PRN_PAP2 set [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 93 00 00 03 00 00 00 FF 0F AB [19:34:05]state=0 [19:34:05]No paper [19:34:05]Cover opened [19:34:07]OFD Sender: No OFD packet to send [19:34:10]Write to MH i2c: 01 00 00 94 00 94 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: 01 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: 01 07 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: 01 07 00 94 00 00 03 00 00 00 FF 0F AC [19:34:10]state=3 [19:34:10]No paper [19:34:10]Cover opened [19:34:12]OFD Sender: No OFD packet to send [19:34:15]Write to MH i2c: 01 00 00 95 00 95 [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 95 00 00 03 00 00 00 FF 0F AD [19:34:15]state=3 [19:34:15]No paper [19:34:15]Cover opened [19:34:15]int [19:34:15]Write to MH i2c: 01 00 00 96 00 96 [19:34:15]*** FLAG_PRN_PAP2 reset [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 96 00 00 01 00 00 00 FF 0F AC [19:34:15]state=3 [19:34:15]No paper [19:34:15]Cover closed [19:34:15]int [19:34:15]Write to MH i2c: 01 00 00 97 00 97 [19:34:15]*** FLAG_PRN_PAP1 reset [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [19:34:15]state=0 [19:34:16]int [19:34:16]Write to MH i2c: 01 00 00 98 00 98 [19:34:16]*** FLAG_PRN_KEY set [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 98 00 00 08 00 00 00 FF 0F B5 [19:34:16]state=0 [19:34:16]Key pressed [19:34:16]Feed [19:34:16]Write to MH i2c: D8 00 00 99 00 70 [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: D8 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: D8 01 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: D8 01 00 99 00 00 71 [19:34:16]int [19:34:16]Write to MH i2c: 01 00 00 9A 00 9A [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 9A 00 00 48 00 00 00 3D 00 26 [19:34:16]state=2 [19:34:16]Key pressed [19:34:16]int [19:34:16]Write to MH i2c: 01 00 00 9B 00 9B [19:34:16]*** FLAG_PRN_KEY reset [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 F6 0F A7 [19:34:16]state=2 [19:34:16]Stop feed [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:50]accept exits with 7 [19:37:50]New connection [19:37:50]New thread 3066625380 created [19:37:50]Thread 3066768740 joined [19:37:50]Waiting for new connection... [19:37:50] Sock 7.Parse request [19:37:50]Sock 7.Check first char [19:37:50]Sock 7.First char is OK [19:37:50]request: POST /json_proto HTTP/1.0 [19:37:50]Method: POST [19:37:50]URL: /json_proto [19:37:50]Method is POST - this is cgi request [19:37:50]url: /json_proto [19:37:50]query_string will be loaded in cgi processing [19:37:50]execute_cgi json_proto POST (null) [19:37:50]execute_cgi path=json_proto method=POST [19:37:50]POST find Content-Length [19:37:50]Host: 172.17.45.196:8080 [19:37:50]Content-Length: 630 [19:37:50]Content-Type: application/json [19:37:50] [19:37:50]POST finish read [19:37:50]Found Content-Length = 630 [19:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14623", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:50]execute_script... [19:37:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14623", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 148.00, "quantity" : 1.000, "sum" : 148.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 148.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:50]POST & json_proto [19:37:50]process_json_proto [19:37:50]json parsed OK: [19:37:50]protocol is kg_v1.0 [19:37:50]action value=close_receipt [19:37:50]process_action close_receipt [19:37:50]cmd_close_receipt [19:37:50]MH_GetDate [19:37:50]Write to MH i2c: F0 00 00 9C 00 8B [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: F0 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: F0 09 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: F0 09 00 9C 00 00 0F 9E A6 66 BB 03 A5 66 16 [19:37:50]GetLastDocTimeStamp 1722194648 [19:37:50]current date 1722195471 [19:37:50]FM_GetShiftState [19:37:50]SAM_PROTO_GetShiftState [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 13 01 00 [19:37:50]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0E 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B3 [19:37:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:37:50]wFMCommunicate OK [19:37:50]SAM_PROTO_GetShiftState done [19:37:50]FM_GetShiftState done [19:37:50]opened in 1722126323 [19:37:50]opened+sec_in_day 1722212723 [19:37:50]quantity*price = 14800 [19:37:50]sum+1 = 14801 [19:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 148.00 НСП 1% : 1.31 НДС 12% : 15.72 Наличными: 148.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 102 28.07.2024 19:37 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44731 ФПД: 41748867262071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193751&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44731&fm=41748867262071&tin=02508201610067®Number=0000000000092655&sum=14800 0 [19:37:51]StoreToDocumentArchive [19:37:51]shift 430 fd 44731 [19:37:51]save to /storage/0430/doc_00044731 [19:37:51]save last doc name /storage/0430/doc_00044731 to /storage/kkm_last_doc_name [19:37:51]save OK [19:37:51]Clear old archive folders... [19:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:37:51]tlvbuf is 00BC2CE0 [19:37:51]SAM_PROTO_ClearQueue [19:37:51]wFMCommunicate request_size=4 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 09 00 00 [19:37:51]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [19:37:51]RAPDU: 90 00 [19:37:51]wFMCommunicate OK [19:37:51]SAM_PROTO_ClearQueue done [19:37:51]KKMCreateOFDPacket [19:37:51]OFDProtocolAddRootSTLVToBuf [19:37:51]FM_MakeSignedData [19:37:51]FM_MakeSignedData [19:37:51]SAM_PROTO_SignData [19:37:51]wFMCommunicate request_size=4 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 0D 01 02 [19:37:51]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [19:37:51]RAPDU: 90 00 [19:37:51]wFMCommunicate OK [19:37:51]wFMCommunicate request_size=255 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0F 9E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [19:37:51]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0F 9E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 7C [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [19:37:51]RAPDU: 90 00 [19:37:51]wFMCommunicate OK [19:37:51]wFMCommunicate request_size=34 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BB AE 00 00 35 04 06 00 25 F8 6A 67 26 77 [19:37:51]Write to MH i2c: E2 25 00 AD 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BB AE 00 00 35 04 06 00 25 F8 6A 67 26 77 00 00 DD [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [19:37:51]RAPDU: 90 00 [19:37:51]wFMCommunicate OK [19:37:51]wFMCommunicate request_size=4 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 0D 03 02 [19:37:51]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 0B 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 0B 00 AE 00 00 71 7B AB CA 56 1E 2E 71 90 00 9E [19:37:51]RAPDU: 71 7B AB CA 56 1E 2E 71 90 00 [19:37:51]wFMCommunicate OK [19:37:51]SAM_PROTO_SignData done [19:37:51]FM_MakeSignedData done [19:37:51]CreateOFDProtocolMessage [19:37:51]wFMCommunicate request_size=4 [19:37:51]MH_SAM_APDU [19:37:51]CAPDU: 80 11 00 00 [19:37:51]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:51]Read from MH i2c: E2 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 17 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7D [19:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:37:51]wFMCommunicate OK [19:37:51]CreateOFDProtocolMessage done [19:37:51]OFDSenderStorePacket 44731 [19:37:51]StoreOFDPacket docnum=44731 [19:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 84 43 1F 01 34 FF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0F 9E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BB AE 00 00 35 04 06 00 25 F8 6A 67 26 77 71 7B AB CA 56 1E 2E 71 [19:37:51]CheckFolder [19:37:51]dirname=/storage/ofd_packets [19:37:51]CheckFolder done [19:37:51]ProducePacketName [19:37:51]name=ofd_packets/00044731 [19:37:51]NVStorageSaveData ofd_packets/00044731 [19:37:51]File name is /storage/ofd_packets/00044731 [19:37:51]Write 325 bytes [19:37:51]NVStorageSaveData done [19:37:51]OFDSenderStorePacket done [19:37:51]KKMCreateOFDPacket done [19:37:51]NVStorageSaveData kkm_last_timestamp [19:37:51]File name is /storage/kkm_last_timestamp [19:37:51]Write 4 bytes [19:37:51]NVStorageSaveData done [19:37:51]ExternCall_PrintAddStr [19:37:51]wPrintStart [19:37:51]Write to MH i2c: 01 00 00 B0 00 B0 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [19:37:51]RasterBufferAndPrint [19:37:51]line Счет N : (3)14623 [19:37:51]line ИНН: 02508201610067 [19:37:51]line Контрольно-Кассовый Чек [19:37:51]line ПРОДАЖА [19:37:51]line Товар: 4780022460216 [19:37:51]line Антифриз Yumiko red 1кг [19:37:51]line 1.000 * 148.00 [19:37:51]line = 148.00 [19:37:51]line НДС 12% НСП 1% [19:37:51]line > о реализуемом товаре [19:37:51]line ИТОГО: 148.00 [19:37:51]line НСП 1% : 1.31 [19:37:51]line НДС 12% : 15.72 [19:37:51]line Наличными: 148.00 [19:37:51]line Безнал.: 0.00 [19:37:51]line Место: АЗС № 128 "Партнер Нефть" [19:37:51]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [19:37:51]line СНО: Общий режим [19:37:51]line Чек 102 28.07.2024 19:37 [19:37:51]line Смена: 430 ФФД: 1.0 [19:37:51]line ЗНМ: 0300000045 [19:37:51]line РНМ: 0000000000092655 [19:37:52]line Версия ККМ: 001 [19:37:52]line ФМ: 0000000000874941 [19:37:52]line ФД: 44731 [19:37:52]line ФПД: 41748867262071 [19:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T193751&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44731&fm=41748867262071&tin=02508201610067®Number=0000000000092655&sum=14800 [19:37:52]line 0 [19:37:52]OFD Sender: Processing packet 44731 [packets to send 7, broken 6] [19:37:52]ProducePacketName [19:37:52]name=ofd_packets/00044731 [19:37:52]OFD Sender: To server: pG, [19:37:52]CommunicateWithHost lk.salyk.kg:30040 [19:37:52]ConnectInit lk.salyk.kg [19:37:52]written 0, free lines is 4095 [19:37:52]Connected sock=10 [19:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 84 43 1F 01 34 FF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 0F 9E A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BB AE 00 00 35 04 06 00 25 F8 6A 67 26 77 71 7B AB CA 56 1E 2E 71 [19:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 29 A6 47 00 CC FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BB AE 00 00 F4 03 04 00 20 4A A6 66 B6 04 01 00 00 17 51 F5 9C 19 93 C4 3F [19:37:52]CommunicateWithHost err = 0 [19:37:52]CheckOFDResponse [19:37:52]1017 (14) - 77093643461234 [19:37:52]1041 (16) - 0000000000874941 [19:37:52]1040 (4) - 44731 [19:37:52]1012 (4) - 28.07.2024 13:39 [19:37:52]1206 (1) - 0 [19:37:52]OFD Sender: Remove packet 44731 [19:37:52]ProducePacketName [19:37:52]name=ofd_packets/00044731 [19:37:52]NVStorageDeleteData [19:37:52]Write to MH i2c: 01 00 00 D8 00 D8 [19:37:52]Write i2c OK [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: 01 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: 01 07 00 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 EE 0C D9 [19:37:52]RasterBufferAndPrint [19:37:52]line [19:37:52]line [19:37:52]line [19:37:52]line [19:37:52]line [19:37:52]written 0, free lines is 3316 [19:37:52]process_action close_receipt done [19:37:52]requested_data is exist [19:37:52]produce_requested_data [19:37:52]requested_item fm.sn is exist - process it [19:37:52]wFMCommunicate request_size=4 [19:37:52]MH_SAM_APDU [19:37:52]CAPDU: 80 11 00 00 [19:37:52]Write to MH i2c: E2 08 00 DF 00 80 11 00 00 00 00 00 00 59 [19:37:52]Write i2c OK [19:37:52]MH_I2C_Read... [19:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:52]Read from MH i2c: E2 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 17 00 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 17 00 DF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 AD [19:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:37:52]wFMCommunicate OK [19:37:52]requested_item fd.num is exist - process it [19:37:52]SAM_PROTO_GetFieldsCounters [19:37:52]wFMCommunicate request_size=4 [19:37:52]MH_SAM_APDU [19:37:52]CAPDU: 80 13 00 00 [19:37:52]Write to MH i2c: E2 08 00 E0 00 80 13 00 00 00 00 00 00 5C [19:37:52]Write i2c OK [19:37:52]MH_I2C_Read... [19:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:52]Read from MH i2c: E2 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 62 00 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 62 00 E0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:52]wFMCommunicate OK [19:37:52]SAM_PROTO_GetFieldsCounters done [19:37:52]requested_item shift.num is exist - process it [19:37:52]requested_item shift.opened is exist - process it [19:37:52]req_shift_opened [19:37:52]FM_GetShiftState [19:37:52]SAM_PROTO_GetShiftState [19:37:52]wFMCommunicate request_size=4 [19:37:52]MH_SAM_APDU [19:37:52]CAPDU: 80 13 01 00 [19:37:52]Write to MH i2c: E2 08 00 E1 00 80 13 01 00 00 00 00 00 5E [19:37:52]Write i2c OK [19:37:52]MH_I2C_Read... [19:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:52]Read from MH i2c: E2 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 0E 00 [19:37:52]MH_I2C_Read... [19:37:52]Read from MH i2c: E2 0E 00 E1 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F7 [19:37:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:37:52]wFMCommunicate OK [19:37:52]SAM_PROTO_GetShiftState done [19:37:52]FM_GetShiftState done [19:37:52]req_shift_opened done [19:37:52]requested_item shift.open_date is exist - process it [19:37:52]req_shift_open_date [19:37:52]req_shift_open_date done [19:37:52]produce_requested_data done [19:37:52]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44731,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [19:37:52]process_action_free close_receipt [19:37:52]json_value_free [19:37:52]json_value_free done [19:37:52]process_json_proto returns [19:37:52]Send response to host [19:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44731,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [19:37:52]free response buf [19:37:52]execute_script done [19:37:52]execute_script returns [19:37:52]free content buf [19:37:52]Sock 7.Close socket [19:37:52]Sock 7.Thread stoped [19:37:53]OFD Sender: No OFD packet to send [19:37:54]int [19:37:54]Write to MH i2c: 01 00 00 E2 00 E2 [19:37:54]*** FLAG_PRN_KEY set [19:37:54]Write i2c OK [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 E2 00 00 08 00 00 00 FF 0F FF [19:37:54]state=0 [19:37:54]Key pressed [19:37:54]Feed [19:37:54]Write to MH i2c: D8 00 00 E3 00 BA [19:37:54]Write i2c OK [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: D8 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: D8 01 00 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: D8 01 00 E3 00 00 BB [19:37:54]int [19:37:54]Write to MH i2c: 01 00 00 E4 00 E4 [19:37:54]Write i2c OK [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 E4 00 00 48 00 00 00 3C 00 6F [19:37:54]state=2 [19:37:54]Key pressed [19:37:54]int [19:37:54]Write to MH i2c: 01 00 00 E5 00 E5 [19:37:54]*** FLAG_PRN_KEY reset [19:37:54]Write i2c OK [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 [19:37:54]MH_I2C_Read... [19:37:54]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 F7 0F F2 [19:37:54]state=2 [19:37:54]Stop feed [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 00 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255B (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step : 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 105921+1722090427=1722196348 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 01 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 7D A1 A6 66 BB 03 A5 66 F2 [19:52:29]Current date/time: 28.07.2024 19:52 [19:52:29]FM_Init [19:52:29]wFMConnect [19:52:29]MH_SAM_On [19:52:29]Write to MH i2c: E0 00 00 08 00 E7 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_init finished! [19:52:29]*** atr: [19:52:29]*** 0F 3B D5 18 FF 81 91 FE [19:52:29]*** 1F C3 80 73 C8 21 10 0A [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]*** 00 00 00 00 00 00 00 00 [19:52:29]Read from MH i2c: E0 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E0 10 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:52:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:52:29]wFMCommunicate request_size=10 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:52:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=4 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 11 00 00 [19:52:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D8 [19:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:52:29]wFMCommunicate OK [19:52:29]Detected FM SN is 0000000000874941 [19:52:29]Stored FM SN is 0000000000874941 [19:52:29]wFMCommunicate request_size=9 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 16 00 00 04 FA 44 01 00 [19:52:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 44 01 00 00 00 D1 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]FM PIN OK [19:52:29]wFMCommunicate request_size=8 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 14 04 00 03 02 00 01 [19:52:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=13 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:52:29]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=4 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 11 00 00 [19:52:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DC [19:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:52:29]wFMCommunicate OK [19:52:29]DocumentArchiveInit [19:52:29]Start Httpd... [19:52:29]Httpd thread 3066912100 created [19:52:29]Write to MH i2c: 01 00 00 0F 00 0F [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 07 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:52:29]MH Int Process started [19:52:29]Allocated Socket 8 [19:52:29]Bind OK [19:52:29]Listen OK [19:52:29]httpd running on port 8080 [19:52:29]Waiting for new connection... [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:36]accept exits with 9 [19:52:36]New connection [19:52:36]New thread 3066625380 created [19:52:36]Waiting for new connection... [19:52:36] Sock 9.Parse request [19:52:36]Sock 9.Check first char [19:52:36]Sock 9.First char is OK [19:52:36]request: POST /json_proto HTTP/1.0 [19:52:36]Method: POST [19:52:36]URL: /json_proto [19:52:36]Method is POST - this is cgi request [19:52:36]url: /json_proto [19:52:36]query_string will be loaded in cgi processing [19:52:36]execute_cgi json_proto POST (null) [19:52:36]execute_cgi path=json_proto method=POST [19:52:36]POST find Content-Length [19:52:36]Host: 172.17.45.196:8080 [19:52:36]Content-Length: 215 [19:52:36]Content-Type: application/json [19:52:36] [19:52:36]POST finish read [19:52:36]Found Content-Length = 215 [19:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:36]execute_script... [19:52:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:36]POST & json_proto [19:52:36]process_json_proto [19:52:36]json parsed OK: [19:52:36]protocol is kg_v1.0 [19:52:36]action value=get_value [19:52:36]process_action get_value [19:52:36]cmd_get_value [19:52:36]process_action get_value done [19:52:36]requested_data is exist [19:52:36]produce_requested_data [19:52:36]requested_item kkm.sn is exist - process it [19:52:36]requested_item kkm.ver is exist - process it [19:52:36]requested_item fm.sn is exist - process it [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 11 00 00 [19:52:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DE [19:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:52:36]wFMCommunicate OK [19:52:36]requested_item fd.num is exist - process it [19:52:36]SAM_PROTO_GetFieldsCounters [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 13 00 00 [19:52:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 62 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [19:52:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_GetFieldsCounters done [19:52:36]requested_item shift.num is exist - process it [19:52:36]requested_item shift.opened is exist - process it [19:52:36]req_shift_opened [19:52:36]FM_GetShiftState [19:52:36]SAM_PROTO_GetShiftState [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 13 01 00 [19:52:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 0E 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 28 [19:52:37]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:52:37]wFMCommunicate OK [19:52:37]SAM_PROTO_GetShiftState done [19:52:37]FM_GetShiftState done [19:52:37]req_shift_opened done [19:52:37]requested_item shift.open_date is exist - process it [19:52:37]req_shift_open_date [19:52:37]req_shift_open_date done [19:52:37]produce_requested_data done [19:52:37]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44731,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [19:52:37]process_action_free get_value [19:52:37]json_value_free [19:52:37]json_value_free done [19:52:37]process_json_proto returns [19:52:37]Send response to host [19:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44731,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [19:52:37]free response buf [19:52:37]execute_script done [19:52:37]execute_script returns [19:52:37]free content buf [19:52:37]Sock 9.Close socket [19:52:37]Sock 9.Thread stoped [19:52:37]accept exits with 7 [19:52:37]New connection [19:52:37]New thread 3066482020 created [19:52:37]Thread 3066625380 joined [19:52:37]Waiting for new connection... [19:52:37] Sock 7.Parse request [19:52:37]Sock 7.Check first char [19:52:37]Sock 7.First char is OK [19:52:37]request: POST /json_proto HTTP/1.0 [19:52:37]Method: POST [19:52:37]URL: /json_proto [19:52:37]Method is POST - this is cgi request [19:52:37]url: /json_proto [19:52:37]query_string will be loaded in cgi processing [19:52:37]execute_cgi json_proto POST (null) [19:52:37]execute_cgi path=json_proto method=POST [19:52:37]POST find Content-Length [19:52:37]Host: 172.17.45.196:8080 [19:52:37]Content-Length: 331 [19:52:37]Content-Type: application/json [19:52:37] [19:52:37]POST finish read [19:52:37]Found Content-Length = 331 [19:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:52:37]execute_script... [19:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:52:37]POST & json_proto [19:52:37]process_json_proto [19:52:37]json parsed OK: [19:52:37]protocol is kg_v1.0 [19:52:37]action value=get_value [19:52:37]process_action get_value [19:52:37]cmd_get_value [19:52:37]process_action get_value done [19:52:37]requested_data is exist [19:52:37]produce_requested_data [19:52:37]requested_item fm.sale.total is exist - process it [19:52:37]SAM_PROTO_GetFMData [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 13 03 00 [19:52:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 FD 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 5F AB 00 00 69 04 A0 00 6F 04 04 00 D0 AA 00 00 B1 04 04 00 09 E1 28 40 70 04 04 00 60 3F BB 3B 72 04 04 00 A9 A1 6D 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 43 D0 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F5 46 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 D4 [19:52:37]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 5F AB 00 00 69 04 A0 00 6F 04 04 00 D0 AA 00 00 B1 04 04 00 09 E1 28 40 70 04 04 00 60 3F BB 3B 72 04 04 00 A9 A1 6D 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A3 43 D0 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F5 46 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [19:52:37]wFMCommunicate OK [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 17 00 00 [19:52:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3D [19:52:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 17 00 00 [19:52:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 43 [19:52:38]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 17 00 00 [19:52:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 11 [19:52:38]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 17 00 00 [19:52:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 DF 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [19:52:38]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetFMData done [19:52:38]requested_item fm.sale_refund.total is exist - process it [19:52:38]requested_item fm.buy.total is exist - process it [19:52:38]requested_item shift.sale.total is exist - process it [19:52:38]SAM_PROTO_GetShiftData [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 02 00 [19:52:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:52:39]Read from MH i2c: E2 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 66 00 00 00 69 04 9B 00 6F 04 04 00 66 00 00 00 B1 04 03 00 C4 1E 22 70 04 03 00 18 10 1E 72 04 03 00 AC 0E 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 89 9F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 37 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DA [19:52:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 66 00 00 00 69 04 9B 00 6F 04 04 00 66 00 00 00 B1 04 03 00 C4 1E 22 70 04 03 00 18 10 1E 72 04 03 00 AC 0E 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 89 9F 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 37 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:52:39]wFMCommunicate OK [19:52:39]wFMCommunicate request_size=4 [19:52:39]MH_SAM_APDU [19:52:39]CAPDU: 80 17 00 00 [19:52:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]OFD Sender: No OFD packet to send [19:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:39]Read from MH i2c: E2 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [19:52:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:52:39]wFMCommunicate OK [19:52:39]wFMCommunicate request_size=4 [19:52:39]MH_SAM_APDU [19:52:39]CAPDU: 80 17 00 00 [19:52:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:39]Read from MH i2c: E2 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [19:52:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:52:39]wFMCommunicate OK [19:52:39]wFMCommunicate request_size=4 [19:52:39]MH_SAM_APDU [19:52:39]CAPDU: 80 17 00 00 [19:52:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 FD 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [19:52:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:52:40]wFMCommunicate OK [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 17 00 00 [19:52:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 CB 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [19:52:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:52:40]wFMCommunicate OK [19:52:40]SAM_PROTO_GetShiftData done [19:52:40]requested_item shift.sale.total_cash is exist - process it [19:52:40]requested_item shift.sale_refund.total is exist - process it [19:52:40]requested_item shift.sale_refund.total_cash is exist - process it [19:52:40]requested_item shift.buy.total is exist - process it [19:52:40]requested_item shift.buy.total_cash is exist - process it [19:52:40]produce_requested_data done [19:52:40]produce_requested_data return {"fm.sale.total":10764208.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":22361.00,"shift.sale.total_cash":19702.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:52:40]process_action_free get_value [19:52:40]json_value_free [19:52:40]json_value_free done [19:52:40]process_json_proto returns [19:52:40]Send response to host [19:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10764208.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":22361.00,"shift.sale.total_cash":19702.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:52:40]free response buf [19:52:40]execute_script done [19:52:40]execute_script returns [19:52:40]free content buf [19:52:40]Sock 7.Close socket [19:52:40]Sock 7.Thread stoped [19:52:42]accept exits with 9 [19:52:42]New connection [19:52:42]New thread 3066625380 created [19:52:42]Thread 3066482020 joined [19:52:42]Waiting for new connection... [19:52:42] Sock 9.Parse request [19:52:42]Sock 9.Check first char [19:52:42]Sock 9.First char is OK [19:52:42]request: POST /json_proto HTTP/1.0 [19:52:42]Method: POST [19:52:42]URL: /json_proto [19:52:42]Method is POST - this is cgi request [19:52:42]url: /json_proto [19:52:42]query_string will be loaded in cgi processing [19:52:42]execute_cgi json_proto POST (null) [19:52:42]execute_cgi path=json_proto method=POST [19:52:42]POST find Content-Length [19:52:42]Host: 172.17.45.196:8080 [19:52:42]Content-Length: 898 [19:52:42]Content-Type: application/json [19:52:42] [19:52:42]POST finish read [19:52:42]Found Content-Length = 898 [19:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14624", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:42]execute_script... [19:52:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14624", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:42]POST & json_proto [19:52:42]process_json_proto [19:52:42]json parsed OK: [19:52:42]protocol is kg_v1.0 [19:52:42]action value=close_receipt [19:52:42]process_action close_receipt [19:52:42]cmd_close_receipt [19:52:42]MH_GetDate [19:52:42]Write to MH i2c: F0 00 00 1D 00 0C [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: F0 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: F0 09 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: F0 09 00 1D 00 00 8A A1 A6 66 BB 03 A5 66 15 [19:52:42]GetLastDocTimeStamp 1722195471 [19:52:42]current date 1722196362 [19:52:42]FM_GetShiftState [19:52:42]SAM_PROTO_GetShiftState [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 13 01 00 [19:52:42]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 0E 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 34 [19:52:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:52:42]wFMCommunicate OK [19:52:42]SAM_PROTO_GetShiftState done [19:52:42]FM_GetShiftState done [19:52:42]opened in 1722126323 [19:52:42]opened+sec_in_day 1722212723 [19:52:42]quantity*price = 18000 [19:52:42]sum+1 = 18001 [19:52:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650063110756 Масло Gazpromneft Super 10w40 1л 1.000 * 405.00 = 405.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 585.00 НСП 1% : 5.17 НДС 12% : 62.12 Наличными: 585.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 103 28.07.2024 19:52 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44732 ФПД: 204003227220390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195243&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44732&fm=204003227220390&tin=02508201610067®Number=0000000000092655&sum=58500 0 [19:52:43]StoreToDocumentArchive [19:52:43]shift 430 fd 44732 [19:52:43]save to /storage/0430/doc_00044732 [19:52:43]save last doc name /storage/0430/doc_00044732 to /storage/kkm_last_doc_name [19:52:43]save OK [19:52:43]Clear old archive folders... [19:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=397 [19:52:43]tlvbuf is 017F2AD0 [19:52:43]SAM_PROTO_ClearQueue [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 09 00 00 [19:52:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]SAM_PROTO_ClearQueue done [19:52:43]KKMCreateOFDPacket [19:52:43]OFDProtocolAddRootSTLVToBuf [19:52:43]FM_MakeSignedData [19:52:43]FM_MakeSignedData [19:52:43]SAM_PROTO_SignData [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 01 02 [19:52:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=255 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 [19:52:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 00 00 FA [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:52:44]RAPDU: 90 00 [19:52:44]wFMCommunicate OK [19:52:44]wFMCommunicate request_size=156 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B A1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BC AE 00 00 35 04 06 00 B9 8A 33 E4 39 A6 [19:52:44]Write to MH i2c: E2 9F 00 2E 00 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B A1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BC AE 00 00 35 04 06 00 B9 8A 33 E4 39 A6 00 00 BE [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:52:44]RAPDU: 90 00 [19:52:44]wFMCommunicate OK [19:52:44]wFMCommunicate request_size=4 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 0D 03 02 [19:52:44]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 0B 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 0B 00 2F 00 00 7F 08 41 1F 21 69 6B B7 90 00 3E [19:52:44]RAPDU: 7F 08 41 1F 21 69 6B B7 90 00 [19:52:44]wFMCommunicate OK [19:52:44]SAM_PROTO_SignData done [19:52:44]FM_MakeSignedData done [19:52:44]CreateOFDProtocolMessage [19:52:44]wFMCommunicate request_size=4 [19:52:44]MH_SAM_APDU [19:52:44]CAPDU: 80 11 00 00 [19:52:44]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:52:44]OFD Sender: No OFD packet to send [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:44]Read from MH i2c: E2 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 17 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FE [19:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:52:44]wFMCommunicate OK [19:52:44]CreateOFDProtocolMessage done [19:52:44]OFDSenderStorePacket 44732 [19:52:44]StoreOFDPacket docnum=44732 [19:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A1 01 00 00 6F 71 99 01 D0 FF 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B A1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BC AE 00 00 35 04 06 00 B9 8A 33 E4 39 A6 7F 08 41 1F 21 69 6B B7 [19:52:44]CheckFolder [19:52:44]dirname=/storage/ofd_packets [19:52:44]CheckFolder done [19:52:44]ProducePacketName [19:52:44]name=ofd_packets/00044732 [19:52:44]NVStorageSaveData ofd_packets/00044732 [19:52:44]File name is /storage/ofd_packets/00044732 [19:52:44]Write 447 bytes [19:52:44]NVStorageSaveData done [19:52:44]OFDSenderStorePacket done [19:52:44]KKMCreateOFDPacket done [19:52:44]NVStorageSaveData kkm_last_timestamp [19:52:44]File name is /storage/kkm_last_timestamp [19:52:44]Write 4 bytes [19:52:44]NVStorageSaveData done [19:52:44]ExternCall_PrintAddStr [19:52:44]wPrintStart [19:52:44]Write to MH i2c: 01 00 00 31 00 31 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:52:44]RasterBufferAndPrint [19:52:44]line Счет N : (3)14624 [19:52:44]line ИНН: 02508201610067 [19:52:44]line Контрольно-Кассовый Чек [19:52:44]line ПРОДАЖА [19:52:44]line Товар: 5449000176448 [19:52:44]line Сок Piko Pulpy апельсин ПЭТ 1л [19:52:44]line 1.000 * 180.00 [19:52:44]line = 180.00 [19:52:44]line НДС 12% НСП 1% [19:52:44]line > о реализуемом товаре [19:52:44]line Товар: 4650063110756 [19:52:44]line Масло Gazpromneft Super 10w40 1л [19:52:44]line 1.000 * 405.00 [19:52:44]line = 405.00 [19:52:44]line НДС 12% НСП 1% [19:52:44]line > о реализуемом товаре [19:52:44]line ИТОГО: 585.00 [19:52:44]line НСП 1% : 5.17 [19:52:44]line НДС 12% : 62.12 [19:52:44]line Наличными: 585.00 [19:52:44]line Безнал.: 0.00 [19:52:44]line Место: АЗС № 128 "Партнер Нефть" [19:52:44]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [19:52:44]line СНО: Общий режим [19:52:44]line Чек 103 28.07.2024 19:52 [19:52:44]line Смена: 430 ФФД: 1.0 [19:52:44]line ЗНМ: 0300000045 [19:52:44]line РНМ: 0000000000092655 [19:52:44]line Версия ККМ: 001 [19:52:44]line ФМ: 0000000000874941 [19:52:44]line ФД: 44732 [19:52:44]line ФПД: 204003227220390 [19:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T195243&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44732&fm=204003227220390&tin=02508201610067®Number=0000000000092655&sum=58500 [19:52:44]line 0 [19:52:44]written 0, free lines is 4095 [19:52:44]OFD Sender: Processing packet 44732 [packets to send 7, broken 6] [19:52:44]ProducePacketName [19:52:44]name=ofd_packets/00044732 [19:52:44]OFD Sender: To server: pG, [19:52:44]CommunicateWithHost lk.salyk.kg:30040 [19:52:44]ConnectInit lk.salyk.kg [19:52:44]Connected sock=10 [19:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A1 01 00 00 6F 71 99 01 D0 FF 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B A1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BC AE 00 00 35 04 06 00 B9 8A 33 E4 39 A6 7F 08 41 1F 21 69 6B B7 [19:52:45]Write to MH i2c: 01 00 00 61 00 61 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 70 0C E4 [19:52:45]RasterBufferAndPrint [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]line [19:52:45]written 0, free lines is 3200 [19:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E1 01 47 00 7A 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BC AE 00 00 F4 03 04 00 9C 4D A6 66 B6 04 01 00 00 4E EC D8 EA 02 10 0B A2 [19:52:45]CommunicateWithHost err = 0 [19:52:45]CheckOFDResponse [19:52:45]1017 (14) - 77093643461234 [19:52:45]1041 (16) - 0000000000874941 [19:52:45]1040 (4) - 44732 [19:52:45]1012 (4) - 28.07.2024 13:54 [19:52:45]1206 (1) - 0 [19:52:45]OFD Sender: Remove packet 44732 [19:52:45]ProducePacketName [19:52:45]name=ofd_packets/00044732 [19:52:45]NVStorageDeleteData [19:52:45]process_action close_receipt done [19:52:45]requested_data is exist [19:52:45]produce_requested_data [19:52:45]requested_item fm.sn is exist - process it [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 11 00 00 [19:52:45]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 36 [19:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [19:52:45]wFMCommunicate OK [19:52:45]requested_item fd.num is exist - process it [19:52:45]SAM_PROTO_GetFieldsCounters [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 00 00 [19:52:45]Write to MH i2c: E2 08 00 69 00 80 13 00 00 00 00 00 00 E5 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 69 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_GetFieldsCounters done [19:52:45]requested_item shift.num is exist - process it [19:52:45]requested_item shift.opened is exist - process it [19:52:45]req_shift_opened [19:52:45]FM_GetShiftState [19:52:45]SAM_PROTO_GetShiftState [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 01 00 [19:52:45]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0E 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 80 [19:52:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [19:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_GetShiftState done [19:52:45]FM_GetShiftState done [19:52:45]req_shift_opened done [19:52:45]requested_item shift.open_date is exist - process it [19:52:45]req_shift_open_date [19:52:45]req_shift_open_date done [19:52:45]produce_requested_data done [19:52:45]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44732,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [19:52:45]process_action_free close_receipt [19:52:45]json_value_free [19:52:45]json_value_free done [19:52:45]process_json_proto returns [19:52:45]Send response to host [19:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44732,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [19:52:45]free response buf [19:52:45]execute_script done [19:52:45]execute_script returns [19:52:45]free content buf [19:52:45]Sock 9.Close socket [19:52:45]Sock 9.Thread stoped [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:48]int [20:00:48]Write to MH i2c: 01 00 00 6B 00 6B [20:00:48]*** FLAG_PRN_KEY set [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 6B 00 00 08 00 00 00 FF 0F 88 [20:00:48]state=0 [20:00:48]Key pressed [20:00:48]Feed [20:00:48]Write to MH i2c: D8 00 00 6C 00 43 [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D8 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D8 01 00 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D8 01 00 6C 00 00 44 [20:00:48]int [20:00:48]Write to MH i2c: 01 00 00 6D 00 6D [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 6D 00 00 48 00 00 00 3D 00 F9 [20:00:48]state=2 [20:00:48]Key pressed [20:00:49]int [20:00:49]Write to MH i2c: 01 00 00 6E 00 6E [20:00:49]*** FLAG_PRN_KEY reset [20:00:49]Write i2c OK [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: 01 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: 01 07 00 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 F6 0F 7A [20:00:49]state=2 [20:00:49]Stop feed [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:27]accept exits with 7 [20:08:27]New connection [20:08:27]New thread 3066482020 created [20:08:27]Thread 3066625380 joined [20:08:27]Waiting for new connection... [20:08:27] Sock 7.Parse request [20:08:27]Sock 7.Check first char [20:08:27]Sock 7.First char is OK [20:08:27]request: POST /json_proto HTTP/1.0 [20:08:27]Method: POST [20:08:27]URL: /json_proto [20:08:27]Method is POST - this is cgi request [20:08:27]url: /json_proto [20:08:27]query_string will be loaded in cgi processing [20:08:27]execute_cgi json_proto POST (null) [20:08:27]execute_cgi path=json_proto method=POST [20:08:27]POST find Content-Length [20:08:27]Host: 172.17.45.196:8080 [20:08:27]Content-Length: 625 [20:08:27]Content-Type: application/json [20:08:27] [20:08:27]POST finish read [20:08:27]Found Content-Length = 625 [20:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14625", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:27]execute_script... [20:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14625", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:27]POST & json_proto [20:08:27]process_json_proto [20:08:27]json parsed OK: [20:08:27]protocol is kg_v1.0 [20:08:27]action value=close_receipt [20:08:27]process_action close_receipt [20:08:27]cmd_close_receipt [20:08:27]MH_GetDate [20:08:27]Write to MH i2c: F0 00 00 6F 00 5E [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: F0 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: F0 09 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: F0 09 00 6F 00 00 3C A5 A6 66 BB 03 A5 66 1D [20:08:27]GetLastDocTimeStamp 1722196363 [20:08:27]current date 1722197308 [20:08:27]FM_GetShiftState [20:08:27]SAM_PROTO_GetShiftState [20:08:27]wFMCommunicate request_size=4 [20:08:27]MH_SAM_APDU [20:08:27]CAPDU: 80 13 01 00 [20:08:27]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:27]Read from MH i2c: E2 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 0E 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 86 [20:08:27]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:08:27]wFMCommunicate OK [20:08:27]SAM_PROTO_GetShiftState done [20:08:27]FM_GetShiftState done [20:08:27]opened in 1722126323 [20:08:27]opened+sec_in_day 1722212723 [20:08:27]quantity*price = 11500 [20:08:27]sum+1 = 11501 [20:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 104 28.07.2024 20:08 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44733 ФПД: 217188273844654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200828&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44733&fm=217188273844654&tin=02508201610067®Number=0000000000092655&sum=11500 0 [20:08:28]StoreToDocumentArchive [20:08:28]shift 430 fd 44733 [20:08:28]save to /storage/0430/doc_00044733 [20:08:28]save last doc name /storage/0430/doc_00044733 to /storage/kkm_last_doc_name [20:08:28]save OK [20:08:28]Clear old archive folders... [20:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:08:28]tlvbuf is 017A3CD0 [20:08:28]SAM_PROTO_ClearQueue [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 09 00 00 [20:08:28]Write to MH i2c: E2 08 00 7D 00 80 09 00 00 00 00 00 00 EF [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [20:08:28]RAPDU: 90 00 [20:08:28]wFMCommunicate OK [20:08:28]SAM_PROTO_ClearQueue done [20:08:28]KKMCreateOFDPacket [20:08:28]OFDProtocolAddRootSTLVToBuf [20:08:28]FM_MakeSignedData [20:08:28]FM_MakeSignedData [20:08:28]SAM_PROTO_SignData [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 0D 01 02 [20:08:28]Write to MH i2c: E2 08 00 7E 00 80 0D 01 02 00 00 00 00 F7 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [20:08:29]RAPDU: 90 00 [20:08:29]wFMCommunicate OK [20:08:29]wFMCommunicate request_size=255 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3C A5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [20:08:29]Write to MH i2c: E2 02 01 7F 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3C A5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 99 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [20:08:29]RAPDU: 90 00 [20:08:29]wFMCommunicate OK [20:08:29]wFMCommunicate request_size=33 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BD AE 00 00 35 04 06 00 C5 88 15 E9 71 AE [20:08:29]Write to MH i2c: E2 24 00 80 00 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BD AE 00 00 35 04 06 00 C5 88 15 E9 71 AE 00 00 5F [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [20:08:29]RAPDU: 90 00 [20:08:29]wFMCommunicate OK [20:08:29]wFMCommunicate request_size=4 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 0D 03 02 [20:08:29]Write to MH i2c: E2 08 00 81 00 80 0D 03 02 00 00 00 00 FC [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 0B 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 0B 00 81 00 00 5B 53 F2 64 1A 34 DC E3 90 00 0E [20:08:29]RAPDU: 5B 53 F2 64 1A 34 DC E3 90 00 [20:08:29]wFMCommunicate OK [20:08:29]SAM_PROTO_SignData done [20:08:29]FM_MakeSignedData done [20:08:29]CreateOFDProtocolMessage [20:08:29]wFMCommunicate request_size=4 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 11 00 00 [20:08:29]Write to MH i2c: E2 08 00 82 00 80 11 00 00 00 00 00 00 FC [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 17 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 17 00 82 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 50 [20:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:08:29]wFMCommunicate OK [20:08:29]CreateOFDProtocolMessage done [20:08:29]OFDSenderStorePacket 44733 [20:08:29]StoreOFDPacket docnum=44733 [20:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 91 6E 1E 01 90 68 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3C A5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BD AE 00 00 35 04 06 00 C5 88 15 E9 71 AE 5B 53 F2 64 1A 34 DC E3 [20:08:29]CheckFolder [20:08:29]dirname=/storage/ofd_packets [20:08:29]CheckFolder done [20:08:29]ProducePacketName [20:08:29]name=ofd_packets/00044733 [20:08:29]NVStorageSaveData ofd_packets/00044733 [20:08:29]File name is /storage/ofd_packets/00044733 [20:08:29]Write 324 bytes [20:08:29]NVStorageSaveData done [20:08:29]OFDSenderStorePacket done [20:08:29]KKMCreateOFDPacket done [20:08:29]NVStorageSaveData kkm_last_timestamp [20:08:29]File name is /storage/kkm_last_timestamp [20:08:29]Write 4 bytes [20:08:29]NVStorageSaveData done [20:08:29]ExternCall_PrintAddStr [20:08:29]wPrintStart [20:08:29]Write to MH i2c: 01 00 00 83 00 83 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 07 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [20:08:29]RasterBufferAndPrint [20:08:29]line Счет N : (3)14625 [20:08:29]line ИНН: 02508201610067 [20:08:29]line Контрольно-Кассовый Чек [20:08:29]line ПРОДАЖА [20:08:29]line Товар: 2000036240010 [20:08:29]line Кофе Латте (GABB TRADE) [20:08:29]line 1.000 * 115.00 [20:08:29]line = 115.00 [20:08:29]line НДС 12% НСП 1% [20:08:29]line > о реализуемом товаре [20:08:29]line ИТОГО: 115.00 [20:08:29]line НСП 1% : 1.02 [20:08:29]line НДС 12% : 12.21 [20:08:29]line Наличными: 115.00 [20:08:29]line Безнал.: 0.00 [20:08:29]line Место: АЗС № 128 "Партнер Нефть" [20:08:29]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [20:08:29]line СНО: Общий режим [20:08:29]line Чек 104 28.07.2024 20:08 [20:08:29]line Смена: 430 ФФД: 1.0 [20:08:29]line ЗНМ: 0300000045 [20:08:29]line РНМ: 0000000000092655 [20:08:29]line Версия ККМ: 001 [20:08:29]line ФМ: 0000000000874941 [20:08:29]line ФД: 44733 [20:08:29]line ФПД: 217188273844654 [20:08:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T200828&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44733&fm=217188273844654&tin=02508201610067®Number=0000000000092655&sum=11500 [20:08:29]OFD Sender: Processing packet 44733 [packets to send 7, broken 6] [20:08:29]ProducePacketName [20:08:29]name=ofd_packets/00044733 [20:08:29]OFD Sender: To server: pG, [20:08:29]CommunicateWithHost lk.salyk.kg:30040 [20:08:29]ConnectInit lk.salyk.kg [20:08:29]line 0 [20:08:29]written 0, free lines is 4095 [20:08:30]Connected sock=11 [20:08:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 91 6E 1E 01 90 68 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 3C A5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BD AE 00 00 35 04 06 00 C5 88 15 E9 71 AE 5B 53 F2 64 1A 34 DC E3 [20:08:30]Write to MH i2c: 01 00 00 AB 00 AB [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: 01 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: 01 07 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 EE 0C AC [20:08:30]RasterBufferAndPrint [20:08:30]line [20:08:30]line [20:08:30]line [20:08:30]line [20:08:30]line [20:08:30]written 0, free lines is 3316 [20:08:30]process_action close_receipt done [20:08:30]requested_data is exist [20:08:30]produce_requested_data [20:08:30]requested_item fm.sn is exist - process it [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 11 00 00 [20:08:30]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 17 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 80 [20:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:08:30]wFMCommunicate OK [20:08:30]requested_item fd.num is exist - process it [20:08:30]SAM_PROTO_GetFieldsCounters [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 13 00 00 [20:08:30]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 5C 5D 47 00 50 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BD AE 00 00 F4 03 04 00 4E 51 A6 66 B6 04 01 00 00 F2 AD 36 A9 2F 8F E2 C2 [20:08:30]CommunicateWithHost err = 0 [20:08:30]CheckOFDResponse [20:08:30]1017 (14) - 77093643461234 [20:08:30]1041 (16) - 0000000000874941 [20:08:30]1040 (4) - 44733 [20:08:30]1012 (4) - 28.07.2024 14:10 [20:08:30]1206 (1) - 0 [20:08:30]OFD Sender: Remove packet 44733 [20:08:30]ProducePacketName [20:08:30]name=ofd_packets/00044733 [20:08:30]NVStorageDeleteData [20:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 62 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:30]wFMCommunicate OK [20:08:30]SAM_PROTO_GetFieldsCounters done [20:08:30]requested_item shift.num is exist - process it [20:08:30]requested_item shift.opened is exist - process it [20:08:30]req_shift_opened [20:08:30]FM_GetShiftState [20:08:30]SAM_PROTO_GetShiftState [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 13 01 00 [20:08:30]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 CA [20:08:30]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:08:30]wFMCommunicate OK [20:08:30]SAM_PROTO_GetShiftState done [20:08:30]FM_GetShiftState done [20:08:30]req_shift_opened done [20:08:30]requested_item shift.open_date is exist - process it [20:08:30]req_shift_open_date [20:08:30]req_shift_open_date done [20:08:30]produce_requested_data done [20:08:30]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44733,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [20:08:30]process_action_free close_receipt [20:08:30]json_value_free [20:08:30]json_value_free done [20:08:30]process_json_proto returns [20:08:30]Send response to host [20:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44733,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [20:08:30]free response buf [20:08:30]execute_script done [20:08:30]execute_script returns [20:08:30]free content buf [20:08:30]Sock 7.Close socket [20:08:30]Sock 7.Thread stoped [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:15]int [20:15:15]Write to MH i2c: 01 00 00 B5 00 B5 [20:15:15]*** FLAG_PRN_KEY set [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 B5 00 00 08 00 00 00 FF 0F D2 [20:15:15]state=0 [20:15:15]Key pressed [20:15:15]Feed [20:15:15]Write to MH i2c: D8 00 00 B6 00 8D [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: D8 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: D8 01 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: D8 01 00 B6 00 00 8E [20:15:16]int [20:15:16]Write to MH i2c: 01 00 00 B7 00 B7 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 B7 00 00 48 00 00 00 3D 00 43 [20:15:16]state=2 [20:15:16]Key pressed [20:15:16]OFD Sender: No OFD packet to send [20:15:16]int [20:15:16]Write to MH i2c: 01 00 00 B8 00 B8 [20:15:16]*** FLAG_PRN_KEY reset [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 F6 0F C4 [20:15:16]state=2 [20:15:16]Stop feed [20:15:17]int [20:15:17]Write to MH i2c: 01 00 00 B9 00 B9 [20:15:17]*** FLAG_PRN_KEY set [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 B9 00 00 08 00 00 00 FF 0F D6 [20:15:17]state=0 [20:15:17]Key pressed [20:15:17]Feed [20:15:17]Write to MH i2c: D8 00 00 BA 00 91 [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D8 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D8 01 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D8 01 00 BA 00 00 92 [20:15:17]int [20:15:17]Write to MH i2c: 01 00 00 BB 00 BB [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 BB 00 00 48 00 00 00 3C 00 46 [20:15:17]state=2 [20:15:17]Key pressed [20:15:17]int [20:15:17]Write to MH i2c: 01 00 00 BC 00 BC [20:15:17]*** FLAG_PRN_KEY reset [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 BC 00 00 00 00 00 00 F6 0F C8 [20:15:17]state=2 [20:15:17]Stop feed [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:30]accept exits with 9 [20:32:30]New connection [20:32:30]New thread 3066625380 created [20:32:30]Thread 3066482020 joined [20:32:30]Waiting for new connection... [20:32:30] Sock 9.Parse request [20:32:30]Sock 9.Check first char [20:32:30]Sock 9.First char is OK [20:32:30]request: POST /json_proto HTTP/1.0 [20:32:30]Method: POST [20:32:30]URL: /json_proto [20:32:30]Method is POST - this is cgi request [20:32:30]url: /json_proto [20:32:30]query_string will be loaded in cgi processing [20:32:30]execute_cgi json_proto POST (null) [20:32:30]execute_cgi path=json_proto method=POST [20:32:30]POST find Content-Length [20:32:30]Host: 172.17.45.196:8080 [20:32:30]Content-Length: 619 [20:32:30]Content-Type: application/json [20:32:30] [20:32:30]POST finish read [20:32:30]Found Content-Length = 619 [20:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14626", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:30]execute_script... [20:32:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14626", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:30]POST & json_proto [20:32:30]process_json_proto [20:32:30]json parsed OK: [20:32:30]protocol is kg_v1.0 [20:32:30]action value=close_receipt [20:32:30]process_action close_receipt [20:32:30]cmd_close_receipt [20:32:30]MH_GetDate [20:32:30]Write to MH i2c: F0 00 00 BD 00 AC [20:32:30]Write i2c OK [20:32:30]MH_I2C_Read... [20:32:30]Read from MH i2c: F0 [20:32:30]MH_I2C_Read... [20:32:30]Read from MH i2c: F0 09 00 [20:32:30]MH_I2C_Read... [20:32:30]Read from MH i2c: F0 09 00 BD 00 00 DF AA A6 66 BB 03 A5 66 13 [20:32:30]GetLastDocTimeStamp 1722197308 [20:32:30]current date 1722198751 [20:32:30]FM_GetShiftState [20:32:30]SAM_PROTO_GetShiftState [20:32:30]wFMCommunicate request_size=4 [20:32:30]MH_SAM_APDU [20:32:30]CAPDU: 80 13 01 00 [20:32:30]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [20:32:30]Write i2c OK [20:32:30]MH_I2C_Read... [20:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:30]Read from MH i2c: E2 [20:32:30]MH_I2C_Read... [20:32:30]Read from MH i2c: E2 0E 00 [20:32:30]MH_I2C_Read... [20:32:30]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D4 [20:32:30]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:32:30]wFMCommunicate OK [20:32:30]SAM_PROTO_GetShiftState done [20:32:30]FM_GetShiftState done [20:32:30]opened in 1722126323 [20:32:30]opened+sec_in_day 1722212723 [20:32:30]quantity*price = 15000 [20:32:30]sum+1 = 15001 [20:32:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 105 28.07.2024 20:32 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44734 ФПД: 210590343691462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203231&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44734&fm=210590343691462&tin=02508201610067®Number=0000000000092655&sum=15000 0 [20:32:31]StoreToDocumentArchive [20:32:31]shift 430 fd 44734 [20:32:31]save to /storage/0430/doc_00044734 [20:32:31]save last doc name /storage/0430/doc_00044734 to /storage/kkm_last_doc_name [20:32:31]save OK [20:32:31]Clear old archive folders... [20:32:31]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:32:31]tlvbuf is 017F7E70 [20:32:31]SAM_PROTO_ClearQueue [20:32:31]wFMCommunicate request_size=4 [20:32:31]MH_SAM_APDU [20:32:31]CAPDU: 80 09 00 00 [20:32:31]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [20:32:31]Write i2c OK [20:32:31]MH_I2C_Read... [20:32:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:31]Read from MH i2c: E2 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: E2 03 00 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [20:32:31]RAPDU: 90 00 [20:32:31]wFMCommunicate OK [20:32:31]SAM_PROTO_ClearQueue done [20:32:31]KKMCreateOFDPacket [20:32:31]OFDProtocolAddRootSTLVToBuf [20:32:31]FM_MakeSignedData [20:32:31]FM_MakeSignedData [20:32:31]SAM_PROTO_SignData [20:32:31]wFMCommunicate request_size=4 [20:32:31]MH_SAM_APDU [20:32:31]CAPDU: 80 0D 01 02 [20:32:31]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [20:32:31]Write i2c OK [20:32:31]MH_I2C_Read... [20:32:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:31]Read from MH i2c: E2 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: E2 03 00 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [20:32:31]RAPDU: 90 00 [20:32:31]wFMCommunicate OK [20:32:31]wFMCommunicate request_size=255 [20:32:31]MH_SAM_APDU [20:32:31]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF AA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [20:32:31]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF AA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7C [20:32:31]Write i2c OK [20:32:31]MH_I2C_Read... [20:32:31]OFD Sender: No OFD packet to send [20:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:32]Read from MH i2c: E2 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 03 00 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [20:32:32]RAPDU: 90 00 [20:32:32]wFMCommunicate OK [20:32:32]wFMCommunicate request_size=31 [20:32:32]MH_SAM_APDU [20:32:32]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 BE AE 00 00 35 04 06 00 BF 87 E2 A0 FC C6 [20:32:32]Write to MH i2c: E2 22 00 CE 00 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 BE AE 00 00 35 04 06 00 BF 87 E2 A0 FC C6 00 00 6A [20:32:32]Write i2c OK [20:32:32]MH_I2C_Read... [20:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:32]Read from MH i2c: E2 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 03 00 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [20:32:32]RAPDU: 90 00 [20:32:32]wFMCommunicate OK [20:32:32]wFMCommunicate request_size=4 [20:32:32]MH_SAM_APDU [20:32:32]CAPDU: 80 0D 03 02 [20:32:32]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [20:32:32]Write i2c OK [20:32:32]MH_I2C_Read... [20:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:32]Read from MH i2c: E2 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 0B 00 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 0B 00 CF 00 00 B5 17 EE 18 3A 05 8D E1 90 00 CA [20:32:32]RAPDU: B5 17 EE 18 3A 05 8D E1 90 00 [20:32:32]wFMCommunicate OK [20:32:32]SAM_PROTO_SignData done [20:32:32]FM_MakeSignedData done [20:32:32]CreateOFDProtocolMessage [20:32:32]wFMCommunicate request_size=4 [20:32:32]MH_SAM_APDU [20:32:32]CAPDU: 80 11 00 00 [20:32:32]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [20:32:32]Write i2c OK [20:32:32]MH_I2C_Read... [20:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:32]Read from MH i2c: E2 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 17 00 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9E [20:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:32:32]wFMCommunicate OK [20:32:32]CreateOFDProtocolMessage done [20:32:32]OFDSenderStorePacket 44734 [20:32:32]StoreOFDPacket docnum=44734 [20:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 4A AA 1C 01 69 53 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF AA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BE AE 00 00 35 04 06 00 BF 87 E2 A0 FC C6 B5 17 EE 18 3A 05 8D E1 [20:32:32]CheckFolder [20:32:32]dirname=/storage/ofd_packets [20:32:32]CheckFolder done [20:32:32]ProducePacketName [20:32:32]name=ofd_packets/00044734 [20:32:32]NVStorageSaveData ofd_packets/00044734 [20:32:32]File name is /storage/ofd_packets/00044734 [20:32:32]Write 322 bytes [20:32:32]NVStorageSaveData done [20:32:32]OFDSenderStorePacket done [20:32:32]KKMCreateOFDPacket done [20:32:32]NVStorageSaveData kkm_last_timestamp [20:32:32]File name is /storage/kkm_last_timestamp [20:32:32]Write 4 bytes [20:32:32]NVStorageSaveData done [20:32:32]ExternCall_PrintAddStr [20:32:32]wPrintStart [20:32:32]Write to MH i2c: 01 00 00 D1 00 D1 [20:32:32]Write i2c OK [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: 01 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: 01 07 00 [20:32:32]MH_I2C_Read... [20:32:32]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [20:32:32]RasterBufferAndPrint [20:32:32]line Счет N : (3)14626 [20:32:32]line ИНН: 02508201610067 [20:32:32]line Контрольно-Кассовый Чек [20:32:32]line ПРОДАЖА [20:32:32]line Товар: 4640030091607 [20:32:32]line Сигареты ESSE Exchange [20:32:32]line 1.000 * 150.00 [20:32:32]line = 150.00 [20:32:32]line НДС 12% НСП 1% [20:32:32]line > о реализуемом товаре [20:32:32]line ИТОГО: 150.00 [20:32:32]line НСП 1% : 1.33 [20:32:32]line НДС 12% : 15.93 [20:32:32]line Наличными: 150.00 [20:32:32]line Безнал.: 0.00 [20:32:32]line Место: АЗС № 128 "Партнер Нефть" [20:32:32]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [20:32:32]line СНО: Общий режим [20:32:32]line Чек 105 28.07.2024 20:32 [20:32:32]line Смена: 430 ФФД: 1.0 [20:32:32]line ЗНМ: 0300000045 [20:32:32]line РНМ: 0000000000092655 [20:32:32]line Версия ККМ: 001 [20:32:32]line ФМ: 0000000000874941 [20:32:32]line ФД: 44734 [20:32:32]line ФПД: 210590343691462 [20:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203231&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44734&fm=210590343691462&tin=02508201610067®Number=0000000000092655&sum=15000 [20:32:32]OFD Sender: Processing packet 44734 [packets to send 7, broken 6] [20:32:32]ProducePacketName [20:32:32]name=ofd_packets/00044734 [20:32:32]OFD Sender: To server: pG, [20:32:32]CommunicateWithHost lk.salyk.kg:30040 [20:32:32]ConnectInit lk.salyk.kg [20:32:32]line 0 [20:32:32]written 0, free lines is 4095 [20:32:33]Connected sock=11 [20:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 4A AA 1C 01 69 53 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF AA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BE AE 00 00 35 04 06 00 BF 87 E2 A0 FC C6 B5 17 EE 18 3A 05 8D E1 [20:32:33]Write to MH i2c: 01 00 00 F9 00 F9 [20:32:33]Write i2c OK [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: 01 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: 01 07 00 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 E8 0C F4 [20:32:33]RasterBufferAndPrint [20:32:33]line [20:32:33]line [20:32:33]line [20:32:33]line [20:32:33]line [20:32:33]written 0, free lines is 3310 [20:32:33]process_action close_receipt done [20:32:33]requested_data is exist [20:32:33]produce_requested_data [20:32:33]requested_item fm.sn is exist - process it [20:32:33]wFMCommunicate request_size=4 [20:32:33]MH_SAM_APDU [20:32:33]CAPDU: 80 11 00 00 [20:32:33]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [20:32:33]Write i2c OK [20:32:33]MH_I2C_Read... [20:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:33]Read from MH i2c: E2 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 17 00 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CF [20:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:32:33]wFMCommunicate OK [20:32:33]requested_item fd.num is exist - process it [20:32:33]SAM_PROTO_GetFieldsCounters [20:32:33]wFMCommunicate request_size=4 [20:32:33]MH_SAM_APDU [20:32:33]CAPDU: 80 13 00 00 [20:32:33]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [20:32:33]Write i2c OK [20:32:33]MH_I2C_Read... [20:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 05 0E 47 00 8E D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BE AE 00 00 F4 03 04 00 F1 56 A6 66 B6 04 01 00 00 F1 2C 41 4E 0B D2 96 12 [20:32:33]CommunicateWithHost err = 0 [20:32:33]CheckOFDResponse [20:32:33]1017 (14) - 77093643461234 [20:32:33]1041 (16) - 0000000000874941 [20:32:33]1040 (4) - 44734 [20:32:33]1012 (4) - 28.07.2024 14:34 [20:32:33]1206 (1) - 0 [20:32:33]OFD Sender: Remove packet 44734 [20:32:33]ProducePacketName [20:32:33]name=ofd_packets/00044734 [20:32:33]NVStorageDeleteData [20:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:33]Read from MH i2c: E2 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 62 00 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [20:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:33]wFMCommunicate OK [20:32:33]SAM_PROTO_GetFieldsCounters done [20:32:33]requested_item shift.num is exist - process it [20:32:33]requested_item shift.opened is exist - process it [20:32:33]req_shift_opened [20:32:33]FM_GetShiftState [20:32:33]SAM_PROTO_GetShiftState [20:32:33]wFMCommunicate request_size=4 [20:32:33]MH_SAM_APDU [20:32:33]CAPDU: 80 13 01 00 [20:32:33]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [20:32:33]Write i2c OK [20:32:33]MH_I2C_Read... [20:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:33]Read from MH i2c: E2 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 0E 00 [20:32:33]MH_I2C_Read... [20:32:33]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 19 [20:32:33]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:32:33]wFMCommunicate OK [20:32:33]SAM_PROTO_GetShiftState done [20:32:33]FM_GetShiftState done [20:32:33]req_shift_opened done [20:32:33]requested_item shift.open_date is exist - process it [20:32:33]req_shift_open_date [20:32:33]req_shift_open_date done [20:32:33]produce_requested_data done [20:32:33]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44734,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [20:32:33]process_action_free close_receipt [20:32:33]json_value_free [20:32:33]json_value_free done [20:32:33]process_json_proto returns [20:32:33]Send response to host [20:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44734,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [20:32:33]free response buf [20:32:33]execute_script done [20:32:33]execute_script returns [20:32:33]free content buf [20:32:33]Sock 9.Close socket [20:32:33]Sock 9.Thread stoped [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:19]accept exits with 7 [20:33:19]New connection [20:33:19]New thread 3066482020 created [20:33:19]Thread 3066625380 joined [20:33:19]Waiting for new connection... [20:33:19] Sock 7.Parse request [20:33:19]Sock 7.Check first char [20:33:19]Sock 7.First char is OK [20:33:19]request: POST /json_proto HTTP/1.0 [20:33:19]Method: POST [20:33:19]URL: /json_proto [20:33:19]Method is POST - this is cgi request [20:33:19]url: /json_proto [20:33:19]query_string will be loaded in cgi processing [20:33:19]execute_cgi json_proto POST (null) [20:33:19]execute_cgi path=json_proto method=POST [20:33:19]POST find Content-Length [20:33:19]Host: 172.17.45.196:8080 [20:33:19]Content-Length: 613 [20:33:19]Content-Type: application/json [20:33:19] [20:33:19]POST finish read [20:33:19]Found Content-Length = 613 [20:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14627", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:19]execute_script... [20:33:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14627", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:19]POST & json_proto [20:33:19]process_json_proto [20:33:19]json parsed OK: [20:33:19]protocol is kg_v1.0 [20:33:19]action value=close_receipt [20:33:19]process_action close_receipt [20:33:19]cmd_close_receipt [20:33:19]MH_GetDate [20:33:19]Write to MH i2c: F0 00 00 03 01 F3 [20:33:19]Write i2c OK [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: F0 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: F0 09 00 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: F0 09 00 03 01 00 10 AB A6 66 BB 03 A5 66 8C [20:33:19]GetLastDocTimeStamp 1722198751 [20:33:19]current date 1722198800 [20:33:19]FM_GetShiftState [20:33:19]SAM_PROTO_GetShiftState [20:33:19]wFMCommunicate request_size=4 [20:33:19]MH_SAM_APDU [20:33:19]CAPDU: 80 13 01 00 [20:33:19]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [20:33:19]Write i2c OK [20:33:19]MH_I2C_Read... [20:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:19]Read from MH i2c: E2 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 0E 00 [20:33:19]MH_I2C_Read... [20:33:19]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 1B [20:33:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:33:19]wFMCommunicate OK [20:33:19]SAM_PROTO_GetShiftState done [20:33:19]FM_GetShiftState done [20:33:19]opened in 1722126323 [20:33:19]opened+sec_in_day 1722212723 [20:33:19]quantity*price = 11100 [20:33:19]sum+1 = 11101 [20:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 106 28.07.2024 20:33 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44735 ФПД: 86811423261748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203320&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44735&fm=86811423261748&tin=02508201610067®Number=0000000000092655&sum=11100 0 [20:33:20]StoreToDocumentArchive [20:33:20]shift 430 fd 44735 [20:33:20]save to /storage/0430/doc_00044735 [20:33:20]save last doc name /storage/0430/doc_00044735 to /storage/kkm_last_doc_name [20:33:20]save OK [20:33:20]Clear old archive folders... [20:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=266 [20:33:20]tlvbuf is 0177BB90 [20:33:20]SAM_PROTO_ClearQueue [20:33:20]wFMCommunicate request_size=4 [20:33:20]MH_SAM_APDU [20:33:20]CAPDU: 80 09 00 00 [20:33:20]Write to MH i2c: E2 08 00 11 01 80 09 00 00 00 00 00 00 84 [20:33:20]Write i2c OK [20:33:20]MH_I2C_Read... [20:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:20]Read from MH i2c: E2 [20:33:20]MH_I2C_Read... [20:33:20]Read from MH i2c: E2 03 00 [20:33:20]MH_I2C_Read... [20:33:20]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [20:33:20]RAPDU: 90 00 [20:33:20]wFMCommunicate OK [20:33:20]SAM_PROTO_ClearQueue done [20:33:20]KKMCreateOFDPacket [20:33:20]OFDProtocolAddRootSTLVToBuf [20:33:20]FM_MakeSignedData [20:33:20]FM_MakeSignedData [20:33:20]SAM_PROTO_SignData [20:33:20]wFMCommunicate request_size=4 [20:33:20]MH_SAM_APDU [20:33:20]CAPDU: 80 0D 01 02 [20:33:20]Write to MH i2c: E2 08 00 12 01 80 0D 01 02 00 00 00 00 8C [20:33:20]Write i2c OK [20:33:20]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:21]Read from MH i2c: E2 03 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [20:33:21]RAPDU: 90 00 [20:33:21]wFMCommunicate OK [20:33:21]wFMCommunicate request_size=255 [20:33:21]MH_SAM_APDU [20:33:21]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [20:33:21]Write to MH i2c: E2 02 01 13 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 89 [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 03 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [20:33:21]RAPDU: 90 00 [20:33:21]wFMCommunicate OK [20:33:21]wFMCommunicate request_size=25 [20:33:21]MH_SAM_APDU [20:33:21]CAPDU: 80 0D 02 02 14 34 31 10 04 04 00 BF AE 00 00 35 04 06 00 4E F4 5C 0B C4 34 [20:33:21]Write to MH i2c: E2 1C 00 14 01 80 0D 02 02 14 00 34 31 10 04 04 00 BF AE 00 00 35 04 06 00 4E F4 5C 0B C4 34 00 00 81 [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 03 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [20:33:21]RAPDU: 90 00 [20:33:21]wFMCommunicate OK [20:33:21]wFMCommunicate request_size=4 [20:33:21]MH_SAM_APDU [20:33:21]CAPDU: 80 0D 03 02 [20:33:21]Write to MH i2c: E2 08 00 15 01 80 0D 03 02 00 00 00 00 91 [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 0B 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 0B 00 15 01 00 16 B9 4C D1 79 9D 00 80 90 00 14 [20:33:21]RAPDU: 16 B9 4C D1 79 9D 00 80 90 00 [20:33:21]wFMCommunicate OK [20:33:21]SAM_PROTO_SignData done [20:33:21]FM_MakeSignedData done [20:33:21]CreateOFDProtocolMessage [20:33:21]wFMCommunicate request_size=4 [20:33:21]MH_SAM_APDU [20:33:21]CAPDU: 80 11 00 00 [20:33:21]Write to MH i2c: E2 08 00 16 01 80 11 00 00 00 00 00 00 91 [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 17 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 17 00 16 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E5 [20:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:33:21]wFMCommunicate OK [20:33:21]CreateOFDProtocolMessage done [20:33:21]OFDSenderStorePacket 44735 [20:33:21]StoreOFDPacket docnum=44735 [20:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 7C D4 16 01 56 F5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BF AE 00 00 35 04 06 00 4E F4 5C 0B C4 34 16 B9 4C D1 79 9D 00 80 [20:33:21]CheckFolder [20:33:21]dirname=/storage/ofd_packets [20:33:21]CheckFolder done [20:33:21]ProducePacketName [20:33:21]name=ofd_packets/00044735 [20:33:21]NVStorageSaveData ofd_packets/00044735 [20:33:21]File name is /storage/ofd_packets/00044735 [20:33:21]Write 316 bytes [20:33:21]NVStorageSaveData done [20:33:21]OFDSenderStorePacket done [20:33:21]KKMCreateOFDPacket done [20:33:21]NVStorageSaveData kkm_last_timestamp [20:33:21]File name is /storage/kkm_last_timestamp [20:33:21]Write 4 bytes [20:33:21]NVStorageSaveData done [20:33:21]ExternCall_PrintAddStr [20:33:21]wPrintStart [20:33:21]Write to MH i2c: 01 00 00 17 01 18 [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 07 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [20:33:21]RasterBufferAndPrint [20:33:21]line Счет N : (3)14627 [20:33:21]line ИНН: 02508201610067 [20:33:21]line Контрольно-Кассовый Чек [20:33:21]line ПРОДАЖА [20:33:21]line Товар: 4870001570071 [20:33:21]line Напиток Pepsi 1л [20:33:21]line 1.000 * 111.00 [20:33:21]line = 111.00 [20:33:21]line НДС 12% НСП 1% [20:33:21]line > о реализуемом товаре [20:33:21]line ИТОГО: 111.00 [20:33:21]line НСП 1% : 0.98 [20:33:21]line НДС 12% : 11.79 [20:33:21]line Наличными: 111.00 [20:33:21]line Безнал.: 0.00 [20:33:21]line Место: АЗС № 128 "Партнер Нефть" [20:33:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [20:33:21]line СНО: Общий режим [20:33:21]line Чек 106 28.07.2024 20:33 [20:33:21]line Смена: 430 ФФД: 1.0 [20:33:21]line ЗНМ: 0300000045 [20:33:21]line РНМ: 0000000000092655 [20:33:21]line Версия ККМ: 001 [20:33:21]line ФМ: 0000000000874941 [20:33:21]line ФД: 44735 [20:33:21]line ФПД: 86811423261748 [20:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203320&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44735&fm=86811423261748&tin=02508201610067®Number=0000000000092655&sum=11100 [20:33:21]line 0 [20:33:21]OFD Sender: Processing packet 44735 [packets to send 7, broken 6] [20:33:21]ProducePacketName [20:33:21]name=ofd_packets/00044735 [20:33:21]OFD Sender: To server: pG, [20:33:21]CommunicateWithHost lk.salyk.kg:30040 [20:33:21]ConnectInit lk.salyk.kg [20:33:21]written 0, free lines is 4095 [20:33:21]Connected sock=10 [20:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 7C D4 16 01 56 F5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BF AE 00 00 35 04 06 00 4E F4 5C 0B C4 34 16 B9 4C D1 79 9D 00 80 [20:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 61 FA 47 00 4A 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 BF AE 00 00 F4 03 04 00 22 57 A6 66 B6 04 01 00 00 71 80 A0 89 BB A8 19 CF [20:33:22]CommunicateWithHost err = 0 [20:33:22]CheckOFDResponse [20:33:22]1017 (14) - 77093643461234 [20:33:22]1041 (16) - 0000000000874941 [20:33:22]1040 (4) - 44735 [20:33:22]1012 (4) - 28.07.2024 14:35 [20:33:22]1206 (1) - 0 [20:33:22]OFD Sender: Remove packet 44735 [20:33:22]ProducePacketName [20:33:22]name=ofd_packets/00044735 [20:33:22]NVStorageDeleteData [20:33:22]Write to MH i2c: 01 00 00 3F 01 40 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 07 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 E2 0C 35 [20:33:22]RasterBufferAndPrint [20:33:22]line [20:33:22]line [20:33:22]line [20:33:22]line [20:33:22]line [20:33:22]written 0, free lines is 3304 [20:33:22]process_action close_receipt done [20:33:22]requested_data is exist [20:33:22]produce_requested_data [20:33:22]requested_item fm.sn is exist - process it [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 11 00 00 [20:33:22]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 17 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 15 [20:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:33:22]wFMCommunicate OK [20:33:22]requested_item fd.num is exist - process it [20:33:22]SAM_PROTO_GetFieldsCounters [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 13 00 00 [20:33:22]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 62 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [20:33:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 BF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:22]wFMCommunicate OK [20:33:22]SAM_PROTO_GetFieldsCounters done [20:33:22]requested_item shift.num is exist - process it [20:33:22]requested_item shift.opened is exist - process it [20:33:22]req_shift_opened [20:33:22]FM_GetShiftState [20:33:22]SAM_PROTO_GetShiftState [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 13 01 00 [20:33:22]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 0E 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5F [20:33:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:33:22]wFMCommunicate OK [20:33:22]SAM_PROTO_GetShiftState done [20:33:22]FM_GetShiftState done [20:33:22]req_shift_opened done [20:33:22]requested_item shift.open_date is exist - process it [20:33:22]req_shift_open_date [20:33:22]req_shift_open_date done [20:33:22]produce_requested_data done [20:33:22]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44735,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [20:33:22]process_action_free close_receipt [20:33:22]json_value_free [20:33:22]json_value_free done [20:33:22]process_json_proto returns [20:33:22]Send response to host [20:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44735,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [20:33:22]free response buf [20:33:22]execute_script done [20:33:22]execute_script returns [20:33:22]free content buf [20:33:22]Sock 7.Close socket [20:33:22]Sock 7.Thread stoped [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:42]accept exits with 9 [20:35:42]New connection [20:35:42]New thread 3066625380 created [20:35:42]Thread 3066482020 joined [20:35:42]Waiting for new connection... [20:35:42] Sock 9.Parse request [20:35:42]Sock 9.Check first char [20:35:42]Sock 9.First char is OK [20:35:42]request: POST /json_proto HTTP/1.0 [20:35:42]Method: POST [20:35:42]URL: /json_proto [20:35:42]Method is POST - this is cgi request [20:35:42]url: /json_proto [20:35:42]query_string will be loaded in cgi processing [20:35:42]execute_cgi json_proto POST (null) [20:35:42]execute_cgi path=json_proto method=POST [20:35:42]POST find Content-Length [20:35:42]Host: 172.17.45.196:8080 [20:35:42]Content-Length: 667 [20:35:42]Content-Type: application/json [20:35:42] [20:35:42]POST finish read [20:35:42]Found Content-Length = 667 [20:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14628", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:42]execute_script... [20:35:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14628", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:42]POST & json_proto [20:35:42]process_json_proto [20:35:42]json parsed OK: [20:35:42]protocol is kg_v1.0 [20:35:42]action value=close_receipt [20:35:42]process_action close_receipt [20:35:42]cmd_close_receipt [20:35:42]MH_GetDate [20:35:42]Write to MH i2c: F0 00 00 49 01 39 [20:35:42]Write i2c OK [20:35:42]MH_I2C_Read... [20:35:42]Read from MH i2c: F0 [20:35:42]MH_I2C_Read... [20:35:42]Read from MH i2c: F0 09 00 [20:35:42]MH_I2C_Read... [20:35:42]Read from MH i2c: F0 09 00 49 01 00 9F AB A6 66 BB 03 A5 66 61 [20:35:42]GetLastDocTimeStamp 1722198800 [20:35:42]current date 1722198943 [20:35:42]FM_GetShiftState [20:35:42]SAM_PROTO_GetShiftState [20:35:42]wFMCommunicate request_size=4 [20:35:42]MH_SAM_APDU [20:35:42]CAPDU: 80 13 01 00 [20:35:42]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [20:35:42]Write i2c OK [20:35:42]MH_I2C_Read... [20:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:42]Read from MH i2c: E2 [20:35:42]MH_I2C_Read... [20:35:42]Read from MH i2c: E2 0E 00 [20:35:42]MH_I2C_Read... [20:35:42]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 61 [20:35:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:35:42]wFMCommunicate OK [20:35:42]SAM_PROTO_GetShiftState done [20:35:42]FM_GetShiftState done [20:35:42]opened in 1722126323 [20:35:42]opened+sec_in_day 1722212723 [20:35:42]quantity*price = 22500 [20:35:42]sum+1 = 22501 [20:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 107 28.07.2024 20:35 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44736 ФПД: 186419964483037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203543&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44736&fm=186419964483037&tin=02508201610067®Number=0000000000092655&sum=22500 0 [20:35:44]StoreToDocumentArchive [20:35:44]shift 430 fd 44736 [20:35:44]save to /storage/0430/doc_00044736 [20:35:44]save last doc name /storage/0430/doc_00044736 to /storage/kkm_last_doc_name [20:35:44]save OK [20:35:44]Clear old archive folders... [20:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=296 [20:35:44]tlvbuf is 017F4820 [20:35:44]SAM_PROTO_ClearQueue [20:35:44]wFMCommunicate request_size=4 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 09 00 00 [20:35:44]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [20:35:44]RAPDU: 90 00 [20:35:44]wFMCommunicate OK [20:35:44]SAM_PROTO_ClearQueue done [20:35:44]KKMCreateOFDPacket [20:35:44]OFDProtocolAddRootSTLVToBuf [20:35:44]FM_MakeSignedData [20:35:44]FM_MakeSignedData [20:35:44]SAM_PROTO_SignData [20:35:44]wFMCommunicate request_size=4 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 0D 01 02 [20:35:44]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [20:35:44]RAPDU: 90 00 [20:35:44]wFMCommunicate OK [20:35:44]wFMCommunicate request_size=255 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9F AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [20:35:44]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9F AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 C3 [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [20:35:44]RAPDU: 90 00 [20:35:44]wFMCommunicate OK [20:35:44]wFMCommunicate request_size=55 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C0 AE 00 00 35 04 06 00 A9 8C 47 C3 15 DD [20:35:44]Write to MH i2c: E2 3A 00 5A 01 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C0 AE 00 00 35 04 06 00 A9 8C 47 C3 15 DD 00 00 D0 [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [20:35:44]RAPDU: 90 00 [20:35:44]wFMCommunicate OK [20:35:44]wFMCommunicate request_size=4 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 0D 03 02 [20:35:44]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 0B 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 0B 00 5B 01 00 30 88 F8 39 53 E7 3E F1 90 00 2A [20:35:44]RAPDU: 30 88 F8 39 53 E7 3E F1 90 00 [20:35:44]wFMCommunicate OK [20:35:44]SAM_PROTO_SignData done [20:35:44]FM_MakeSignedData done [20:35:44]CreateOFDProtocolMessage [20:35:44]wFMCommunicate request_size=4 [20:35:44]MH_SAM_APDU [20:35:44]CAPDU: 80 11 00 00 [20:35:44]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:44]Read from MH i2c: E2 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 17 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2B [20:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:35:44]wFMCommunicate OK [20:35:44]CreateOFDProtocolMessage done [20:35:44]OFDSenderStorePacket 44736 [20:35:44]StoreOFDPacket docnum=44736 [20:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 73 90 34 01 F2 03 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9F AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C0 AE 00 00 35 04 06 00 A9 8C 47 C3 15 DD 30 88 F8 39 53 E7 3E F1 [20:35:44]CheckFolder [20:35:44]dirname=/storage/ofd_packets [20:35:44]CheckFolder done [20:35:44]ProducePacketName [20:35:44]name=ofd_packets/00044736 [20:35:44]NVStorageSaveData ofd_packets/00044736 [20:35:44]File name is /storage/ofd_packets/00044736 [20:35:44]Write 346 bytes [20:35:44]NVStorageSaveData done [20:35:44]OFDSenderStorePacket done [20:35:44]KKMCreateOFDPacket done [20:35:44]NVStorageSaveData kkm_last_timestamp [20:35:44]File name is /storage/kkm_last_timestamp [20:35:44]Write 4 bytes [20:35:44]NVStorageSaveData done [20:35:44]ExternCall_PrintAddStr [20:35:44]wPrintStart [20:35:44]Write to MH i2c: 01 00 00 5D 01 5E [20:35:44]Write i2c OK [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: 01 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: 01 07 00 [20:35:44]MH_I2C_Read... [20:35:44]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [20:35:44]RasterBufferAndPrint [20:35:44]line Счет N : (3)14628 [20:35:44]line ИНН: 02508201610067 [20:35:44]line Контрольно-Кассовый Чек [20:35:44]line ПРОДАЖА [20:35:44]line Товар: 4670003190013 [20:35:44]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [20:35:44]line 1.000 * 225.00 [20:35:44]line = 225.00 [20:35:44]line НДС 12% НСП 1% [20:35:44]line > о реализуемом товаре [20:35:44]line ИТОГО: 225.00 [20:35:44]line НСП 1% : 1.99 [20:35:44]line НДС 12% : 23.89 [20:35:44]line Наличными: 225.00 [20:35:44]line Безнал.: 0.00 [20:35:44]line Место: АЗС № 128 "Партнер Нефть" [20:35:44]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [20:35:44]line СНО: Общий режим [20:35:44]line Чек 107 28.07.2024 20:35 [20:35:44]line Смена: 430 ФФД: 1.0 [20:35:44]line ЗНМ: 0300000045 [20:35:44]line РНМ: 0000000000092655 [20:35:44]line Версия ККМ: 001 [20:35:44]line ФМ: 0000000000874941 [20:35:44]line ФД: 44736 [20:35:44]line ФПД: 186419964483037 [20:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T203543&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44736&fm=186419964483037&tin=02508201610067®Number=0000000000092655&sum=22500 [20:35:44]OFD Sender: Processing packet 44736 [packets to send 7, broken 6] [20:35:44]ProducePacketName [20:35:44]name=ofd_packets/00044736 [20:35:44]OFD Sender: To server: pG, [20:35:44]CommunicateWithHost lk.salyk.kg:30040 [20:35:44]ConnectInit lk.salyk.kg [20:35:44]line 0 [20:35:44]written 0, free lines is 4095 [20:35:45]Connected sock=11 [20:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3C 01 00 00 73 90 34 01 F2 03 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9F AB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C0 AE 00 00 35 04 06 00 A9 8C 47 C3 15 DD 30 88 F8 39 53 E7 3E F1 [20:35:45]Write to MH i2c: 01 00 00 86 01 87 [20:35:45]Write i2c OK [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: 01 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: 01 07 00 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 DF 0C 79 [20:35:45]RasterBufferAndPrint [20:35:45]line [20:35:45]line [20:35:45]line [20:35:45]line [20:35:45]line [20:35:45]written 0, free lines is 3299 [20:35:45]process_action close_receipt done [20:35:45]requested_data is exist [20:35:45]produce_requested_data [20:35:45]requested_item fm.sn is exist - process it [20:35:45]wFMCommunicate request_size=4 [20:35:45]MH_SAM_APDU [20:35:45]CAPDU: 80 11 00 00 [20:35:45]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [20:35:45]Write i2c OK [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 [20:35:45]MH_I2C_Read... [20:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:45]Read from MH i2c: E2 17 00 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5C [20:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:35:45]wFMCommunicate OK [20:35:45]requested_item fd.num is exist - process it [20:35:45]SAM_PROTO_GetFieldsCounters [20:35:45]wFMCommunicate request_size=4 [20:35:45]MH_SAM_APDU [20:35:45]CAPDU: 80 13 00 00 [20:35:45]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [20:35:45]Write i2c OK [20:35:45]MH_I2C_Read... [20:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 07 0F 47 00 39 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C0 AE 00 00 F4 03 04 00 B1 57 A6 66 B6 04 01 00 00 8E C6 A4 E4 99 22 3A 41 [20:35:45]CommunicateWithHost err = 0 [20:35:45]CheckOFDResponse [20:35:45]1017 (14) - 77093643461234 [20:35:45]1041 (16) - 0000000000874941 [20:35:45]1040 (4) - 44736 [20:35:45]1012 (4) - 28.07.2024 14:37 [20:35:45]1206 (1) - 0 [20:35:45]OFD Sender: Remove packet 44736 [20:35:45]ProducePacketName [20:35:45]name=ofd_packets/00044736 [20:35:45]NVStorageDeleteData [20:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:45]Read from MH i2c: E2 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 62 00 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:45]wFMCommunicate OK [20:35:45]SAM_PROTO_GetFieldsCounters done [20:35:45]requested_item shift.num is exist - process it [20:35:45]requested_item shift.opened is exist - process it [20:35:45]req_shift_opened [20:35:45]FM_GetShiftState [20:35:45]SAM_PROTO_GetShiftState [20:35:45]wFMCommunicate request_size=4 [20:35:45]MH_SAM_APDU [20:35:45]CAPDU: 80 13 01 00 [20:35:45]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [20:35:45]Write i2c OK [20:35:45]MH_I2C_Read... [20:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:45]Read from MH i2c: E2 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 0E 00 [20:35:45]MH_I2C_Read... [20:35:45]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A6 [20:35:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:35:45]wFMCommunicate OK [20:35:45]SAM_PROTO_GetShiftState done [20:35:45]FM_GetShiftState done [20:35:45]req_shift_opened done [20:35:45]requested_item shift.open_date is exist - process it [20:35:45]req_shift_open_date [20:35:45]req_shift_open_date done [20:35:45]produce_requested_data done [20:35:45]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44736,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [20:35:45]process_action_free close_receipt [20:35:45]json_value_free [20:35:45]json_value_free done [20:35:45]process_json_proto returns [20:35:45]Send response to host [20:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44736,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [20:35:45]free response buf [20:35:45]execute_script done [20:35:45]execute_script returns [20:35:45]free content buf [20:35:45]Sock 9.Close socket [20:35:45]Sock 9.Thread stoped [20:35:46]OFD Sender: No OFD packet to send [20:35:46]int [20:35:46]Write to MH i2c: 01 00 00 90 01 91 [20:35:46]*** FLAG_PRN_KEY set [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 90 01 00 08 00 00 00 FF 0F AE [20:35:46]state=0 [20:35:46]Key pressed [20:35:46]Feed [20:35:46]Write to MH i2c: D8 00 00 91 01 69 [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: D8 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: D8 01 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: D8 01 00 91 01 00 6A [20:35:46]int [20:35:46]Write to MH i2c: 01 00 00 92 01 93 [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 92 01 00 48 00 00 00 3C 00 1E [20:35:46]state=2 [20:35:46]Key pressed [20:35:47]int [20:35:47]Write to MH i2c: 01 00 00 93 01 94 [20:35:47]*** FLAG_PRN_KEY reset [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 F7 0F A1 [20:35:47]state=2 [20:35:47]Stop feed [20:35:47]int [20:35:47]Write to MH i2c: 01 00 00 94 01 95 [20:35:47]*** FLAG_PRN_KEY set [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 94 01 00 08 00 00 00 FF 0F B2 [20:35:47]state=0 [20:35:47]Key pressed [20:35:47]Feed [20:35:47]Write to MH i2c: D8 00 00 95 01 6D [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: D8 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: D8 01 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: D8 01 00 95 01 00 6E [20:35:47]int [20:35:47]Write to MH i2c: 01 00 00 96 01 97 [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 96 01 00 48 00 00 00 3C 00 22 [20:35:47]state=2 [20:35:47]Key pressed [20:35:47]int [20:35:47]Write to MH i2c: 01 00 00 97 01 98 [20:35:47]*** FLAG_PRN_KEY reset [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 F6 0F A4 [20:35:47]state=2 [20:35:47]Stop feed [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:22]accept exits with 7 [20:44:22]New connection [20:44:22]New thread 3066482020 created [20:44:22]Thread 3066625380 joined [20:44:22]Waiting for new connection... [20:44:22] Sock 7.Parse request [20:44:22]Sock 7.Check first char [20:44:22]Sock 7.First char is OK [20:44:22]request: POST /json_proto HTTP/1.0 [20:44:22]Method: POST [20:44:22]URL: /json_proto [20:44:22]Method is POST - this is cgi request [20:44:22]url: /json_proto [20:44:22]query_string will be loaded in cgi processing [20:44:22]execute_cgi json_proto POST (null) [20:44:22]execute_cgi path=json_proto method=POST [20:44:22]POST find Content-Length [20:44:22]Host: 172.17.45.196:8080 [20:44:22]Content-Length: 651 [20:44:22]Content-Type: application/json [20:44:22] [20:44:22]POST finish read [20:44:22]Found Content-Length = 651 [20:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14629", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:22]execute_script... [20:44:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14629", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:22]POST & json_proto [20:44:22]process_json_proto [20:44:22]json parsed OK: [20:44:22]protocol is kg_v1.0 [20:44:22]action value=close_receipt [20:44:22]process_action close_receipt [20:44:22]cmd_close_receipt [20:44:22]MH_GetDate [20:44:22]Write to MH i2c: F0 00 00 98 01 88 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 09 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: F0 09 00 98 01 00 A7 AD A6 66 BB 03 A5 66 BA [20:44:22]GetLastDocTimeStamp 1722198943 [20:44:22]current date 1722199463 [20:44:22]FM_GetShiftState [20:44:22]SAM_PROTO_GetShiftState [20:44:22]wFMCommunicate request_size=4 [20:44:22]MH_SAM_APDU [20:44:22]CAPDU: 80 13 01 00 [20:44:22]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:22]Read from MH i2c: E2 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0E 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B0 [20:44:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:44:22]wFMCommunicate OK [20:44:22]SAM_PROTO_GetShiftState done [20:44:22]FM_GetShiftState done [20:44:22]opened in 1722126323 [20:44:22]opened+sec_in_day 1722212723 [20:44:22]quantity*price = 7500 [20:44:22]sum+1 = 7501 [20:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 108 28.07.2024 20:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44737 ФПД: 118812018025024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204423&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44737&fm=118812018025024&tin=02508201610067®Number=0000000000092655&sum=7500 0 [20:44:23]StoreToDocumentArchive [20:44:23]shift 430 fd 44737 [20:44:23]save to /storage/0430/doc_00044737 [20:44:23]save last doc name /storage/0430/doc_00044737 to /storage/kkm_last_doc_name [20:44:23]save OK [20:44:23]Clear old archive folders... [20:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:44:23]tlvbuf is 017F5030 [20:44:23]SAM_PROTO_ClearQueue [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 09 00 00 [20:44:23]Write to MH i2c: E2 08 00 A6 01 80 09 00 00 00 00 00 00 19 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 03 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [20:44:23]RAPDU: 90 00 [20:44:23]wFMCommunicate OK [20:44:23]SAM_PROTO_ClearQueue done [20:44:23]KKMCreateOFDPacket [20:44:23]OFDProtocolAddRootSTLVToBuf [20:44:23]FM_MakeSignedData [20:44:23]FM_MakeSignedData [20:44:23]SAM_PROTO_SignData [20:44:23]wFMCommunicate request_size=4 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 0D 01 02 [20:44:23]Write to MH i2c: E2 08 00 A7 01 80 0D 01 02 00 00 00 00 21 [20:44:23]Write i2c OK [20:44:23]MH_I2C_Read... [20:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:23]Read from MH i2c: E2 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 03 00 [20:44:23]MH_I2C_Read... [20:44:23]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [20:44:23]RAPDU: 90 00 [20:44:23]wFMCommunicate OK [20:44:23]wFMCommunicate request_size=255 [20:44:23]MH_SAM_APDU [20:44:23]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A7 AD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [20:44:23]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A7 AD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 8D [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=34 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C1 AE 00 00 35 04 06 00 6C 0F 14 21 22 40 [20:44:24]Write to MH i2c: E2 25 00 A9 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C1 AE 00 00 35 04 06 00 6C 0F 14 21 22 40 00 00 67 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [20:44:24]RAPDU: 90 00 [20:44:24]wFMCommunicate OK [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 0D 03 02 [20:44:24]Write to MH i2c: E2 08 00 AA 01 80 0D 03 02 00 00 00 00 26 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 0B 00 AA 01 00 FC B4 DA CA 91 48 75 91 90 00 5A [20:44:24]RAPDU: FC B4 DA CA 91 48 75 91 90 00 [20:44:24]wFMCommunicate OK [20:44:24]SAM_PROTO_SignData done [20:44:24]FM_MakeSignedData done [20:44:24]CreateOFDProtocolMessage [20:44:24]wFMCommunicate request_size=4 [20:44:24]MH_SAM_APDU [20:44:24]CAPDU: 80 11 00 00 [20:44:24]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:24]Read from MH i2c: E2 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7A [20:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:44:24]wFMCommunicate OK [20:44:24]CreateOFDProtocolMessage done [20:44:24]OFDSenderStorePacket 44737 [20:44:24]StoreOFDPacket docnum=44737 [20:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 BF 78 1F 01 88 04 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A7 AD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C1 AE 00 00 35 04 06 00 6C 0F 14 21 22 40 FC B4 DA CA 91 48 75 91 [20:44:24]CheckFolder [20:44:24]dirname=/storage/ofd_packets [20:44:24]CheckFolder done [20:44:24]ProducePacketName [20:44:24]name=ofd_packets/00044737 [20:44:24]NVStorageSaveData ofd_packets/00044737 [20:44:24]File name is /storage/ofd_packets/00044737 [20:44:24]Write 325 bytes [20:44:24]NVStorageSaveData done [20:44:24]OFDSenderStorePacket done [20:44:24]KKMCreateOFDPacket done [20:44:24]NVStorageSaveData kkm_last_timestamp [20:44:24]File name is /storage/kkm_last_timestamp [20:44:24]Write 4 bytes [20:44:24]NVStorageSaveData done [20:44:24]ExternCall_PrintAddStr [20:44:24]wPrintStart [20:44:24]Write to MH i2c: 01 00 00 AC 01 AD [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 FF 0F C2 [20:44:24]RasterBufferAndPrint [20:44:24]line Счет N : (3)14629 [20:44:24]line ИНН: 02508201610067 [20:44:24]line Контрольно-Кассовый Чек [20:44:24]line ПРОДАЖА [20:44:24]line Товар: 54491472 [20:44:24]line Напиток Кока-Кола 0,5л [20:44:24]line 1.000 * 75.00 [20:44:24]line = 75.00 [20:44:24]line НДС 12% НСП 1% [20:44:24]line > о реализуемом товаре [20:44:24]line ИТОГО: 75.00 [20:44:24]line НСП 1% : 0.66 [20:44:24]line НДС 12% : 7.96 [20:44:24]line Наличными: 75.00 [20:44:24]line Безнал.: 0.00 [20:44:24]line Место: АЗС № 128 "Партнер Нефть" [20:44:24]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [20:44:24]line СНО: Общий режим [20:44:24]line Чек 108 28.07.2024 20:44 [20:44:24]line Смена: 430 ФФД: 1.0 [20:44:24]line ЗНМ: 0300000045 [20:44:24]line РНМ: 0000000000092655 [20:44:24]line Версия ККМ: 001 [20:44:24]line ФМ: 0000000000874941 [20:44:24]line ФД: 44737 [20:44:24]line ФПД: 118812018025024 [20:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T204423&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44737&fm=118812018025024&tin=02508201610067®Number=0000000000092655&sum=7500 [20:44:24]line 0 [20:44:24]OFD Sender: Processing packet 44737 [packets to send 7, broken 6] [20:44:24]ProducePacketName [20:44:24]name=ofd_packets/00044737 [20:44:24]OFD Sender: To server: pG, [20:44:24]CommunicateWithHost lk.salyk.kg:30040 [20:44:24]ConnectInit lk.salyk.kg [20:44:24]written 0, free lines is 4095 [20:44:25]Connected sock=10 [20:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 BF 78 1F 01 88 04 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 A7 AD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C1 AE 00 00 35 04 06 00 6C 0F 14 21 22 40 FC B4 DA CA 91 48 75 91 [20:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 DB E5 47 00 0C 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C1 AE 00 00 F4 03 04 00 B9 59 A6 66 B6 04 01 00 00 66 5E 97 A0 E9 83 6E E8 [20:44:25]CommunicateWithHost err = 0 [20:44:25]CheckOFDResponse [20:44:25]1017 (14) - 77093643461234 [20:44:25]1041 (16) - 0000000000874941 [20:44:25]1040 (4) - 44737 [20:44:25]1012 (4) - 28.07.2024 14:46 [20:44:25]1206 (1) - 0 [20:44:25]OFD Sender: Remove packet 44737 [20:44:25]ProducePacketName [20:44:25]name=ofd_packets/00044737 [20:44:25]NVStorageDeleteData [20:44:25]Write to MH i2c: 01 00 00 D4 01 D5 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FE 0C E6 [20:44:25]RasterBufferAndPrint [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]line [20:44:25]written 0, free lines is 3332 [20:44:25]process_action close_receipt done [20:44:25]requested_data is exist [20:44:25]produce_requested_data [20:44:25]requested_item fm.sn is exist - process it [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 11 00 00 [20:44:25]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 AA [20:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [20:44:25]wFMCommunicate OK [20:44:25]requested_item fd.num is exist - process it [20:44:25]SAM_PROTO_GetFieldsCounters [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 00 00 [20:44:25]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [20:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetFieldsCounters done [20:44:25]requested_item shift.num is exist - process it [20:44:25]requested_item shift.opened is exist - process it [20:44:25]req_shift_opened [20:44:25]FM_GetShiftState [20:44:25]SAM_PROTO_GetShiftState [20:44:25]wFMCommunicate request_size=4 [20:44:25]MH_SAM_APDU [20:44:25]CAPDU: 80 13 01 00 [20:44:25]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [20:44:25]Write i2c OK [20:44:25]MH_I2C_Read... [20:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:25]Read from MH i2c: E2 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 [20:44:25]MH_I2C_Read... [20:44:25]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F4 [20:44:25]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [20:44:25]wFMCommunicate OK [20:44:25]SAM_PROTO_GetShiftState done [20:44:25]FM_GetShiftState done [20:44:25]req_shift_opened done [20:44:25]requested_item shift.open_date is exist - process it [20:44:25]req_shift_open_date [20:44:25]req_shift_open_date done [20:44:25]produce_requested_data done [20:44:25]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44737,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [20:44:25]process_action_free close_receipt [20:44:25]json_value_free [20:44:25]json_value_free done [20:44:25]process_json_proto returns [20:44:25]Send response to host [20:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44737,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [20:44:25]free response buf [20:44:25]execute_script done [20:44:25]execute_script returns [20:44:25]free content buf [20:44:25]Sock 7.Close socket [20:44:25]Sock 7.Thread stoped [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]int [20:49:15]Write to MH i2c: 01 00 00 DE 01 DF [20:49:15]*** FLAG_PRN_KEY set [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 DE 01 00 08 00 00 00 FF 0F FC [20:49:15]state=0 [20:49:15]Key pressed [20:49:15]Feed [20:49:15]Write to MH i2c: D8 00 00 DF 01 B7 [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: D8 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: D8 01 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: D8 01 00 DF 01 00 B8 [20:49:15]int [20:49:15]Write to MH i2c: 01 00 00 E0 01 E1 [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 E0 01 00 48 00 00 00 3D 00 6D [20:49:15]state=2 [20:49:15]Key pressed [20:49:15]int [20:49:15]Write to MH i2c: 01 00 00 E1 01 E2 [20:49:15]*** FLAG_PRN_KEY reset [20:49:15]Write i2c OK [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 [20:49:15]MH_I2C_Read... [20:49:15]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 F6 0F EE [20:49:15]state=2 [20:49:15]Stop feed [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:36]accept exits with 9 [21:00:36]New connection [21:00:36]New thread 3066625380 created [21:00:36]Thread 3066482020 joined [21:00:36]Waiting for new connection... [21:00:36] Sock 9.Parse request [21:00:36]Sock 9.Check first char [21:00:36]Sock 9.First char is OK [21:00:36]request: POST /json_proto HTTP/1.0 [21:00:36]Method: POST [21:00:36]URL: /json_proto [21:00:36]Method is POST - this is cgi request [21:00:36]url: /json_proto [21:00:36]query_string will be loaded in cgi processing [21:00:36]execute_cgi json_proto POST (null) [21:00:36]execute_cgi path=json_proto method=POST [21:00:36]POST find Content-Length [21:00:36]Host: 172.17.45.196:8080 [21:00:36]Content-Length: 629 [21:00:36]Content-Type: application/json [21:00:36] [21:00:36]POST finish read [21:00:36]Found Content-Length = 629 [21:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14630", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:36]execute_script... [21:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14630", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:36]POST & json_proto [21:00:36]process_json_proto [21:00:36]json parsed OK: [21:00:36]protocol is kg_v1.0 [21:00:36]action value=close_receipt [21:00:36]process_action close_receipt [21:00:36]cmd_close_receipt [21:00:36]MH_GetDate [21:00:36]Write to MH i2c: F0 00 00 E2 01 D2 [21:00:36]Write i2c OK [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: F0 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: F0 09 00 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: F0 09 00 E2 01 00 75 B1 A6 66 BB 03 A5 66 D6 [21:00:36]GetLastDocTimeStamp 1722199463 [21:00:36]current date 1722200437 [21:00:36]FM_GetShiftState [21:00:36]SAM_PROTO_GetShiftState [21:00:36]wFMCommunicate request_size=4 [21:00:36]MH_SAM_APDU [21:00:36]CAPDU: 80 13 01 00 [21:00:36]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [21:00:36]Write i2c OK [21:00:36]MH_I2C_Read... [21:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:36]Read from MH i2c: E2 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: E2 0E 00 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 FA [21:00:36]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:00:36]wFMCommunicate OK [21:00:36]SAM_PROTO_GetShiftState done [21:00:36]FM_GetShiftState done [21:00:36]opened in 1722126323 [21:00:36]opened+sec_in_day 1722212723 [21:00:36]quantity*price = 5000 [21:00:36]sum+1 = 5001 [21:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 109 28.07.2024 21:00 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44738 ФПД: 24645330114968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210037&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44738&fm=24645330114968&tin=02508201610067®Number=0000000000092655&sum=5000 0 [21:00:37]StoreToDocumentArchive [21:00:37]shift 430 fd 44738 [21:00:37]save to /storage/0430/doc_00044738 [21:00:37]save last doc name /storage/0430/doc_00044738 to /storage/kkm_last_doc_name [21:00:37]save OK [21:00:37]Clear old archive folders... [21:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:00:37]tlvbuf is 017F4FD0 [21:00:37]SAM_PROTO_ClearQueue [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 09 00 00 [21:00:37]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]SAM_PROTO_ClearQueue done [21:00:37]KKMCreateOFDPacket [21:00:37]OFDProtocolAddRootSTLVToBuf [21:00:37]FM_MakeSignedData [21:00:37]FM_MakeSignedData [21:00:37]SAM_PROTO_SignData [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 01 02 [21:00:37]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]wFMCommunicate request_size=255 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 75 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [21:00:37]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 75 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D2 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]wFMCommunicate request_size=28 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 C2 AE 00 00 35 04 06 00 16 6A 30 25 99 98 [21:00:38]Write to MH i2c: E2 1F 00 F3 01 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 C2 AE 00 00 35 04 06 00 16 6A 30 25 99 98 00 00 72 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 0D 03 02 [21:00:38]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 0B 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 0B 00 F4 01 00 16 5F E3 73 04 B1 9B 7A 90 00 06 [21:00:38]RAPDU: 16 5F E3 73 04 B1 9B 7A 90 00 [21:00:38]wFMCommunicate OK [21:00:38]SAM_PROTO_SignData done [21:00:38]FM_MakeSignedData done [21:00:38]CreateOFDProtocolMessage [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 11 00 00 [21:00:38]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 17 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C4 [21:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:00:38]wFMCommunicate OK [21:00:38]CreateOFDProtocolMessage done [21:00:38]OFDSenderStorePacket 44738 [21:00:38]StoreOFDPacket docnum=44738 [21:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 C3 29 19 01 2A 90 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 75 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C2 AE 00 00 35 04 06 00 16 6A 30 25 99 98 16 5F E3 73 04 B1 9B 7A [21:00:38]CheckFolder [21:00:38]dirname=/storage/ofd_packets [21:00:38]CheckFolder done [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00044738 [21:00:38]NVStorageSaveData ofd_packets/00044738 [21:00:38]File name is /storage/ofd_packets/00044738 [21:00:38]Write 319 bytes [21:00:38]NVStorageSaveData done [21:00:38]OFDSenderStorePacket done [21:00:38]KKMCreateOFDPacket done [21:00:38]NVStorageSaveData kkm_last_timestamp [21:00:38]File name is /storage/kkm_last_timestamp [21:00:38]Write 4 bytes [21:00:38]NVStorageSaveData done [21:00:38]ExternCall_PrintAddStr [21:00:38]wPrintStart [21:00:38]Write to MH i2c: 01 00 00 F6 01 F7 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [21:00:38]RasterBufferAndPrint [21:00:38]line Счет N : (3)14630 [21:00:38]line ИНН: 02508201610067 [21:00:38]line Контрольно-Кассовый Чек [21:00:38]line ПРОДАЖА [21:00:38]line Товар: 4700000160358 [21:00:38]line Вода Легенда 1л [21:00:38]line 1.000 * 50.00 [21:00:38]line = 50.00 [21:00:38]line НДС 12% НСП 1% [21:00:38]line > о реализуемом товаре [21:00:38]line ИТОГО: 50.00 [21:00:38]line НСП 1% : 0.44 [21:00:38]line НДС 12% : 5.31 [21:00:38]line Наличными: 50.00 [21:00:38]line Безнал.: 0.00 [21:00:38]line Место: АЗС № 128 "Партнер Нефть" [21:00:38]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:00:38]line СНО: Общий режим [21:00:38]line Чек 109 28.07.2024 21:00 [21:00:38]line Смена: 430 ФФД: 1.0 [21:00:38]line ЗНМ: 0300000045 [21:00:38]line РНМ: 0000000000092655 [21:00:38]line Версия ККМ: 001 [21:00:38]line ФМ: 0000000000874941 [21:00:38]line ФД: 44738 [21:00:38]line ФПД: 24645330114968 [21:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210037&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44738&fm=24645330114968&tin=02508201610067®Number=0000000000092655&sum=5000 [21:00:38]OFD Sender: Processing packet 44738 [packets to send 7, broken 6] [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00044738 [21:00:38]OFD Sender: To server: pG, [21:00:38]CommunicateWithHost lk.salyk.kg:30040 [21:00:38]ConnectInit lk.salyk.kg [21:00:38]line 0 [21:00:38]written 0, free lines is 4095 [21:00:38]Connected sock=11 [21:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 C3 29 19 01 2A 90 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 75 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C2 AE 00 00 35 04 06 00 16 6A 30 25 99 98 16 5F E3 73 04 B1 9B 7A [21:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E6 59 47 00 92 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C2 AE 00 00 F4 03 04 00 87 5D A6 66 B6 04 01 00 00 7A 82 8A 6F DF F3 D2 54 [21:00:39]CommunicateWithHost err = 0 [21:00:39]CheckOFDResponse [21:00:39]1017 (14) - 77093643461234 [21:00:39]1041 (16) - 0000000000874941 [21:00:39]1040 (4) - 44738 [21:00:39]1012 (4) - 28.07.2024 15:02 [21:00:39]1206 (1) - 0 [21:00:39]OFD Sender: Remove packet 44738 [21:00:39]ProducePacketName [21:00:39]name=ofd_packets/00044738 [21:00:39]NVStorageDeleteData [21:00:39]Write to MH i2c: 01 00 00 1E 02 20 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 07 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 E4 0C 17 [21:00:39]RasterBufferAndPrint [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]written 0, free lines is 3307 [21:00:39]process_action close_receipt done [21:00:39]requested_data is exist [21:00:39]produce_requested_data [21:00:39]requested_item fm.sn is exist - process it [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 11 00 00 [21:00:39]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:39]Read from MH i2c: E2 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 17 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F5 [21:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:00:39]wFMCommunicate OK [21:00:39]requested_item fd.num is exist - process it [21:00:39]SAM_PROTO_GetFieldsCounters [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 13 00 00 [21:00:39]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:39]Read from MH i2c: E2 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 62 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [21:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:39]wFMCommunicate OK [21:00:39]SAM_PROTO_GetFieldsCounters done [21:00:39]requested_item shift.num is exist - process it [21:00:39]requested_item shift.opened is exist - process it [21:00:39]req_shift_opened [21:00:39]FM_GetShiftState [21:00:39]SAM_PROTO_GetShiftState [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 13 01 00 [21:00:39]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:39]Read from MH i2c: E2 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 0E 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3F [21:00:39]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:00:39]wFMCommunicate OK [21:00:39]SAM_PROTO_GetShiftState done [21:00:39]FM_GetShiftState done [21:00:39]req_shift_opened done [21:00:39]requested_item shift.open_date is exist - process it [21:00:39]req_shift_open_date [21:00:39]req_shift_open_date done [21:00:39]produce_requested_data done [21:00:39]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44738,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:00:39]process_action_free close_receipt [21:00:39]json_value_free [21:00:39]json_value_free done [21:00:39]process_json_proto returns [21:00:39]Send response to host [21:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44738,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:00:39]free response buf [21:00:39]execute_script done [21:00:39]execute_script returns [21:00:39]free content buf [21:00:39]Sock 9.Close socket [21:00:39]Sock 9.Thread stoped [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:52]accept exits with 7 [21:00:52]New connection [21:00:52]New thread 3066482020 created [21:00:52]Thread 3066625380 joined [21:00:52]Waiting for new connection... [21:00:52] Sock 7.Parse request [21:00:52]Sock 7.Check first char [21:00:52]Sock 7.First char is OK [21:00:52]request: POST /json_proto HTTP/1.0 [21:00:52]Method: POST [21:00:52]URL: /json_proto [21:00:52]Method is POST - this is cgi request [21:00:52]url: /json_proto [21:00:52]query_string will be loaded in cgi processing [21:00:52]execute_cgi json_proto POST (null) [21:00:52]execute_cgi path=json_proto method=POST [21:00:52]POST find Content-Length [21:00:52]Host: 172.17.45.196:8080 [21:00:52]Content-Length: 619 [21:00:52]Content-Type: application/json [21:00:52] [21:00:52]POST finish read [21:00:52]Found Content-Length = 619 [21:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14631", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:52]execute_script... [21:00:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14631", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:52]POST & json_proto [21:00:52]process_json_proto [21:00:52]json parsed OK: [21:00:52]protocol is kg_v1.0 [21:00:52]action value=close_receipt [21:00:52]process_action close_receipt [21:00:52]cmd_close_receipt [21:00:52]MH_GetDate [21:00:52]Write to MH i2c: F0 00 00 28 02 19 [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: F0 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: F0 09 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: F0 09 00 28 02 00 85 B1 A6 66 BB 03 A5 66 2D [21:00:52]GetLastDocTimeStamp 1722200437 [21:00:52]current date 1722200453 [21:00:52]FM_GetShiftState [21:00:52]SAM_PROTO_GetShiftState [21:00:52]wFMCommunicate request_size=4 [21:00:52]MH_SAM_APDU [21:00:52]CAPDU: 80 13 01 00 [21:00:52]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:52]Read from MH i2c: E2 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 0E 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 41 [21:00:52]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:00:52]wFMCommunicate OK [21:00:52]SAM_PROTO_GetShiftState done [21:00:52]FM_GetShiftState done [21:00:52]opened in 1722126323 [21:00:52]opened+sec_in_day 1722212723 [21:00:52]quantity*price = 15000 [21:00:52]sum+1 = 15001 [21:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 110 28.07.2024 21:00 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44739 ФПД: 132414891406795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210053&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44739&fm=132414891406795&tin=02508201610067®Number=0000000000092655&sum=15000 0 [21:00:53]StoreToDocumentArchive [21:00:53]shift 430 fd 44739 [21:00:53]save to /storage/0430/doc_00044739 [21:00:53]save last doc name /storage/0430/doc_00044739 to /storage/kkm_last_doc_name [21:00:53]save OK [21:00:53]Clear old archive folders... [21:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:00:53]tlvbuf is 017F48A0 [21:00:53]SAM_PROTO_ClearQueue [21:00:53]wFMCommunicate request_size=4 [21:00:53]MH_SAM_APDU [21:00:53]CAPDU: 80 09 00 00 [21:00:53]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:53]Read from MH i2c: E2 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 03 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [21:00:53]RAPDU: 90 00 [21:00:53]wFMCommunicate OK [21:00:53]SAM_PROTO_ClearQueue done [21:00:53]KKMCreateOFDPacket [21:00:53]OFDProtocolAddRootSTLVToBuf [21:00:53]FM_MakeSignedData [21:00:53]FM_MakeSignedData [21:00:53]SAM_PROTO_SignData [21:00:53]wFMCommunicate request_size=4 [21:00:53]MH_SAM_APDU [21:00:53]CAPDU: 80 0D 01 02 [21:00:53]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:53]Read from MH i2c: E2 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 03 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [21:00:53]RAPDU: 90 00 [21:00:53]wFMCommunicate OK [21:00:53]wFMCommunicate request_size=255 [21:00:53]MH_SAM_APDU [21:00:53]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 85 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [21:00:53]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 85 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 9B [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:54]Read from MH i2c: E2 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 03 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [21:00:54]RAPDU: 90 00 [21:00:54]wFMCommunicate OK [21:00:54]wFMCommunicate request_size=31 [21:00:54]MH_SAM_APDU [21:00:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 C3 AE 00 00 35 04 06 00 78 6E 3E 90 B5 CB [21:00:54]Write to MH i2c: E2 22 00 39 02 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 C3 AE 00 00 35 04 06 00 78 6E 3E 90 B5 CB 00 00 86 [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:54]Read from MH i2c: E2 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 03 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [21:00:54]RAPDU: 90 00 [21:00:54]wFMCommunicate OK [21:00:54]wFMCommunicate request_size=4 [21:00:54]MH_SAM_APDU [21:00:54]CAPDU: 80 0D 03 02 [21:00:54]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:54]Read from MH i2c: E2 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 0B 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 0B 00 3A 02 00 55 6A CB BA 40 AF D3 65 90 00 23 [21:00:54]RAPDU: 55 6A CB BA 40 AF D3 65 90 00 [21:00:54]wFMCommunicate OK [21:00:54]SAM_PROTO_SignData done [21:00:54]FM_MakeSignedData done [21:00:54]CreateOFDProtocolMessage [21:00:54]wFMCommunicate request_size=4 [21:00:54]MH_SAM_APDU [21:00:54]CAPDU: 80 11 00 00 [21:00:54]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:54]Read from MH i2c: E2 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 17 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0B [21:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:00:54]wFMCommunicate OK [21:00:54]CreateOFDProtocolMessage done [21:00:54]OFDSenderStorePacket 44739 [21:00:54]StoreOFDPacket docnum=44739 [21:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 5A B0 1C 01 FE BB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 85 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C3 AE 00 00 35 04 06 00 78 6E 3E 90 B5 CB 55 6A CB BA 40 AF D3 65 [21:00:54]CheckFolder [21:00:54]dirname=/storage/ofd_packets [21:00:54]CheckFolder done [21:00:54]ProducePacketName [21:00:54]name=ofd_packets/00044739 [21:00:54]NVStorageSaveData ofd_packets/00044739 [21:00:54]File name is /storage/ofd_packets/00044739 [21:00:54]Write 322 bytes [21:00:54]NVStorageSaveData done [21:00:54]OFDSenderStorePacket done [21:00:54]KKMCreateOFDPacket done [21:00:54]NVStorageSaveData kkm_last_timestamp [21:00:54]File name is /storage/kkm_last_timestamp [21:00:54]Write 4 bytes [21:00:54]NVStorageSaveData done [21:00:54]ExternCall_PrintAddStr [21:00:54]wPrintStart [21:00:54]Write to MH i2c: 01 00 00 3C 02 3E [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [21:00:54]RasterBufferAndPrint [21:00:54]line Счет N : (3)14631 [21:00:54]line ИНН: 02508201610067 [21:00:54]line Контрольно-Кассовый Чек [21:00:54]line ПРОДАЖА [21:00:54]line Товар: 4640030091607 [21:00:54]line Сигареты ESSE Exchange [21:00:54]line 1.000 * 150.00 [21:00:54]line = 150.00 [21:00:54]line НДС 12% НСП 1% [21:00:54]line > о реализуемом товаре [21:00:54]line ИТОГО: 150.00 [21:00:54]line НСП 1% : 1.33 [21:00:54]line НДС 12% : 15.93 [21:00:54]line Наличными: 150.00 [21:00:54]line Безнал.: 0.00 [21:00:54]line Место: АЗС № 128 "Партнер Нефть" [21:00:54]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:00:54]line СНО: Общий режим [21:00:54]line Чек 110 28.07.2024 21:00 [21:00:54]line Смена: 430 ФФД: 1.0 [21:00:54]line ЗНМ: 0300000045 [21:00:54]line РНМ: 0000000000092655 [21:00:54]line Версия ККМ: 001 [21:00:54]line ФМ: 0000000000874941 [21:00:54]line ФД: 44739 [21:00:54]line ФПД: 132414891406795 [21:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T210053&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44739&fm=132414891406795&tin=02508201610067®Number=0000000000092655&sum=15000 [21:00:54]OFD Sender: Processing packet 44739 [packets to send 7, broken 6] [21:00:54]ProducePacketName [21:00:54]name=ofd_packets/00044739 [21:00:54]OFD Sender: To server: pG, [21:00:54]CommunicateWithHost lk.salyk.kg:30040 [21:00:54]ConnectInit lk.salyk.kg [21:00:54]line 0 [21:00:54]written 0, free lines is 4095 [21:00:55]Write to MH i2c: 01 00 00 64 02 66 [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 E1 0C 5A [21:00:55]RasterBufferAndPrint [21:00:55]line [21:00:55]line [21:00:55]line [21:00:55]line [21:00:55]line [21:00:55]written 0, free lines is 3303 [21:00:55]process_action close_receipt done [21:00:55]requested_data is exist [21:00:55]produce_requested_data [21:00:55]requested_item fm.sn is exist - process it [21:00:55]wFMCommunicate request_size=4 [21:00:55]MH_SAM_APDU [21:00:55]CAPDU: 80 11 00 00 [21:00:55]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:55]Read from MH i2c: E2 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 17 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3B [21:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:00:55]wFMCommunicate OK [21:00:55]requested_item fd.num is exist - process it [21:00:55]SAM_PROTO_GetFieldsCounters [21:00:55]wFMCommunicate request_size=4 [21:00:55]MH_SAM_APDU [21:00:55]CAPDU: 80 13 00 00 [21:00:55]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:55]Read from MH i2c: E2 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 62 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [21:00:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:55]wFMCommunicate OK [21:00:55]SAM_PROTO_GetFieldsCounters done [21:00:55]requested_item shift.num is exist - process it [21:00:55]requested_item shift.opened is exist - process it [21:00:55]req_shift_opened [21:00:55]FM_GetShiftState [21:00:55]SAM_PROTO_GetShiftState [21:00:55]wFMCommunicate request_size=4 [21:00:55]MH_SAM_APDU [21:00:55]CAPDU: 80 13 01 00 [21:00:55]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:55]Read from MH i2c: E2 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 0E 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 85 [21:00:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:00:55]wFMCommunicate OK [21:00:55]SAM_PROTO_GetShiftState done [21:00:55]FM_GetShiftState done [21:00:55]req_shift_opened done [21:00:55]requested_item shift.open_date is exist - process it [21:00:55]req_shift_open_date [21:00:55]req_shift_open_date done [21:00:55]produce_requested_data done [21:00:55]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44739,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:00:55]process_action_free close_receipt [21:00:55]json_value_free [21:00:55]json_value_free done [21:00:55]process_json_proto returns [21:00:55]Send response to host [21:00:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44739,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:00:55]free response buf [21:00:55]execute_script done [21:00:55]execute_script returns [21:00:55]free content buf [21:00:55]Sock 7.Close socket [21:00:55]Sock 7.Thread stoped [21:03:07]ConnectInit Can't connect to host [21:03:07]CommunicateWithHost connect error [21:03:07]CommunicateWithHost err = -1 [21:03:07]OFD Sender: Server communicate error [21:03:12]OFD Sender: Processing packet 44739 [packets to send 7, broken 6] [21:03:12]ProducePacketName [21:03:12]name=ofd_packets/00044739 [21:03:12]OFD Sender: To server: pG, [21:03:12]CommunicateWithHost lk.salyk.kg:30040 [21:03:12]ConnectInit lk.salyk.kg [21:03:13]Connected sock=7 [21:03:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 5A B0 1C 01 FE BB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 85 B1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C3 AE 00 00 35 04 06 00 78 6E 3E 90 B5 CB 55 6A CB BA 40 AF D3 65 [21:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 9C FB 47 00 ED 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C3 AE 00 00 F4 03 04 00 21 5E A6 66 B6 04 01 00 00 CB A6 01 A8 B0 52 DB C5 [21:03:13]CommunicateWithHost err = 0 [21:03:13]CheckOFDResponse [21:03:13]1017 (14) - 77093643461234 [21:03:13]1041 (16) - 0000000000874941 [21:03:13]1040 (4) - 44739 [21:03:13]1012 (4) - 28.07.2024 15:05 [21:03:13]1206 (1) - 0 [21:03:13]OFD Sender: Remove packet 44739 [21:03:13]ProducePacketName [21:03:13]name=ofd_packets/00044739 [21:03:13]NVStorageDeleteData [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:43]int [21:03:43]Write to MH i2c: 01 00 00 6E 02 70 [21:03:43]*** FLAG_PRN_KEY set [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 6E 02 00 08 00 00 00 FF 0F 8D [21:03:43]state=0 [21:03:43]Key pressed [21:03:43]Feed [21:03:43]Write to MH i2c: D8 00 00 6F 02 48 [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: D8 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: D8 01 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: D8 01 00 6F 02 00 49 [21:03:43]int [21:03:43]Write to MH i2c: 01 00 00 70 02 72 [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 70 02 00 48 00 00 00 3D 00 FE [21:03:43]state=2 [21:03:43]Key pressed [21:03:43]int [21:03:43]Write to MH i2c: 01 00 00 71 02 73 [21:03:43]*** FLAG_PRN_KEY reset [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 F6 0F 7F [21:03:43]state=2 [21:03:43]Stop feed [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]int [21:05:44]Write to MH i2c: 01 00 00 72 02 74 [21:05:44]*** FLAG_PRN_KEY set [21:05:44]Write i2c OK [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 72 02 00 08 00 00 00 FF 0F 91 [21:05:44]state=0 [21:05:44]Key pressed [21:05:44]Feed [21:05:44]Write to MH i2c: D8 00 00 73 02 4C [21:05:44]Write i2c OK [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: D8 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: D8 01 00 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: D8 01 00 73 02 00 4D [21:05:44]int [21:05:44]Write to MH i2c: 01 00 00 74 02 76 [21:05:44]Write i2c OK [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 74 02 00 48 00 00 00 3D 00 02 [21:05:44]state=2 [21:05:44]Key pressed [21:05:44]OFD Sender: No OFD packet to send [21:05:44]int [21:05:44]Write to MH i2c: 01 00 00 75 02 77 [21:05:44]*** FLAG_PRN_KEY reset [21:05:44]Write i2c OK [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 [21:05:44]MH_I2C_Read... [21:05:44]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 F6 0F 83 [21:05:44]state=2 [21:05:44]Stop feed [21:05:45]recv_with_timeout no data received [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:58]recv_with_timeout no data received [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:03]accept exits with 9 [21:16:03]New connection [21:16:03]New thread 3066625380 created [21:16:03]Thread 3066482020 joined [21:16:03]Waiting for new connection... [21:16:03] Sock 9.Parse request [21:16:03]Sock 9.Check first char [21:16:03]Sock 9.First char is OK [21:16:03]request: POST /json_proto HTTP/1.0 [21:16:03]Method: POST [21:16:03]URL: /json_proto [21:16:03]Method is POST - this is cgi request [21:16:03]url: /json_proto [21:16:03]query_string will be loaded in cgi processing [21:16:03]execute_cgi json_proto POST (null) [21:16:03]execute_cgi path=json_proto method=POST [21:16:03]POST find Content-Length [21:16:03]Host: 172.17.45.196:8080 [21:16:03]Content-Length: 629 [21:16:03]Content-Type: application/json [21:16:03] [21:16:03]POST finish read [21:16:03]Found Content-Length = 629 [21:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14632", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:03]execute_script... [21:16:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14632", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:03]POST & json_proto [21:16:03]process_json_proto [21:16:03]json parsed OK: [21:16:03]protocol is kg_v1.0 [21:16:03]action value=close_receipt [21:16:03]process_action close_receipt [21:16:03]cmd_close_receipt [21:16:03]MH_GetDate [21:16:03]Write to MH i2c: F0 00 00 76 02 67 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: F0 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: F0 09 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: F0 09 00 76 02 00 14 B5 A6 66 BB 03 A5 66 0E [21:16:03]GetLastDocTimeStamp 1722200453 [21:16:03]current date 1722201364 [21:16:03]FM_GetShiftState [21:16:03]SAM_PROTO_GetShiftState [21:16:03]wFMCommunicate request_size=4 [21:16:03]MH_SAM_APDU [21:16:03]CAPDU: 80 13 01 00 [21:16:03]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:03]Read from MH i2c: E2 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 0E 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 8F [21:16:03]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:16:03]wFMCommunicate OK [21:16:03]SAM_PROTO_GetShiftState done [21:16:03]FM_GetShiftState done [21:16:03]opened in 1722126323 [21:16:03]opened+sec_in_day 1722212723 [21:16:03]quantity*price = 5000 [21:16:03]sum+1 = 5001 [21:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 111 28.07.2024 21:16 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44740 ФПД: 59049139106782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211604&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44740&fm=59049139106782&tin=02508201610067®Number=0000000000092655&sum=5000 0 [21:16:04]StoreToDocumentArchive [21:16:04]shift 430 fd 44740 [21:16:04]save to /storage/0430/doc_00044740 [21:16:04]save last doc name /storage/0430/doc_00044740 to /storage/kkm_last_doc_name [21:16:04]save OK [21:16:04]Clear old archive folders... [21:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=269 [21:16:04]tlvbuf is 017F4780 [21:16:04]SAM_PROTO_ClearQueue [21:16:04]wFMCommunicate request_size=4 [21:16:04]MH_SAM_APDU [21:16:04]CAPDU: 80 09 00 00 [21:16:04]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [21:16:04]Write i2c OK [21:16:04]MH_I2C_Read... [21:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:04]Read from MH i2c: E2 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 03 00 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [21:16:04]RAPDU: 90 00 [21:16:04]wFMCommunicate OK [21:16:04]SAM_PROTO_ClearQueue done [21:16:04]KKMCreateOFDPacket [21:16:04]OFDProtocolAddRootSTLVToBuf [21:16:04]FM_MakeSignedData [21:16:04]FM_MakeSignedData [21:16:04]SAM_PROTO_SignData [21:16:04]wFMCommunicate request_size=4 [21:16:04]MH_SAM_APDU [21:16:04]CAPDU: 80 0D 01 02 [21:16:04]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [21:16:04]Write i2c OK [21:16:04]MH_I2C_Read... [21:16:04]OFD Sender: No OFD packet to send [21:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:04]Read from MH i2c: E2 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 03 00 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [21:16:04]RAPDU: 90 00 [21:16:04]wFMCommunicate OK [21:16:04]wFMCommunicate request_size=255 [21:16:04]MH_SAM_APDU [21:16:04]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 14 B5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [21:16:04]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 14 B5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 0C [21:16:04]Write i2c OK [21:16:04]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [21:16:05]RAPDU: 90 00 [21:16:05]wFMCommunicate OK [21:16:05]wFMCommunicate request_size=28 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 C4 AE 00 00 35 04 06 00 35 B4 72 F5 F3 DE [21:16:05]Write to MH i2c: E2 1F 00 87 02 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 C4 AE 00 00 35 04 06 00 35 B4 72 F5 F3 DE 00 00 24 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [21:16:05]RAPDU: 90 00 [21:16:05]wFMCommunicate OK [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 0D 03 02 [21:16:05]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 0B 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 0B 00 88 02 00 EB 50 BE FD A5 42 61 B0 90 00 F4 [21:16:05]RAPDU: EB 50 BE FD A5 42 61 B0 90 00 [21:16:05]wFMCommunicate OK [21:16:05]SAM_PROTO_SignData done [21:16:05]FM_MakeSignedData done [21:16:05]CreateOFDProtocolMessage [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 11 00 00 [21:16:05]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 59 [21:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:16:05]wFMCommunicate OK [21:16:05]CreateOFDProtocolMessage done [21:16:05]OFDSenderStorePacket 44740 [21:16:05]StoreOFDPacket docnum=44740 [21:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 8C 81 19 01 76 15 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 14 B5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C4 AE 00 00 35 04 06 00 35 B4 72 F5 F3 DE EB 50 BE FD A5 42 61 B0 [21:16:05]CheckFolder [21:16:05]dirname=/storage/ofd_packets [21:16:05]CheckFolder done [21:16:05]ProducePacketName [21:16:05]name=ofd_packets/00044740 [21:16:05]NVStorageSaveData ofd_packets/00044740 [21:16:05]File name is /storage/ofd_packets/00044740 [21:16:05]Write 319 bytes [21:16:05]NVStorageSaveData done [21:16:05]OFDSenderStorePacket done [21:16:05]KKMCreateOFDPacket done [21:16:05]NVStorageSaveData kkm_last_timestamp [21:16:05]File name is /storage/kkm_last_timestamp [21:16:05]Write 4 bytes [21:16:05]NVStorageSaveData done [21:16:05]ExternCall_PrintAddStr [21:16:05]wPrintStart [21:16:05]Write to MH i2c: 01 00 00 8A 02 8C [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 07 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [21:16:05]RasterBufferAndPrint [21:16:05]line Счет N : (3)14632 [21:16:05]line ИНН: 02508201610067 [21:16:05]line Контрольно-Кассовый Чек [21:16:05]line ПРОДАЖА [21:16:05]line Товар: 4700000160358 [21:16:05]line Вода Легенда 1л [21:16:05]line 1.000 * 50.00 [21:16:05]line = 50.00 [21:16:05]line НДС 12% НСП 1% [21:16:05]line > о реализуемом товаре [21:16:05]line ИТОГО: 50.00 [21:16:05]line НСП 1% : 0.44 [21:16:05]line НДС 12% : 5.31 [21:16:05]line Наличными: 50.00 [21:16:05]line Безнал.: 0.00 [21:16:05]line Место: АЗС № 128 "Партнер Нефть" [21:16:05]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:16:05]line СНО: Общий режим [21:16:05]line Чек 111 28.07.2024 21:16 [21:16:05]line Смена: 430 ФФД: 1.0 [21:16:05]line ЗНМ: 0300000045 [21:16:05]line РНМ: 0000000000092655 [21:16:05]line Версия ККМ: 001 [21:16:05]line ФМ: 0000000000874941 [21:16:05]line ФД: 44740 [21:16:05]line ФПД: 59049139106782 [21:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T211604&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44740&fm=59049139106782&tin=02508201610067®Number=0000000000092655&sum=5000 [21:16:05]line 0 [21:16:05]written 0, free lines is 4095 [21:16:05]OFD Sender: Processing packet 44740 [packets to send 7, broken 6] [21:16:05]ProducePacketName [21:16:05]name=ofd_packets/00044740 [21:16:05]OFD Sender: To server: pG, [21:16:05]CommunicateWithHost lk.salyk.kg:30040 [21:16:05]ConnectInit lk.salyk.kg [21:16:05]Write to MH i2c: 01 00 00 B2 02 B4 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 07 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 E1 0C A8 [21:16:05]RasterBufferAndPrint [21:16:05]line [21:16:05]line [21:16:05]line [21:16:05]line [21:16:05]line [21:16:05]written 0, free lines is 3303 [21:16:05]process_action close_receipt done [21:16:05]requested_data is exist [21:16:05]produce_requested_data [21:16:05]requested_item fm.sn is exist - process it [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 11 00 00 [21:16:05]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 89 [21:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:16:05]wFMCommunicate OK [21:16:05]requested_item fd.num is exist - process it [21:16:05]SAM_PROTO_GetFieldsCounters [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 13 00 00 [21:16:05]Write to MH i2c: E2 08 00 BA 02 80 13 00 00 00 00 00 00 38 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]Connected sock=7 [21:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 8C 81 19 01 76 15 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 14 B5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C4 AE 00 00 35 04 06 00 35 B4 72 F5 F3 DE EB 50 BE FD A5 42 61 B0 [21:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 62 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 62 00 BA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [21:16:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:06]wFMCommunicate OK [21:16:06]SAM_PROTO_GetFieldsCounters done [21:16:06]requested_item shift.num is exist - process it [21:16:06]requested_item shift.opened is exist - process it [21:16:06]req_shift_opened [21:16:06]FM_GetShiftState [21:16:06]SAM_PROTO_GetShiftState [21:16:06]wFMCommunicate request_size=4 [21:16:06]MH_SAM_APDU [21:16:06]CAPDU: 80 13 01 00 [21:16:06]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0E 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D3 [21:16:06]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:16:06]wFMCommunicate OK [21:16:06]SAM_PROTO_GetShiftState done [21:16:06]FM_GetShiftState done [21:16:06]req_shift_opened done [21:16:06]requested_item shift.open_date is exist - process it [21:16:06]req_shift_open_date [21:16:06]req_shift_open_date done [21:16:06]produce_requested_data done [21:16:06]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44740,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:16:06]process_action_free close_receipt [21:16:06]json_value_free [21:16:06]json_value_free done [21:16:06]process_json_proto returns [21:16:06]Send response to host [21:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44740,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:16:06]free response buf [21:16:06]execute_script done [21:16:06]execute_script returns [21:16:06]free content buf [21:16:06]Sock 9.Close socket [21:16:06]Sock 9.Thread stoped [21:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F2 A5 47 00 0E 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C4 AE 00 00 F4 03 04 00 26 61 A6 66 B6 04 01 00 00 DE 7E 7D 2C F1 51 39 EB [21:16:06]CommunicateWithHost err = 0 [21:16:06]CheckOFDResponse [21:16:06]1017 (14) - 77093643461234 [21:16:06]1041 (16) - 0000000000874941 [21:16:06]1040 (4) - 44740 [21:16:06]1012 (4) - 28.07.2024 15:17 [21:16:06]1206 (1) - 0 [21:16:06]OFD Sender: Remove packet 44740 [21:16:06]ProducePacketName [21:16:06]name=ofd_packets/00044740 [21:16:06]NVStorageDeleteData [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:23]accept exits with 10 [21:26:23]New connection [21:26:23]New thread 3066482020 created [21:26:23]Thread 3066625380 joined [21:26:23]Waiting for new connection... [21:26:23] Sock 10.Parse request [21:26:23]Sock 10.Check first char [21:26:23]Sock 10.First char is OK [21:26:23]request: POST /json_proto HTTP/1.0 [21:26:23]Method: POST [21:26:23]URL: /json_proto [21:26:23]Method is POST - this is cgi request [21:26:23]url: /json_proto [21:26:23]query_string will be loaded in cgi processing [21:26:23]execute_cgi json_proto POST (null) [21:26:23]execute_cgi path=json_proto method=POST [21:26:23]POST find Content-Length [21:26:23]Host: 172.17.45.196:8080 [21:26:23]Content-Length: 801 [21:26:23]Content-Type: application/json [21:26:23] [21:26:23]POST finish read [21:26:23]Found Content-Length = 801 [21:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14633", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:23]execute_script... [21:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14633", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:23]POST & json_proto [21:26:23]process_json_proto [21:26:23]json parsed OK: [21:26:23]protocol is kg_v1.0 [21:26:23]action value=close_receipt [21:26:23]process_action close_receipt [21:26:23]cmd_close_receipt [21:26:23]MH_GetDate [21:26:23]Write to MH i2c: F0 00 00 BC 02 AD [21:26:23]Write i2c OK [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: F0 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: F0 09 00 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: F0 09 00 BC 02 00 80 B7 A6 66 BB 03 A5 66 C2 [21:26:23]GetLastDocTimeStamp 1722201364 [21:26:23]current date 1722201984 [21:26:23]FM_GetShiftState [21:26:23]SAM_PROTO_GetShiftState [21:26:23]wFMCommunicate request_size=4 [21:26:23]MH_SAM_APDU [21:26:23]CAPDU: 80 13 01 00 [21:26:23]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [21:26:23]Write i2c OK [21:26:23]MH_I2C_Read... [21:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:23]Read from MH i2c: E2 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: E2 0E 00 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D5 [21:26:23]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:26:23]wFMCommunicate OK [21:26:23]SAM_PROTO_GetShiftState done [21:26:23]FM_GetShiftState done [21:26:23]opened in 1722126323 [21:26:23]opened+sec_in_day 1722212723 [21:26:23]quantity*price = 15000 [21:26:23]sum+1 = 15001 [21:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 112 28.07.2024 21:26 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44741 ФПД: 213445547275495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212624&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44741&fm=213445547275495&tin=02508201610067®Number=0000000000092655&sum=15000 0 [21:26:24]StoreToDocumentArchive [21:26:24]shift 430 fd 44741 [21:26:24]save to /storage/0430/doc_00044741 [21:26:24]save last doc name /storage/0430/doc_00044741 to /storage/kkm_last_doc_name [21:26:24]save OK [21:26:24]Clear old archive folders... [21:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=277 [21:26:24]tlvbuf is 017EF360 [21:26:24]SAM_PROTO_ClearQueue [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 09 00 00 [21:26:24]Write to MH i2c: E2 08 00 CA 02 80 09 00 00 00 00 00 00 3E [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 03 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [21:26:24]RAPDU: 90 00 [21:26:24]wFMCommunicate OK [21:26:24]SAM_PROTO_ClearQueue done [21:26:24]KKMCreateOFDPacket [21:26:24]OFDProtocolAddRootSTLVToBuf [21:26:24]FM_MakeSignedData [21:26:24]FM_MakeSignedData [21:26:24]SAM_PROTO_SignData [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 0D 01 02 [21:26:24]Write to MH i2c: E2 08 00 CB 02 80 0D 01 02 00 00 00 00 46 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 03 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [21:26:24]RAPDU: 90 00 [21:26:24]wFMCommunicate OK [21:26:24]wFMCommunicate request_size=255 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 80 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 [21:26:24]Write to MH i2c: E2 02 01 CC 02 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 80 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 00 00 92 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:25]Read from MH i2c: E2 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 03 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [21:26:25]RAPDU: 90 00 [21:26:25]wFMCommunicate OK [21:26:25]wFMCommunicate request_size=36 [21:26:25]MH_SAM_APDU [21:26:25]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C5 AE 00 00 35 04 06 00 C2 20 AA 06 34 E7 [21:26:25]Write to MH i2c: E2 27 00 CD 02 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C5 AE 00 00 35 04 06 00 C2 20 AA 06 34 E7 00 00 8F [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:25]Read from MH i2c: E2 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 03 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [21:26:25]RAPDU: 90 00 [21:26:25]wFMCommunicate OK [21:26:25]wFMCommunicate request_size=4 [21:26:25]MH_SAM_APDU [21:26:25]CAPDU: 80 0D 03 02 [21:26:25]Write to MH i2c: E2 08 00 CE 02 80 0D 03 02 00 00 00 00 4B [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:25]Read from MH i2c: E2 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 0B 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 0B 00 CE 02 00 A4 35 D4 3F 9E FF E1 CD 90 00 83 [21:26:25]RAPDU: A4 35 D4 3F 9E FF E1 CD 90 00 [21:26:25]wFMCommunicate OK [21:26:25]SAM_PROTO_SignData done [21:26:25]FM_MakeSignedData done [21:26:25]CreateOFDProtocolMessage [21:26:25]wFMCommunicate request_size=4 [21:26:25]MH_SAM_APDU [21:26:25]CAPDU: 80 11 00 00 [21:26:25]Write to MH i2c: E2 08 00 CF 02 80 11 00 00 00 00 00 00 4B [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:25]Read from MH i2c: E2 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 17 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: E2 17 00 CF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9F [21:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:26:25]wFMCommunicate OK [21:26:25]CreateOFDProtocolMessage done [21:26:25]OFDSenderStorePacket 44741 [21:26:25]StoreOFDPacket docnum=44741 [21:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 29 01 00 00 D9 DC 21 01 88 97 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 80 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C5 AE 00 00 35 04 06 00 C2 20 AA 06 34 E7 A4 35 D4 3F 9E FF E1 CD [21:26:25]CheckFolder [21:26:25]dirname=/storage/ofd_packets [21:26:25]CheckFolder done [21:26:25]ProducePacketName [21:26:25]name=ofd_packets/00044741 [21:26:25]NVStorageSaveData ofd_packets/00044741 [21:26:25]File name is /storage/ofd_packets/00044741 [21:26:25]Write 327 bytes [21:26:25]NVStorageSaveData done [21:26:25]OFDSenderStorePacket done [21:26:25]KKMCreateOFDPacket done [21:26:25]NVStorageSaveData kkm_last_timestamp [21:26:25]File name is /storage/kkm_last_timestamp [21:26:25]Write 4 bytes [21:26:25]NVStorageSaveData done [21:26:25]ExternCall_PrintAddStr [21:26:25]wPrintStart [21:26:25]Write to MH i2c: 01 00 00 D0 02 D2 [21:26:25]Write i2c OK [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: 01 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: 01 07 00 [21:26:25]MH_I2C_Read... [21:26:25]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [21:26:25]RasterBufferAndPrint [21:26:25]line Счет N : (3)14633 [21:26:25]line ИНН: 02508201610067 [21:26:25]line Контрольно-Кассовый Чек [21:26:25]line ПРОДАЖА [21:26:25]line Товар: 46230607 [21:26:25]line Сигареты Richmond Bronze Edition [21:26:25]line 1.000 * 150.00 [21:26:25]line = 150.00 [21:26:25]line НДС 12% НСП 1% [21:26:25]line > о реализуемом товаре [21:26:25]line ИТОГО: 150.00 [21:26:25]line НСП 1% : 1.33 [21:26:25]line НДС 12% : 15.93 [21:26:25]line Наличными: 0.00 [21:26:25]line Безнал.: 150.00 [21:26:25]line Место: АЗС № 128 "Партнер Нефть" [21:26:25]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:26:25]line СНО: Общий режим [21:26:25]line Чек 112 28.07.2024 21:26 [21:26:25]line Смена: 430 ФФД: 1.0 [21:26:25]line ЗНМ: 0300000045 [21:26:25]line РНМ: 0000000000092655 [21:26:25]line Версия ККМ: 001 [21:26:25]line Платежная система: Бакай Банк [21:26:25]line ФМ: 0000000000874941 [21:26:25]line ФД: 44741 [21:26:25]line ФПД: 213445547275495 [21:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212624&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44741&fm=213445547275495&tin=02508201610067®Number=0000000000092655&sum=15000 [21:26:25]line 0 [21:26:25]OFD Sender: Processing packet 44741 [packets to send 7, broken 6] [21:26:25]ProducePacketName [21:26:25]name=ofd_packets/00044741 [21:26:25]OFD Sender: To server: pG, [21:26:25]CommunicateWithHost lk.salyk.kg:30040 [21:26:25]ConnectInit lk.salyk.kg [21:26:25]written 0, free lines is 4095 [21:26:25]Connected sock=9 [21:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 29 01 00 00 D9 DC 21 01 88 97 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 80 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C5 AE 00 00 35 04 06 00 C2 20 AA 06 34 E7 A4 35 D4 3F 9E FF E1 CD [21:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 ED 58 47 00 7B 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C5 AE 00 00 F4 03 04 00 92 63 A6 66 B6 04 01 00 00 D3 94 62 FF 58 60 15 E1 [21:26:26]CommunicateWithHost err = 0 [21:26:26]CheckOFDResponse [21:26:26]1017 (14) - 77093643461234 [21:26:26]1041 (16) - 0000000000874941 [21:26:26]1040 (4) - 44741 [21:26:26]1012 (4) - 28.07.2024 15:28 [21:26:26]1206 (1) - 0 [21:26:26]OFD Sender: Remove packet 44741 [21:26:26]ProducePacketName [21:26:26]name=ofd_packets/00044741 [21:26:26]NVStorageDeleteData [21:26:26]Write to MH i2c: 01 00 00 FB 02 FD [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 9D 0C AD [21:26:26]RasterBufferAndPrint [21:26:26]line [21:26:26]line [21:26:26]line [21:26:26]line [21:26:26]line [21:26:26]written 0, free lines is 3236 [21:26:26]process_action close_receipt done [21:26:26]requested_data is exist [21:26:26]produce_requested_data [21:26:26]requested_item fm.sn is exist - process it [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 11 00 00 [21:26:26]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D3 [21:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:26:26]wFMCommunicate OK [21:26:26]requested_item fd.num is exist - process it [21:26:26]SAM_PROTO_GetFieldsCounters [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 13 00 00 [21:26:26]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 62 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [21:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_GetFieldsCounters done [21:26:26]requested_item shift.num is exist - process it [21:26:26]requested_item shift.opened is exist - process it [21:26:26]req_shift_opened [21:26:26]FM_GetShiftState [21:26:26]SAM_PROTO_GetShiftState [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 13 01 00 [21:26:26]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0E 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 1D [21:26:26]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_GetShiftState done [21:26:26]FM_GetShiftState done [21:26:26]req_shift_opened done [21:26:26]requested_item shift.open_date is exist - process it [21:26:26]req_shift_open_date [21:26:26]req_shift_open_date done [21:26:26]produce_requested_data done [21:26:26]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44741,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:26:26]process_action_free close_receipt [21:26:26]json_value_free [21:26:26]json_value_free done [21:26:26]process_json_proto returns [21:26:26]Send response to host [21:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44741,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:26:26]free response buf [21:26:26]execute_script done [21:26:26]execute_script returns [21:26:26]free content buf [21:26:26]Sock 10.Close socket [21:26:26]Sock 10.Thread stoped [21:26:26]OFD Sender: No OFD packet to send [21:26:27]int [21:26:27]Write to MH i2c: 01 00 00 05 03 08 [21:26:27]*** FLAG_PRN_KEY set [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 05 03 00 08 00 00 00 FF 0F 25 [21:26:27]state=0 [21:26:27]Key pressed [21:26:27]Feed [21:26:27]Write to MH i2c: D8 00 00 06 03 E0 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D8 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D8 01 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D8 01 00 06 03 00 E1 [21:26:27]int [21:26:27]Write to MH i2c: 01 00 00 07 03 0A [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 07 03 00 48 00 00 00 3C 00 95 [21:26:27]state=2 [21:26:27]Key pressed [21:26:27]int [21:26:27]Write to MH i2c: 01 00 00 08 03 0B [21:26:27]*** FLAG_PRN_KEY reset [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 F7 0F 18 [21:26:27]state=2 [21:26:27]Stop feed [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:27:59]accept exits with 7 [21:27:59]New connection [21:27:59]New thread 3066625380 created [21:27:59]Thread 3066482020 joined [21:27:59]Waiting for new connection... [21:27:59] Sock 7.Parse request [21:27:59]Sock 7.Check first char [21:27:59]Sock 7.First char is OK [21:27:59]request: POST /json_proto HTTP/1.0 [21:27:59]Method: POST [21:27:59]URL: /json_proto [21:27:59]Method is POST - this is cgi request [21:27:59]url: /json_proto [21:27:59]query_string will be loaded in cgi processing [21:27:59]execute_cgi json_proto POST (null) [21:27:59]execute_cgi path=json_proto method=POST [21:27:59]POST find Content-Length [21:27:59]Host: 172.17.45.196:8080 [21:27:59]Content-Length: 668 [21:27:59]Content-Type: application/json [21:27:59] [21:27:59]POST finish read [21:27:59]Found Content-Length = 668 [21:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14634", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:59]execute_script... [21:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14634", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:59]POST & json_proto [21:27:59]process_json_proto [21:27:59]json parsed OK: [21:27:59]protocol is kg_v1.0 [21:27:59]action value=close_receipt [21:27:59]process_action close_receipt [21:27:59]cmd_close_receipt [21:27:59]MH_GetDate [21:27:59]Write to MH i2c: F0 00 00 09 03 FB [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 09 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 09 00 09 03 00 E0 B7 A6 66 BB 03 A5 66 70 [21:27:59]GetLastDocTimeStamp 1722201984 [21:27:59]current date 1722202080 [21:27:59]FM_GetShiftState [21:27:59]SAM_PROTO_GetShiftState [21:27:59]wFMCommunicate request_size=4 [21:27:59]MH_SAM_APDU [21:27:59]CAPDU: 80 13 01 00 [21:27:59]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:59]Read from MH i2c: E2 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: E2 0E 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 23 [21:27:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:27:59]wFMCommunicate OK [21:27:59]SAM_PROTO_GetShiftState done [21:27:59]FM_GetShiftState done [21:27:59]opened in 1722126323 [21:27:59]opened+sec_in_day 1722212723 [21:27:59]quantity*price = 6500 [21:27:59]sum+1 = 6501 [21:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 113 28.07.2024 21:28 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44742 ФПД: 135808792657336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212800&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44742&fm=135808792657336&tin=02508201610067®Number=0000000000092655&sum=6500 0 [21:28:00]StoreToDocumentArchive [21:28:00]shift 430 fd 44742 [21:28:00]save to /storage/0430/doc_00044742 [21:28:00]save last doc name /storage/0430/doc_00044742 to /storage/kkm_last_doc_name [21:28:00]save OK [21:28:00]Clear old archive folders... [21:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:28:00]tlvbuf is 017EE4B0 [21:28:00]SAM_PROTO_ClearQueue [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 09 00 00 [21:28:00]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [21:28:00]RAPDU: 90 00 [21:28:00]wFMCommunicate OK [21:28:00]SAM_PROTO_ClearQueue done [21:28:00]KKMCreateOFDPacket [21:28:00]OFDProtocolAddRootSTLVToBuf [21:28:00]FM_MakeSignedData [21:28:00]FM_MakeSignedData [21:28:00]SAM_PROTO_SignData [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 0D 01 02 [21:28:00]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [21:28:00]RAPDU: 90 00 [21:28:00]wFMCommunicate OK [21:28:00]wFMCommunicate request_size=255 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [21:28:00]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 E5 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [21:28:01]RAPDU: 90 00 [21:28:01]wFMCommunicate OK [21:28:01]wFMCommunicate request_size=43 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C6 AE 00 00 35 04 06 00 7B 84 72 D7 FD B8 [21:28:01]Write to MH i2c: E2 2E 00 1A 03 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C6 AE 00 00 35 04 06 00 7B 84 72 D7 FD B8 00 00 F1 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [21:28:01]RAPDU: 90 00 [21:28:01]wFMCommunicate OK [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 0D 03 02 [21:28:01]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0B 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0B 00 1B 03 00 43 BE B2 ED 67 DD 83 F6 90 00 F7 [21:28:01]RAPDU: 43 BE B2 ED 67 DD 83 F6 90 00 [21:28:01]wFMCommunicate OK [21:28:01]SAM_PROTO_SignData done [21:28:01]FM_MakeSignedData done [21:28:01]CreateOFDProtocolMessage [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 11 00 00 [21:28:01]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 17 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 ED [21:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:28:01]wFMCommunicate OK [21:28:01]CreateOFDProtocolMessage done [21:28:01]OFDSenderStorePacket 44742 [21:28:01]StoreOFDPacket docnum=44742 [21:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 4A B4 28 01 41 27 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C6 AE 00 00 35 04 06 00 7B 84 72 D7 FD B8 43 BE B2 ED 67 DD 83 F6 [21:28:01]CheckFolder [21:28:01]dirname=/storage/ofd_packets [21:28:01]CheckFolder done [21:28:01]ProducePacketName [21:28:01]name=ofd_packets/00044742 [21:28:01]NVStorageSaveData ofd_packets/00044742 [21:28:01]File name is /storage/ofd_packets/00044742 [21:28:01]Write 334 bytes [21:28:01]NVStorageSaveData done [21:28:01]OFDSenderStorePacket done [21:28:01]KKMCreateOFDPacket done [21:28:01]NVStorageSaveData kkm_last_timestamp [21:28:01]File name is /storage/kkm_last_timestamp [21:28:01]Write 4 bytes [21:28:01]NVStorageSaveData done [21:28:01]ExternCall_PrintAddStr [21:28:01]wPrintStart [21:28:01]Write to MH i2c: 01 00 00 1D 03 20 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 07 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [21:28:01]RasterBufferAndPrint [21:28:01]line Счет N : (3)14634 [21:28:01]line ИНН: 02508201610067 [21:28:01]line Контрольно-Кассовый Чек [21:28:01]line ПРОДАЖА [21:28:01]line Товар: 4700040114137 [21:28:01]line Султан чай 1л. зел лимон [21:28:01]line 1.000 * 65.00 [21:28:01]line = 65.00 [21:28:01]line НДС 12% НСП 1% [21:28:01]line > о реализуемом товаре [21:28:01]line ИТОГО: 65.00 [21:28:01]line НСП 1% : 0.57 [21:28:01]line НДС 12% : 6.90 [21:28:01]line Наличными: 65.00 [21:28:01]line Безнал.: 0.00 [21:28:01]line Место: АЗС № 128 "Партнер Нефть" [21:28:01]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:28:01]line СНО: Общий режим [21:28:01]line Чек 113 28.07.2024 21:28 [21:28:01]line Смена: 430 ФФД: 1.0 [21:28:01]line ЗНМ: 0300000045 [21:28:01]line РНМ: 0000000000092655 [21:28:01]line Версия ККМ: 001 [21:28:01]line ФМ: 0000000000874941 [21:28:01]line ФД: 44742 [21:28:01]line ФПД: 135808792657336 [21:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T212800&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44742&fm=135808792657336&tin=02508201610067®Number=0000000000092655&sum=6500 [21:28:01]OFD Sender: Processing packet 44742 [packets to send 7, broken 6] [21:28:01]ProducePacketName [21:28:01]name=ofd_packets/00044742 [21:28:01]OFD Sender: To server: pG, [21:28:01]CommunicateWithHost lk.salyk.kg:30040 [21:28:01]ConnectInit lk.salyk.kg [21:28:01]line 0 [21:28:01]written 0, free lines is 4095 [21:28:01]Connected sock=10 [21:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 4A B4 28 01 41 27 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 B7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C6 AE 00 00 35 04 06 00 7B 84 72 D7 FD B8 43 BE B2 ED 67 DD 83 F6 [21:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 3A 80 47 00 3F AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C6 AE 00 00 F4 03 04 00 F2 63 A6 66 B6 04 01 00 00 C5 7F 2A DB 7B C3 B3 C8 [21:28:02]CommunicateWithHost err = 0 [21:28:02]CheckOFDResponse [21:28:02]1017 (14) - 77093643461234 [21:28:02]1041 (16) - 0000000000874941 [21:28:02]1040 (4) - 44742 [21:28:02]1012 (4) - 28.07.2024 15:29 [21:28:02]1206 (1) - 0 [21:28:02]OFD Sender: Remove packet 44742 [21:28:02]ProducePacketName [21:28:02]name=ofd_packets/00044742 [21:28:02]NVStorageDeleteData [21:28:02]Write to MH i2c: 01 00 00 45 03 48 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 E7 0C 42 [21:28:02]RasterBufferAndPrint [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]written 0, free lines is 3310 [21:28:02]process_action close_receipt done [21:28:02]requested_data is exist [21:28:02]produce_requested_data [21:28:02]requested_item fm.sn is exist - process it [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 11 00 00 [21:28:02]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 17 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1D [21:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:28:02]wFMCommunicate OK [21:28:02]requested_item fd.num is exist - process it [21:28:02]SAM_PROTO_GetFieldsCounters [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 13 00 00 [21:28:02]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 62 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [21:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:02]wFMCommunicate OK [21:28:02]SAM_PROTO_GetFieldsCounters done [21:28:02]requested_item shift.num is exist - process it [21:28:02]requested_item shift.opened is exist - process it [21:28:02]req_shift_opened [21:28:02]FM_GetShiftState [21:28:02]SAM_PROTO_GetShiftState [21:28:02]wFMCommunicate request_size=4 [21:28:02]MH_SAM_APDU [21:28:02]CAPDU: 80 13 01 00 [21:28:02]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:02]Read from MH i2c: E2 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 0E 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 67 [21:28:02]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:28:02]wFMCommunicate OK [21:28:02]SAM_PROTO_GetShiftState done [21:28:02]FM_GetShiftState done [21:28:02]req_shift_opened done [21:28:02]requested_item shift.open_date is exist - process it [21:28:02]req_shift_open_date [21:28:02]req_shift_open_date done [21:28:02]produce_requested_data done [21:28:02]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44742,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:28:02]process_action_free close_receipt [21:28:02]json_value_free [21:28:02]json_value_free done [21:28:02]process_json_proto returns [21:28:02]Send response to host [21:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44742,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:28:02]free response buf [21:28:02]execute_script done [21:28:02]execute_script returns [21:28:02]free content buf [21:28:02]Sock 7.Close socket [21:28:02]Sock 7.Thread stoped [21:28:02]OFD Sender: No OFD packet to send [21:28:05]int [21:28:05]Write to MH i2c: 01 00 00 4F 03 52 [21:28:05]*** FLAG_PRN_KEY set [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 4F 03 00 08 00 00 00 FF 0F 6F [21:28:05]state=0 [21:28:05]Key pressed [21:28:05]Feed [21:28:05]Write to MH i2c: D8 00 00 50 03 2A [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D8 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D8 01 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D8 01 00 50 03 00 2B [21:28:05]int [21:28:05]Write to MH i2c: 01 00 00 51 03 54 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 51 03 00 48 00 00 00 3C 00 DF [21:28:05]state=2 [21:28:05]Key pressed [21:28:05]int [21:28:05]Write to MH i2c: 01 00 00 52 03 55 [21:28:05]*** FLAG_PRN_KEY reset [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 F7 0F 62 [21:28:05]state=2 [21:28:05]Stop feed [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:19]accept exits with 9 [21:30:19]New connection [21:30:19]New thread 3066482020 created [21:30:19]Thread 3066625380 joined [21:30:19]Waiting for new connection... [21:30:19] Sock 9.Parse request [21:30:19]Sock 9.Check first char [21:30:19]Sock 9.First char is OK [21:30:19]request: POST /json_proto HTTP/1.0 [21:30:19]Method: POST [21:30:19]URL: /json_proto [21:30:19]Method is POST - this is cgi request [21:30:19]url: /json_proto [21:30:19]query_string will be loaded in cgi processing [21:30:19]execute_cgi json_proto POST (null) [21:30:19]execute_cgi path=json_proto method=POST [21:30:19]POST find Content-Length [21:30:19]Host: 172.17.45.196:8080 [21:30:19]Content-Length: 687 [21:30:19]Content-Type: application/json [21:30:19] [21:30:19]POST finish read [21:30:19]Found Content-Length = 687 [21:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14635", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:19]execute_script... [21:30:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14635", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:19]POST & json_proto [21:30:19]process_json_proto [21:30:19]json parsed OK: [21:30:19]protocol is kg_v1.0 [21:30:19]action value=close_receipt [21:30:19]process_action close_receipt [21:30:19]cmd_close_receipt [21:30:19]MH_GetDate [21:30:19]Write to MH i2c: F0 00 00 53 03 45 [21:30:19]Write i2c OK [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: F0 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: F0 09 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: F0 09 00 53 03 00 6C B8 A6 66 BB 03 A5 66 47 [21:30:19]GetLastDocTimeStamp 1722202080 [21:30:19]current date 1722202220 [21:30:19]FM_GetShiftState [21:30:19]SAM_PROTO_GetShiftState [21:30:19]wFMCommunicate request_size=4 [21:30:19]MH_SAM_APDU [21:30:19]CAPDU: 80 13 01 00 [21:30:19]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [21:30:19]Write i2c OK [21:30:19]MH_I2C_Read... [21:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:19]Read from MH i2c: E2 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 0E 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 6D [21:30:19]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:30:19]wFMCommunicate OK [21:30:19]SAM_PROTO_GetShiftState done [21:30:19]FM_GetShiftState done [21:30:19]opened in 1722126323 [21:30:19]opened+sec_in_day 1722212723 [21:30:19]quantity*price = 9500 [21:30:19]sum+1 = 9501 [21:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 114 28.07.2024 21:30 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44743 ФПД: 246118121831396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T213020&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44743&fm=246118121831396&tin=02508201610067®Number=0000000000092655&sum=9500 0 [21:30:20]StoreToDocumentArchive [21:30:20]shift 430 fd 44743 [21:30:20]save to /storage/0430/doc_00044743 [21:30:20]save last doc name /storage/0430/doc_00044743 to /storage/kkm_last_doc_name [21:30:20]save OK [21:30:20]Clear old archive folders... [21:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:30:20]tlvbuf is 017ECCB0 [21:30:20]SAM_PROTO_ClearQueue [21:30:20]wFMCommunicate request_size=4 [21:30:20]MH_SAM_APDU [21:30:20]CAPDU: 80 09 00 00 [21:30:20]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [21:30:20]Write i2c OK [21:30:20]MH_I2C_Read... [21:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:20]Read from MH i2c: E2 [21:30:20]MH_I2C_Read... [21:30:20]Read from MH i2c: E2 03 00 [21:30:20]MH_I2C_Read... [21:30:20]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [21:30:20]RAPDU: 90 00 [21:30:20]wFMCommunicate OK [21:30:20]SAM_PROTO_ClearQueue done [21:30:20]KKMCreateOFDPacket [21:30:20]OFDProtocolAddRootSTLVToBuf [21:30:20]FM_MakeSignedData [21:30:20]FM_MakeSignedData [21:30:20]SAM_PROTO_SignData [21:30:20]wFMCommunicate request_size=4 [21:30:20]MH_SAM_APDU [21:30:20]CAPDU: 80 0D 01 02 [21:30:20]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [21:30:20]Write i2c OK [21:30:20]MH_I2C_Read... [21:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:20]Read from MH i2c: E2 [21:30:20]MH_I2C_Read... [21:30:20]Read from MH i2c: E2 03 00 [21:30:20]MH_I2C_Read... [21:30:20]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [21:30:20]RAPDU: 90 00 [21:30:20]wFMCommunicate OK [21:30:20]wFMCommunicate request_size=255 [21:30:20]MH_SAM_APDU [21:30:20]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6C B8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:30:20]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6C B8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 D6 [21:30:20]Write i2c OK [21:30:20]MH_I2C_Read... [21:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:21]Read from MH i2c: E2 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 03 00 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [21:30:21]RAPDU: 90 00 [21:30:21]wFMCommunicate OK [21:30:21]wFMCommunicate request_size=58 [21:30:21]MH_SAM_APDU [21:30:21]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C7 AE 00 00 35 04 06 00 DF D7 D7 39 7B E4 [21:30:21]Write to MH i2c: E2 3D 00 64 03 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C7 AE 00 00 35 04 06 00 DF D7 D7 39 7B E4 00 00 6D [21:30:21]Write i2c OK [21:30:21]MH_I2C_Read... [21:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:21]Read from MH i2c: E2 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 03 00 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [21:30:21]RAPDU: 90 00 [21:30:21]wFMCommunicate OK [21:30:21]wFMCommunicate request_size=4 [21:30:21]MH_SAM_APDU [21:30:21]CAPDU: 80 0D 03 02 [21:30:21]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [21:30:21]Write i2c OK [21:30:21]MH_I2C_Read... [21:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:21]Read from MH i2c: E2 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 0B 00 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 0B 00 65 03 00 81 34 4F A9 58 46 BB 5B 90 00 45 [21:30:21]RAPDU: 81 34 4F A9 58 46 BB 5B 90 00 [21:30:21]wFMCommunicate OK [21:30:21]SAM_PROTO_SignData done [21:30:21]FM_MakeSignedData done [21:30:21]CreateOFDProtocolMessage [21:30:21]wFMCommunicate request_size=4 [21:30:21]MH_SAM_APDU [21:30:21]CAPDU: 80 11 00 00 [21:30:21]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [21:30:21]Write i2c OK [21:30:21]MH_I2C_Read... [21:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:21]Read from MH i2c: E2 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 17 00 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 37 [21:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:30:21]wFMCommunicate OK [21:30:21]CreateOFDProtocolMessage done [21:30:21]OFDSenderStorePacket 44743 [21:30:21]StoreOFDPacket docnum=44743 [21:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3F 01 00 00 CF E3 37 01 10 91 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6C B8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C7 AE 00 00 35 04 06 00 DF D7 D7 39 7B E4 81 34 4F A9 58 46 BB 5B [21:30:21]CheckFolder [21:30:21]dirname=/storage/ofd_packets [21:30:21]CheckFolder done [21:30:21]ProducePacketName [21:30:21]name=ofd_packets/00044743 [21:30:21]NVStorageSaveData ofd_packets/00044743 [21:30:21]File name is /storage/ofd_packets/00044743 [21:30:21]Write 349 bytes [21:30:21]NVStorageSaveData done [21:30:21]OFDSenderStorePacket done [21:30:21]KKMCreateOFDPacket done [21:30:21]NVStorageSaveData kkm_last_timestamp [21:30:21]File name is /storage/kkm_last_timestamp [21:30:21]Write 4 bytes [21:30:21]NVStorageSaveData done [21:30:21]ExternCall_PrintAddStr [21:30:21]wPrintStart [21:30:21]Write to MH i2c: 01 00 00 67 03 6A [21:30:21]Write i2c OK [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: 01 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: 01 07 00 [21:30:21]MH_I2C_Read... [21:30:21]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [21:30:21]RasterBufferAndPrint [21:30:21]line Счет N : (3)14635 [21:30:21]line ИНН: 02508201610067 [21:30:21]line Контрольно-Кассовый Чек [21:30:21]line ПРОДАЖА [21:30:21]line Товар: 4700003010070 [21:30:21]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [21:30:21]line 1.000 * 95.00 [21:30:21]line = 95.00 [21:30:21]line НДС 12% НСП 1% [21:30:21]line > о реализуемом товаре [21:30:21]line ИТОГО: 95.00 [21:30:21]line НСП 1% : 0.84 [21:30:21]line НДС 12% : 10.09 [21:30:21]line Наличными: 95.00 [21:30:21]line Безнал.: 0.00 [21:30:21]line Место: АЗС № 128 "Партнер Нефть" [21:30:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:30:21]line СНО: Общий режим [21:30:21]line Чек 114 28.07.2024 21:30 [21:30:21]line Смена: 430 ФФД: 1.0 [21:30:21]line ЗНМ: 0300000045 [21:30:21]line РНМ: 0000000000092655 [21:30:21]line Версия ККМ: 001 [21:30:21]line ФМ: 0000000000874941 [21:30:21]line ФД: 44743 [21:30:21]line ФПД: 246118121831396 [21:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T213020&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44743&fm=246118121831396&tin=02508201610067®Number=0000000000092655&sum=9500 [21:30:21]line 0 [21:30:21]OFD Sender: Processing packet 44743 [packets to send 7, broken 6] [21:30:21]ProducePacketName [21:30:21]name=ofd_packets/00044743 [21:30:21]OFD Sender: To server: pG, [21:30:21]CommunicateWithHost lk.salyk.kg:30040 [21:30:21]ConnectInit lk.salyk.kg [21:30:21]written 0, free lines is 4095 [21:30:21]Connected sock=10 [21:30:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3F 01 00 00 CF E3 37 01 10 91 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6C B8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C7 AE 00 00 35 04 06 00 DF D7 D7 39 7B E4 81 34 4F A9 58 46 BB 5B [21:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 EA 50 47 00 04 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C7 AE 00 00 F4 03 04 00 7D 64 A6 66 B6 04 01 00 00 4C 78 3C AD 63 F7 87 19 [21:30:22]CommunicateWithHost err = 0 [21:30:22]CheckOFDResponse [21:30:22]1017 (14) - 77093643461234 [21:30:22]1041 (16) - 0000000000874941 [21:30:22]1040 (4) - 44743 [21:30:22]1012 (4) - 28.07.2024 15:32 [21:30:22]1206 (1) - 0 [21:30:22]OFD Sender: Remove packet 44743 [21:30:22]ProducePacketName [21:30:22]name=ofd_packets/00044743 [21:30:22]NVStorageDeleteData [21:30:22]Write to MH i2c: 01 00 00 90 03 93 [21:30:22]Write i2c OK [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: 01 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: 01 07 00 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 DD 0C 83 [21:30:22]RasterBufferAndPrint [21:30:22]line [21:30:22]line [21:30:22]line [21:30:22]line [21:30:22]line [21:30:22]written 0, free lines is 3299 [21:30:22]process_action close_receipt done [21:30:22]requested_data is exist [21:30:22]produce_requested_data [21:30:22]requested_item fm.sn is exist - process it [21:30:22]wFMCommunicate request_size=4 [21:30:22]MH_SAM_APDU [21:30:22]CAPDU: 80 11 00 00 [21:30:22]Write to MH i2c: E2 08 00 97 03 80 11 00 00 00 00 00 00 14 [21:30:22]Write i2c OK [21:30:22]MH_I2C_Read... [21:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:22]Read from MH i2c: E2 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 17 00 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 17 00 97 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 68 [21:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:30:22]wFMCommunicate OK [21:30:22]requested_item fd.num is exist - process it [21:30:22]SAM_PROTO_GetFieldsCounters [21:30:22]wFMCommunicate request_size=4 [21:30:22]MH_SAM_APDU [21:30:22]CAPDU: 80 13 00 00 [21:30:22]Write to MH i2c: E2 08 00 98 03 80 13 00 00 00 00 00 00 17 [21:30:22]Write i2c OK [21:30:22]MH_I2C_Read... [21:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:22]Read from MH i2c: E2 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 62 00 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 62 00 98 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [21:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:22]wFMCommunicate OK [21:30:22]SAM_PROTO_GetFieldsCounters done [21:30:22]requested_item shift.num is exist - process it [21:30:22]requested_item shift.opened is exist - process it [21:30:22]req_shift_opened [21:30:22]FM_GetShiftState [21:30:22]SAM_PROTO_GetShiftState [21:30:22]wFMCommunicate request_size=4 [21:30:22]MH_SAM_APDU [21:30:22]CAPDU: 80 13 01 00 [21:30:22]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [21:30:22]Write i2c OK [21:30:22]MH_I2C_Read... [21:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:22]Read from MH i2c: E2 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 0E 00 [21:30:22]MH_I2C_Read... [21:30:22]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B2 [21:30:22]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:30:22]wFMCommunicate OK [21:30:22]SAM_PROTO_GetShiftState done [21:30:22]FM_GetShiftState done [21:30:22]req_shift_opened done [21:30:22]requested_item shift.open_date is exist - process it [21:30:22]req_shift_open_date [21:30:22]req_shift_open_date done [21:30:22]produce_requested_data done [21:30:22]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44743,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:30:22]process_action_free close_receipt [21:30:22]json_value_free [21:30:22]json_value_free done [21:30:22]process_json_proto returns [21:30:22]Send response to host [21:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44743,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:30:22]free response buf [21:30:22]execute_script done [21:30:22]execute_script returns [21:30:22]free content buf [21:30:22]Sock 9.Close socket [21:30:22]Sock 9.Thread stoped [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:25]int [21:31:25]Write to MH i2c: 01 00 00 9A 03 9D [21:31:25]*** FLAG_PRN_KEY set [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 9A 03 00 08 00 00 00 FF 0F BA [21:31:25]state=0 [21:31:25]Key pressed [21:31:25]Feed [21:31:25]Write to MH i2c: D8 00 00 9B 03 75 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: D8 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: D8 01 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: D8 01 00 9B 03 00 76 [21:31:25]int [21:31:25]Write to MH i2c: 01 00 00 9C 03 9F [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 9C 03 00 48 00 00 00 3D 00 2B [21:31:25]state=2 [21:31:25]Key pressed [21:31:25]int [21:31:25]Write to MH i2c: 01 00 00 9D 03 A0 [21:31:25]*** FLAG_PRN_KEY reset [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 F8 0F AE [21:31:25]state=2 [21:31:25]Stop feed [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:48:32]ConnectInit Can't connect to host [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:09]accept exits with 7 [21:50:09]New connection [21:50:09]New thread 3066625380 created [21:50:09]Thread 3066482020 joined [21:50:09]Waiting for new connection... [21:50:09] Sock 7.Parse request [21:50:09]Sock 7.Check first char [21:50:09]Sock 7.First char is OK [21:50:09]request: POST /json_proto HTTP/1.0 [21:50:09]Method: POST [21:50:09]URL: /json_proto [21:50:09]Method is POST - this is cgi request [21:50:09]url: /json_proto [21:50:09]query_string will be loaded in cgi processing [21:50:09]execute_cgi json_proto POST (null) [21:50:09]execute_cgi path=json_proto method=POST [21:50:09]POST find Content-Length [21:50:09]Host: 172.17.45.196:8080 [21:50:09]Content-Length: 638 [21:50:09]Content-Type: application/json [21:50:09] [21:50:09]POST finish read [21:50:09]Found Content-Length = 638 [21:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14636", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:09]execute_script... [21:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14636", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:09]POST & json_proto [21:50:09]process_json_proto [21:50:09]json parsed OK: [21:50:09]protocol is kg_v1.0 [21:50:09]action value=close_receipt [21:50:09]process_action close_receipt [21:50:09]cmd_close_receipt [21:50:09]MH_GetDate [21:50:09]Write to MH i2c: F0 00 00 9E 03 90 [21:50:09]Write i2c OK [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: F0 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: F0 09 00 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: F0 09 00 9E 03 00 12 BD A6 66 BB 03 A5 66 3D [21:50:09]GetLastDocTimeStamp 1722202220 [21:50:09]current date 1722203410 [21:50:09]FM_GetShiftState [21:50:09]SAM_PROTO_GetShiftState [21:50:09]wFMCommunicate request_size=4 [21:50:09]MH_SAM_APDU [21:50:09]CAPDU: 80 13 01 00 [21:50:09]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [21:50:09]Write i2c OK [21:50:09]MH_I2C_Read... [21:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:09]Read from MH i2c: E2 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: E2 0E 00 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B8 [21:50:09]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:50:09]wFMCommunicate OK [21:50:09]SAM_PROTO_GetShiftState done [21:50:09]FM_GetShiftState done [21:50:09]opened in 1722126323 [21:50:09]opened+sec_in_day 1722212723 [21:50:09]quantity*price = 4000 [21:50:09]sum+1 = 4001 [21:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 115 28.07.2024 21:50 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44744 ФПД: 105209789742584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215010&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44744&fm=105209789742584&tin=02508201610067®Number=0000000000092655&sum=4000 0 [21:50:10]StoreToDocumentArchive [21:50:10]shift 430 fd 44744 [21:50:10]save to /storage/0430/doc_00044744 [21:50:10]save last doc name /storage/0430/doc_00044744 to /storage/kkm_last_doc_name [21:50:10]save OK [21:50:10]Clear old archive folders... [21:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:50:10]tlvbuf is 01799C60 [21:50:10]SAM_PROTO_ClearQueue [21:50:10]wFMCommunicate request_size=4 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 09 00 00 [21:50:10]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:10]Read from MH i2c: E2 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 03 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [21:50:10]RAPDU: 90 00 [21:50:10]wFMCommunicate OK [21:50:10]SAM_PROTO_ClearQueue done [21:50:10]KKMCreateOFDPacket [21:50:10]OFDProtocolAddRootSTLVToBuf [21:50:10]FM_MakeSignedData [21:50:10]FM_MakeSignedData [21:50:10]SAM_PROTO_SignData [21:50:10]wFMCommunicate request_size=4 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 0D 01 02 [21:50:10]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:10]Read from MH i2c: E2 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 03 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [21:50:10]RAPDU: 90 00 [21:50:10]wFMCommunicate OK [21:50:10]wFMCommunicate request_size=255 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [21:50:10]Write to MH i2c: E2 02 01 AE 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 59 [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 03 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [21:50:11]RAPDU: 90 00 [21:50:11]wFMCommunicate OK [21:50:11]wFMCommunicate request_size=33 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C8 AE 00 00 35 04 06 00 5F B0 10 24 FD F8 [21:50:11]Write to MH i2c: E2 24 00 AF 03 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C8 AE 00 00 35 04 06 00 5F B0 10 24 FD F8 00 00 6A [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 03 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [21:50:11]RAPDU: 90 00 [21:50:11]wFMCommunicate OK [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 0D 03 02 [21:50:11]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 0B 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 0B 00 B0 03 00 A5 53 1B 23 40 3E EC AA 90 00 79 [21:50:11]RAPDU: A5 53 1B 23 40 3E EC AA 90 00 [21:50:11]wFMCommunicate OK [21:50:11]SAM_PROTO_SignData done [21:50:11]FM_MakeSignedData done [21:50:11]CreateOFDProtocolMessage [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 11 00 00 [21:50:11]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 82 [21:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:50:11]wFMCommunicate OK [21:50:11]CreateOFDProtocolMessage done [21:50:11]OFDSenderStorePacket 44744 [21:50:11]StoreOFDPacket docnum=44744 [21:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 CE 1A 1E 01 84 C2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C8 AE 00 00 35 04 06 00 5F B0 10 24 FD F8 A5 53 1B 23 40 3E EC AA [21:50:11]CheckFolder [21:50:11]dirname=/storage/ofd_packets [21:50:11]CheckFolder done [21:50:11]ProducePacketName [21:50:11]name=ofd_packets/00044744 [21:50:11]NVStorageSaveData ofd_packets/00044744 [21:50:11]File name is /storage/ofd_packets/00044744 [21:50:11]Write 324 bytes [21:50:11]NVStorageSaveData done [21:50:11]OFDSenderStorePacket done [21:50:11]KKMCreateOFDPacket done [21:50:11]NVStorageSaveData kkm_last_timestamp [21:50:11]File name is /storage/kkm_last_timestamp [21:50:11]Write 4 bytes [21:50:11]NVStorageSaveData done [21:50:11]ExternCall_PrintAddStr [21:50:11]wPrintStart [21:50:11]Write to MH i2c: 01 00 00 B2 03 B5 [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 07 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [21:50:11]RasterBufferAndPrint [21:50:11]line Счет N : (3)14636 [21:50:11]line ИНН: 02508201610067 [21:50:11]line Контрольно-Кассовый Чек [21:50:11]line ПРОДАЖА [21:50:11]line Товар: 4700000160044 [21:50:11]line Вода Ыссык Ата 0,5л [21:50:11]line 1.000 * 40.00 [21:50:11]line = 40.00 [21:50:11]line НДС 12% НСП 1% [21:50:11]line > о реализуемом товаре [21:50:11]line ИТОГО: 40.00 [21:50:11]line НСП 1% : 0.35 [21:50:11]line НДС 12% : 4.25 [21:50:11]line Наличными: 40.00 [21:50:11]line Безнал.: 0.00 [21:50:11]line Место: АЗС № 128 "Партнер Нефть" [21:50:11]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:50:11]line СНО: Общий режим [21:50:11]line Чек 115 28.07.2024 21:50 [21:50:11]line Смена: 430 ФФД: 1.0 [21:50:11]line ЗНМ: 0300000045 [21:50:11]line РНМ: 0000000000092655 [21:50:11]line Версия ККМ: 001 [21:50:11]line ФМ: 0000000000874941 [21:50:11]line ФД: 44744 [21:50:11]line ФПД: 105209789742584 [21:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215010&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44744&fm=105209789742584&tin=02508201610067®Number=0000000000092655&sum=4000 [21:50:11]line 0 [21:50:11]written 0, free lines is 4095 [21:50:11]OFD Sender: Processing packet 44744 [packets to send 7, broken 6] [21:50:11]ProducePacketName [21:50:11]name=ofd_packets/00044744 [21:50:11]OFD Sender: To server: pG, [21:50:11]CommunicateWithHost lk.salyk.kg:30040 [21:50:11]ConnectInit lk.salyk.kg [21:50:11]Connected sock=10 [21:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 CE 1A 1E 01 84 C2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 12 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C8 AE 00 00 35 04 06 00 5F B0 10 24 FD F8 A5 53 1B 23 40 3E EC AA [21:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 5E A9 47 00 42 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C8 AE 00 00 F4 03 04 00 23 69 A6 66 B6 04 01 00 00 50 88 DC E0 99 CD FF 7F [21:50:11]CommunicateWithHost err = 0 [21:50:11]CheckOFDResponse [21:50:11]1017 (14) - 77093643461234 [21:50:11]1041 (16) - 0000000000874941 [21:50:11]1040 (4) - 44744 [21:50:11]1012 (4) - 28.07.2024 15:52 [21:50:11]1206 (1) - 0 [21:50:11]OFD Sender: Remove packet 44744 [21:50:11]ProducePacketName [21:50:11]name=ofd_packets/00044744 [21:50:11]NVStorageDeleteData [21:50:11]Write to MH i2c: 01 00 00 DA 03 DD [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 07 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FE 0C EE [21:50:11]RasterBufferAndPrint [21:50:11]line [21:50:11]line [21:50:11]line [21:50:11]line [21:50:11]line [21:50:11]written 0, free lines is 3332 [21:50:11]process_action close_receipt done [21:50:11]requested_data is exist [21:50:11]produce_requested_data [21:50:11]requested_item fm.sn is exist - process it [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 11 00 00 [21:50:11]Write to MH i2c: E2 08 00 E1 03 80 11 00 00 00 00 00 00 5E [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 E1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B2 [21:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:50:11]wFMCommunicate OK [21:50:11]requested_item fd.num is exist - process it [21:50:11]SAM_PROTO_GetFieldsCounters [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 13 00 00 [21:50:11]Write to MH i2c: E2 08 00 E2 03 80 13 00 00 00 00 00 00 61 [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:12]Read from MH i2c: E2 [21:50:12]MH_I2C_Read... [21:50:12]Read from MH i2c: E2 62 00 [21:50:12]MH_I2C_Read... [21:50:12]Read from MH i2c: E2 62 00 E2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [21:50:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:12]wFMCommunicate OK [21:50:12]SAM_PROTO_GetFieldsCounters done [21:50:12]requested_item shift.num is exist - process it [21:50:12]requested_item shift.opened is exist - process it [21:50:12]req_shift_opened [21:50:12]FM_GetShiftState [21:50:12]SAM_PROTO_GetShiftState [21:50:12]wFMCommunicate request_size=4 [21:50:12]MH_SAM_APDU [21:50:12]CAPDU: 80 13 01 00 [21:50:12]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [21:50:12]Write i2c OK [21:50:12]MH_I2C_Read... [21:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:12]Read from MH i2c: E2 [21:50:12]MH_I2C_Read... [21:50:12]Read from MH i2c: E2 0E 00 [21:50:12]MH_I2C_Read... [21:50:12]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 FC [21:50:12]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:50:12]wFMCommunicate OK [21:50:12]SAM_PROTO_GetShiftState done [21:50:12]FM_GetShiftState done [21:50:12]req_shift_opened done [21:50:12]requested_item shift.open_date is exist - process it [21:50:12]req_shift_open_date [21:50:12]req_shift_open_date done [21:50:12]produce_requested_data done [21:50:12]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44744,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:50:12]process_action_free close_receipt [21:50:12]json_value_free [21:50:12]json_value_free done [21:50:12]process_json_proto returns [21:50:12]Send response to host [21:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44744,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:50:12]free response buf [21:50:12]execute_script done [21:50:12]execute_script returns [21:50:12]free content buf [21:50:12]Sock 7.Close socket [21:50:12]Sock 7.Thread stoped [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:31]accept exits with 9 [21:52:31]New connection [21:52:31]New thread 3066482020 created [21:52:31]Thread 3066625380 joined [21:52:31]Waiting for new connection... [21:52:31] Sock 9.Parse request [21:52:31]Sock 9.Check first char [21:52:31]Sock 9.First char is OK [21:52:31]request: POST /json_proto HTTP/1.0 [21:52:31]Method: POST [21:52:31]URL: /json_proto [21:52:31]Method is POST - this is cgi request [21:52:31]url: /json_proto [21:52:31]query_string will be loaded in cgi processing [21:52:31]execute_cgi json_proto POST (null) [21:52:31]execute_cgi path=json_proto method=POST [21:52:31]POST find Content-Length [21:52:31]Host: 172.17.45.196:8080 [21:52:31]Content-Length: 1199 [21:52:31]Content-Type: application/json [21:52:31] [21:52:31]POST finish read [21:52:31]Found Content-Length = 1199 [21:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14637", "tax_sys" : 0, "items" : [ { "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 10.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:31]execute_script... [21:52:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14637", "tax_sys" : 0, "items" : [ { "code": "4600682009450", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0441\u0442", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 10.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 530.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:31]POST & json_proto [21:52:31]process_json_proto [21:52:31]json parsed OK: [21:52:31]protocol is kg_v1.0 [21:52:31]action value=close_receipt [21:52:31]process_action close_receipt [21:52:31]cmd_close_receipt [21:52:31]MH_GetDate [21:52:31]Write to MH i2c: F0 00 00 E4 03 D6 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: F0 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: F0 09 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: F0 09 00 E4 03 00 9F BD A6 66 BB 03 A5 66 10 [21:52:31]GetLastDocTimeStamp 1722203410 [21:52:31]current date 1722203551 [21:52:31]FM_GetShiftState [21:52:31]SAM_PROTO_GetShiftState [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 01 00 [21:52:31]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 FE [21:52:31]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_GetShiftState done [21:52:31]FM_GetShiftState done [21:52:31]opened in 1722126323 [21:52:31]opened+sec_in_day 1722212723 [21:52:31]quantity*price = 36000 [21:52:31]sum+1 = 36001 [21:52:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 10.000 * 4.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 530.00 НСП 1% : 4.69 НДС 12% : 56.28 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 116 28.07.2024 21:52 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44745 ФПД: 33550231501575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215232&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44745&fm=33550231501575&tin=02508201610067®Number=0000000000092655&sum=53000 0 [21:52:32]StoreToDocumentArchive [21:52:32]shift 430 fd 44745 [21:52:32]save to /storage/0430/doc_00044745 [21:52:32]save last doc name /storage/0430/doc_00044745 to /storage/kkm_last_doc_name [21:52:32]save OK [21:52:32]Clear old archive folders... [21:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=510 [21:52:32]tlvbuf is 017F29E0 [21:52:32]SAM_PROTO_ClearQueue [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 09 00 00 [21:52:32]Write to MH i2c: E2 08 00 F2 03 80 09 00 00 00 00 00 00 67 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [21:52:32]RAPDU: 90 00 [21:52:32]wFMCommunicate OK [21:52:32]SAM_PROTO_ClearQueue done [21:52:32]KKMCreateOFDPacket [21:52:32]OFDProtocolAddRootSTLVToBuf [21:52:32]FM_MakeSignedData [21:52:32]FM_MakeSignedData [21:52:32]SAM_PROTO_SignData [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 0D 01 02 [21:52:32]Write to MH i2c: E2 08 00 F3 03 80 0D 01 02 00 00 00 00 6F [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [21:52:32]RAPDU: 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=255 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 [21:52:32]Write to MH i2c: E2 02 01 F4 03 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 00 00 32 [21:52:32]OFD Sender: No OFD packet to send [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [21:52:32]RAPDU: 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=255 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 0D 02 02 FA 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 [21:52:32]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 00 00 2A [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 03 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [21:52:33]RAPDU: 90 00 [21:52:33]wFMCommunicate OK [21:52:33]wFMCommunicate request_size=19 [21:52:33]MH_SAM_APDU [21:52:33]CAPDU: 80 0D 02 02 0E C9 AE 00 00 35 04 06 00 1E 83 85 A1 7B 07 [21:52:33]Write to MH i2c: E2 16 00 F6 03 80 0D 02 02 0E 00 C9 AE 00 00 35 04 06 00 1E 83 85 A1 7B 07 00 00 8E [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 03 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [21:52:33]RAPDU: 90 00 [21:52:33]wFMCommunicate OK [21:52:33]wFMCommunicate request_size=4 [21:52:33]MH_SAM_APDU [21:52:33]CAPDU: 80 0D 03 02 [21:52:33]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 0B 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 0B 00 F7 03 00 BA 79 BA EE 35 68 4C B0 90 00 EA [21:52:33]RAPDU: BA 79 BA EE 35 68 4C B0 90 00 [21:52:33]wFMCommunicate OK [21:52:33]SAM_PROTO_SignData done [21:52:33]FM_MakeSignedData done [21:52:33]CreateOFDProtocolMessage [21:52:33]wFMCommunicate request_size=4 [21:52:33]MH_SAM_APDU [21:52:33]CAPDU: 80 11 00 00 [21:52:33]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 17 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C9 [21:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:52:33]wFMCommunicate OK [21:52:33]CreateOFDProtocolMessage done [21:52:33]OFDSenderStorePacket 44745 [21:52:33]StoreOFDPacket docnum=44745 [21:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 12 02 00 00 42 6D 0A 02 61 36 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C9 AE 00 00 35 04 06 00 1E 83 85 A1 7B 07 BA 79 BA EE 35 68 4C B0 [21:52:33]CheckFolder [21:52:33]dirname=/storage/ofd_packets [21:52:33]CheckFolder done [21:52:33]ProducePacketName [21:52:33]name=ofd_packets/00044745 [21:52:33]NVStorageSaveData ofd_packets/00044745 [21:52:33]File name is /storage/ofd_packets/00044745 [21:52:33]Write 560 bytes [21:52:33]NVStorageSaveData done [21:52:33]OFDSenderStorePacket done [21:52:33]KKMCreateOFDPacket done [21:52:33]NVStorageSaveData kkm_last_timestamp [21:52:33]File name is /storage/kkm_last_timestamp [21:52:33]Write 4 bytes [21:52:33]NVStorageSaveData done [21:52:33]ExternCall_PrintAddStr [21:52:33]wPrintStart [21:52:33]Write to MH i2c: 01 00 00 F9 03 FC [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 07 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [21:52:33]RasterBufferAndPrint [21:52:33]line Счет N : (3)14637 [21:52:33]line ИНН: 02508201610067 [21:52:33]line Контрольно-Кассовый Чек [21:52:33]line ПРОДАЖА [21:52:33]line Товар: 4600682009450 [21:52:33]line Пиво Балтика 9 креп 0,5л ст [21:52:33]line 3.000 * 120.00 [21:52:33]line = 360.00 [21:52:33]line НДС 12% НСП 1% [21:52:33]line > о реализуемом товаре [21:52:33]line Товар: 48745291 [21:52:33]line Сигареты Parliament SOHO NYC COMPACT BLU [21:52:33]line 1.000 * 130.00 [21:52:33]line = 130.00 [21:52:33]line НДС 12% НСП 1% [21:52:33]line > о реализуемом товаре [21:52:33]line Товар: 2000031750019 [21:52:33]line Пакет Партнер Нефть [21:52:33]line 10.000 * 4.00 [21:52:33]line = 40.00 [21:52:33]line НДС 12% НСП 1% [21:52:33]line > о реализуемом товаре [21:52:33]line ИТОГО: 530.00 [21:52:33]line НСП 1% : 4.69 [21:52:33]line НДС 12% : 56.28 [21:52:33]line Наличными: 530.00 [21:52:33]line Безнал.: 0.00 [21:52:33]line Место: АЗС № 128 "Партнер Нефть" [21:52:33]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [21:52:33]line СНО: Общий режим [21:52:33]line Чек 116 28.07.2024 21:52 [21:52:33]line Смена: 430 ФФД: 1.0 [21:52:33]line ЗНМ: 0300000045 [21:52:33]line РНМ: 0000000000092655 [21:52:33]line Версия ККМ: 001 [21:52:33]line ФМ: 0000000000874941 [21:52:33]line ФД: 44745 [21:52:33]line ФПД: 33550231501575 [21:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T215232&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44745&fm=33550231501575&tin=02508201610067®Number=0000000000092655&sum=53000 [21:52:33]line 0 [21:52:33]OFD Sender: Processing packet 44745 [packets to send 7, broken 6] [21:52:33]ProducePacketName [21:52:33]name=ofd_packets/00044745 [21:52:33]OFD Sender: To server: pG, [21:52:33]CommunicateWithHost lk.salyk.kg:30040 [21:52:33]ConnectInit lk.salyk.kg [21:52:33]written 0, free lines is 4095 [21:52:33]Connected sock=10 [21:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 12 02 00 00 42 6D 0A 02 61 36 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 39 34 35 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A0 BD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C9 AE 00 00 35 04 06 00 1E 83 85 A1 7B 07 BA 79 BA EE 35 68 4C B0 [21:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 63 32 47 00 0C 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 C9 AE 00 00 F4 03 04 00 B2 69 A6 66 B6 04 01 00 00 90 A9 23 F7 1C 37 6E E4 [21:52:34]CommunicateWithHost err = 0 [21:52:34]CheckOFDResponse [21:52:34]1017 (14) - 77093643461234 [21:52:34]1041 (16) - 0000000000874941 [21:52:34]1040 (4) - 44745 [21:52:34]1012 (4) - 28.07.2024 15:54 [21:52:34]1206 (1) - 0 [21:52:34]OFD Sender: Remove packet 44745 [21:52:34]ProducePacketName [21:52:34]name=ofd_packets/00044745 [21:52:34]NVStorageDeleteData [21:52:34]Write to MH i2c: 01 00 00 2E 04 32 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: 01 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: 01 07 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 46 0C 8B [21:52:34]RasterBufferAndPrint [21:52:34]line [21:52:34]line [21:52:34]line [21:52:34]line [21:52:34]line [21:52:34]written 0, free lines is 3151 [21:52:34]process_action close_receipt done [21:52:34]requested_data is exist [21:52:34]produce_requested_data [21:52:34]requested_item fm.sn is exist - process it [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 11 00 00 [21:52:34]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 17 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 07 [21:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [21:52:34]wFMCommunicate OK [21:52:34]requested_item fd.num is exist - process it [21:52:34]SAM_PROTO_GetFieldsCounters [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 13 00 00 [21:52:34]Write to MH i2c: E2 08 00 36 04 80 13 00 00 00 00 00 00 B6 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 62 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 62 00 36 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:52:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 C9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetFieldsCounters done [21:52:34]requested_item shift.num is exist - process it [21:52:34]requested_item shift.opened is exist - process it [21:52:34]req_shift_opened [21:52:34]FM_GetShiftState [21:52:34]SAM_PROTO_GetShiftState [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 13 01 00 [21:52:34]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 51 [21:52:34]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetShiftState done [21:52:34]FM_GetShiftState done [21:52:34]req_shift_opened done [21:52:34]requested_item shift.open_date is exist - process it [21:52:34]req_shift_open_date [21:52:34]req_shift_open_date done [21:52:34]produce_requested_data done [21:52:34]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44745,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [21:52:34]process_action_free close_receipt [21:52:34]json_value_free [21:52:34]json_value_free done [21:52:34]process_json_proto returns [21:52:34]Send response to host [21:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44745,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [21:52:34]free response buf [21:52:34]execute_script done [21:52:34]execute_script returns [21:52:34]free content buf [21:52:34]Sock 9.Close socket [21:52:34]Sock 9.Thread stoped [21:52:34]OFD Sender: No OFD packet to send [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 38 04 3C [21:52:37]*** FLAG_PRN_KEY set [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 38 04 00 08 00 00 00 FF 0F 59 [21:52:37]state=0 [21:52:37]Key pressed [21:52:37]Feed [21:52:37]Write to MH i2c: D8 00 00 39 04 14 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 39 04 00 15 [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 3A 04 3E [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 3A 04 00 48 00 00 00 3C 00 C9 [21:52:37]state=2 [21:52:37]Key pressed [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 3B 04 3F [21:52:37]*** FLAG_PRN_KEY reset [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [21:52:37]state=2 [21:52:37]Stop feed [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 3C 04 40 [21:52:37]*** FLAG_PRN_KEY set [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 3C 04 00 08 00 00 00 FF 0F 5D [21:52:37]state=0 [21:52:37]Key pressed [21:52:37]Feed [21:52:37]Write to MH i2c: D8 00 00 3D 04 18 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 3D 04 00 19 [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 3E 04 42 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 3E 04 00 48 00 00 00 3C 00 CD [21:52:37]state=2 [21:52:37]Key pressed [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 3F 04 43 [21:52:37]*** FLAG_PRN_KEY reset [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [21:52:37]state=2 [21:52:37]Stop feed [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 40 04 44 [21:52:37]*** FLAG_PRN_KEY set [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 40 04 00 08 00 00 00 FF 0F 61 [21:52:37]state=0 [21:52:37]Key pressed [21:52:37]Feed [21:52:37]Write to MH i2c: D8 00 00 41 04 1C [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: D8 01 00 41 04 00 1D [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 42 04 46 [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 42 04 00 48 00 00 00 3C 00 D1 [21:52:37]state=2 [21:52:37]Key pressed [21:52:37]int [21:52:37]Write to MH i2c: 01 00 00 43 04 47 [21:52:37]*** FLAG_PRN_KEY reset [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FD 0F 5A [21:52:37]state=2 [21:52:37]Stop feed [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]accept exits with 7 [21:59:59]New connection [21:59:59]New thread 3066625380 created [21:59:59]Thread 3066482020 joined [21:59:59]Waiting for new connection... [21:59:59] Sock 7.Parse request [21:59:59]Sock 7.Check first char [21:59:59]Sock 7.First char is OK [21:59:59]request: POST /json_proto HTTP/1.0 [21:59:59]Method: POST [21:59:59]URL: /json_proto [21:59:59]Method is POST - this is cgi request [21:59:59]url: /json_proto [21:59:59]query_string will be loaded in cgi processing [21:59:59]execute_cgi json_proto POST (null) [21:59:59]execute_cgi path=json_proto method=POST [21:59:59]POST find Content-Length [21:59:59]Host: 172.17.45.196:8080 [21:59:59]Content-Length: 697 [21:59:59]Content-Type: application/json [21:59:59] [21:59:59]POST finish read [21:59:59]Found Content-Length = 697 [21:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14638", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:59]execute_script... [21:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14638", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:59]POST & json_proto [21:59:59]process_json_proto [21:59:59]json parsed OK: [21:59:59]protocol is kg_v1.0 [21:59:59]action value=close_receipt [21:59:59]process_action close_receipt [21:59:59]cmd_close_receipt [21:59:59]MH_GetDate [21:59:59]Write to MH i2c: F0 00 00 44 04 37 [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: F0 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: F0 09 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: F0 09 00 44 04 00 60 BF A6 66 BB 03 A5 66 34 [21:59:59]GetLastDocTimeStamp 1722203552 [21:59:59]current date 1722204000 [21:59:59]FM_GetShiftState [21:59:59]SAM_PROTO_GetShiftState [21:59:59]wFMCommunicate request_size=4 [21:59:59]MH_SAM_APDU [21:59:59]CAPDU: 80 13 01 00 [21:59:59]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:59]Read from MH i2c: E2 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 0E 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5F [21:59:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [21:59:59]wFMCommunicate OK [21:59:59]SAM_PROTO_GetShiftState done [21:59:59]FM_GetShiftState done [21:59:59]opened in 1722126323 [21:59:59]opened+sec_in_day 1722212723 [21:59:59]quantity*price = 10000 [21:59:59]sum+1 = 10001 [21:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 117 28.07.2024 22:00 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44746 ФПД: 250699796403840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220000&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44746&fm=250699796403840&tin=02508201610067®Number=0000000000092655&sum=10000 0 [22:00:00]StoreToDocumentArchive [22:00:00]shift 430 fd 44746 [22:00:00]save to /storage/0430/doc_00044746 [22:00:00]save last doc name /storage/0430/doc_00044746 to /storage/kkm_last_doc_name [22:00:00]save OK [22:00:00]Clear old archive folders... [22:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=298 [22:00:00]tlvbuf is 01795820 [22:00:00]SAM_PROTO_ClearQueue [22:00:00]wFMCommunicate request_size=4 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 09 00 00 [22:00:00]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:00]Read from MH i2c: E2 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 03 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [22:00:00]RAPDU: 90 00 [22:00:00]wFMCommunicate OK [22:00:00]SAM_PROTO_ClearQueue done [22:00:00]KKMCreateOFDPacket [22:00:00]OFDProtocolAddRootSTLVToBuf [22:00:00]FM_MakeSignedData [22:00:00]FM_MakeSignedData [22:00:00]SAM_PROTO_SignData [22:00:00]wFMCommunicate request_size=4 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 0D 01 02 [22:00:00]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:00]Read from MH i2c: E2 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 03 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [22:00:00]RAPDU: 90 00 [22:00:00]wFMCommunicate OK [22:00:00]wFMCommunicate request_size=255 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 60 BF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [22:00:00]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 60 BF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 88 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:01]Read from MH i2c: E2 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 03 00 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [22:00:01]RAPDU: 90 00 [22:00:01]wFMCommunicate OK [22:00:01]wFMCommunicate request_size=57 [22:00:01]MH_SAM_APDU [22:00:01]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CA AE 00 00 35 04 06 00 E4 02 98 4F 56 80 [22:00:01]Write to MH i2c: E2 3C 00 55 04 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CA AE 00 00 35 04 06 00 E4 02 98 4F 56 80 00 00 AE [22:00:01]Write i2c OK [22:00:01]MH_I2C_Read... [22:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:01]Read from MH i2c: E2 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 03 00 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [22:00:01]RAPDU: 90 00 [22:00:01]wFMCommunicate OK [22:00:01]wFMCommunicate request_size=4 [22:00:01]MH_SAM_APDU [22:00:01]CAPDU: 80 0D 03 02 [22:00:01]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [22:00:01]Write i2c OK [22:00:01]MH_I2C_Read... [22:00:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:01]Read from MH i2c: E2 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 0B 00 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 0B 00 56 04 00 94 E9 9A 42 C8 7B 23 62 90 00 F7 [22:00:01]RAPDU: 94 E9 9A 42 C8 7B 23 62 90 00 [22:00:01]wFMCommunicate OK [22:00:01]SAM_PROTO_SignData done [22:00:01]FM_MakeSignedData done [22:00:01]CreateOFDProtocolMessage [22:00:01]wFMCommunicate request_size=4 [22:00:01]MH_SAM_APDU [22:00:01]CAPDU: 80 11 00 00 [22:00:01]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [22:00:01]Write i2c OK [22:00:01]MH_I2C_Read... [22:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:01]Read from MH i2c: E2 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 17 00 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 29 [22:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:00:01]wFMCommunicate OK [22:00:01]CreateOFDProtocolMessage done [22:00:01]OFDSenderStorePacket 44746 [22:00:01]StoreOFDPacket docnum=44746 [22:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 C4 D6 36 01 94 2D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 60 BF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CA AE 00 00 35 04 06 00 E4 02 98 4F 56 80 94 E9 9A 42 C8 7B 23 62 [22:00:01]CheckFolder [22:00:01]dirname=/storage/ofd_packets [22:00:01]CheckFolder done [22:00:01]ProducePacketName [22:00:01]name=ofd_packets/00044746 [22:00:01]NVStorageSaveData ofd_packets/00044746 [22:00:01]File name is /storage/ofd_packets/00044746 [22:00:01]Write 348 bytes [22:00:01]NVStorageSaveData done [22:00:01]OFDSenderStorePacket done [22:00:01]KKMCreateOFDPacket done [22:00:01]NVStorageSaveData kkm_last_timestamp [22:00:01]File name is /storage/kkm_last_timestamp [22:00:01]Write 4 bytes [22:00:01]NVStorageSaveData done [22:00:01]ExternCall_PrintAddStr [22:00:01]wPrintStart [22:00:01]Write to MH i2c: 01 00 00 58 04 5C [22:00:01]Write i2c OK [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: 01 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: 01 07 00 [22:00:01]MH_I2C_Read... [22:00:01]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [22:00:01]RasterBufferAndPrint [22:00:01]line Счет N : (3)14638 [22:00:01]line ИНН: 02508201610067 [22:00:01]line Контрольно-Кассовый Чек [22:00:01]line ПРОДАЖА [22:00:01]line Товар: 4870001571528 [22:00:01]line Вода ASU пит н.газ персик ПЭТ 1,0 л [22:00:01]line 1.000 * 100.00 [22:00:01]line = 100.00 [22:00:01]line НДС 12% НСП 1% [22:00:01]line > о реализуемом товаре [22:00:01]line ИТОГО: 100.00 [22:00:01]line НСП 1% : 0.88 [22:00:01]line НДС 12% : 10.62 [22:00:01]line Наличными: 100.00 [22:00:01]line Безнал.: 0.00 [22:00:01]line Место: АЗС № 128 "Партнер Нефть" [22:00:01]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:00:01]line СНО: Общий режим [22:00:01]line Чек 117 28.07.2024 22:00 [22:00:01]line Смена: 430 ФФД: 1.0 [22:00:01]line ЗНМ: 0300000045 [22:00:01]line РНМ: 0000000000092655 [22:00:01]line Версия ККМ: 001 [22:00:01]line ФМ: 0000000000874941 [22:00:01]line ФД: 44746 [22:00:01]line ФПД: 250699796403840 [22:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T220000&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44746&fm=250699796403840&tin=02508201610067®Number=0000000000092655&sum=10000 [22:00:01]line 0 [22:00:01]OFD Sender: Processing packet 44746 [packets to send 7, broken 6] [22:00:01]ProducePacketName [22:00:01]name=ofd_packets/00044746 [22:00:01]OFD Sender: To server: pG, [22:00:01]CommunicateWithHost lk.salyk.kg:30040 [22:00:01]ConnectInit lk.salyk.kg [22:00:01]written 0, free lines is 4095 [22:00:01]Connected sock=10 [22:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 3E 01 00 00 C4 D6 36 01 94 2D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 60 BF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CA AE 00 00 35 04 06 00 E4 02 98 4F 56 80 94 E9 9A 42 C8 7B 23 62 [22:00:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 EB 76 47 00 A2 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CA AE 00 00 F4 03 04 00 72 6B A6 66 B6 04 01 00 00 AD 8C 00 23 15 F7 E7 D5 [22:00:02]CommunicateWithHost err = 0 [22:00:02]CheckOFDResponse [22:00:02]1017 (14) - 77093643461234 [22:00:02]1041 (16) - 0000000000874941 [22:00:02]1040 (4) - 44746 [22:00:02]1012 (4) - 28.07.2024 16:01 [22:00:02]1206 (1) - 0 [22:00:02]OFD Sender: Remove packet 44746 [22:00:02]ProducePacketName [22:00:02]name=ofd_packets/00044746 [22:00:02]NVStorageDeleteData [22:00:02]Write to MH i2c: 01 00 00 81 04 85 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: 01 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: 01 07 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 E1 0C 79 [22:00:02]RasterBufferAndPrint [22:00:02]line [22:00:02]line [22:00:02]line [22:00:02]line [22:00:02]line [22:00:02]written 0, free lines is 3303 [22:00:02]process_action close_receipt done [22:00:02]requested_data is exist [22:00:02]produce_requested_data [22:00:02]requested_item fm.sn is exist - process it [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 11 00 00 [22:00:02]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 17 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5A [22:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:00:02]wFMCommunicate OK [22:00:02]requested_item fd.num is exist - process it [22:00:02]SAM_PROTO_GetFieldsCounters [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 13 00 00 [22:00:02]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 62 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 62 00 89 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [22:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:02]wFMCommunicate OK [22:00:02]SAM_PROTO_GetFieldsCounters done [22:00:02]requested_item shift.num is exist - process it [22:00:02]requested_item shift.opened is exist - process it [22:00:02]req_shift_opened [22:00:02]FM_GetShiftState [22:00:02]SAM_PROTO_GetShiftState [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 13 01 00 [22:00:02]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 A4 [22:00:02]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:00:02]wFMCommunicate OK [22:00:02]SAM_PROTO_GetShiftState done [22:00:02]FM_GetShiftState done [22:00:02]req_shift_opened done [22:00:02]requested_item shift.open_date is exist - process it [22:00:02]req_shift_open_date [22:00:02]req_shift_open_date done [22:00:02]produce_requested_data done [22:00:02]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44746,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:00:02]process_action_free close_receipt [22:00:02]json_value_free [22:00:02]json_value_free done [22:00:02]process_json_proto returns [22:00:02]Send response to host [22:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44746,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:00:02]free response buf [22:00:02]execute_script done [22:00:02]execute_script returns [22:00:02]free content buf [22:00:02]Sock 7.Close socket [22:00:02]Sock 7.Thread stoped [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]int [22:05:57]Write to MH i2c: 01 00 00 8B 04 8F [22:05:57]*** FLAG_PRN_KEY set [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 8B 04 00 08 00 00 00 FF 0F AC [22:05:57]state=0 [22:05:57]Key pressed [22:05:57]Feed [22:05:57]Write to MH i2c: D8 00 00 8C 04 67 [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: D8 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: D8 01 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: D8 01 00 8C 04 00 68 [22:05:57]int [22:05:57]Write to MH i2c: 01 00 00 8D 04 91 [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 8D 04 00 48 00 00 00 3D 00 1D [22:05:57]state=2 [22:05:57]Key pressed [22:05:57]int [22:05:57]Write to MH i2c: 01 00 00 8E 04 92 [22:05:57]*** FLAG_PRN_KEY reset [22:05:57]Write i2c OK [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 [22:05:57]MH_I2C_Read... [22:05:57]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 F6 0F 9E [22:05:57]state=2 [22:05:57]Stop feed [22:05:57]OFD Sender: No OFD packet to send [22:05:58]int [22:05:58]Write to MH i2c: 01 00 00 8F 04 93 [22:05:58]*** FLAG_PRN_KEY set [22:05:58]Write i2c OK [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 8F 04 00 08 00 00 00 FF 0F B0 [22:05:58]state=0 [22:05:58]Key pressed [22:05:58]Feed [22:05:58]Write to MH i2c: D8 00 00 90 04 6B [22:05:58]Write i2c OK [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: D8 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: D8 01 00 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: D8 01 00 90 04 00 6C [22:05:58]int [22:05:58]Write to MH i2c: 01 00 00 91 04 95 [22:05:58]Write i2c OK [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 91 04 00 48 00 00 00 3C 00 20 [22:05:58]state=2 [22:05:58]Key pressed [22:05:58]int [22:05:58]Write to MH i2c: 01 00 00 92 04 96 [22:05:58]*** FLAG_PRN_KEY reset [22:05:58]Write i2c OK [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 [22:05:58]MH_I2C_Read... [22:05:58]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 F6 0F A2 [22:05:58]state=2 [22:05:58]Stop feed [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:56]accept exits with 9 [22:11:56]New connection [22:11:56]New thread 3066482020 created [22:11:56]Thread 3066625380 joined [22:11:56]Waiting for new connection... [22:11:56] Sock 9.Parse request [22:11:56]Sock 9.Check first char [22:11:56]Sock 9.First char is OK [22:11:56]request: POST /json_proto HTTP/1.0 [22:11:56]Method: POST [22:11:56]URL: /json_proto [22:11:56]Method is POST - this is cgi request [22:11:56]url: /json_proto [22:11:56]query_string will be loaded in cgi processing [22:11:56]execute_cgi json_proto POST (null) [22:11:56]execute_cgi path=json_proto method=POST [22:11:56]POST find Content-Length [22:11:56]Host: 172.17.45.196:8080 [22:11:56]Content-Length: 631 [22:11:56]Content-Type: application/json [22:11:56] [22:11:56]POST finish read [22:11:56]Found Content-Length = 631 [22:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14639", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:56]execute_script... [22:11:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14639", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:56]POST & json_proto [22:11:56]process_json_proto [22:11:56]json parsed OK: [22:11:56]protocol is kg_v1.0 [22:11:56]action value=close_receipt [22:11:56]process_action close_receipt [22:11:56]cmd_close_receipt [22:11:56]MH_GetDate [22:11:56]Write to MH i2c: F0 00 00 93 04 86 [22:11:56]Write i2c OK [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: F0 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: F0 09 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: F0 09 00 93 04 00 2D C2 A6 66 BB 03 A5 66 53 [22:11:56]GetLastDocTimeStamp 1722204000 [22:11:56]current date 1722204717 [22:11:56]FM_GetShiftState [22:11:56]SAM_PROTO_GetShiftState [22:11:56]wFMCommunicate request_size=4 [22:11:56]MH_SAM_APDU [22:11:56]CAPDU: 80 13 01 00 [22:11:56]Write to MH i2c: E2 08 00 94 04 80 13 01 00 00 00 00 00 15 [22:11:56]Write i2c OK [22:11:56]MH_I2C_Read... [22:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:56]Read from MH i2c: E2 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 0E 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 0E 00 94 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AE [22:11:56]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:11:56]wFMCommunicate OK [22:11:56]SAM_PROTO_GetShiftState done [22:11:56]FM_GetShiftState done [22:11:56]opened in 1722126323 [22:11:56]opened+sec_in_day 1722212723 [22:11:56]quantity*price = 6000 [22:11:56]sum+1 = 6001 [22:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 118 28.07.2024 22:11 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44747 ФПД: 241011728599010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T221157&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44747&fm=241011728599010&tin=02508201610067®Number=0000000000092655&sum=6000 0 [22:11:57]StoreToDocumentArchive [22:11:57]shift 430 fd 44747 [22:11:57]save to /storage/0430/doc_00044747 [22:11:57]save last doc name /storage/0430/doc_00044747 to /storage/kkm_last_doc_name [22:11:57]save OK [22:11:57]Clear old archive folders... [22:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:11:57]tlvbuf is 01798D80 [22:11:57]SAM_PROTO_ClearQueue [22:11:57]wFMCommunicate request_size=4 [22:11:57]MH_SAM_APDU [22:11:57]CAPDU: 80 09 00 00 [22:11:57]Write to MH i2c: E2 08 00 A1 04 80 09 00 00 00 00 00 00 17 [22:11:57]Write i2c OK [22:11:57]MH_I2C_Read... [22:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:57]Read from MH i2c: E2 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 03 00 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 03 00 A1 04 00 90 00 19 [22:11:57]RAPDU: 90 00 [22:11:57]wFMCommunicate OK [22:11:57]SAM_PROTO_ClearQueue done [22:11:57]KKMCreateOFDPacket [22:11:57]OFDProtocolAddRootSTLVToBuf [22:11:57]FM_MakeSignedData [22:11:57]FM_MakeSignedData [22:11:57]SAM_PROTO_SignData [22:11:57]wFMCommunicate request_size=4 [22:11:57]MH_SAM_APDU [22:11:57]CAPDU: 80 0D 01 02 [22:11:57]Write to MH i2c: E2 08 00 A2 04 80 0D 01 02 00 00 00 00 1F [22:11:57]Write i2c OK [22:11:57]MH_I2C_Read... [22:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:57]Read from MH i2c: E2 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 03 00 [22:11:57]MH_I2C_Read... [22:11:57]Read from MH i2c: E2 03 00 A2 04 00 90 00 1A [22:11:57]RAPDU: 90 00 [22:11:57]wFMCommunicate OK [22:11:57]wFMCommunicate request_size=255 [22:11:57]MH_SAM_APDU [22:11:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D C2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:11:57]Write to MH i2c: E2 02 01 A3 04 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D C2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 70 [22:11:57]Write i2c OK [22:11:57]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]wFMCommunicate request_size=30 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 31 10 04 04 00 CB AE 00 00 35 04 06 00 DB 32 EA 78 47 E2 [22:11:58]Write to MH i2c: E2 21 00 A4 04 80 0D 02 02 19 00 30 38 37 34 39 34 31 10 04 04 00 CB AE 00 00 35 04 06 00 DB 32 EA 78 47 E2 00 00 2D [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [22:11:58]RAPDU: 90 00 [22:11:58]wFMCommunicate OK [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 0D 03 02 [22:11:58]Write to MH i2c: E2 08 00 A5 04 80 0D 03 02 00 00 00 00 24 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]OFD Sender: No OFD packet to send [22:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 0B 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 0B 00 A5 04 00 F4 A3 C6 47 93 14 3A F5 90 00 9F [22:11:58]RAPDU: F4 A3 C6 47 93 14 3A F5 90 00 [22:11:58]wFMCommunicate OK [22:11:58]SAM_PROTO_SignData done [22:11:58]FM_MakeSignedData done [22:11:58]CreateOFDProtocolMessage [22:11:58]wFMCommunicate request_size=4 [22:11:58]MH_SAM_APDU [22:11:58]CAPDU: 80 11 00 00 [22:11:58]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:58]Read from MH i2c: E2 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 17 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 78 [22:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:11:58]wFMCommunicate OK [22:11:58]CreateOFDProtocolMessage done [22:11:58]OFDSenderStorePacket 44747 [22:11:58]StoreOFDPacket docnum=44747 [22:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 92 91 1B 01 4F 5E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D C2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CB AE 00 00 35 04 06 00 DB 32 EA 78 47 E2 F4 A3 C6 47 93 14 3A F5 [22:11:58]CheckFolder [22:11:58]dirname=/storage/ofd_packets [22:11:58]CheckFolder done [22:11:58]ProducePacketName [22:11:58]name=ofd_packets/00044747 [22:11:58]NVStorageSaveData ofd_packets/00044747 [22:11:58]File name is /storage/ofd_packets/00044747 [22:11:58]Write 321 bytes [22:11:58]NVStorageSaveData done [22:11:58]OFDSenderStorePacket done [22:11:58]KKMCreateOFDPacket done [22:11:58]NVStorageSaveData kkm_last_timestamp [22:11:58]File name is /storage/kkm_last_timestamp [22:11:58]Write 4 bytes [22:11:58]NVStorageSaveData done [22:11:58]ExternCall_PrintAddStr [22:11:58]wPrintStart [22:11:58]Write to MH i2c: 01 00 00 A7 04 AB [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 FF 0F C0 [22:11:58]RasterBufferAndPrint [22:11:58]line Счет N : (3)14639 [22:11:58]line ИНН: 02508201610067 [22:11:58]line Контрольно-Кассовый Чек [22:11:58]line ПРОДАЖА [22:11:58]line Товар: 4700000160204 [22:11:58]line Вода Легенда 1,5л [22:11:58]line 1.000 * 60.00 [22:11:58]line = 60.00 [22:11:58]line НДС 12% НСП 1% [22:11:58]line > о реализуемом товаре [22:11:58]line ИТОГО: 60.00 [22:11:58]line НСП 1% : 0.53 [22:11:58]line НДС 12% : 6.37 [22:11:58]line Наличными: 60.00 [22:11:58]line Безнал.: 0.00 [22:11:58]line Место: АЗС № 128 "Партнер Нефть" [22:11:58]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:11:58]line СНО: Общий режим [22:11:58]line Чек 118 28.07.2024 22:11 [22:11:58]line Смена: 430 ФФД: 1.0 [22:11:58]line ЗНМ: 0300000045 [22:11:58]line РНМ: 0000000000092655 [22:11:58]line Версия ККМ: 001 [22:11:58]line ФМ: 0000000000874941 [22:11:58]line ФД: 44747 [22:11:58]line ФПД: 241011728599010 [22:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T221157&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44747&fm=241011728599010&tin=02508201610067®Number=0000000000092655&sum=6000 [22:11:58]OFD Sender: Processing packet 44747 [packets to send 7, broken 6] [22:11:58]ProducePacketName [22:11:58]name=ofd_packets/00044747 [22:11:58]OFD Sender: To server: pG, [22:11:58]CommunicateWithHost lk.salyk.kg:30040 [22:11:58]ConnectInit lk.salyk.kg [22:11:58]line 0 [22:11:58]written 0, free lines is 4095 [22:11:58]Connected sock=10 [22:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 23 01 00 00 92 91 1B 01 4F 5E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D C2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CB AE 00 00 35 04 06 00 DB 32 EA 78 47 E2 F4 A3 C6 47 93 14 3A F5 [22:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 06 FB 47 00 C9 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CB AE 00 00 F4 03 04 00 3E 6E A6 66 B6 04 01 00 00 F5 BC CD B3 0B 04 89 D0 [22:11:58]CommunicateWithHost err = 0 [22:11:58]CheckOFDResponse [22:11:58]1017 (14) - 77093643461234 [22:11:58]1041 (16) - 0000000000874941 [22:11:58]1040 (4) - 44747 [22:11:58]1012 (4) - 28.07.2024 16:13 [22:11:58]1206 (1) - 0 [22:11:58]OFD Sender: Remove packet 44747 [22:11:58]ProducePacketName [22:11:58]name=ofd_packets/00044747 [22:11:58]NVStorageDeleteData [22:11:59]Write to MH i2c: 01 00 00 CF 04 D3 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 07 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 F8 0C DE [22:11:59]RasterBufferAndPrint [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]line [22:11:59]written 0, free lines is 3325 [22:11:59]process_action close_receipt done [22:11:59]requested_data is exist [22:11:59]produce_requested_data [22:11:59]requested_item fm.sn is exist - process it [22:11:59]wFMCommunicate request_size=4 [22:11:59]MH_SAM_APDU [22:11:59]CAPDU: 80 11 00 00 [22:11:59]Write to MH i2c: E2 08 00 D6 04 80 11 00 00 00 00 00 00 54 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:59]Read from MH i2c: E2 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 17 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 17 00 D6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A8 [22:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:11:59]wFMCommunicate OK [22:11:59]requested_item fd.num is exist - process it [22:11:59]SAM_PROTO_GetFieldsCounters [22:11:59]wFMCommunicate request_size=4 [22:11:59]MH_SAM_APDU [22:11:59]CAPDU: 80 13 00 00 [22:11:59]Write to MH i2c: E2 08 00 D7 04 80 13 00 00 00 00 00 00 57 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:59]Read from MH i2c: E2 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 62 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 62 00 D7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [22:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:59]wFMCommunicate OK [22:11:59]SAM_PROTO_GetFieldsCounters done [22:11:59]requested_item shift.num is exist - process it [22:11:59]requested_item shift.opened is exist - process it [22:11:59]req_shift_opened [22:11:59]FM_GetShiftState [22:11:59]SAM_PROTO_GetShiftState [22:11:59]wFMCommunicate request_size=4 [22:11:59]MH_SAM_APDU [22:11:59]CAPDU: 80 13 01 00 [22:11:59]Write to MH i2c: E2 08 00 D8 04 80 13 01 00 00 00 00 00 59 [22:11:59]Write i2c OK [22:11:59]MH_I2C_Read... [22:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:59]Read from MH i2c: E2 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 0E 00 [22:11:59]MH_I2C_Read... [22:11:59]Read from MH i2c: E2 0E 00 D8 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F2 [22:11:59]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:11:59]wFMCommunicate OK [22:11:59]SAM_PROTO_GetShiftState done [22:11:59]FM_GetShiftState done [22:11:59]req_shift_opened done [22:11:59]requested_item shift.open_date is exist - process it [22:11:59]req_shift_open_date [22:11:59]req_shift_open_date done [22:11:59]produce_requested_data done [22:11:59]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44747,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:11:59]process_action_free close_receipt [22:11:59]json_value_free [22:11:59]json_value_free done [22:11:59]process_json_proto returns [22:11:59]Send response to host [22:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44747,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:11:59]free response buf [22:11:59]execute_script done [22:11:59]execute_script returns [22:11:59]free content buf [22:11:59]Sock 9.Close socket [22:11:59]Sock 9.Thread stoped [22:11:59]OFD Sender: No OFD packet to send [22:12:03]int [22:12:03]Write to MH i2c: 01 00 00 D9 04 DD [22:12:03]*** FLAG_PRN_KEY set [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 D9 04 00 08 00 00 00 FF 0F FA [22:12:03]state=0 [22:12:03]Key pressed [22:12:03]Feed [22:12:03]Write to MH i2c: D8 00 00 DA 04 B5 [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: D8 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: D8 01 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: D8 01 00 DA 04 00 B6 [22:12:03]int [22:12:03]Write to MH i2c: 01 00 00 DB 04 DF [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 DB 04 00 48 00 00 00 3C 00 6A [22:12:03]state=2 [22:12:03]Key pressed [22:12:03]int [22:12:03]Write to MH i2c: 01 00 00 DC 04 E0 [22:12:03]*** FLAG_PRN_KEY reset [22:12:03]Write i2c OK [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 [22:12:03]MH_I2C_Read... [22:12:03]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 F7 0F ED [22:12:03]state=2 [22:12:03]Stop feed [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:05]accept exits with 7 [22:20:05]New connection [22:20:05]New thread 3066625380 created [22:20:05]Thread 3066482020 joined [22:20:05]Waiting for new connection... [22:20:05] Sock 7.Parse request [22:20:05]Sock 7.Check first char [22:20:05]Sock 7.First char is OK [22:20:05]request: POST /json_proto HTTP/1.0 [22:20:05]Method: POST [22:20:05]URL: /json_proto [22:20:05]Method is POST - this is cgi request [22:20:05]url: /json_proto [22:20:05]query_string will be loaded in cgi processing [22:20:05]execute_cgi json_proto POST (null) [22:20:05]execute_cgi path=json_proto method=POST [22:20:05]POST find Content-Length [22:20:05]Host: 172.17.45.196:8080 [22:20:05]Content-Length: 622 [22:20:05]Content-Type: application/json [22:20:05] [22:20:05]POST finish read [22:20:05]Found Content-Length = 622 [22:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14640", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:05]execute_script... [22:20:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14640", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:05]POST & json_proto [22:20:05]process_json_proto [22:20:05]json parsed OK: [22:20:05]protocol is kg_v1.0 [22:20:05]action value=close_receipt [22:20:05]process_action close_receipt [22:20:05]cmd_close_receipt [22:20:05]MH_GetDate [22:20:05]Write to MH i2c: F0 00 00 DD 04 D0 [22:20:05]Write i2c OK [22:20:05]MH_I2C_Read... [22:20:05]Read from MH i2c: F0 [22:20:05]MH_I2C_Read... [22:20:05]Read from MH i2c: F0 09 00 [22:20:05]MH_I2C_Read... [22:20:05]Read from MH i2c: F0 09 00 DD 04 00 16 C4 A6 66 BB 03 A5 66 88 [22:20:05]GetLastDocTimeStamp 1722204717 [22:20:05]current date 1722205206 [22:20:05]FM_GetShiftState [22:20:05]SAM_PROTO_GetShiftState [22:20:05]wFMCommunicate request_size=4 [22:20:05]MH_SAM_APDU [22:20:05]CAPDU: 80 13 01 00 [22:20:05]Write to MH i2c: E2 08 00 DE 04 80 13 01 00 00 00 00 00 5F [22:20:05]Write i2c OK [22:20:05]MH_I2C_Read... [22:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:05]Read from MH i2c: E2 [22:20:05]MH_I2C_Read... [22:20:05]Read from MH i2c: E2 0E 00 [22:20:05]MH_I2C_Read... [22:20:05]Read from MH i2c: E2 0E 00 DE 04 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 F8 [22:20:05]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:20:05]wFMCommunicate OK [22:20:05]SAM_PROTO_GetShiftState done [22:20:05]FM_GetShiftState done [22:20:05]opened in 1722126323 [22:20:05]opened+sec_in_day 1722212723 [22:20:05]quantity*price = 14000 [22:20:05]sum+1 = 14001 [22:20:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 119 28.07.2024 22:20 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44748 ФПД: 71865289509794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222006&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44748&fm=71865289509794&tin=02508201610067®Number=0000000000092655&sum=14000 0 [22:20:06]StoreToDocumentArchive [22:20:06]shift 430 fd 44748 [22:20:06]save to /storage/0430/doc_00044748 [22:20:06]save last doc name /storage/0430/doc_00044748 to /storage/kkm_last_doc_name [22:20:06]save OK [22:20:06]Clear old archive folders... [22:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:20:06]tlvbuf is 0179A310 [22:20:06]SAM_PROTO_ClearQueue [22:20:06]wFMCommunicate request_size=4 [22:20:06]MH_SAM_APDU [22:20:06]CAPDU: 80 09 00 00 [22:20:06]Write to MH i2c: E2 08 00 EB 04 80 09 00 00 00 00 00 00 61 [22:20:06]Write i2c OK [22:20:06]MH_I2C_Read... [22:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:06]Read from MH i2c: E2 [22:20:06]MH_I2C_Read... [22:20:06]Read from MH i2c: E2 03 00 [22:20:06]MH_I2C_Read... [22:20:06]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [22:20:06]RAPDU: 90 00 [22:20:06]wFMCommunicate OK [22:20:06]SAM_PROTO_ClearQueue done [22:20:06]KKMCreateOFDPacket [22:20:06]OFDProtocolAddRootSTLVToBuf [22:20:06]FM_MakeSignedData [22:20:06]FM_MakeSignedData [22:20:06]SAM_PROTO_SignData [22:20:06]wFMCommunicate request_size=4 [22:20:06]MH_SAM_APDU [22:20:06]CAPDU: 80 0D 01 02 [22:20:06]Write to MH i2c: E2 08 00 EC 04 80 0D 01 02 00 00 00 00 69 [22:20:06]Write i2c OK [22:20:06]MH_I2C_Read... [22:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:06]Read from MH i2c: E2 [22:20:06]MH_I2C_Read... [22:20:06]Read from MH i2c: E2 03 00 [22:20:06]MH_I2C_Read... [22:20:06]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [22:20:06]RAPDU: 90 00 [22:20:06]wFMCommunicate OK [22:20:06]wFMCommunicate request_size=255 [22:20:06]MH_SAM_APDU [22:20:06]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 16 C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [22:20:06]Write to MH i2c: E2 02 01 ED 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 16 C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 07 [22:20:06]Write i2c OK [22:20:06]MH_I2C_Read... [22:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:07]Read from MH i2c: E2 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 03 00 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 03 00 ED 04 00 90 00 65 [22:20:07]RAPDU: 90 00 [22:20:07]wFMCommunicate OK [22:20:07]wFMCommunicate request_size=34 [22:20:07]MH_SAM_APDU [22:20:07]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CC AE 00 00 35 04 06 00 41 5C 71 0D 8B A2 [22:20:07]Write to MH i2c: E2 25 00 EE 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CC AE 00 00 35 04 06 00 41 5C 71 0D 8B A2 00 00 F0 [22:20:07]Write i2c OK [22:20:07]MH_I2C_Read... [22:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:07]Read from MH i2c: E2 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 03 00 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [22:20:07]RAPDU: 90 00 [22:20:07]wFMCommunicate OK [22:20:07]wFMCommunicate request_size=4 [22:20:07]MH_SAM_APDU [22:20:07]CAPDU: 80 0D 03 02 [22:20:07]Write to MH i2c: E2 08 00 EF 04 80 0D 03 02 00 00 00 00 6E [22:20:07]Write i2c OK [22:20:07]MH_I2C_Read... [22:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:07]Read from MH i2c: E2 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 0B 00 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 0B 00 EF 04 00 68 72 9F 0D 4A 67 9F 4B 90 00 90 [22:20:07]RAPDU: 68 72 9F 0D 4A 67 9F 4B 90 00 [22:20:07]wFMCommunicate OK [22:20:07]SAM_PROTO_SignData done [22:20:07]FM_MakeSignedData done [22:20:07]CreateOFDProtocolMessage [22:20:07]wFMCommunicate request_size=4 [22:20:07]MH_SAM_APDU [22:20:07]CAPDU: 80 11 00 00 [22:20:07]Write to MH i2c: E2 08 00 F0 04 80 11 00 00 00 00 00 00 6E [22:20:07]Write i2c OK [22:20:07]MH_I2C_Read... [22:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:07]Read from MH i2c: E2 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 17 00 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: E2 17 00 F0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C2 [22:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:20:07]wFMCommunicate OK [22:20:07]CreateOFDProtocolMessage done [22:20:07]OFDSenderStorePacket 44748 [22:20:07]StoreOFDPacket docnum=44748 [22:20:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 A7 D2 1F 01 95 AA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 16 C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CC AE 00 00 35 04 06 00 41 5C 71 0D 8B A2 68 72 9F 0D 4A 67 9F 4B [22:20:07]CheckFolder [22:20:07]dirname=/storage/ofd_packets [22:20:07]CheckFolder done [22:20:07]ProducePacketName [22:20:07]name=ofd_packets/00044748 [22:20:07]NVStorageSaveData ofd_packets/00044748 [22:20:07]File name is /storage/ofd_packets/00044748 [22:20:07]Write 325 bytes [22:20:07]NVStorageSaveData done [22:20:07]OFDSenderStorePacket done [22:20:07]KKMCreateOFDPacket done [22:20:07]NVStorageSaveData kkm_last_timestamp [22:20:07]File name is /storage/kkm_last_timestamp [22:20:07]Write 4 bytes [22:20:07]NVStorageSaveData done [22:20:07]ExternCall_PrintAddStr [22:20:07]wPrintStart [22:20:07]Write to MH i2c: 01 00 00 F1 04 F5 [22:20:07]Write i2c OK [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: 01 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: 01 07 00 [22:20:07]MH_I2C_Read... [22:20:07]Read from MH i2c: 01 07 00 F1 04 00 00 00 00 00 FF 0F 0A [22:20:07]RasterBufferAndPrint [22:20:07]line Счет N : (3)14640 [22:20:07]line ИНН: 02508201610067 [22:20:07]line Контрольно-Кассовый Чек [22:20:07]line ПРОДАЖА [22:20:07]line Товар: 48743587 [22:20:07]line Сигареты Winston XStyle Silver [22:20:07]line 1.000 * 140.00 [22:20:07]line = 140.00 [22:20:07]line НДС 12% НСП 1% [22:20:07]line > о реализуемом товаре [22:20:07]line ИТОГО: 140.00 [22:20:07]line НСП 1% : 1.24 [22:20:07]line НДС 12% : 14.87 [22:20:07]line Наличными: 140.00 [22:20:07]line Безнал.: 0.00 [22:20:07]line Место: АЗС № 128 "Партнер Нефть" [22:20:07]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:20:07]line СНО: Общий режим [22:20:07]line Чек 119 28.07.2024 22:20 [22:20:07]line Смена: 430 ФФД: 1.0 [22:20:07]line ЗНМ: 0300000045 [22:20:07]line РНМ: 0000000000092655 [22:20:07]line Версия ККМ: 001 [22:20:07]line ФМ: 0000000000874941 [22:20:07]line ФД: 44748 [22:20:07]line ФПД: 71865289509794 [22:20:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222006&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44748&fm=71865289509794&tin=02508201610067®Number=0000000000092655&sum=14000 [22:20:07]line 0 [22:20:07]OFD Sender: Processing packet 44748 [packets to send 7, broken 6] [22:20:07]ProducePacketName [22:20:07]name=ofd_packets/00044748 [22:20:07]OFD Sender: To server: pG, [22:20:07]CommunicateWithHost lk.salyk.kg:30040 [22:20:07]ConnectInit lk.salyk.kg [22:20:07]written 0, free lines is 4095 [22:20:07]Connected sock=10 [22:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 A7 D2 1F 01 95 AA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 16 C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CC AE 00 00 35 04 06 00 41 5C 71 0D 8B A2 68 72 9F 0D 4A 67 9F 4B [22:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 EE 92 47 00 9C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CC AE 00 00 F4 03 04 00 27 70 A6 66 B6 04 01 00 00 AE FC ED 40 57 CE EA C3 [22:20:07]CommunicateWithHost err = 0 [22:20:07]CheckOFDResponse [22:20:07]1017 (14) - 77093643461234 [22:20:07]1041 (16) - 0000000000874941 [22:20:07]1040 (4) - 44748 [22:20:07]1012 (4) - 28.07.2024 16:21 [22:20:07]1206 (1) - 0 [22:20:07]OFD Sender: Remove packet 44748 [22:20:07]ProducePacketName [22:20:07]name=ofd_packets/00044748 [22:20:07]NVStorageDeleteData [22:20:08]Write to MH i2c: 01 00 00 1A 05 1F [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: 01 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: 01 07 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 CA 0C FC [22:20:08]RasterBufferAndPrint [22:20:08]line [22:20:08]line [22:20:08]line [22:20:08]line [22:20:08]line [22:20:08]written 0, free lines is 3282 [22:20:08]process_action close_receipt done [22:20:08]requested_data is exist [22:20:08]produce_requested_data [22:20:08]requested_item fm.sn is exist - process it [22:20:08]wFMCommunicate request_size=4 [22:20:08]MH_SAM_APDU [22:20:08]CAPDU: 80 11 00 00 [22:20:08]Write to MH i2c: E2 08 00 21 05 80 11 00 00 00 00 00 00 A0 [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:08]Read from MH i2c: E2 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 17 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 17 00 21 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F4 [22:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:20:08]wFMCommunicate OK [22:20:08]requested_item fd.num is exist - process it [22:20:08]SAM_PROTO_GetFieldsCounters [22:20:08]wFMCommunicate request_size=4 [22:20:08]MH_SAM_APDU [22:20:08]CAPDU: 80 13 00 00 [22:20:08]Write to MH i2c: E2 08 00 22 05 80 13 00 00 00 00 00 00 A3 [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:08]Read from MH i2c: E2 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 62 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 62 00 22 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [22:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:08]wFMCommunicate OK [22:20:08]SAM_PROTO_GetFieldsCounters done [22:20:08]requested_item shift.num is exist - process it [22:20:08]requested_item shift.opened is exist - process it [22:20:08]req_shift_opened [22:20:08]FM_GetShiftState [22:20:08]SAM_PROTO_GetShiftState [22:20:08]wFMCommunicate request_size=4 [22:20:08]MH_SAM_APDU [22:20:08]CAPDU: 80 13 01 00 [22:20:08]Write to MH i2c: E2 08 00 23 05 80 13 01 00 00 00 00 00 A5 [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:08]Read from MH i2c: E2 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 0E 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 0E 00 23 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 3E [22:20:08]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:20:08]wFMCommunicate OK [22:20:08]SAM_PROTO_GetShiftState done [22:20:08]FM_GetShiftState done [22:20:08]req_shift_opened done [22:20:08]requested_item shift.open_date is exist - process it [22:20:08]req_shift_open_date [22:20:08]req_shift_open_date done [22:20:08]produce_requested_data done [22:20:08]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44748,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:20:08]process_action_free close_receipt [22:20:08]json_value_free [22:20:08]json_value_free done [22:20:08]process_json_proto returns [22:20:08]Send response to host [22:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44748,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:20:08]free response buf [22:20:08]execute_script done [22:20:08]execute_script returns [22:20:08]free content buf [22:20:08]Sock 7.Close socket [22:20:08]Sock 7.Thread stoped [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:42]int [22:22:42]Write to MH i2c: 01 00 00 24 05 29 [22:22:42]*** FLAG_PRN_KEY set [22:22:42]Write i2c OK [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 24 05 00 08 00 00 00 FF 0F 46 [22:22:42]state=0 [22:22:42]Key pressed [22:22:42]Feed [22:22:42]Write to MH i2c: D8 00 00 25 05 01 [22:22:42]Write i2c OK [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: D8 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: D8 01 00 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: D8 01 00 25 05 00 02 [22:22:42]int [22:22:42]Write to MH i2c: 01 00 00 26 05 2B [22:22:42]Write i2c OK [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 26 05 00 48 00 00 00 3D 00 B7 [22:22:42]state=2 [22:22:42]Key pressed [22:22:42]int [22:22:42]Write to MH i2c: 01 00 00 27 05 2C [22:22:42]*** FLAG_PRN_KEY reset [22:22:42]Write i2c OK [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 [22:22:42]MH_I2C_Read... [22:22:42]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 F6 0F 38 [22:22:42]state=2 [22:22:42]Stop feed [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:38]accept exits with 9 [22:23:38]New connection [22:23:38]New thread 3066482020 created [22:23:38]Thread 3066625380 joined [22:23:38]Waiting for new connection... [22:23:38] Sock 9.Parse request [22:23:38]Sock 9.Check first char [22:23:38]Sock 9.First char is OK [22:23:38]request: POST /json_proto HTTP/1.0 [22:23:38]Method: POST [22:23:38]URL: /json_proto [22:23:38]Method is POST - this is cgi request [22:23:38]url: /json_proto [22:23:38]query_string will be loaded in cgi processing [22:23:38]execute_cgi json_proto POST (null) [22:23:38]execute_cgi path=json_proto method=POST [22:23:38]POST find Content-Length [22:23:38]Host: 172.17.45.196:8080 [22:23:38]Content-Length: 889 [22:23:38]Content-Type: application/json [22:23:38] [22:23:38]POST finish read [22:23:38]Found Content-Length = 889 [22:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14641", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:38]execute_script... [22:23:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14641", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:38]POST & json_proto [22:23:38]process_json_proto [22:23:38]json parsed OK: [22:23:38]protocol is kg_v1.0 [22:23:38]action value=close_receipt [22:23:38]process_action close_receipt [22:23:38]cmd_close_receipt [22:23:38]MH_GetDate [22:23:38]Write to MH i2c: F0 00 00 28 05 1C [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: F0 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: F0 09 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: F0 09 00 28 05 00 EB C4 A6 66 BB 03 A5 66 A9 [22:23:38]GetLastDocTimeStamp 1722205206 [22:23:38]current date 1722205419 [22:23:38]FM_GetShiftState [22:23:38]SAM_PROTO_GetShiftState [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 13 01 00 [22:23:38]Write to MH i2c: E2 08 00 29 05 80 13 01 00 00 00 00 00 AB [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 0E 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 0E 00 29 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 44 [22:23:38]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:23:38]wFMCommunicate OK [22:23:38]SAM_PROTO_GetShiftState done [22:23:38]FM_GetShiftState done [22:23:38]opened in 1722126323 [22:23:38]opened+sec_in_day 1722212723 [22:23:38]quantity*price = 24000 [22:23:38]sum+1 = 24001 [22:23:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.56 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 120 28.07.2024 22:23 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44749 ФПД: 34230459624018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222339&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44749&fm=34230459624018&tin=02508201610067®Number=0000000000092655&sum=29000 0 [22:23:40]StoreToDocumentArchive [22:23:40]shift 430 fd 44749 [22:23:40]save to /storage/0430/doc_00044749 [22:23:40]save last doc name /storage/0430/doc_00044749 to /storage/kkm_last_doc_name [22:23:40]save OK [22:23:40]Clear old archive folders... [22:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=374 [22:23:40]tlvbuf is 017F5660 [22:23:40]SAM_PROTO_ClearQueue [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 09 00 00 [22:23:40]Write to MH i2c: E2 08 00 36 05 80 09 00 00 00 00 00 00 AD [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]SAM_PROTO_ClearQueue done [22:23:40]KKMCreateOFDPacket [22:23:40]OFDProtocolAddRootSTLVToBuf [22:23:40]FM_MakeSignedData [22:23:40]FM_MakeSignedData [22:23:40]SAM_PROTO_SignData [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 01 02 [22:23:40]Write to MH i2c: E2 08 00 37 05 80 0D 01 02 00 00 00 00 B5 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=255 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 [22:23:40]Write to MH i2c: E2 02 01 38 05 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 00 00 82 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=133 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 EB C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CD AE 00 00 35 04 06 00 1F 21 E6 62 EA 52 [22:23:40]Write to MH i2c: E2 88 00 39 05 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 EB C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CD AE 00 00 35 04 06 00 1F 21 E6 62 EA 52 00 00 D6 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 03 02 [22:23:40]Write to MH i2c: E2 08 00 3A 05 80 0D 03 02 00 00 00 00 BA [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 0B 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 0B 00 3A 05 00 F9 E1 F1 EE 7F C9 74 2B 90 00 5B [22:23:40]RAPDU: F9 E1 F1 EE 7F C9 74 2B 90 00 [22:23:40]wFMCommunicate OK [22:23:40]SAM_PROTO_SignData done [22:23:40]FM_MakeSignedData done [22:23:40]CreateOFDProtocolMessage [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 11 00 00 [22:23:40]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 17 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0E [22:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:23:40]wFMCommunicate OK [22:23:40]CreateOFDProtocolMessage done [22:23:40]OFDSenderStorePacket 44749 [22:23:40]StoreOFDPacket docnum=44749 [22:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8A 01 00 00 77 5F 82 01 CF FA 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 EB C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CD AE 00 00 35 04 06 00 1F 21 E6 62 EA 52 F9 E1 F1 EE 7F C9 74 2B [22:23:40]CheckFolder [22:23:40]dirname=/storage/ofd_packets [22:23:40]CheckFolder done [22:23:40]ProducePacketName [22:23:40]name=ofd_packets/00044749 [22:23:40]NVStorageSaveData ofd_packets/00044749 [22:23:40]File name is /storage/ofd_packets/00044749 [22:23:40]Write 424 bytes [22:23:40]NVStorageSaveData done [22:23:40]OFDSenderStorePacket done [22:23:40]KKMCreateOFDPacket done [22:23:40]NVStorageSaveData kkm_last_timestamp [22:23:40]File name is /storage/kkm_last_timestamp [22:23:40]Write 4 bytes [22:23:40]NVStorageSaveData done [22:23:40]ExternCall_PrintAddStr [22:23:40]wPrintStart [22:23:40]Write to MH i2c: 01 00 00 3C 05 41 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 07 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [22:23:40]RasterBufferAndPrint [22:23:40]line Счет N : (3)14641 [22:23:40]line ИНН: 02508201610067 [22:23:40]line Контрольно-Кассовый Чек [22:23:40]line ПРОДАЖА [22:23:41]line Товар: 4620006996716 [22:23:41]line Водка Талка 0,1л [22:23:41]line 2.000 * 120.00 [22:23:41]line = 240.00 [22:23:41]line НДС 12% НСП 1% [22:23:41]line > о реализуемом товаре [22:23:41]line Товар: 5449000005489 [22:23:41]line Вода Бонаква 1л б/г [22:23:41]line 1.000 * 50.00 [22:23:41]line = 50.00 [22:23:41]line НДС 12% НСП 1% [22:23:41]line > о реализуемом товаре [22:23:41]line ИТОГО: 290.00 [22:23:41]line НСП 1% : 2.56 [22:23:41]line НДС 12% : 30.80 [22:23:41]line Наличными: 290.00 [22:23:41]line Безнал.: 0.00 [22:23:41]line Место: АЗС № 128 "Партнер Нефть" [22:23:41]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:23:41]line СНО: Общий режим [22:23:41]line Чек 120 28.07.2024 22:23 [22:23:41]line Смена: 430 ФФД: 1.0 [22:23:41]line ЗНМ: 0300000045 [22:23:41]line РНМ: 0000000000092655 [22:23:41]line Версия ККМ: 001 [22:23:41]line ФМ: 0000000000874941 [22:23:41]line ФД: 44749 [22:23:41]line ФПД: 34230459624018 [22:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222339&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44749&fm=34230459624018&tin=02508201610067®Number=0000000000092655&sum=29000 [22:23:41]line 0 [22:23:41]OFD Sender: Processing packet 44749 [packets to send 7, broken 6] [22:23:41]ProducePacketName [22:23:41]name=ofd_packets/00044749 [22:23:41]OFD Sender: To server: pG, [22:23:41]CommunicateWithHost lk.salyk.kg:30040 [22:23:41]ConnectInit lk.salyk.kg [22:23:41]written 0, free lines is 4095 [22:23:41]Connected sock=10 [22:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 8A 01 00 00 77 5F 82 01 CF FA 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 EB C4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CD AE 00 00 35 04 06 00 1F 21 E6 62 EA 52 F9 E1 F1 EE 7F C9 74 2B [22:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 62 E2 47 00 D8 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CD AE 00 00 F4 03 04 00 FD 70 A6 66 B6 04 01 00 00 BB A6 AB B6 BF A8 8F 82 [22:23:41]CommunicateWithHost err = 0 [22:23:41]CheckOFDResponse [22:23:41]1017 (14) - 77093643461234 [22:23:41]1041 (16) - 0000000000874941 [22:23:41]1040 (4) - 44749 [22:23:41]1012 (4) - 28.07.2024 16:25 [22:23:41]1206 (1) - 0 [22:23:41]OFD Sender: Remove packet 44749 [22:23:41]ProducePacketName [22:23:41]name=ofd_packets/00044749 [22:23:41]NVStorageDeleteData [22:23:41]Write to MH i2c: 01 00 00 6A 05 6F [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 07 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 8D 0C 0F [22:23:41]RasterBufferAndPrint [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]written 0, free lines is 3219 [22:23:41]process_action close_receipt done [22:23:41]requested_data is exist [22:23:41]produce_requested_data [22:23:41]requested_item fm.sn is exist - process it [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 11 00 00 [22:23:41]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 17 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 44 [22:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:23:41]wFMCommunicate OK [22:23:41]requested_item fd.num is exist - process it [22:23:41]SAM_PROTO_GetFieldsCounters [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 13 00 00 [22:23:41]Write to MH i2c: E2 08 00 72 05 80 13 00 00 00 00 00 00 F3 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 62 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 62 00 72 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [22:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CD AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:41]wFMCommunicate OK [22:23:41]SAM_PROTO_GetFieldsCounters done [22:23:41]requested_item shift.num is exist - process it [22:23:41]requested_item shift.opened is exist - process it [22:23:41]req_shift_opened [22:23:41]FM_GetShiftState [22:23:41]SAM_PROTO_GetShiftState [22:23:41]wFMCommunicate request_size=4 [22:23:41]MH_SAM_APDU [22:23:41]CAPDU: 80 13 01 00 [22:23:41]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:41]Read from MH i2c: E2 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 0E 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 8E [22:23:41]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:23:41]wFMCommunicate OK [22:23:41]SAM_PROTO_GetShiftState done [22:23:41]FM_GetShiftState done [22:23:41]req_shift_opened done [22:23:41]requested_item shift.open_date is exist - process it [22:23:41]req_shift_open_date [22:23:41]req_shift_open_date done [22:23:41]produce_requested_data done [22:23:41]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44749,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:23:41]process_action_free close_receipt [22:23:41]json_value_free [22:23:41]json_value_free done [22:23:41]process_json_proto returns [22:23:41]Send response to host [22:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44749,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:23:41]free response buf [22:23:41]execute_script done [22:23:41]execute_script returns [22:23:41]free content buf [22:23:41]Sock 9.Close socket [22:23:41]Sock 9.Thread stoped [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:41]int [22:27:41]Write to MH i2c: 01 00 00 74 05 79 [22:27:41]*** FLAG_PRN_KEY set [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 74 05 00 08 00 00 00 FF 0F 96 [22:27:41]state=0 [22:27:41]Key pressed [22:27:41]Feed [22:27:41]Write to MH i2c: D8 00 00 75 05 51 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: D8 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: D8 01 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: D8 01 00 75 05 00 52 [22:27:41]int [22:27:41]Write to MH i2c: 01 00 00 76 05 7B [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 76 05 00 48 00 00 00 3D 00 07 [22:27:41]state=2 [22:27:41]Key pressed [22:27:42]int [22:27:42]Write to MH i2c: 01 00 00 77 05 7C [22:27:42]*** FLAG_PRN_KEY reset [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 F6 0F 88 [22:27:42]state=2 [22:27:42]Stop feed [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:29:57]accept exits with 7 [22:29:57]New connection [22:29:57]New thread 3066625380 created [22:29:57]Thread 3066482020 joined [22:29:57]Waiting for new connection... [22:29:57] Sock 7.Parse request [22:29:57]Sock 7.Check first char [22:29:57]Sock 7.First char is OK [22:29:57]request: POST /json_proto HTTP/1.0 [22:29:57]Method: POST [22:29:57]URL: /json_proto [22:29:57]Method is POST - this is cgi request [22:29:57]url: /json_proto [22:29:57]query_string will be loaded in cgi processing [22:29:57]execute_cgi json_proto POST (null) [22:29:57]execute_cgi path=json_proto method=POST [22:29:57]POST find Content-Length [22:29:57]Host: 172.17.45.196:8080 [22:29:57]Content-Length: 629 [22:29:57]Content-Type: application/json [22:29:57] [22:29:57]POST finish read [22:29:57]Found Content-Length = 629 [22:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14642", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:57]execute_script... [22:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14642", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:57]POST & json_proto [22:29:57]process_json_proto [22:29:57]json parsed OK: [22:29:57]protocol is kg_v1.0 [22:29:57]action value=close_receipt [22:29:57]process_action close_receipt [22:29:57]cmd_close_receipt [22:29:57]MH_GetDate [22:29:57]Write to MH i2c: F0 00 00 78 05 6C [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 09 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: F0 09 00 78 05 00 66 C6 A6 66 BB 03 A5 66 76 [22:29:57]GetLastDocTimeStamp 1722205419 [22:29:57]current date 1722205798 [22:29:57]FM_GetShiftState [22:29:57]SAM_PROTO_GetShiftState [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 13 01 00 [22:29:57]Write to MH i2c: E2 08 00 79 05 80 13 01 00 00 00 00 00 FB [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0E 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0E 00 79 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 94 [22:29:57]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:29:57]wFMCommunicate OK [22:29:57]SAM_PROTO_GetShiftState done [22:29:57]FM_GetShiftState done [22:29:57]opened in 1722126323 [22:29:57]opened+sec_in_day 1722212723 [22:29:57]quantity*price = 10000 [22:29:57]sum+1 = 10001 [22:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 121 28.07.2024 22:29 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44750 ФПД: 115359486447736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222958&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44750&fm=115359486447736&tin=02508201610067®Number=0000000000092655&sum=10000 0 [22:29:58]StoreToDocumentArchive [22:29:58]shift 430 fd 44750 [22:29:58]save to /storage/0430/doc_00044750 [22:29:58]save last doc name /storage/0430/doc_00044750 to /storage/kkm_last_doc_name [22:29:58]save OK [22:29:58]Clear old archive folders... [22:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=270 [22:29:58]tlvbuf is B6E585E0 [22:29:58]SAM_PROTO_ClearQueue [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 09 00 00 [22:29:58]Write to MH i2c: E2 08 00 86 05 80 09 00 00 00 00 00 00 FD [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 86 05 00 90 00 FF [22:29:58]RAPDU: 90 00 [22:29:58]wFMCommunicate OK [22:29:58]SAM_PROTO_ClearQueue done [22:29:58]KKMCreateOFDPacket [22:29:58]OFDProtocolAddRootSTLVToBuf [22:29:58]FM_MakeSignedData [22:29:58]FM_MakeSignedData [22:29:58]SAM_PROTO_SignData [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 0D 01 02 [22:29:58]Write to MH i2c: E2 08 00 87 05 80 0D 01 02 00 00 00 00 05 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [22:29:58]RAPDU: 90 00 [22:29:58]wFMCommunicate OK [22:29:58]wFMCommunicate request_size=255 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 66 C6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:29:58]Write to MH i2c: E2 02 01 88 05 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 66 C6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 A3 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]wFMCommunicate request_size=29 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 02 02 18 38 37 34 39 34 31 10 04 04 00 CE AE 00 00 35 04 06 00 68 EB 39 36 10 78 [22:29:59]Write to MH i2c: E2 20 00 89 05 80 0D 02 02 18 00 38 37 34 39 34 31 10 04 04 00 CE AE 00 00 35 04 06 00 68 EB 39 36 10 78 00 00 96 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 89 05 00 90 00 02 [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 03 02 [22:29:59]Write to MH i2c: E2 08 00 8A 05 80 0D 03 02 00 00 00 00 0A [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0B 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0B 00 8A 05 00 04 7D F6 41 D6 7A 65 F1 90 00 69 [22:29:59]RAPDU: 04 7D F6 41 D6 7A 65 F1 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_SignData done [22:29:59]FM_MakeSignedData done [22:29:59]CreateOFDProtocolMessage [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 11 00 00 [22:29:59]Write to MH i2c: E2 08 00 8B 05 80 11 00 00 00 00 00 00 0A [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 17 00 8B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5E [22:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:29:59]wFMCommunicate OK [22:29:59]CreateOFDProtocolMessage done [22:29:59]OFDSenderStorePacket 44750 [22:29:59]StoreOFDPacket docnum=44750 [22:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 20 F5 1A 01 3F 52 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 66 C6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CE AE 00 00 35 04 06 00 68 EB 39 36 10 78 04 7D F6 41 D6 7A 65 F1 [22:29:59]CheckFolder [22:29:59]dirname=/storage/ofd_packets [22:29:59]CheckFolder done [22:29:59]ProducePacketName [22:29:59]name=ofd_packets/00044750 [22:29:59]NVStorageSaveData ofd_packets/00044750 [22:29:59]File name is /storage/ofd_packets/00044750 [22:29:59]Write 320 bytes [22:29:59]NVStorageSaveData done [22:29:59]OFDSenderStorePacket done [22:29:59]KKMCreateOFDPacket done [22:29:59]NVStorageSaveData kkm_last_timestamp [22:29:59]File name is /storage/kkm_last_timestamp [22:29:59]Write 4 bytes [22:29:59]NVStorageSaveData done [22:29:59]ExternCall_PrintAddStr [22:29:59]wPrintStart [22:29:59]Write to MH i2c: 01 00 00 8C 05 91 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [22:29:59]RasterBufferAndPrint [22:29:59]line Счет N : (3)14642 [22:29:59]line ИНН: 02508201610067 [22:29:59]line Контрольно-Кассовый Чек [22:29:59]line ПРОДАЖА [22:29:59]line Товар: 4700000480814 [22:29:59]line Пиво Живое 0,5 ст [22:29:59]line 1.000 * 100.00 [22:29:59]line = 100.00 [22:29:59]line НДС 12% НСП 1% [22:29:59]line > о реализуемом товаре [22:29:59]line ИТОГО: 100.00 [22:29:59]line НСП 1% : 0.88 [22:29:59]line НДС 12% : 10.62 [22:29:59]line Наличными: 100.00 [22:29:59]line Безнал.: 0.00 [22:29:59]line Место: АЗС № 128 "Партнер Нефть" [22:29:59]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:29:59]line СНО: Общий режим [22:29:59]line Чек 121 28.07.2024 22:29 [22:29:59]line Смена: 430 ФФД: 1.0 [22:29:59]line ЗНМ: 0300000045 [22:29:59]line РНМ: 0000000000092655 [22:29:59]line Версия ККМ: 001 [22:29:59]line ФМ: 0000000000874941 [22:29:59]line ФД: 44750 [22:29:59]line ФПД: 115359486447736 [22:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T222958&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44750&fm=115359486447736&tin=02508201610067®Number=0000000000092655&sum=10000 [22:29:59]line 0 [22:29:59]OFD Sender: Processing packet 44750 [packets to send 7, broken 6] [22:29:59]ProducePacketName [22:29:59]name=ofd_packets/00044750 [22:29:59]OFD Sender: To server: pG, [22:29:59]CommunicateWithHost lk.salyk.kg:30040 [22:29:59]ConnectInit lk.salyk.kg [22:29:59]written 0, free lines is 4095 [22:29:59]Connected sock=10 [22:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 20 F5 1A 01 3F 52 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 66 C6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CE AE 00 00 35 04 06 00 68 EB 39 36 10 78 04 7D F6 41 D6 7A 65 F1 [22:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 E7 68 47 00 AB A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CE AE 00 00 F4 03 04 00 78 72 A6 66 B6 04 01 00 00 BC 9F 2F 8D 10 C3 F6 EA [22:30:00]CommunicateWithHost err = 0 [22:30:00]CheckOFDResponse [22:30:00]1017 (14) - 77093643461234 [22:30:00]1041 (16) - 0000000000874941 [22:30:00]1040 (4) - 44750 [22:30:00]1012 (4) - 28.07.2024 16:31 [22:30:00]1206 (1) - 0 [22:30:00]OFD Sender: Remove packet 44750 [22:30:00]ProducePacketName [22:30:00]name=ofd_packets/00044750 [22:30:00]NVStorageDeleteData [22:30:00]Write to MH i2c: 01 00 00 B4 05 B9 [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 07 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: 01 07 00 B4 05 00 00 00 00 00 E4 0C B0 [22:30:00]RasterBufferAndPrint [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]line [22:30:00]written 0, free lines is 3307 [22:30:00]process_action close_receipt done [22:30:00]requested_data is exist [22:30:00]produce_requested_data [22:30:00]requested_item fm.sn is exist - process it [22:30:00]wFMCommunicate request_size=4 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 11 00 00 [22:30:00]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 17 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8E [22:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:30:00]wFMCommunicate OK [22:30:00]requested_item fd.num is exist - process it [22:30:00]SAM_PROTO_GetFieldsCounters [22:30:00]wFMCommunicate request_size=4 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 13 00 00 [22:30:00]Write to MH i2c: E2 08 00 BC 05 80 13 00 00 00 00 00 00 3D [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 62 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 62 00 BC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [22:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CE AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:00]wFMCommunicate OK [22:30:00]SAM_PROTO_GetFieldsCounters done [22:30:00]requested_item shift.num is exist - process it [22:30:00]requested_item shift.opened is exist - process it [22:30:00]req_shift_opened [22:30:00]FM_GetShiftState [22:30:00]SAM_PROTO_GetShiftState [22:30:00]wFMCommunicate request_size=4 [22:30:00]MH_SAM_APDU [22:30:00]CAPDU: 80 13 01 00 [22:30:00]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [22:30:00]Write i2c OK [22:30:00]MH_I2C_Read... [22:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:00]Read from MH i2c: E2 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 0E 00 [22:30:00]MH_I2C_Read... [22:30:00]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D8 [22:30:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:30:00]wFMCommunicate OK [22:30:00]SAM_PROTO_GetShiftState done [22:30:00]FM_GetShiftState done [22:30:00]req_shift_opened done [22:30:00]requested_item shift.open_date is exist - process it [22:30:00]req_shift_open_date [22:30:00]req_shift_open_date done [22:30:00]produce_requested_data done [22:30:00]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44750,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:30:00]process_action_free close_receipt [22:30:00]json_value_free [22:30:00]json_value_free done [22:30:00]process_json_proto returns [22:30:00]Send response to host [22:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44750,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:30:00]free response buf [22:30:00]execute_script done [22:30:00]execute_script returns [22:30:00]free content buf [22:30:00]Sock 7.Close socket [22:30:00]Sock 7.Thread stoped [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:31]int [22:32:31]Write to MH i2c: 01 00 00 BE 05 C3 [22:32:31]*** FLAG_PRN_KEY set [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 BE 05 00 08 00 00 00 FF 0F E0 [22:32:31]state=0 [22:32:31]Key pressed [22:32:31]Feed [22:32:31]Write to MH i2c: D8 00 00 BF 05 9B [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: D8 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: D8 01 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: D8 01 00 BF 05 00 9C [22:32:31]int [22:32:31]Write to MH i2c: 01 00 00 C0 05 C5 [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 C0 05 00 48 00 00 00 3D 00 51 [22:32:31]state=2 [22:32:31]Key pressed [22:32:31]int [22:32:31]Write to MH i2c: 01 00 00 C1 05 C6 [22:32:31]*** FLAG_PRN_KEY reset [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: 01 07 00 C1 05 00 00 00 00 00 F6 0F D2 [22:32:31]state=2 [22:32:31]Stop feed [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:26]accept exits with 9 [22:38:26]New connection [22:38:26]New thread 3066482020 created [22:38:26]Thread 3066625380 joined [22:38:26]Waiting for new connection... [22:38:26] Sock 9.Parse request [22:38:26]Sock 9.Check first char [22:38:26]Sock 9.First char is OK [22:38:26]request: POST /json_proto HTTP/1.0 [22:38:26]Method: POST [22:38:26]URL: /json_proto [22:38:26]Method is POST - this is cgi request [22:38:26]url: /json_proto [22:38:26]query_string will be loaded in cgi processing [22:38:26]execute_cgi json_proto POST (null) [22:38:26]execute_cgi path=json_proto method=POST [22:38:26]POST find Content-Length [22:38:26]Host: 172.17.45.196:8080 [22:38:26]Content-Length: 941 [22:38:26]Content-Type: application/json [22:38:26] [22:38:26]POST finish read [22:38:26]Found Content-Length = 941 [22:38:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14643", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:26]execute_script... [22:38:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14643", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:26]POST & json_proto [22:38:26]process_json_proto [22:38:26]json parsed OK: [22:38:26]protocol is kg_v1.0 [22:38:26]action value=close_receipt [22:38:26]process_action close_receipt [22:38:26]cmd_close_receipt [22:38:26]MH_GetDate [22:38:26]Write to MH i2c: F0 00 00 C2 05 B6 [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: F0 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: F0 09 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: F0 09 00 C2 05 00 63 C8 A6 66 BB 03 A5 66 BF [22:38:26]GetLastDocTimeStamp 1722205798 [22:38:26]current date 1722206307 [22:38:26]FM_GetShiftState [22:38:26]SAM_PROTO_GetShiftState [22:38:26]wFMCommunicate request_size=4 [22:38:26]MH_SAM_APDU [22:38:26]CAPDU: 80 13 01 00 [22:38:26]Write to MH i2c: E2 08 00 C3 05 80 13 01 00 00 00 00 00 45 [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:26]Read from MH i2c: E2 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 0E 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 0E 00 C3 05 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 DE [22:38:26]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:38:26]wFMCommunicate OK [22:38:26]SAM_PROTO_GetShiftState done [22:38:26]FM_GetShiftState done [22:38:26]opened in 1722126323 [22:38:26]opened+sec_in_day 1722212723 [22:38:26]quantity*price = 13000 [22:38:26]sum+1 = 13001 [22:38:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 122 28.07.2024 22:38 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44751 ФПД: 28011689328341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T223827&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44751&fm=28011689328341&tin=02508201610067®Number=0000000000092655&sum=24000 0 [22:38:27]StoreToDocumentArchive [22:38:27]shift 430 fd 44751 [22:38:27]save to /storage/0430/doc_00044751 [22:38:27]save last doc name /storage/0430/doc_00044751 to /storage/kkm_last_doc_name [22:38:27]save OK [22:38:27]Clear old archive folders... [22:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=408 [22:38:27]tlvbuf is 01794830 [22:38:27]SAM_PROTO_ClearQueue [22:38:27]wFMCommunicate request_size=4 [22:38:27]MH_SAM_APDU [22:38:27]CAPDU: 80 09 00 00 [22:38:27]Write to MH i2c: E2 08 00 D0 05 80 09 00 00 00 00 00 00 47 [22:38:27]Write i2c OK [22:38:27]MH_I2C_Read... [22:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:27]Read from MH i2c: E2 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 03 00 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 03 00 D0 05 00 90 00 49 [22:38:27]RAPDU: 90 00 [22:38:27]wFMCommunicate OK [22:38:27]SAM_PROTO_ClearQueue done [22:38:27]KKMCreateOFDPacket [22:38:27]OFDProtocolAddRootSTLVToBuf [22:38:27]FM_MakeSignedData [22:38:27]FM_MakeSignedData [22:38:27]SAM_PROTO_SignData [22:38:27]wFMCommunicate request_size=4 [22:38:27]MH_SAM_APDU [22:38:27]CAPDU: 80 0D 01 02 [22:38:27]Write to MH i2c: E2 08 00 D1 05 80 0D 01 02 00 00 00 00 4F [22:38:27]Write i2c OK [22:38:27]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [22:38:28]RAPDU: 90 00 [22:38:28]wFMCommunicate OK [22:38:28]wFMCommunicate request_size=255 [22:38:28]MH_SAM_APDU [22:38:28]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [22:38:28]Write to MH i2c: E2 02 01 D2 05 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 21 [22:38:28]Write i2c OK [22:38:28]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [22:38:28]RAPDU: 90 00 [22:38:28]wFMCommunicate OK [22:38:28]wFMCommunicate request_size=167 [22:38:28]MH_SAM_APDU [22:38:28]CAPDU: 80 0D 02 02 A2 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 63 C8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CF AE 00 00 35 04 06 00 19 79 FA CA BE D5 [22:38:28]Write to MH i2c: E2 AA 00 D3 05 80 0D 02 02 A2 00 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 63 C8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CF AE 00 00 35 04 06 00 19 79 FA CA BE D5 00 00 A7 [22:38:28]Write i2c OK [22:38:28]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 03 00 D3 05 00 90 00 4C [22:38:28]RAPDU: 90 00 [22:38:28]wFMCommunicate OK [22:38:28]wFMCommunicate request_size=4 [22:38:28]MH_SAM_APDU [22:38:28]CAPDU: 80 0D 03 02 [22:38:28]Write to MH i2c: E2 08 00 D4 05 80 0D 03 02 00 00 00 00 54 [22:38:28]Write i2c OK [22:38:28]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 0B 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 0B 00 D4 05 00 87 F9 AE EA EE 29 82 A1 90 00 A7 [22:38:28]RAPDU: 87 F9 AE EA EE 29 82 A1 90 00 [22:38:28]wFMCommunicate OK [22:38:28]SAM_PROTO_SignData done [22:38:28]FM_MakeSignedData done [22:38:28]CreateOFDProtocolMessage [22:38:28]wFMCommunicate request_size=4 [22:38:28]MH_SAM_APDU [22:38:28]CAPDU: 80 11 00 00 [22:38:28]Write to MH i2c: E2 08 00 D5 05 80 11 00 00 00 00 00 00 54 [22:38:28]Write i2c OK [22:38:28]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 17 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 17 00 D5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A8 [22:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:38:28]wFMCommunicate OK [22:38:28]CreateOFDProtocolMessage done [22:38:28]OFDSenderStorePacket 44751 [22:38:28]StoreOFDPacket docnum=44751 [22:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AC 01 00 00 D6 87 A4 01 70 71 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 63 C8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CF AE 00 00 35 04 06 00 19 79 FA CA BE D5 87 F9 AE EA EE 29 82 A1 [22:38:28]CheckFolder [22:38:28]dirname=/storage/ofd_packets [22:38:28]CheckFolder done [22:38:28]ProducePacketName [22:38:28]name=ofd_packets/00044751 [22:38:28]NVStorageSaveData ofd_packets/00044751 [22:38:28]File name is /storage/ofd_packets/00044751 [22:38:28]Write 458 bytes [22:38:28]NVStorageSaveData done [22:38:28]OFDSenderStorePacket done [22:38:28]KKMCreateOFDPacket done [22:38:28]NVStorageSaveData kkm_last_timestamp [22:38:28]File name is /storage/kkm_last_timestamp [22:38:28]Write 4 bytes [22:38:28]NVStorageSaveData done [22:38:28]ExternCall_PrintAddStr [22:38:28]wPrintStart [22:38:28]Write to MH i2c: 01 00 00 D6 05 DB [22:38:28]Write i2c OK [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: 01 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: 01 07 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [22:38:28]RasterBufferAndPrint [22:38:28]line Счет N : (3)14643 [22:38:28]line ИНН: 02508201610067 [22:38:28]line Контрольно-Кассовый Чек [22:38:28]line ПРОДАЖА [22:38:28]line Товар: 2000036220012 [22:38:28]line Кофе Капучино XL(GABB TRADE) [22:38:28]line 1.000 * 130.00 [22:38:28]line = 130.00 [22:38:28]line НДС 12% НСП 1% [22:38:28]line > о реализуемом товаре [22:38:28]line Товар: 4870112002782 [22:38:28]line Печенье Ulker Biskrem какао-крем 180г [22:38:28]line 1.000 * 110.00 [22:38:28]line = 110.00 [22:38:28]line НДС 12% НСП 1% [22:38:28]line > о реализуемом товаре [22:38:28]line ИТОГО: 240.00 [22:38:28]line НСП 1% : 2.12 [22:38:28]line НДС 12% : 25.48 [22:38:28]line Наличными: 240.00 [22:38:28]line Безнал.: 0.00 [22:38:28]line Место: АЗС № 128 "Партнер Нефть" [22:38:28]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:38:28]line СНО: Общий режим [22:38:28]line Чек 122 28.07.2024 22:38 [22:38:28]line Смена: 430 ФФД: 1.0 [22:38:28]line ЗНМ: 0300000045 [22:38:28]line РНМ: 0000000000092655 [22:38:28]line Версия ККМ: 001 [22:38:28]line ФМ: 0000000000874941 [22:38:28]line ФД: 44751 [22:38:28]line ФПД: 28011689328341 [22:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T223827&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44751&fm=28011689328341&tin=02508201610067®Number=0000000000092655&sum=24000 [22:38:28]line 0 [22:38:28]written 0, free lines is 4095 [22:38:28]OFD Sender: Processing packet 44751 [packets to send 7, broken 6] [22:38:28]ProducePacketName [22:38:28]name=ofd_packets/00044751 [22:38:28]OFD Sender: To server: pG, [22:38:28]CommunicateWithHost lk.salyk.kg:30040 [22:38:28]ConnectInit lk.salyk.kg [22:38:28]Connected sock=10 [22:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AC 01 00 00 D6 87 A4 01 70 71 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 63 C8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CF AE 00 00 35 04 06 00 19 79 FA CA BE D5 87 F9 AE EA EE 29 82 A1 [22:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 7B 8F 47 00 84 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 CF AE 00 00 F4 03 04 00 75 74 A6 66 B6 04 01 00 00 43 52 8C 59 32 4B E3 3A [22:38:29]CommunicateWithHost err = 0 [22:38:29]CheckOFDResponse [22:38:29]1017 (14) - 77093643461234 [22:38:29]1041 (16) - 0000000000874941 [22:38:29]1040 (4) - 44751 [22:38:29]1012 (4) - 28.07.2024 16:40 [22:38:29]1206 (1) - 0 [22:38:29]OFD Sender: Remove packet 44751 [22:38:29]ProducePacketName [22:38:29]name=ofd_packets/00044751 [22:38:29]NVStorageDeleteData [22:38:29]Write to MH i2c: 01 00 00 06 06 0C [22:38:29]Write i2c OK [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: 01 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: 01 07 00 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: 01 07 00 06 06 00 00 00 00 00 54 0C 73 [22:38:29]RasterBufferAndPrint [22:38:29]line [22:38:29]line [22:38:29]line [22:38:29]line [22:38:29]line [22:38:29]written 0, free lines is 3165 [22:38:29]process_action close_receipt done [22:38:29]requested_data is exist [22:38:29]produce_requested_data [22:38:29]requested_item fm.sn is exist - process it [22:38:29]wFMCommunicate request_size=4 [22:38:29]MH_SAM_APDU [22:38:29]CAPDU: 80 11 00 00 [22:38:29]Write to MH i2c: E2 08 00 0D 06 80 11 00 00 00 00 00 00 8D [22:38:29]Write i2c OK [22:38:29]MH_I2C_Read... [22:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:29]Read from MH i2c: E2 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 17 00 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 17 00 0D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 E1 [22:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:38:29]wFMCommunicate OK [22:38:29]requested_item fd.num is exist - process it [22:38:29]SAM_PROTO_GetFieldsCounters [22:38:29]wFMCommunicate request_size=4 [22:38:29]MH_SAM_APDU [22:38:29]CAPDU: 80 13 00 00 [22:38:29]Write to MH i2c: E2 08 00 0E 06 80 13 00 00 00 00 00 00 90 [22:38:29]Write i2c OK [22:38:29]MH_I2C_Read... [22:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:29]Read from MH i2c: E2 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 62 00 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 62 00 0E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [22:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 CF AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:29]wFMCommunicate OK [22:38:29]SAM_PROTO_GetFieldsCounters done [22:38:29]requested_item shift.num is exist - process it [22:38:29]requested_item shift.opened is exist - process it [22:38:29]req_shift_opened [22:38:29]FM_GetShiftState [22:38:29]SAM_PROTO_GetShiftState [22:38:29]wFMCommunicate request_size=4 [22:38:29]MH_SAM_APDU [22:38:29]CAPDU: 80 13 01 00 [22:38:29]Write to MH i2c: E2 08 00 0F 06 80 13 01 00 00 00 00 00 92 [22:38:29]Write i2c OK [22:38:29]MH_I2C_Read... [22:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:29]Read from MH i2c: E2 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 0E 00 [22:38:29]MH_I2C_Read... [22:38:29]Read from MH i2c: E2 0E 00 0F 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 2B [22:38:29]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:38:29]wFMCommunicate OK [22:38:29]SAM_PROTO_GetShiftState done [22:38:29]FM_GetShiftState done [22:38:29]req_shift_opened done [22:38:29]requested_item shift.open_date is exist - process it [22:38:29]req_shift_open_date [22:38:29]req_shift_open_date done [22:38:29]produce_requested_data done [22:38:29]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44751,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:38:29]process_action_free close_receipt [22:38:29]json_value_free [22:38:29]json_value_free done [22:38:29]process_json_proto returns [22:38:29]Send response to host [22:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44751,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:38:29]free response buf [22:38:29]execute_script done [22:38:29]execute_script returns [22:38:29]free content buf [22:38:29]Sock 9.Close socket [22:38:29]Sock 9.Thread stoped [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]int [22:46:29]Write to MH i2c: 01 00 00 10 06 16 [22:46:29]*** FLAG_PRN_KEY set [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 10 06 00 08 00 00 00 FF 0F 33 [22:46:29]state=0 [22:46:29]Key pressed [22:46:29]Feed [22:46:29]Write to MH i2c: D8 00 00 11 06 EE [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: D8 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: D8 01 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: D8 01 00 11 06 00 EF [22:46:29]int [22:46:29]Write to MH i2c: 01 00 00 12 06 18 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 12 06 00 48 00 00 00 3D 00 A4 [22:46:29]state=2 [22:46:29]Key pressed [22:46:29]int [22:46:29]Write to MH i2c: 01 00 00 13 06 19 [22:46:29]*** FLAG_PRN_KEY reset [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 F6 0F 25 [22:46:29]state=2 [22:46:29]Stop feed [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:15]accept exits with 7 [22:48:15]New connection [22:48:15]New thread 3066625380 created [22:48:15]Thread 3066482020 joined [22:48:15]Waiting for new connection... [22:48:15] Sock 7.Parse request [22:48:15]Sock 7.Check first char [22:48:15]Sock 7.First char is OK [22:48:15]request: POST /json_proto HTTP/1.0 [22:48:15]Method: POST [22:48:15]URL: /json_proto [22:48:15]Method is POST - this is cgi request [22:48:15]url: /json_proto [22:48:15]query_string will be loaded in cgi processing [22:48:15]execute_cgi json_proto POST (null) [22:48:15]execute_cgi path=json_proto method=POST [22:48:15]POST find Content-Length [22:48:15]Host: 172.17.45.196:8080 [22:48:15]Content-Length: 746 [22:48:15]Content-Type: application/json [22:48:15] [22:48:15]POST finish read [22:48:15]Found Content-Length = 746 [22:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14644", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:15]execute_script... [22:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14644", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:15]POST & json_proto [22:48:15]process_json_proto [22:48:15]json parsed OK: [22:48:15]protocol is kg_v1.0 [22:48:15]action value=close_receipt [22:48:15]process_action close_receipt [22:48:15]cmd_close_receipt [22:48:15]MH_GetDate [22:48:15]Write to MH i2c: F0 00 00 14 06 09 [22:48:15]Write i2c OK [22:48:15]MH_I2C_Read... [22:48:15]Read from MH i2c: F0 [22:48:15]MH_I2C_Read... [22:48:15]Read from MH i2c: F0 09 00 [22:48:15]MH_I2C_Read... [22:48:15]Read from MH i2c: F0 09 00 14 06 00 B0 CA A6 66 BB 03 A5 66 61 [22:48:15]GetLastDocTimeStamp 1722206307 [22:48:15]current date 1722206896 [22:48:15]FM_GetShiftState [22:48:15]SAM_PROTO_GetShiftState [22:48:15]wFMCommunicate request_size=4 [22:48:15]MH_SAM_APDU [22:48:15]CAPDU: 80 13 01 00 [22:48:15]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [22:48:15]Write i2c OK [22:48:15]MH_I2C_Read... [22:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:15]Read from MH i2c: E2 [22:48:15]MH_I2C_Read... [22:48:15]Read from MH i2c: E2 0E 00 [22:48:15]MH_I2C_Read... [22:48:15]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 31 [22:48:15]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:48:15]wFMCommunicate OK [22:48:15]SAM_PROTO_GetShiftState done [22:48:15]FM_GetShiftState done [22:48:15]opened in 1722126323 [22:48:15]opened+sec_in_day 1722212723 [22:48:15]quantity*price = 59000 [22:48:15]sum+1 = 59001 [22:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 123 28.07.2024 22:48 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44752 ФПД: 60389863760033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224816&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44752&fm=60389863760033&tin=02508201610067®Number=0000000000092655&sum=59000 0 [22:48:16]StoreToDocumentArchive [22:48:16]shift 430 fd 44752 [22:48:16]save to /storage/0430/doc_00044752 [22:48:16]save last doc name /storage/0430/doc_00044752 to /storage/kkm_last_doc_name [22:48:16]save OK [22:48:16]Clear old archive folders... [22:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=307 [22:48:16]tlvbuf is 017EDF50 [22:48:16]SAM_PROTO_ClearQueue [22:48:16]wFMCommunicate request_size=4 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 09 00 00 [22:48:16]Write to MH i2c: E2 08 00 22 06 80 09 00 00 00 00 00 00 9A [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:16]Read from MH i2c: E2 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 03 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [22:48:16]RAPDU: 90 00 [22:48:16]wFMCommunicate OK [22:48:16]SAM_PROTO_ClearQueue done [22:48:16]KKMCreateOFDPacket [22:48:16]OFDProtocolAddRootSTLVToBuf [22:48:16]FM_MakeSignedData [22:48:16]FM_MakeSignedData [22:48:16]SAM_PROTO_SignData [22:48:16]wFMCommunicate request_size=4 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 0D 01 02 [22:48:16]Write to MH i2c: E2 08 00 23 06 80 0D 01 02 00 00 00 00 A2 [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:16]Read from MH i2c: E2 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 03 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [22:48:16]RAPDU: 90 00 [22:48:16]wFMCommunicate OK [22:48:16]wFMCommunicate request_size=255 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B0 CA A6 66 0E 04 04 00 AE 01 00 00 B9 04 [22:48:16]Write to MH i2c: E2 02 01 24 06 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B0 CA A6 66 0E 04 04 00 AE 01 00 00 B9 04 00 00 D9 [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=66 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D0 AE 00 00 35 04 06 00 36 EC 9C 60 A0 A1 [22:48:17]Write to MH i2c: E2 45 00 25 06 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D0 AE 00 00 35 04 06 00 36 EC 9C 60 A0 A1 00 00 D7 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 03 02 [22:48:17]Write to MH i2c: E2 08 00 26 06 80 0D 03 02 00 00 00 00 A7 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0B 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0B 00 26 06 00 51 08 A1 6D 2C B8 A5 C8 90 00 60 [22:48:17]RAPDU: 51 08 A1 6D 2C B8 A5 C8 90 00 [22:48:17]wFMCommunicate OK [22:48:17]SAM_PROTO_SignData done [22:48:17]FM_MakeSignedData done [22:48:17]CreateOFDProtocolMessage [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 11 00 00 [22:48:17]Write to MH i2c: E2 08 00 27 06 80 11 00 00 00 00 00 00 A7 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 17 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 17 00 27 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 FB [22:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:48:17]wFMCommunicate OK [22:48:17]CreateOFDProtocolMessage done [22:48:17]OFDSenderStorePacket 44752 [22:48:17]StoreOFDPacket docnum=44752 [22:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 47 01 00 00 0A 92 3F 01 66 A5 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B0 CA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D0 AE 00 00 35 04 06 00 36 EC 9C 60 A0 A1 51 08 A1 6D 2C B8 A5 C8 [22:48:17]CheckFolder [22:48:17]dirname=/storage/ofd_packets [22:48:17]CheckFolder done [22:48:17]ProducePacketName [22:48:17]name=ofd_packets/00044752 [22:48:17]NVStorageSaveData ofd_packets/00044752 [22:48:17]File name is /storage/ofd_packets/00044752 [22:48:17]Write 357 bytes [22:48:17]NVStorageSaveData done [22:48:17]OFDSenderStorePacket done [22:48:17]KKMCreateOFDPacket done [22:48:17]NVStorageSaveData kkm_last_timestamp [22:48:17]File name is /storage/kkm_last_timestamp [22:48:17]Write 4 bytes [22:48:17]NVStorageSaveData done [22:48:17]ExternCall_PrintAddStr [22:48:17]wPrintStart [22:48:17]Write to MH i2c: 01 00 00 28 06 2E [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 07 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 FF 0F 43 [22:48:17]RasterBufferAndPrint [22:48:17]line Счет N : (3)14644 [22:48:17]line ИНН: 02508201610067 [22:48:17]line Контрольно-Кассовый Чек [22:48:17]line ПРОДАЖА [22:48:17]line Товар: 2000029770012 [22:48:17]line Очки солнцезащитные в ассортименте [22:48:17]line 1.000 * 590.00 [22:48:17]line = 590.00 [22:48:17]line НДС 12% НСП 1% [22:48:17]line > о реализуемом товаре [22:48:17]line ИТОГО: 590.00 [22:48:17]line НСП 1% : 5.22 [22:48:17]line НДС 12% : 62.65 [22:48:17]line Наличными: 590.00 [22:48:17]line Безнал.: 0.00 [22:48:17]line Место: АЗС № 128 "Партнер Нефть" [22:48:17]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:48:17]line СНО: Общий режим [22:48:17]line Чек 123 28.07.2024 22:48 [22:48:17]line Смена: 430 ФФД: 1.0 [22:48:17]line ЗНМ: 0300000045 [22:48:17]line РНМ: 0000000000092655 [22:48:17]line Версия ККМ: 001 [22:48:17]line ФМ: 0000000000874941 [22:48:17]line ФД: 44752 [22:48:17]line ФПД: 60389863760033 [22:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224816&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44752&fm=60389863760033&tin=02508201610067®Number=0000000000092655&sum=59000 [22:48:17]line 0 [22:48:17]OFD Sender: Processing packet 44752 [packets to send 7, broken 6] [22:48:17]ProducePacketName [22:48:17]name=ofd_packets/00044752 [22:48:17]OFD Sender: To server: pG, [22:48:17]CommunicateWithHost lk.salyk.kg:30040 [22:48:17]ConnectInit lk.salyk.kg [22:48:17]written 0, free lines is 4095 [22:48:17]Connected sock=10 [22:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 47 01 00 00 0A 92 3F 01 66 A5 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B0 CA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D0 AE 00 00 35 04 06 00 36 EC 9C 60 A0 A1 51 08 A1 6D 2C B8 A5 C8 [22:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 73 5C 47 00 FA 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D0 AE 00 00 F4 03 04 00 C2 76 A6 66 B6 04 01 00 00 A8 F1 46 E5 84 04 99 93 [22:48:18]CommunicateWithHost err = 0 [22:48:18]CheckOFDResponse [22:48:18]1017 (14) - 77093643461234 [22:48:18]1041 (16) - 0000000000874941 [22:48:18]1040 (4) - 44752 [22:48:18]1012 (4) - 28.07.2024 16:50 [22:48:18]1206 (1) - 0 [22:48:18]OFD Sender: Remove packet 44752 [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00044752 [22:48:18]NVStorageDeleteData [22:48:18]Write to MH i2c: 01 00 00 51 06 57 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 51 06 00 00 00 00 00 C5 0C 2F [22:48:18]RasterBufferAndPrint [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]written 0, free lines is 3275 [22:48:18]process_action close_receipt done [22:48:18]requested_data is exist [22:48:18]produce_requested_data [22:48:18]requested_item fm.sn is exist - process it [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 11 00 00 [22:48:18]Write to MH i2c: E2 08 00 58 06 80 11 00 00 00 00 00 00 D8 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 58 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2C [22:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:48:18]wFMCommunicate OK [22:48:18]requested_item fd.num is exist - process it [22:48:18]SAM_PROTO_GetFieldsCounters [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 13 00 00 [22:48:18]Write to MH i2c: E2 08 00 59 06 80 13 00 00 00 00 00 00 DB [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 62 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 62 00 59 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [22:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D0 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_GetFieldsCounters done [22:48:18]requested_item shift.num is exist - process it [22:48:18]requested_item shift.opened is exist - process it [22:48:18]req_shift_opened [22:48:18]FM_GetShiftState [22:48:18]SAM_PROTO_GetShiftState [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 13 01 00 [22:48:18]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0E 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 76 [22:48:18]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_GetShiftState done [22:48:18]FM_GetShiftState done [22:48:18]req_shift_opened done [22:48:18]requested_item shift.open_date is exist - process it [22:48:18]req_shift_open_date [22:48:18]req_shift_open_date done [22:48:18]produce_requested_data done [22:48:18]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44752,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:48:18]process_action_free close_receipt [22:48:18]json_value_free [22:48:18]json_value_free done [22:48:18]process_json_proto returns [22:48:18]Send response to host [22:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44752,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:48:18]free response buf [22:48:18]execute_script done [22:48:18]execute_script returns [22:48:18]free content buf [22:48:18]Sock 7.Close socket [22:48:18]Sock 7.Thread stoped [22:48:18]OFD Sender: No OFD packet to send [22:48:21]int [22:48:21]Write to MH i2c: 01 00 00 5B 06 61 [22:48:21]*** FLAG_PRN_KEY set [22:48:21]Write i2c OK [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: 01 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: 01 07 00 [22:48:21]MH_I2C_Read... [22:48:21]Read from MH i2c: 01 07 00 5B 06 00 08 00 00 00 FF 0F 7E [22:48:21]state=0 [22:48:21]Key pressed [22:48:21]Feed [22:48:21]Write to MH i2c: D8 00 00 5C 06 39 [22:48:22]Write i2c OK [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: D8 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: D8 01 00 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: D8 01 00 5C 06 00 3A [22:48:22]int [22:48:22]Write to MH i2c: 01 00 00 5D 06 63 [22:48:22]Write i2c OK [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 07 00 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 07 00 5D 06 00 48 00 00 00 3C 00 EE [22:48:22]state=2 [22:48:22]Key pressed [22:48:22]int [22:48:22]Write to MH i2c: 01 00 00 5E 06 64 [22:48:22]*** FLAG_PRN_KEY reset [22:48:22]Write i2c OK [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 07 00 [22:48:22]MH_I2C_Read... [22:48:22]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 F7 0F 71 [22:48:22]state=2 [22:48:22]Stop feed [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:11]accept exits with 9 [22:57:11]New connection [22:57:11]New thread 3066482020 created [22:57:11]Thread 3066625380 joined [22:57:11]Waiting for new connection... [22:57:11] Sock 9.Parse request [22:57:11]Sock 9.Check first char [22:57:11]Sock 9.First char is OK [22:57:11]request: POST /json_proto HTTP/1.0 [22:57:11]Method: POST [22:57:11]URL: /json_proto [22:57:11]Method is POST - this is cgi request [22:57:11]url: /json_proto [22:57:11]query_string will be loaded in cgi processing [22:57:11]execute_cgi json_proto POST (null) [22:57:11]execute_cgi path=json_proto method=POST [22:57:11]POST find Content-Length [22:57:11]Host: 172.17.45.196:8080 [22:57:11]Content-Length: 660 [22:57:11]Content-Type: application/json [22:57:11] [22:57:11]POST finish read [22:57:11]Found Content-Length = 660 [22:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14645", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:11]execute_script... [22:57:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14645", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:11]POST & json_proto [22:57:11]process_json_proto [22:57:11]json parsed OK: [22:57:11]protocol is kg_v1.0 [22:57:11]action value=close_receipt [22:57:11]process_action close_receipt [22:57:11]cmd_close_receipt [22:57:11]MH_GetDate [22:57:11]Write to MH i2c: F0 00 00 5F 06 54 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: F0 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: F0 09 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: F0 09 00 5F 06 00 C8 CC A6 66 BB 03 A5 66 C6 [22:57:11]GetLastDocTimeStamp 1722206896 [22:57:11]current date 1722207432 [22:57:11]FM_GetShiftState [22:57:11]SAM_PROTO_GetShiftState [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 13 01 00 [22:57:11]Write to MH i2c: E2 08 00 60 06 80 13 01 00 00 00 00 00 E3 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0E 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0E 00 60 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 7C [22:57:11]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:57:11]wFMCommunicate OK [22:57:11]SAM_PROTO_GetShiftState done [22:57:11]FM_GetShiftState done [22:57:11]opened in 1722126323 [22:57:11]opened+sec_in_day 1722212723 [22:57:11]quantity*price = 6700 [22:57:11]sum+1 = 6701 [22:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 124 28.07.2024 22:57 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44753 ФПД: 160971916744708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225712&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44753&fm=160971916744708&tin=02508201610067®Number=0000000000092655&sum=6700 0 [22:57:12]StoreToDocumentArchive [22:57:12]shift 430 fd 44753 [22:57:12]save to /storage/0430/doc_00044753 [22:57:12]save last doc name /storage/0430/doc_00044753 to /storage/kkm_last_doc_name [22:57:12]save OK [22:57:12]Clear old archive folders... [22:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:57:12]tlvbuf is 01794800 [22:57:12]SAM_PROTO_ClearQueue [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 09 00 00 [22:57:12]Write to MH i2c: E2 08 00 6D 06 80 09 00 00 00 00 00 00 E5 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 03 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [22:57:12]RAPDU: 90 00 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_ClearQueue done [22:57:12]KKMCreateOFDPacket [22:57:12]OFDProtocolAddRootSTLVToBuf [22:57:12]FM_MakeSignedData [22:57:12]FM_MakeSignedData [22:57:12]SAM_PROTO_SignData [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 0D 01 02 [22:57:12]Write to MH i2c: E2 08 00 6E 06 80 0D 01 02 00 00 00 00 ED [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 03 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [22:57:12]RAPDU: 90 00 [22:57:12]wFMCommunicate OK [22:57:12]wFMCommunicate request_size=255 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C8 CC A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [22:57:12]Write to MH i2c: E2 02 01 6F 06 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C8 CC A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 DB [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [22:57:13]RAPDU: 90 00 [22:57:13]wFMCommunicate OK [22:57:13]wFMCommunicate request_size=43 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D1 AE 00 00 35 04 06 00 92 67 31 EA 98 04 [22:57:13]Write to MH i2c: E2 2E 00 70 06 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D1 AE 00 00 35 04 06 00 92 67 31 EA 98 04 00 00 08 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [22:57:13]RAPDU: 90 00 [22:57:13]wFMCommunicate OK [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 0D 03 02 [22:57:13]Write to MH i2c: E2 08 00 71 06 80 0D 03 02 00 00 00 00 F2 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 0B 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 0B 00 71 06 00 12 3B 34 CD B4 25 0E D4 90 00 FC [22:57:13]RAPDU: 12 3B 34 CD B4 25 0E D4 90 00 [22:57:13]wFMCommunicate OK [22:57:13]SAM_PROTO_SignData done [22:57:13]FM_MakeSignedData done [22:57:13]CreateOFDProtocolMessage [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 11 00 00 [22:57:13]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 17 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 46 [22:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:57:13]wFMCommunicate OK [22:57:13]CreateOFDProtocolMessage done [22:57:13]OFDSenderStorePacket 44753 [22:57:13]StoreOFDPacket docnum=44753 [22:57:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 88 3B 28 01 9B 67 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C8 CC A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D1 AE 00 00 35 04 06 00 92 67 31 EA 98 04 12 3B 34 CD B4 25 0E D4 [22:57:13]CheckFolder [22:57:13]dirname=/storage/ofd_packets [22:57:13]CheckFolder done [22:57:13]ProducePacketName [22:57:13]name=ofd_packets/00044753 [22:57:13]NVStorageSaveData ofd_packets/00044753 [22:57:13]File name is /storage/ofd_packets/00044753 [22:57:13]Write 334 bytes [22:57:13]NVStorageSaveData done [22:57:13]OFDSenderStorePacket done [22:57:13]KKMCreateOFDPacket done [22:57:13]NVStorageSaveData kkm_last_timestamp [22:57:13]File name is /storage/kkm_last_timestamp [22:57:13]Write 4 bytes [22:57:13]NVStorageSaveData done [22:57:13]ExternCall_PrintAddStr [22:57:13]wPrintStart [22:57:13]Write to MH i2c: 01 00 00 73 06 79 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: 01 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: 01 07 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 FF 0F 8E [22:57:13]RasterBufferAndPrint [22:57:13]line Счет N : (3)14645 [22:57:13]line ИНН: 02508201610067 [22:57:13]line Контрольно-Кассовый Чек [22:57:13]line ПРОДАЖА [22:57:13]line Товар: 6931280300549 [22:57:13]line Зажигалка Cricket ПН пьезо [22:57:13]line 1.000 * 67.00 [22:57:13]line = 67.00 [22:57:13]line НДС 12% НСП 1% [22:57:13]line > о реализуемом товаре [22:57:13]line ИТОГО: 67.00 [22:57:13]line НСП 1% : 0.59 [22:57:13]line НДС 12% : 7.11 [22:57:13]line Наличными: 67.00 [22:57:13]line Безнал.: 0.00 [22:57:13]line Место: АЗС № 128 "Партнер Нефть" [22:57:13]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:57:13]line СНО: Общий режим [22:57:13]line Чек 124 28.07.2024 22:57 [22:57:13]line Смена: 430 ФФД: 1.0 [22:57:13]line ЗНМ: 0300000045 [22:57:13]line РНМ: 0000000000092655 [22:57:13]line Версия ККМ: 001 [22:57:13]line ФМ: 0000000000874941 [22:57:13]line ФД: 44753 [22:57:13]line ФПД: 160971916744708 [22:57:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225712&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44753&fm=160971916744708&tin=02508201610067®Number=0000000000092655&sum=6700 [22:57:13]line 0 [22:57:13]OFD Sender: Processing packet 44753 [packets to send 7, broken 6] [22:57:13]ProducePacketName [22:57:13]name=ofd_packets/00044753 [22:57:13]OFD Sender: To server: pG, [22:57:13]CommunicateWithHost lk.salyk.kg:30040 [22:57:13]ConnectInit lk.salyk.kg [22:57:13]written 0, free lines is 4095 [22:57:13]Connected sock=10 [22:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 88 3B 28 01 9B 67 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C8 CC A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D1 AE 00 00 35 04 06 00 92 67 31 EA 98 04 12 3B 34 CD B4 25 0E D4 [22:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 06 25 47 00 84 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D1 AE 00 00 F4 03 04 00 DA 78 A6 66 B6 04 01 00 00 44 77 41 7D 6C 19 9C C9 [22:57:14]CommunicateWithHost err = 0 [22:57:14]CheckOFDResponse [22:57:14]1017 (14) - 77093643461234 [22:57:14]1041 (16) - 0000000000874941 [22:57:14]1040 (4) - 44753 [22:57:14]1012 (4) - 28.07.2024 16:59 [22:57:14]1206 (1) - 0 [22:57:14]OFD Sender: Remove packet 44753 [22:57:14]ProducePacketName [22:57:14]name=ofd_packets/00044753 [22:57:14]NVStorageDeleteData [22:57:14]Write to MH i2c: 01 00 00 9B 06 A1 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 07 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 DC 0C 90 [22:57:14]RasterBufferAndPrint [22:57:14]line [22:57:14]line [22:57:14]line [22:57:14]line [22:57:14]line [22:57:14]written 0, free lines is 3298 [22:57:14]process_action close_receipt done [22:57:14]requested_data is exist [22:57:14]produce_requested_data [22:57:14]requested_item fm.sn is exist - process it [22:57:14]wFMCommunicate request_size=4 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 11 00 00 [22:57:14]Write to MH i2c: E2 08 00 A2 06 80 11 00 00 00 00 00 00 22 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 17 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 17 00 A2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 76 [22:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:57:14]wFMCommunicate OK [22:57:14]requested_item fd.num is exist - process it [22:57:14]SAM_PROTO_GetFieldsCounters [22:57:14]wFMCommunicate request_size=4 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 13 00 00 [22:57:14]Write to MH i2c: E2 08 00 A3 06 80 13 00 00 00 00 00 00 25 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 62 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 62 00 A3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [22:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D1 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:14]wFMCommunicate OK [22:57:14]SAM_PROTO_GetFieldsCounters done [22:57:14]requested_item shift.num is exist - process it [22:57:14]requested_item shift.opened is exist - process it [22:57:14]req_shift_opened [22:57:14]FM_GetShiftState [22:57:14]SAM_PROTO_GetShiftState [22:57:14]wFMCommunicate request_size=4 [22:57:14]MH_SAM_APDU [22:57:14]CAPDU: 80 13 01 00 [22:57:14]Write to MH i2c: E2 08 00 A4 06 80 13 01 00 00 00 00 00 27 [22:57:14]Write i2c OK [22:57:14]MH_I2C_Read... [22:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:14]Read from MH i2c: E2 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 0E 00 [22:57:14]MH_I2C_Read... [22:57:14]Read from MH i2c: E2 0E 00 A4 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C0 [22:57:14]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:57:14]wFMCommunicate OK [22:57:14]SAM_PROTO_GetShiftState done [22:57:14]FM_GetShiftState done [22:57:14]req_shift_opened done [22:57:14]requested_item shift.open_date is exist - process it [22:57:14]req_shift_open_date [22:57:14]req_shift_open_date done [22:57:14]produce_requested_data done [22:57:14]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44753,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:57:14]process_action_free close_receipt [22:57:14]json_value_free [22:57:14]json_value_free done [22:57:14]process_json_proto returns [22:57:14]Send response to host [22:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44753,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:57:14]free response buf [22:57:14]execute_script done [22:57:14]execute_script returns [22:57:14]free content buf [22:57:14]Sock 9.Close socket [22:57:14]Sock 9.Thread stoped [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:29]int [22:58:29]Write to MH i2c: 01 00 00 A5 06 AB [22:58:29]*** FLAG_PRN_KEY set [22:58:29]Write i2c OK [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 07 00 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 07 00 A5 06 00 08 00 00 00 FF 0F C8 [22:58:29]state=0 [22:58:29]Key pressed [22:58:29]Feed [22:58:29]Write to MH i2c: D8 00 00 A6 06 83 [22:58:29]Write i2c OK [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: D8 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: D8 01 00 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: D8 01 00 A6 06 00 84 [22:58:29]int [22:58:29]Write to MH i2c: 01 00 00 A7 06 AD [22:58:29]Write i2c OK [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 07 00 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: 01 07 00 A7 06 00 48 00 00 00 3D 00 39 [22:58:29]state=2 [22:58:29]Key pressed [22:58:30]int [22:58:30]Write to MH i2c: 01 00 00 A8 06 AE [22:58:30]*** FLAG_PRN_KEY reset [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: 01 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: 01 07 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 F6 0F BA [22:58:30]state=2 [22:58:30]Stop feed [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:06]accept exits with 7 [22:59:06]New connection [22:59:06]New thread 3066625380 created [22:59:06]Thread 3066482020 joined [22:59:06]Waiting for new connection... [22:59:06] Sock 7.Parse request [22:59:06]Sock 7.Check first char [22:59:06]Sock 7.First char is OK [22:59:06]request: POST /json_proto HTTP/1.0 [22:59:06]Method: POST [22:59:06]URL: /json_proto [22:59:06]Method is POST - this is cgi request [22:59:06]url: /json_proto [22:59:06]query_string will be loaded in cgi processing [22:59:06]execute_cgi json_proto POST (null) [22:59:06]execute_cgi path=json_proto method=POST [22:59:06]POST find Content-Length [22:59:06]Host: 172.17.45.196:8080 [22:59:06]Content-Length: 620 [22:59:06]Content-Type: application/json [22:59:06] [22:59:06]POST finish read [22:59:06]Found Content-Length = 620 [22:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14646", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:06]execute_script... [22:59:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14646", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:06]POST & json_proto [22:59:06]process_json_proto [22:59:06]json parsed OK: [22:59:06]protocol is kg_v1.0 [22:59:06]action value=close_receipt [22:59:06]process_action close_receipt [22:59:06]cmd_close_receipt [22:59:06]MH_GetDate [22:59:06]Write to MH i2c: F0 00 00 A9 06 9E [22:59:06]Write i2c OK [22:59:06]MH_I2C_Read... [22:59:06]Read from MH i2c: F0 [22:59:06]MH_I2C_Read... [22:59:06]Read from MH i2c: F0 09 00 [22:59:06]MH_I2C_Read... [22:59:06]Read from MH i2c: F0 09 00 A9 06 00 3B CD A6 66 BB 03 A5 66 84 [22:59:06]GetLastDocTimeStamp 1722207432 [22:59:06]current date 1722207547 [22:59:06]FM_GetShiftState [22:59:06]SAM_PROTO_GetShiftState [22:59:06]wFMCommunicate request_size=4 [22:59:06]MH_SAM_APDU [22:59:06]CAPDU: 80 13 01 00 [22:59:06]Write to MH i2c: E2 08 00 AA 06 80 13 01 00 00 00 00 00 2D [22:59:06]Write i2c OK [22:59:06]MH_I2C_Read... [22:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:06]Read from MH i2c: E2 [22:59:06]MH_I2C_Read... [22:59:06]Read from MH i2c: E2 0E 00 [22:59:06]MH_I2C_Read... [22:59:06]Read from MH i2c: E2 0E 00 AA 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 C6 [22:59:06]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:59:06]wFMCommunicate OK [22:59:06]SAM_PROTO_GetShiftState done [22:59:06]FM_GetShiftState done [22:59:06]opened in 1722126323 [22:59:06]opened+sec_in_day 1722212723 [22:59:06]quantity*price = 14000 [22:59:06]sum+1 = 14001 [22:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 125 28.07.2024 22:59 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44754 ФПД: 109366433168562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225907&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44754&fm=109366433168562&tin=02508201610067®Number=0000000000092655&sum=14000 0 [22:59:07]StoreToDocumentArchive [22:59:07]shift 430 fd 44754 [22:59:07]save to /storage/0430/doc_00044754 [22:59:07]save last doc name /storage/0430/doc_00044754 to /storage/kkm_last_doc_name [22:59:07]save OK [22:59:07]Clear old archive folders... [22:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:59:07]tlvbuf is 017F8F50 [22:59:07]SAM_PROTO_ClearQueue [22:59:07]wFMCommunicate request_size=4 [22:59:07]MH_SAM_APDU [22:59:07]CAPDU: 80 09 00 00 [22:59:07]Write to MH i2c: E2 08 00 B7 06 80 09 00 00 00 00 00 00 2F [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 [22:59:07]MH_I2C_Read... [22:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:07]Read from MH i2c: E2 03 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [22:59:07]RAPDU: 90 00 [22:59:07]wFMCommunicate OK [22:59:07]SAM_PROTO_ClearQueue done [22:59:07]KKMCreateOFDPacket [22:59:07]OFDProtocolAddRootSTLVToBuf [22:59:07]FM_MakeSignedData [22:59:07]FM_MakeSignedData [22:59:07]SAM_PROTO_SignData [22:59:07]wFMCommunicate request_size=4 [22:59:07]MH_SAM_APDU [22:59:07]CAPDU: 80 0D 01 02 [22:59:07]Write to MH i2c: E2 08 00 B8 06 80 0D 01 02 00 00 00 00 37 [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:07]Read from MH i2c: E2 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 03 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [22:59:07]RAPDU: 90 00 [22:59:07]wFMCommunicate OK [22:59:07]wFMCommunicate request_size=255 [22:59:07]MH_SAM_APDU [22:59:07]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 [22:59:07]Write to MH i2c: E2 02 01 B9 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 6E [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=32 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 31 10 04 04 00 D2 AE 00 00 35 04 06 00 63 77 DB 66 3C B2 [22:59:08]Write to MH i2c: E2 23 00 BA 06 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 31 10 04 04 00 D2 AE 00 00 35 04 06 00 63 77 DB 66 3C B2 00 00 21 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 03 02 [22:59:08]Write to MH i2c: E2 08 00 BB 06 80 0D 03 02 00 00 00 00 3C [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0B 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0B 00 BB 06 00 8B 8B A1 61 E6 84 1C 06 90 00 E1 [22:59:08]RAPDU: 8B 8B A1 61 E6 84 1C 06 90 00 [22:59:08]wFMCommunicate OK [22:59:08]SAM_PROTO_SignData done [22:59:08]FM_MakeSignedData done [22:59:08]CreateOFDProtocolMessage [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 11 00 00 [22:59:08]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 17 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 90 [22:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:59:08]wFMCommunicate OK [22:59:08]CreateOFDProtocolMessage done [22:59:08]OFDSenderStorePacket 44754 [22:59:08]StoreOFDPacket docnum=44754 [22:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 D7 24 1D 01 C9 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D2 AE 00 00 35 04 06 00 63 77 DB 66 3C B2 8B 8B A1 61 E6 84 1C 06 [22:59:08]CheckFolder [22:59:08]dirname=/storage/ofd_packets [22:59:08]CheckFolder done [22:59:08]ProducePacketName [22:59:08]name=ofd_packets/00044754 [22:59:08]NVStorageSaveData ofd_packets/00044754 [22:59:08]File name is /storage/ofd_packets/00044754 [22:59:08]Write 323 bytes [22:59:08]NVStorageSaveData done [22:59:08]OFDSenderStorePacket done [22:59:08]KKMCreateOFDPacket done [22:59:08]NVStorageSaveData kkm_last_timestamp [22:59:08]File name is /storage/kkm_last_timestamp [22:59:08]Write 4 bytes [22:59:08]NVStorageSaveData done [22:59:08]ExternCall_PrintAddStr [22:59:08]wPrintStart [22:59:08]Write to MH i2c: 01 00 00 BD 06 C3 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [22:59:08]RasterBufferAndPrint [22:59:08]line Счет N : (3)14646 [22:59:08]line ИНН: 02508201610067 [22:59:08]line Контрольно-Кассовый Чек [22:59:08]line ПРОДАЖА [22:59:08]line Товар: 48743570 [22:59:08]line Сигареты Winston XStyle Blue [22:59:08]line 1.000 * 140.00 [22:59:08]line = 140.00 [22:59:08]line НДС 12% НСП 1% [22:59:08]line > о реализуемом товаре [22:59:08]line ИТОГО: 140.00 [22:59:08]line НСП 1% : 1.24 [22:59:08]line НДС 12% : 14.87 [22:59:08]line Наличными: 140.00 [22:59:08]line Безнал.: 0.00 [22:59:08]line Место: АЗС № 128 "Партнер Нефть" [22:59:08]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [22:59:08]line СНО: Общий режим [22:59:08]line Чек 125 28.07.2024 22:59 [22:59:08]line Смена: 430 ФФД: 1.0 [22:59:08]line ЗНМ: 0300000045 [22:59:08]line РНМ: 0000000000092655 [22:59:08]line Версия ККМ: 001 [22:59:08]line ФМ: 0000000000874941 [22:59:08]line ФД: 44754 [22:59:08]line ФПД: 109366433168562 [22:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225907&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44754&fm=109366433168562&tin=02508201610067®Number=0000000000092655&sum=14000 [22:59:08]OFD Sender: Processing packet 44754 [packets to send 7, broken 6] [22:59:08]ProducePacketName [22:59:08]name=ofd_packets/00044754 [22:59:08]OFD Sender: To server: pG, [22:59:08]CommunicateWithHost lk.salyk.kg:30040 [22:59:08]ConnectInit lk.salyk.kg [22:59:08]line 0 [22:59:08]written 0, free lines is 4095 [22:59:08]Connected sock=10 [22:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 25 01 00 00 D7 24 1D 01 C9 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D2 AE 00 00 35 04 06 00 63 77 DB 66 3C B2 8B 8B A1 61 E6 84 1C 06 [22:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 6D BB 47 00 3B 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D2 AE 00 00 F4 03 04 00 4D 79 A6 66 B6 04 01 00 00 BD 08 8D 58 D3 C4 2C 86 [22:59:08]CommunicateWithHost err = 0 [22:59:08]CheckOFDResponse [22:59:08]1017 (14) - 77093643461234 [22:59:08]1041 (16) - 0000000000874941 [22:59:08]1040 (4) - 44754 [22:59:08]1012 (4) - 28.07.2024 17:01 [22:59:08]1206 (1) - 0 [22:59:08]OFD Sender: Remove packet 44754 [22:59:08]ProducePacketName [22:59:08]name=ofd_packets/00044754 [22:59:08]NVStorageDeleteData [22:59:09]Write to MH i2c: 01 00 00 E5 06 EB [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 EF 0C ED [22:59:09]RasterBufferAndPrint [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]written 0, free lines is 3317 [22:59:09]process_action close_receipt done [22:59:09]requested_data is exist [22:59:09]produce_requested_data [22:59:09]requested_item fm.sn is exist - process it [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 11 00 00 [22:59:09]Write to MH i2c: E2 08 00 EC 06 80 11 00 00 00 00 00 00 6C [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:09]Read from MH i2c: E2 17 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 17 00 EC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C0 [22:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [22:59:09]wFMCommunicate OK [22:59:09]requested_item fd.num is exist - process it [22:59:09]SAM_PROTO_GetFieldsCounters [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 00 00 [22:59:09]Write to MH i2c: E2 08 00 ED 06 80 13 00 00 00 00 00 00 6F [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 62 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 62 00 ED 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D2 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetFieldsCounters done [22:59:09]requested_item shift.num is exist - process it [22:59:09]requested_item shift.opened is exist - process it [22:59:09]req_shift_opened [22:59:09]FM_GetShiftState [22:59:09]SAM_PROTO_GetShiftState [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 01 00 [22:59:09]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 0A [22:59:09]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetShiftState done [22:59:09]FM_GetShiftState done [22:59:09]req_shift_opened done [22:59:09]requested_item shift.open_date is exist - process it [22:59:09]req_shift_open_date [22:59:09]req_shift_open_date done [22:59:09]produce_requested_data done [22:59:09]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44754,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [22:59:09]process_action_free close_receipt [22:59:09]json_value_free [22:59:09]json_value_free done [22:59:09]process_json_proto returns [22:59:09]Send response to host [22:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44754,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [22:59:09]free response buf [22:59:09]execute_script done [22:59:09]execute_script returns [22:59:09]free content buf [22:59:09]Sock 7.Close socket [22:59:09]Sock 7.Thread stoped [22:59:09]OFD Sender: No OFD packet to send [22:59:11]int [22:59:11]Write to MH i2c: 01 00 00 EF 06 F5 [22:59:11]*** FLAG_PRN_KEY set [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 EF 06 00 08 00 00 00 FF 0F 12 [22:59:11]state=0 [22:59:11]Key pressed [22:59:11]Feed [22:59:11]Write to MH i2c: D8 00 00 F0 06 CD [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D8 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D8 01 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D8 01 00 F0 06 00 CE [22:59:11]int [22:59:11]Write to MH i2c: 01 00 00 F1 06 F7 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 F1 06 00 48 00 00 00 3C 00 82 [22:59:11]state=2 [22:59:11]Key pressed [22:59:11]int [22:59:11]Write to MH i2c: 01 00 00 F2 06 F8 [22:59:11]*** FLAG_PRN_KEY reset [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 F2 06 00 00 00 00 00 F7 0F 05 [22:59:11]state=2 [22:59:11]Stop feed [22:59:12]int [22:59:12]Write to MH i2c: 01 00 00 F3 06 F9 [22:59:12]*** FLAG_PRN_KEY set [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 F3 06 00 08 00 00 00 FF 0F 16 [22:59:12]state=0 [22:59:12]Key pressed [22:59:12]Feed [22:59:12]Write to MH i2c: D8 00 00 F4 06 D1 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D8 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D8 01 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: D8 01 00 F4 06 00 D2 [22:59:12]int [22:59:12]Write to MH i2c: 01 00 00 F5 06 FB [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 F5 06 00 48 00 00 00 3C 00 86 [22:59:12]state=2 [22:59:12]Key pressed [22:59:12]int [22:59:12]Write to MH i2c: 01 00 00 F6 06 FC [22:59:12]*** FLAG_PRN_KEY reset [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 F7 0F 09 [22:59:12]state=2 [22:59:12]Stop feed [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:08]accept exits with 9 [23:02:08]New connection [23:02:08]New thread 3066482020 created [23:02:08]Thread 3066625380 joined [23:02:08]Waiting for new connection... [23:02:08] Sock 9.Parse request [23:02:08]Sock 9.Check first char [23:02:08]Sock 9.First char is OK [23:02:08]request: POST /json_proto HTTP/1.0 [23:02:08]Method: POST [23:02:08]URL: /json_proto [23:02:08]Method is POST - this is cgi request [23:02:08]url: /json_proto [23:02:08]query_string will be loaded in cgi processing [23:02:08]execute_cgi json_proto POST (null) [23:02:08]execute_cgi path=json_proto method=POST [23:02:08]POST find Content-Length [23:02:08]Host: 172.17.45.196:8080 [23:02:08]Content-Length: 790 [23:02:08]Content-Type: application/json [23:02:08] [23:02:08]POST finish read [23:02:08]Found Content-Length = 790 [23:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14647", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:08]execute_script... [23:02:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14647", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:08]POST & json_proto [23:02:08]process_json_proto [23:02:08]json parsed OK: [23:02:08]protocol is kg_v1.0 [23:02:08]action value=close_receipt [23:02:08]process_action close_receipt [23:02:08]cmd_close_receipt [23:02:08]MH_GetDate [23:02:08]Write to MH i2c: F0 00 00 F7 06 EC [23:02:08]Write i2c OK [23:02:08]MH_I2C_Read... [23:02:08]Read from MH i2c: F0 [23:02:08]MH_I2C_Read... [23:02:08]Read from MH i2c: F0 09 00 [23:02:08]MH_I2C_Read... [23:02:08]Read from MH i2c: F0 09 00 F7 06 00 F1 CD A6 66 BB 03 A5 66 88 [23:02:08]GetLastDocTimeStamp 1722207547 [23:02:08]current date 1722207729 [23:02:08]FM_GetShiftState [23:02:08]SAM_PROTO_GetShiftState [23:02:08]wFMCommunicate request_size=4 [23:02:08]MH_SAM_APDU [23:02:08]CAPDU: 80 13 01 00 [23:02:08]Write to MH i2c: E2 08 00 F8 06 80 13 01 00 00 00 00 00 7B [23:02:08]Write i2c OK [23:02:08]MH_I2C_Read... [23:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:08]Read from MH i2c: E2 [23:02:08]MH_I2C_Read... [23:02:08]Read from MH i2c: E2 0E 00 [23:02:08]MH_I2C_Read... [23:02:08]Read from MH i2c: E2 0E 00 F8 06 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 14 [23:02:08]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:02:08]wFMCommunicate OK [23:02:08]SAM_PROTO_GetShiftState done [23:02:08]FM_GetShiftState done [23:02:08]opened in 1722126323 [23:02:08]opened+sec_in_day 1722212723 [23:02:08]quantity*price = 11100 [23:02:08]sum+1 = 11101 [23:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 126 28.07.2024 23:02 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44755 ФПД: 151397919650944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230209&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44755&fm=151397919650944&tin=02508201610067®Number=0000000000092655&sum=11100 0 [23:02:09]StoreToDocumentArchive [23:02:09]shift 430 fd 44755 [23:02:09]save to /storage/0430/doc_00044755 [23:02:09]save last doc name /storage/0430/doc_00044755 to /storage/kkm_last_doc_name [23:02:09]save OK [23:02:09]Clear old archive folders... [23:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:02:09]tlvbuf is 017F8C70 [23:02:09]SAM_PROTO_ClearQueue [23:02:09]wFMCommunicate request_size=4 [23:02:09]MH_SAM_APDU [23:02:09]CAPDU: 80 09 00 00 [23:02:09]Write to MH i2c: E2 08 00 05 07 80 09 00 00 00 00 00 00 7E [23:02:09]Write i2c OK [23:02:09]MH_I2C_Read... [23:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:09]Read from MH i2c: E2 [23:02:09]MH_I2C_Read... [23:02:09]Read from MH i2c: E2 03 00 [23:02:09]MH_I2C_Read... [23:02:09]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [23:02:09]RAPDU: 90 00 [23:02:09]wFMCommunicate OK [23:02:09]SAM_PROTO_ClearQueue done [23:02:09]KKMCreateOFDPacket [23:02:09]OFDProtocolAddRootSTLVToBuf [23:02:09]FM_MakeSignedData [23:02:09]FM_MakeSignedData [23:02:09]SAM_PROTO_SignData [23:02:09]wFMCommunicate request_size=4 [23:02:09]MH_SAM_APDU [23:02:09]CAPDU: 80 0D 01 02 [23:02:09]Write to MH i2c: E2 08 00 06 07 80 0D 01 02 00 00 00 00 86 [23:02:09]Write i2c OK [23:02:09]MH_I2C_Read... [23:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:09]Read from MH i2c: E2 [23:02:09]MH_I2C_Read... [23:02:09]Read from MH i2c: E2 03 00 [23:02:09]MH_I2C_Read... [23:02:09]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [23:02:09]RAPDU: 90 00 [23:02:09]wFMCommunicate OK [23:02:09]wFMCommunicate request_size=255 [23:02:09]MH_SAM_APDU [23:02:09]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [23:02:09]Write to MH i2c: E2 02 01 07 07 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 9A [23:02:09]Write i2c OK [23:02:09]MH_I2C_Read... [23:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:10]Read from MH i2c: E2 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 03 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [23:02:10]RAPDU: 90 00 [23:02:10]wFMCommunicate OK [23:02:10]wFMCommunicate request_size=25 [23:02:10]MH_SAM_APDU [23:02:10]CAPDU: 80 0D 02 02 14 34 31 10 04 04 00 D3 AE 00 00 35 04 06 00 89 B2 13 38 74 80 [23:02:10]Write to MH i2c: E2 1C 00 08 07 80 0D 02 02 14 00 34 31 10 04 04 00 D3 AE 00 00 35 04 06 00 89 B2 13 38 74 80 00 00 68 [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:10]Read from MH i2c: E2 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 03 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [23:02:10]RAPDU: 90 00 [23:02:10]wFMCommunicate OK [23:02:10]wFMCommunicate request_size=4 [23:02:10]MH_SAM_APDU [23:02:10]CAPDU: 80 0D 03 02 [23:02:10]Write to MH i2c: E2 08 00 09 07 80 0D 03 02 00 00 00 00 8B [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:10]Read from MH i2c: E2 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 0B 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 0B 00 09 07 00 16 C3 A5 91 AE AA A9 DD 90 00 79 [23:02:10]RAPDU: 16 C3 A5 91 AE AA A9 DD 90 00 [23:02:10]wFMCommunicate OK [23:02:10]SAM_PROTO_SignData done [23:02:10]FM_MakeSignedData done [23:02:10]CreateOFDProtocolMessage [23:02:10]wFMCommunicate request_size=4 [23:02:10]MH_SAM_APDU [23:02:10]CAPDU: 80 11 00 00 [23:02:10]Write to MH i2c: E2 08 00 0A 07 80 11 00 00 00 00 00 00 8B [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:10]Read from MH i2c: E2 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 17 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: E2 17 00 0A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DF [23:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:02:10]wFMCommunicate OK [23:02:10]CreateOFDProtocolMessage done [23:02:10]OFDSenderStorePacket 44755 [23:02:10]StoreOFDPacket docnum=44755 [23:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 3E A5 16 01 00 D3 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D3 AE 00 00 35 04 06 00 89 B2 13 38 74 80 16 C3 A5 91 AE AA A9 DD [23:02:10]CheckFolder [23:02:10]dirname=/storage/ofd_packets [23:02:10]CheckFolder done [23:02:10]ProducePacketName [23:02:10]name=ofd_packets/00044755 [23:02:10]NVStorageSaveData ofd_packets/00044755 [23:02:10]File name is /storage/ofd_packets/00044755 [23:02:10]Write 316 bytes [23:02:10]NVStorageSaveData done [23:02:10]OFDSenderStorePacket done [23:02:10]KKMCreateOFDPacket done [23:02:10]NVStorageSaveData kkm_last_timestamp [23:02:10]File name is /storage/kkm_last_timestamp [23:02:10]Write 4 bytes [23:02:10]NVStorageSaveData done [23:02:10]ExternCall_PrintAddStr [23:02:10]wPrintStart [23:02:10]Write to MH i2c: 01 00 00 0B 07 12 [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 07 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [23:02:10]RasterBufferAndPrint [23:02:10]line Счет N : (3)14647 [23:02:10]line ИНН: 02508201610067 [23:02:10]line Контрольно-Кассовый Чек [23:02:10]line ПРОДАЖА [23:02:10]line Товар: 4870001570071 [23:02:10]line Напиток Pepsi 1л [23:02:10]line 1.000 * 111.00 [23:02:10]line = 111.00 [23:02:10]line НДС 12% НСП 1% [23:02:10]line > о реализуемом товаре [23:02:10]line ИТОГО: 111.00 [23:02:10]line НСП 1% : 0.98 [23:02:10]line НДС 12% : 11.79 [23:02:10]line Наличными: 0.00 [23:02:10]line Безнал.: 111.00 [23:02:10]line Место: АЗС № 128 "Партнер Нефть" [23:02:10]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:02:10]line СНО: Общий режим [23:02:10]line Чек 126 28.07.2024 23:02 [23:02:10]line Смена: 430 ФФД: 1.0 [23:02:10]line ЗНМ: 0300000045 [23:02:10]line РНМ: 0000000000092655 [23:02:10]line Версия ККМ: 001 [23:02:10]line Платежная система: Бакай Банк [23:02:10]line ФМ: 0000000000874941 [23:02:10]line ФД: 44755 [23:02:10]line ФПД: 151397919650944 [23:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230209&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44755&fm=151397919650944&tin=02508201610067®Number=0000000000092655&sum=11100 [23:02:10]line 0 [23:02:10]OFD Sender: Processing packet 44755 [packets to send 7, broken 6] [23:02:10]ProducePacketName [23:02:10]name=ofd_packets/00044755 [23:02:10]OFD Sender: To server: pG, [23:02:10]CommunicateWithHost lk.salyk.kg:30040 [23:02:10]ConnectInit lk.salyk.kg [23:02:10]written 0, free lines is 4095 [23:02:10]Connected sock=10 [23:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 1E 01 00 00 3E A5 16 01 00 D3 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F1 CD A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D3 AE 00 00 35 04 06 00 89 B2 13 38 74 80 16 C3 A5 91 AE AA A9 DD [23:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 20 C5 47 00 DB 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D3 AE 00 00 F4 03 04 00 02 7A A6 66 B6 04 01 00 00 DD 4A 84 11 DC 1A EF DD [23:02:10]CommunicateWithHost err = 0 [23:02:10]CheckOFDResponse [23:02:10]1017 (14) - 77093643461234 [23:02:10]1041 (16) - 0000000000874941 [23:02:10]1040 (4) - 44755 [23:02:10]1012 (4) - 28.07.2024 17:04 [23:02:10]1206 (1) - 0 [23:02:10]OFD Sender: Remove packet 44755 [23:02:10]ProducePacketName [23:02:10]name=ofd_packets/00044755 [23:02:10]NVStorageDeleteData [23:02:10]Write to MH i2c: 01 00 00 35 07 3C [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 07 00 [23:02:10]MH_I2C_Read... [23:02:10]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 C6 0C 15 [23:02:10]RasterBufferAndPrint [23:02:10]line [23:02:10]line [23:02:10]line [23:02:10]line [23:02:10]line [23:02:10]written 0, free lines is 3277 [23:02:10]process_action close_receipt done [23:02:10]requested_data is exist [23:02:10]produce_requested_data [23:02:10]requested_item fm.sn is exist - process it [23:02:10]wFMCommunicate request_size=4 [23:02:10]MH_SAM_APDU [23:02:10]CAPDU: 80 11 00 00 [23:02:10]Write to MH i2c: E2 08 00 3C 07 80 11 00 00 00 00 00 00 BD [23:02:10]Write i2c OK [23:02:10]MH_I2C_Read... [23:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:11]Read from MH i2c: E2 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 17 00 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 17 00 3C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 11 [23:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:02:11]wFMCommunicate OK [23:02:11]requested_item fd.num is exist - process it [23:02:11]SAM_PROTO_GetFieldsCounters [23:02:11]wFMCommunicate request_size=4 [23:02:11]MH_SAM_APDU [23:02:11]CAPDU: 80 13 00 00 [23:02:11]Write to MH i2c: E2 08 00 3D 07 80 13 00 00 00 00 00 00 C0 [23:02:11]Write i2c OK [23:02:11]MH_I2C_Read... [23:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:11]Read from MH i2c: E2 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 62 00 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 62 00 3D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [23:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D3 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:02:11]wFMCommunicate OK [23:02:11]SAM_PROTO_GetFieldsCounters done [23:02:11]requested_item shift.num is exist - process it [23:02:11]requested_item shift.opened is exist - process it [23:02:11]req_shift_opened [23:02:11]FM_GetShiftState [23:02:11]SAM_PROTO_GetShiftState [23:02:11]wFMCommunicate request_size=4 [23:02:11]MH_SAM_APDU [23:02:11]CAPDU: 80 13 01 00 [23:02:11]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [23:02:11]Write i2c OK [23:02:11]MH_I2C_Read... [23:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:11]Read from MH i2c: E2 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 0E 00 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 5B [23:02:11]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:02:11]wFMCommunicate OK [23:02:11]SAM_PROTO_GetShiftState done [23:02:11]FM_GetShiftState done [23:02:11]req_shift_opened done [23:02:11]requested_item shift.open_date is exist - process it [23:02:11]req_shift_open_date [23:02:11]req_shift_open_date done [23:02:11]produce_requested_data done [23:02:11]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44755,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:02:11]process_action_free close_receipt [23:02:11]json_value_free [23:02:11]json_value_free done [23:02:11]process_json_proto returns [23:02:11]Send response to host [23:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44755,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:02:11]free response buf [23:02:11]execute_script done [23:02:11]execute_script returns [23:02:11]free content buf [23:02:11]Sock 9.Close socket [23:02:11]Sock 9.Thread stoped [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:40]int [23:02:40]Write to MH i2c: 01 00 00 3F 07 46 [23:02:40]*** FLAG_PRN_KEY set [23:02:40]Write i2c OK [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 3F 07 00 08 00 00 00 FF 0F 63 [23:02:40]state=0 [23:02:40]Key pressed [23:02:40]Feed [23:02:40]Write to MH i2c: D8 00 00 40 07 1E [23:02:40]Write i2c OK [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: D8 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: D8 01 00 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: D8 01 00 40 07 00 1F [23:02:40]int [23:02:40]Write to MH i2c: 01 00 00 41 07 48 [23:02:40]Write i2c OK [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 41 07 00 48 00 00 00 3D 00 D4 [23:02:40]state=2 [23:02:40]Key pressed [23:02:40]int [23:02:40]Write to MH i2c: 01 00 00 42 07 49 [23:02:40]*** FLAG_PRN_KEY reset [23:02:40]Write i2c OK [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 [23:02:40]MH_I2C_Read... [23:02:40]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 F6 0F 55 [23:02:40]state=2 [23:02:40]Stop feed [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:05]accept exits with 7 [23:10:05]New connection [23:10:05]New thread 3066625380 created [23:10:05]Thread 3066482020 joined [23:10:05]Waiting for new connection... [23:10:05] Sock 7.Parse request [23:10:05]Sock 7.Check first char [23:10:05]Sock 7.First char is OK [23:10:05]request: POST /json_proto HTTP/1.0 [23:10:05]Method: POST [23:10:05]URL: /json_proto [23:10:05]Method is POST - this is cgi request [23:10:05]url: /json_proto [23:10:05]query_string will be loaded in cgi processing [23:10:05]execute_cgi json_proto POST (null) [23:10:05]execute_cgi path=json_proto method=POST [23:10:05]POST find Content-Length [23:10:05]Host: 172.17.45.196:8080 [23:10:05]Content-Length: 877 [23:10:05]Content-Type: application/json [23:10:05] [23:10:05]POST finish read [23:10:05]Found Content-Length = 877 [23:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14648", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:05]execute_script... [23:10:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14648", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:05]POST & json_proto [23:10:05]process_json_proto [23:10:05]json parsed OK: [23:10:05]protocol is kg_v1.0 [23:10:05]action value=close_receipt [23:10:05]process_action close_receipt [23:10:05]cmd_close_receipt [23:10:05]MH_GetDate [23:10:05]Write to MH i2c: F0 00 00 43 07 39 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: F0 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: F0 09 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: F0 09 00 43 07 00 CF CF A6 66 BB 03 A5 66 B5 [23:10:05]GetLastDocTimeStamp 1722207729 [23:10:05]current date 1722208207 [23:10:05]FM_GetShiftState [23:10:05]SAM_PROTO_GetShiftState [23:10:05]wFMCommunicate request_size=4 [23:10:05]MH_SAM_APDU [23:10:05]CAPDU: 80 13 01 00 [23:10:05]Write to MH i2c: E2 08 00 44 07 80 13 01 00 00 00 00 00 C8 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:05]Read from MH i2c: E2 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 0E 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: E2 0E 00 44 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 61 [23:10:05]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:10:05]wFMCommunicate OK [23:10:05]SAM_PROTO_GetShiftState done [23:10:05]FM_GetShiftState done [23:10:05]opened in 1722126323 [23:10:05]opened+sec_in_day 1722212723 [23:10:05]quantity*price = 11100 [23:10:05]sum+1 = 11101 [23:10:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 271.00 НСП 1% : 2.40 НДС 12% : 28.78 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 127 28.07.2024 23:10 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44756 ФПД: 114380354190666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231007&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44756&fm=114380354190666&tin=02508201610067®Number=0000000000092655&sum=27100 0 [23:10:06]StoreToDocumentArchive [23:10:06]shift 430 fd 44756 [23:10:06]save to /storage/0430/doc_00044756 [23:10:06]save last doc name /storage/0430/doc_00044756 to /storage/kkm_last_doc_name [23:10:06]save OK [23:10:06]Clear old archive folders... [23:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=372 [23:10:06]tlvbuf is 017EDE90 [23:10:06]SAM_PROTO_ClearQueue [23:10:06]wFMCommunicate request_size=4 [23:10:06]MH_SAM_APDU [23:10:06]CAPDU: 80 09 00 00 [23:10:06]Write to MH i2c: E2 08 00 51 07 80 09 00 00 00 00 00 00 CA [23:10:06]Write i2c OK [23:10:06]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [23:10:07]RAPDU: 90 00 [23:10:07]wFMCommunicate OK [23:10:07]SAM_PROTO_ClearQueue done [23:10:07]KKMCreateOFDPacket [23:10:07]OFDProtocolAddRootSTLVToBuf [23:10:07]FM_MakeSignedData [23:10:07]FM_MakeSignedData [23:10:07]SAM_PROTO_SignData [23:10:07]wFMCommunicate request_size=4 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 0D 01 02 [23:10:07]Write to MH i2c: E2 08 00 52 07 80 0D 01 02 00 00 00 00 D2 [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [23:10:07]RAPDU: 90 00 [23:10:07]wFMCommunicate OK [23:10:07]wFMCommunicate request_size=255 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 [23:10:07]Write to MH i2c: E2 02 01 53 07 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 F1 [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [23:10:07]RAPDU: 90 00 [23:10:07]wFMCommunicate OK [23:10:07]wFMCommunicate request_size=131 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF CF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D4 AE 00 00 35 04 06 00 68 07 40 61 7D 4A [23:10:07]Write to MH i2c: E2 86 00 54 07 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF CF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D4 AE 00 00 35 04 06 00 68 07 40 61 7D 4A 00 00 CB [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [23:10:07]RAPDU: 90 00 [23:10:07]wFMCommunicate OK [23:10:07]wFMCommunicate request_size=4 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 0D 03 02 [23:10:07]Write to MH i2c: E2 08 00 55 07 80 0D 03 02 00 00 00 00 D7 [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0B 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0B 00 55 07 00 90 48 9D 88 04 78 1E 33 90 00 A2 [23:10:07]RAPDU: 90 48 9D 88 04 78 1E 33 90 00 [23:10:07]wFMCommunicate OK [23:10:07]SAM_PROTO_SignData done [23:10:07]FM_MakeSignedData done [23:10:07]CreateOFDProtocolMessage [23:10:07]wFMCommunicate request_size=4 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 11 00 00 [23:10:07]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 17 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2B [23:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:10:07]wFMCommunicate OK [23:10:07]CreateOFDProtocolMessage done [23:10:07]OFDSenderStorePacket 44756 [23:10:07]StoreOFDPacket docnum=44756 [23:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 88 01 00 00 41 52 80 01 74 05 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF CF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D4 AE 00 00 35 04 06 00 68 07 40 61 7D 4A 90 48 9D 88 04 78 1E 33 [23:10:07]CheckFolder [23:10:07]dirname=/storage/ofd_packets [23:10:07]CheckFolder done [23:10:07]ProducePacketName [23:10:07]name=ofd_packets/00044756 [23:10:07]NVStorageSaveData ofd_packets/00044756 [23:10:07]File name is /storage/ofd_packets/00044756 [23:10:07]Write 422 bytes [23:10:07]NVStorageSaveData done [23:10:07]OFDSenderStorePacket done [23:10:07]KKMCreateOFDPacket done [23:10:07]NVStorageSaveData kkm_last_timestamp [23:10:07]File name is /storage/kkm_last_timestamp [23:10:07]Write 4 bytes [23:10:07]NVStorageSaveData done [23:10:07]ExternCall_PrintAddStr [23:10:07]wPrintStart [23:10:07]Write to MH i2c: 01 00 00 57 07 5E [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: 01 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: 01 07 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [23:10:07]RasterBufferAndPrint [23:10:07]line Счет N : (3)14648 [23:10:07]line ИНН: 02508201610067 [23:10:07]line Контрольно-Кассовый Чек [23:10:07]line ПРОДАЖА [23:10:07]line Товар: 4870001570071 [23:10:07]line Напиток Pepsi 1л [23:10:07]line 1.000 * 111.00 [23:10:07]line = 111.00 [23:10:07]line НДС 12% НСП 1% [23:10:07]line > о реализуемом товаре [23:10:07]line Товар: 4860019001346 [23:10:07]line Вода Боржоми 0,5л ст [23:10:07]line 1.000 * 160.00 [23:10:07]line = 160.00 [23:10:07]line НДС 12% НСП 1% [23:10:07]line > о реализуемом товаре [23:10:07]line ИТОГО: 271.00 [23:10:07]line НСП 1% : 2.40 [23:10:07]line НДС 12% : 28.78 [23:10:07]line Наличными: 271.00 [23:10:07]line Безнал.: 0.00 [23:10:07]line Место: АЗС № 128 "Партнер Нефть" [23:10:07]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:10:07]line СНО: Общий режим [23:10:07]line Чек 127 28.07.2024 23:10 [23:10:07]line Смена: 430 ФФД: 1.0 [23:10:07]line ЗНМ: 0300000045 [23:10:07]line РНМ: 0000000000092655 [23:10:07]line Версия ККМ: 001 [23:10:07]line ФМ: 0000000000874941 [23:10:07]line ФД: 44756 [23:10:07]line ФПД: 114380354190666 [23:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231007&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44756&fm=114380354190666&tin=02508201610067®Number=0000000000092655&sum=27100 [23:10:07]line 0 [23:10:07]OFD Sender: Processing packet 44756 [packets to send 7, broken 6] [23:10:07]ProducePacketName [23:10:07]name=ofd_packets/00044756 [23:10:07]OFD Sender: To server: pG, [23:10:07]CommunicateWithHost lk.salyk.kg:30040 [23:10:07]ConnectInit lk.salyk.kg [23:10:07]written 0, free lines is 4095 [23:10:08]Connected sock=10 [23:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 88 01 00 00 41 52 80 01 74 05 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CF CF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D4 AE 00 00 35 04 06 00 68 07 40 61 7D 4A 90 48 9D 88 04 78 1E 33 [23:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 5B AF 47 00 46 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D4 AE 00 00 F4 03 04 00 E0 7B A6 66 B6 04 01 00 00 C6 C3 7F 66 06 D7 79 4B [23:10:08]CommunicateWithHost err = 0 [23:10:08]CheckOFDResponse [23:10:08]1017 (14) - 77093643461234 [23:10:08]1041 (16) - 0000000000874941 [23:10:08]1040 (4) - 44756 [23:10:08]1012 (4) - 28.07.2024 17:12 [23:10:08]1206 (1) - 0 [23:10:08]OFD Sender: Remove packet 44756 [23:10:08]ProducePacketName [23:10:08]name=ofd_packets/00044756 [23:10:08]NVStorageDeleteData [23:10:08]Write to MH i2c: 01 00 00 85 07 8C [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 07 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 86 0C 25 [23:10:08]RasterBufferAndPrint [23:10:08]line [23:10:08]line [23:10:08]line [23:10:08]line [23:10:08]line [23:10:08]written 0, free lines is 3212 [23:10:08]process_action close_receipt done [23:10:08]requested_data is exist [23:10:08]produce_requested_data [23:10:08]requested_item fm.sn is exist - process it [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 11 00 00 [23:10:08]Write to MH i2c: E2 08 00 8C 07 80 11 00 00 00 00 00 00 0D [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 17 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 17 00 8C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 61 [23:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:10:08]wFMCommunicate OK [23:10:08]requested_item fd.num is exist - process it [23:10:08]SAM_PROTO_GetFieldsCounters [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 13 00 00 [23:10:08]Write to MH i2c: E2 08 00 8D 07 80 13 00 00 00 00 00 00 10 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 62 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 62 00 8D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [23:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D4 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:08]wFMCommunicate OK [23:10:08]SAM_PROTO_GetFieldsCounters done [23:10:08]requested_item shift.num is exist - process it [23:10:08]requested_item shift.opened is exist - process it [23:10:08]req_shift_opened [23:10:08]FM_GetShiftState [23:10:08]SAM_PROTO_GetShiftState [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 13 01 00 [23:10:08]Write to MH i2c: E2 08 00 8E 07 80 13 01 00 00 00 00 00 12 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 0E 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 0E 00 8E 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 AB [23:10:08]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:10:08]wFMCommunicate OK [23:10:08]SAM_PROTO_GetShiftState done [23:10:08]FM_GetShiftState done [23:10:08]req_shift_opened done [23:10:08]requested_item shift.open_date is exist - process it [23:10:08]req_shift_open_date [23:10:08]req_shift_open_date done [23:10:08]produce_requested_data done [23:10:08]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44756,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:10:08]process_action_free close_receipt [23:10:08]json_value_free [23:10:08]json_value_free done [23:10:08]process_json_proto returns [23:10:08]Send response to host [23:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44756,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:10:08]free response buf [23:10:08]execute_script done [23:10:08]execute_script returns [23:10:08]free content buf [23:10:08]Sock 7.Close socket [23:10:08]Sock 7.Thread stoped [23:10:08]OFD Sender: No OFD packet to send [23:10:10]int [23:10:10]Write to MH i2c: 01 00 00 8F 07 96 [23:10:10]*** FLAG_PRN_KEY set [23:10:10]Write i2c OK [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 8F 07 00 08 00 00 00 FF 0F B3 [23:10:10]state=0 [23:10:10]Key pressed [23:10:10]Feed [23:10:10]Write to MH i2c: D8 00 00 90 07 6E [23:10:10]Write i2c OK [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: D8 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: D8 01 00 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: D8 01 00 90 07 00 6F [23:10:10]int [23:10:10]Write to MH i2c: 01 00 00 91 07 98 [23:10:10]Write i2c OK [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 91 07 00 48 00 00 00 3C 00 23 [23:10:10]state=2 [23:10:10]Key pressed [23:10:10]int [23:10:10]Write to MH i2c: 01 00 00 92 07 99 [23:10:10]*** FLAG_PRN_KEY reset [23:10:10]Write i2c OK [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 [23:10:10]MH_I2C_Read... [23:10:10]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 FC 0F AB [23:10:10]state=2 [23:10:10]Stop feed [23:10:11]int [23:10:11]Write to MH i2c: 01 00 00 93 07 9A [23:10:11]*** FLAG_PRN_KEY set [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 93 07 00 08 00 00 00 FF 0F B7 [23:10:11]state=0 [23:10:11]Key pressed [23:10:11]Feed [23:10:11]Write to MH i2c: D8 00 00 94 07 72 [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: D8 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: D8 01 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: D8 01 00 94 07 00 73 [23:10:11]int [23:10:11]Write to MH i2c: 01 00 00 95 07 9C [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 95 07 00 48 00 00 00 3C 00 27 [23:10:11]state=2 [23:10:11]Key pressed [23:10:11]int [23:10:11]Write to MH i2c: 01 00 00 96 07 9D [23:10:11]*** FLAG_PRN_KEY reset [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 FF 0F B2 [23:10:11]state=2 [23:10:11]Stop feed [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:07]accept exits with 9 [23:19:07]New connection [23:19:07]New thread 3066482020 created [23:19:07]Thread 3066625380 joined [23:19:07]Waiting for new connection... [23:19:07] Sock 9.Parse request [23:19:07]Sock 9.Check first char [23:19:07]Sock 9.First char is OK [23:19:07]request: POST /json_proto HTTP/1.0 [23:19:07]Method: POST [23:19:07]URL: /json_proto [23:19:07]Method is POST - this is cgi request [23:19:07]url: /json_proto [23:19:07]query_string will be loaded in cgi processing [23:19:07]execute_cgi json_proto POST (null) [23:19:07]execute_cgi path=json_proto method=POST [23:19:07]POST find Content-Length [23:19:07]Host: 172.17.45.196:8080 [23:19:07]Content-Length: 911 [23:19:07]Content-Type: application/json [23:19:07] [23:19:07]POST finish read [23:19:07]Found Content-Length = 911 [23:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14649", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:07]execute_script... [23:19:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14649", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:07]POST & json_proto [23:19:07]process_json_proto [23:19:07]json parsed OK: [23:19:07]protocol is kg_v1.0 [23:19:07]action value=close_receipt [23:19:07]process_action close_receipt [23:19:07]cmd_close_receipt [23:19:07]MH_GetDate [23:19:07]Write to MH i2c: F0 00 00 97 07 8D [23:19:07]Write i2c OK [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: F0 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: F0 09 00 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: F0 09 00 97 07 00 ED D1 A6 66 BB 03 A5 66 29 [23:19:07]GetLastDocTimeStamp 1722208207 [23:19:07]current date 1722208749 [23:19:07]FM_GetShiftState [23:19:07]SAM_PROTO_GetShiftState [23:19:07]wFMCommunicate request_size=4 [23:19:07]MH_SAM_APDU [23:19:07]CAPDU: 80 13 01 00 [23:19:07]Write to MH i2c: E2 08 00 98 07 80 13 01 00 00 00 00 00 1C [23:19:07]Write i2c OK [23:19:07]MH_I2C_Read... [23:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:07]Read from MH i2c: E2 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: E2 0E 00 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: E2 0E 00 98 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B5 [23:19:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:19:07]wFMCommunicate OK [23:19:07]SAM_PROTO_GetShiftState done [23:19:07]FM_GetShiftState done [23:19:07]opened in 1722126323 [23:19:07]opened+sec_in_day 1722212723 [23:19:07]quantity*price = 12500 [23:19:07]sum+1 = 12501 [23:19:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.70 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 128 28.07.2024 23:19 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44757 ФПД: 63132757660934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231909&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44757&fm=63132757660934&tin=02508201610067®Number=0000000000092655&sum=19500 0 [23:19:09]StoreToDocumentArchive [23:19:09]shift 430 fd 44757 [23:19:09]save to /storage/0430/doc_00044757 [23:19:09]save last doc name /storage/0430/doc_00044757 to /storage/kkm_last_doc_name [23:19:09]save OK [23:19:09]Clear old archive folders... [23:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=380 [23:19:09]tlvbuf is 017EF8C0 [23:19:09]SAM_PROTO_ClearQueue [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 09 00 00 [23:19:09]Write to MH i2c: E2 08 00 A5 07 80 09 00 00 00 00 00 00 1E [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [23:19:09]RAPDU: 90 00 [23:19:09]wFMCommunicate OK [23:19:09]SAM_PROTO_ClearQueue done [23:19:09]KKMCreateOFDPacket [23:19:09]OFDProtocolAddRootSTLVToBuf [23:19:09]FM_MakeSignedData [23:19:09]FM_MakeSignedData [23:19:09]SAM_PROTO_SignData [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 0D 01 02 [23:19:09]Write to MH i2c: E2 08 00 A6 07 80 0D 01 02 00 00 00 00 26 [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [23:19:09]RAPDU: 90 00 [23:19:09]wFMCommunicate OK [23:19:09]wFMCommunicate request_size=255 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 [23:19:09]Write to MH i2c: E2 02 01 A7 07 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 17 [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]OFD Sender: No OFD packet to send [23:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [23:19:09]RAPDU: 90 00 [23:19:09]wFMCommunicate OK [23:19:09]wFMCommunicate request_size=139 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 ED D1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D5 AE 00 00 35 04 06 00 39 6B 3D 98 15 06 [23:19:09]Write to MH i2c: E2 8E 00 A8 07 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 ED D1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D5 AE 00 00 35 04 06 00 39 6B 3D 98 15 06 00 00 0B [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [23:19:09]RAPDU: 90 00 [23:19:09]wFMCommunicate OK [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 0D 03 02 [23:19:09]Write to MH i2c: E2 08 00 A9 07 80 0D 03 02 00 00 00 00 2B [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0B 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0B 00 A9 07 00 48 76 52 A6 64 E1 51 49 90 00 C1 [23:19:09]RAPDU: 48 76 52 A6 64 E1 51 49 90 00 [23:19:09]wFMCommunicate OK [23:19:09]SAM_PROTO_SignData done [23:19:09]FM_MakeSignedData done [23:19:09]CreateOFDProtocolMessage [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 11 00 00 [23:19:09]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 17 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 7F [23:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:19:09]wFMCommunicate OK [23:19:09]CreateOFDProtocolMessage done [23:19:09]OFDSenderStorePacket 44757 [23:19:09]StoreOFDPacket docnum=44757 [23:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 01 00 00 C1 F6 88 01 D3 18 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 ED D1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D5 AE 00 00 35 04 06 00 39 6B 3D 98 15 06 48 76 52 A6 64 E1 51 49 [23:19:09]CheckFolder [23:19:09]dirname=/storage/ofd_packets [23:19:09]CheckFolder done [23:19:09]ProducePacketName [23:19:09]name=ofd_packets/00044757 [23:19:09]NVStorageSaveData ofd_packets/00044757 [23:19:09]File name is /storage/ofd_packets/00044757 [23:19:09]Write 430 bytes [23:19:09]NVStorageSaveData done [23:19:09]OFDSenderStorePacket done [23:19:09]KKMCreateOFDPacket done [23:19:09]NVStorageSaveData kkm_last_timestamp [23:19:09]File name is /storage/kkm_last_timestamp [23:19:09]Write 4 bytes [23:19:09]NVStorageSaveData done [23:19:09]ExternCall_PrintAddStr [23:19:09]wPrintStart [23:19:09]Write to MH i2c: 01 00 00 AB 07 B2 [23:19:09]OFD Sender: Processing packet 44757 [packets to send 7, broken 6] [23:19:09]ProducePacketName [23:19:09]name=ofd_packets/00044757 [23:19:09]OFD Sender: To server: pG, [23:19:09]CommunicateWithHost lk.salyk.kg:30040 [23:19:09]ConnectInit lk.salyk.kg [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 07 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [23:19:09]RasterBufferAndPrint [23:19:09]line Счет N : (3)14649 [23:19:09]line ИНН: 02508201610067 [23:19:09]line Контрольно-Кассовый Чек [23:19:09]line ПРОДАЖА [23:19:09]line Товар: 5449000054227 [23:19:09]line Напиток Кока-Кола 1л [23:19:09]line 1.000 * 125.00 [23:19:09]line = 125.00 [23:19:09]line НДС 12% НСП 1% [23:19:09]line > о реализуемом товаре [23:19:09]line Товар: 4630007400358 [23:19:09]line Семечки ДЖИНН 70г [23:19:09]line 1.000 * 70.00 [23:19:09]line = 70.00 [23:19:09]line НДС 12% НСП 1% [23:19:09]line > о реализуемом товаре [23:19:09]line ИТОГО: 195.00 [23:19:09]line НСП 1% : 1.73 [23:19:09]line НДС 12% : 20.70 [23:19:09]line Наличными: 195.00 [23:19:09]line Безнал.: 0.00 [23:19:09]line Место: АЗС № 128 "Партнер Нефть" [23:19:09]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:19:09]line СНО: Общий режим [23:19:09]line Чек 128 28.07.2024 23:19 [23:19:09]line Смена: 430 ФФД: 1.0 [23:19:09]line ЗНМ: 0300000045 [23:19:09]line РНМ: 0000000000092655 [23:19:09]line Версия ККМ: 001 [23:19:09]line ФМ: 0000000000874941 [23:19:09]line ФД: 44757 [23:19:09]line ФПД: 63132757660934 [23:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231909&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44757&fm=63132757660934&tin=02508201610067®Number=0000000000092655&sum=19500 [23:19:09]line 0 [23:19:09]written 0, free lines is 4095 [23:19:10]Connected sock=10 [23:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 01 00 00 C1 F6 88 01 D3 18 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 ED D1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D5 AE 00 00 35 04 06 00 39 6B 3D 98 15 06 48 76 52 A6 64 E1 51 49 [23:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 11 68 47 00 80 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D5 AE 00 00 F4 03 04 00 FE 7D A6 66 B6 04 01 00 00 FC 34 F4 4D 0E CD 07 90 [23:19:10]CommunicateWithHost err = 0 [23:19:10]CheckOFDResponse [23:19:10]1017 (14) - 77093643461234 [23:19:10]1041 (16) - 0000000000874941 [23:19:10]1040 (4) - 44757 [23:19:10]1012 (4) - 28.07.2024 17:21 [23:19:10]1206 (1) - 0 [23:19:10]OFD Sender: Remove packet 44757 [23:19:10]ProducePacketName [23:19:10]name=ofd_packets/00044757 [23:19:10]NVStorageDeleteData [23:19:10]Write to MH i2c: 01 00 00 D9 07 E0 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 93 0C 86 [23:19:10]RasterBufferAndPrint [23:19:10]line [23:19:10]line [23:19:10]line [23:19:10]line [23:19:10]line [23:19:10]written 0, free lines is 3224 [23:19:10]process_action close_receipt done [23:19:10]requested_data is exist [23:19:10]produce_requested_data [23:19:10]requested_item fm.sn is exist - process it [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 11 00 00 [23:19:10]Write to MH i2c: E2 08 00 E0 07 80 11 00 00 00 00 00 00 61 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 E0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B5 [23:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:19:10]wFMCommunicate OK [23:19:10]requested_item fd.num is exist - process it [23:19:10]SAM_PROTO_GetFieldsCounters [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 13 00 00 [23:19:10]Write to MH i2c: E2 08 00 E1 07 80 13 00 00 00 00 00 00 64 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 62 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 62 00 E1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [23:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D5 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_GetFieldsCounters done [23:19:10]requested_item shift.num is exist - process it [23:19:10]requested_item shift.opened is exist - process it [23:19:10]req_shift_opened [23:19:10]FM_GetShiftState [23:19:10]SAM_PROTO_GetShiftState [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 13 01 00 [23:19:10]Write to MH i2c: E2 08 00 E2 07 80 13 01 00 00 00 00 00 66 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0E 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0E 00 E2 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 FF [23:19:10]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_GetShiftState done [23:19:10]FM_GetShiftState done [23:19:10]req_shift_opened done [23:19:10]requested_item shift.open_date is exist - process it [23:19:10]req_shift_open_date [23:19:10]req_shift_open_date done [23:19:10]produce_requested_data done [23:19:10]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44757,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:19:10]process_action_free close_receipt [23:19:10]json_value_free [23:19:10]json_value_free done [23:19:10]process_json_proto returns [23:19:10]Send response to host [23:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44757,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:19:10]free response buf [23:19:10]execute_script done [23:19:10]execute_script returns [23:19:10]free content buf [23:19:10]Sock 9.Close socket [23:19:10]Sock 9.Thread stoped [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]int [23:19:20]Write to MH i2c: 01 00 00 E3 07 EA [23:19:20]*** FLAG_PRN_KEY set [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 E3 07 00 08 00 00 00 FF 0F 07 [23:19:20]state=0 [23:19:20]Key pressed [23:19:20]Feed [23:19:20]Write to MH i2c: D8 00 00 E4 07 C2 [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: D8 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: D8 01 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: D8 01 00 E4 07 00 C3 [23:19:20]int [23:19:20]Write to MH i2c: 01 00 00 E5 07 EC [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 E5 07 00 48 00 00 00 3D 00 78 [23:19:20]state=2 [23:19:20]Key pressed [23:19:20]int [23:19:20]Write to MH i2c: 01 00 00 E6 07 ED [23:19:20]*** FLAG_PRN_KEY reset [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FC 0F FF [23:19:20]state=2 [23:19:20]Stop feed [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:39]accept exits with 7 [23:42:39]New connection [23:42:39]New thread 3066625380 created [23:42:39]Thread 3066482020 joined [23:42:39]Waiting for new connection... [23:42:39] Sock 7.Parse request [23:42:39]Sock 7.Check first char [23:42:39]Sock 7.First char is OK [23:42:39]request: POST /json_proto HTTP/1.0 [23:42:39]Method: POST [23:42:39]URL: /json_proto [23:42:39]Method is POST - this is cgi request [23:42:39]url: /json_proto [23:42:39]query_string will be loaded in cgi processing [23:42:39]execute_cgi json_proto POST (null) [23:42:39]execute_cgi path=json_proto method=POST [23:42:39]POST find Content-Length [23:42:39]Host: 172.17.45.196:8080 [23:42:39]Content-Length: 629 [23:42:39]Content-Type: application/json [23:42:39] [23:42:39]POST finish read [23:42:39]Found Content-Length = 629 [23:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14650", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:39]execute_script... [23:42:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14650", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:39]POST & json_proto [23:42:39]process_json_proto [23:42:39]json parsed OK: [23:42:39]protocol is kg_v1.0 [23:42:39]action value=close_receipt [23:42:39]process_action close_receipt [23:42:39]cmd_close_receipt [23:42:39]MH_GetDate [23:42:39]Write to MH i2c: F0 00 00 E7 07 DD [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 09 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 09 00 E7 07 00 70 D7 A6 66 BB 03 A5 66 02 [23:42:39]GetLastDocTimeStamp 1722208749 [23:42:39]current date 1722210160 [23:42:39]FM_GetShiftState [23:42:39]SAM_PROTO_GetShiftState [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 13 01 00 [23:42:39]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0E 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 05 [23:42:39]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:42:39]wFMCommunicate OK [23:42:39]SAM_PROTO_GetShiftState done [23:42:39]FM_GetShiftState done [23:42:39]opened in 1722126323 [23:42:39]opened+sec_in_day 1722212723 [23:42:39]quantity*price = 5000 [23:42:39]sum+1 = 5001 [23:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 129 28.07.2024 23:42 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44758 ФПД: 69215377446612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234240&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44758&fm=69215377446612&tin=02508201610067®Number=0000000000092655&sum=5000 0 [23:42:40]StoreToDocumentArchive [23:42:40]shift 430 fd 44758 [23:42:40]save to /storage/0430/doc_00044758 [23:42:40]save last doc name /storage/0430/doc_00044758 to /storage/kkm_last_doc_name [23:42:40]save OK [23:42:40]Clear old archive folders... [23:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:42:40]tlvbuf is 0181A360 [23:42:40]SAM_PROTO_ClearQueue [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 09 00 00 [23:42:40]Write to MH i2c: E2 08 00 F5 07 80 09 00 00 00 00 00 00 6E [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]SAM_PROTO_ClearQueue done [23:42:40]KKMCreateOFDPacket [23:42:40]OFDProtocolAddRootSTLVToBuf [23:42:40]FM_MakeSignedData [23:42:40]FM_MakeSignedData [23:42:40]SAM_PROTO_SignData [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 0D 01 02 [23:42:40]Write to MH i2c: E2 08 00 F6 07 80 0D 01 02 00 00 00 00 76 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]wFMCommunicate request_size=255 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 D7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:42:40]Write to MH i2c: E2 02 01 F7 07 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 D7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 1F [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [23:42:41]RAPDU: 90 00 [23:42:41]wFMCommunicate OK [23:42:41]wFMCommunicate request_size=28 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 D6 AE 00 00 35 04 06 00 3E F3 75 FC 56 D4 [23:42:41]Write to MH i2c: E2 1F 00 F8 07 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 D6 AE 00 00 35 04 06 00 3E F3 75 FC 56 D4 00 00 57 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [23:42:41]RAPDU: 90 00 [23:42:41]wFMCommunicate OK [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 0D 03 02 [23:42:41]Write to MH i2c: E2 08 00 F9 07 80 0D 03 02 00 00 00 00 7B [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0B 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0B 00 F9 07 00 7F D7 E2 D1 8B 3A AF DD 90 00 D6 [23:42:41]RAPDU: 7F D7 E2 D1 8B 3A AF DD 90 00 [23:42:41]wFMCommunicate OK [23:42:41]SAM_PROTO_SignData done [23:42:41]FM_MakeSignedData done [23:42:41]CreateOFDProtocolMessage [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 11 00 00 [23:42:41]Write to MH i2c: E2 08 00 FA 07 80 11 00 00 00 00 00 00 7B [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 FA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 CF [23:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:42:41]wFMCommunicate OK [23:42:41]CreateOFDProtocolMessage done [23:42:41]OFDSenderStorePacket 44758 [23:42:41]StoreOFDPacket docnum=44758 [23:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 8A ED 19 01 07 CC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 D7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D6 AE 00 00 35 04 06 00 3E F3 75 FC 56 D4 7F D7 E2 D1 8B 3A AF DD [23:42:41]CheckFolder [23:42:41]dirname=/storage/ofd_packets [23:42:41]CheckFolder done [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00044758 [23:42:41]NVStorageSaveData ofd_packets/00044758 [23:42:41]File name is /storage/ofd_packets/00044758 [23:42:41]Write 319 bytes [23:42:41]NVStorageSaveData done [23:42:41]OFDSenderStorePacket done [23:42:41]KKMCreateOFDPacket done [23:42:41]NVStorageSaveData kkm_last_timestamp [23:42:41]File name is /storage/kkm_last_timestamp [23:42:41]Write 4 bytes [23:42:41]NVStorageSaveData done [23:42:41]ExternCall_PrintAddStr [23:42:41]wPrintStart [23:42:41]Write to MH i2c: 01 00 00 FB 07 02 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 07 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [23:42:41]RasterBufferAndPrint [23:42:41]line Счет N : (3)14650 [23:42:41]line ИНН: 02508201610067 [23:42:41]line Контрольно-Кассовый Чек [23:42:41]line ПРОДАЖА [23:42:41]line Товар: 5449000066473 [23:42:41]line Вода Бонаква 1л [23:42:41]line 1.000 * 50.00 [23:42:41]line = 50.00 [23:42:41]line НДС 12% НСП 1% [23:42:41]line > о реализуемом товаре [23:42:41]line ИТОГО: 50.00 [23:42:41]line НСП 1% : 0.44 [23:42:41]line НДС 12% : 5.31 [23:42:41]line Наличными: 50.00 [23:42:41]line Безнал.: 0.00 [23:42:41]line Место: АЗС № 128 "Партнер Нефть" [23:42:41]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:42:41]line СНО: Общий режим [23:42:41]line Чек 129 28.07.2024 23:42 [23:42:41]line Смена: 430 ФФД: 1.0 [23:42:41]line ЗНМ: 0300000045 [23:42:41]line РНМ: 0000000000092655 [23:42:41]line Версия ККМ: 001 [23:42:41]line ФМ: 0000000000874941 [23:42:41]line ФД: 44758 [23:42:41]line ФПД: 69215377446612 [23:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234240&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44758&fm=69215377446612&tin=02508201610067®Number=0000000000092655&sum=5000 [23:42:41]line 0 [23:42:41]OFD Sender: Processing packet 44758 [packets to send 7, broken 6] [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00044758 [23:42:41]OFD Sender: To server: pG, [23:42:41]CommunicateWithHost lk.salyk.kg:30040 [23:42:41]ConnectInit lk.salyk.kg [23:42:41]written 0, free lines is 4095 [23:42:41]Connected sock=10 [23:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 8A ED 19 01 07 CC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 70 D7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D6 AE 00 00 35 04 06 00 3E F3 75 FC 56 D4 7F D7 E2 D1 8B 3A AF DD [23:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 FC 34 47 00 49 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D6 AE 00 00 F4 03 04 00 82 83 A6 66 B6 04 01 00 00 55 CB 13 34 2C 53 95 2D [23:42:42]CommunicateWithHost err = 0 [23:42:42]CheckOFDResponse [23:42:42]1017 (14) - 77093643461234 [23:42:42]1041 (16) - 0000000000874941 [23:42:42]1040 (4) - 44758 [23:42:42]1012 (4) - 28.07.2024 17:44 [23:42:42]1206 (1) - 0 [23:42:42]OFD Sender: Remove packet 44758 [23:42:42]ProducePacketName [23:42:42]name=ofd_packets/00044758 [23:42:42]NVStorageDeleteData [23:42:42]Write to MH i2c: 01 00 00 23 08 2B [23:42:42]Write i2c OK [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: 01 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: 01 07 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 DC 0C 1A [23:42:42]RasterBufferAndPrint [23:42:42]line [23:42:42]line [23:42:42]line [23:42:42]line [23:42:42]line [23:42:42]written 0, free lines is 3298 [23:42:42]process_action close_receipt done [23:42:42]requested_data is exist [23:42:42]produce_requested_data [23:42:42]requested_item fm.sn is exist - process it [23:42:42]wFMCommunicate request_size=4 [23:42:42]MH_SAM_APDU [23:42:42]CAPDU: 80 11 00 00 [23:42:42]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [23:42:42]Write i2c OK [23:42:42]MH_I2C_Read... [23:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:42]Read from MH i2c: E2 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 17 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 00 [23:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:42:42]wFMCommunicate OK [23:42:42]requested_item fd.num is exist - process it [23:42:42]SAM_PROTO_GetFieldsCounters [23:42:42]wFMCommunicate request_size=4 [23:42:42]MH_SAM_APDU [23:42:42]CAPDU: 80 13 00 00 [23:42:42]Write to MH i2c: E2 08 00 2B 08 80 13 00 00 00 00 00 00 AF [23:42:42]Write i2c OK [23:42:42]MH_I2C_Read... [23:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:42]Read from MH i2c: E2 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 62 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 62 00 2B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [23:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D6 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:42]wFMCommunicate OK [23:42:42]SAM_PROTO_GetFieldsCounters done [23:42:42]requested_item shift.num is exist - process it [23:42:42]requested_item shift.opened is exist - process it [23:42:42]req_shift_opened [23:42:42]FM_GetShiftState [23:42:42]SAM_PROTO_GetShiftState [23:42:42]wFMCommunicate request_size=4 [23:42:42]MH_SAM_APDU [23:42:42]CAPDU: 80 13 01 00 [23:42:42]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [23:42:42]Write i2c OK [23:42:42]MH_I2C_Read... [23:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:42]Read from MH i2c: E2 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 0E 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4A [23:42:42]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:42:42]wFMCommunicate OK [23:42:42]SAM_PROTO_GetShiftState done [23:42:42]FM_GetShiftState done [23:42:42]req_shift_opened done [23:42:42]requested_item shift.open_date is exist - process it [23:42:42]req_shift_open_date [23:42:42]req_shift_open_date done [23:42:42]produce_requested_data done [23:42:42]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44758,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:42:42]process_action_free close_receipt [23:42:42]json_value_free [23:42:42]json_value_free done [23:42:42]process_json_proto returns [23:42:42]Send response to host [23:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44758,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:42:42]free response buf [23:42:42]execute_script done [23:42:42]execute_script returns [23:42:42]free content buf [23:42:42]Sock 7.Close socket [23:42:42]Sock 7.Thread stoped [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:48]int [23:42:48]Write to MH i2c: 01 00 00 2D 08 35 [23:42:48]*** FLAG_PRN_KEY set [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 2D 08 00 08 00 00 00 FF 0F 52 [23:42:48]state=0 [23:42:48]Key pressed [23:42:48]Feed [23:42:48]Write to MH i2c: D8 00 00 2E 08 0D [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D8 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D8 01 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D8 01 00 2E 08 00 0E [23:42:48]int [23:42:48]Write to MH i2c: 01 00 00 2F 08 37 [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 2F 08 00 48 00 00 00 3D 00 C3 [23:42:48]state=2 [23:42:48]Key pressed [23:42:48]int [23:42:48]Write to MH i2c: 01 00 00 30 08 38 [23:42:48]*** FLAG_PRN_KEY reset [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 30 08 00 00 00 00 00 F7 0F 45 [23:42:48]state=2 [23:42:48]Stop feed [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:33]accept exits with 9 [23:49:33]New connection [23:49:33]New thread 3066482020 created [23:49:33]Thread 3066625380 joined [23:49:33]Waiting for new connection... [23:49:33] Sock 9.Parse request [23:49:33]Sock 9.Check first char [23:49:33]Sock 9.First char is OK [23:49:33]request: POST /json_proto HTTP/1.0 [23:49:33]Method: POST [23:49:33]URL: /json_proto [23:49:33]Method is POST - this is cgi request [23:49:33]url: /json_proto [23:49:33]query_string will be loaded in cgi processing [23:49:33]execute_cgi json_proto POST (null) [23:49:33]execute_cgi path=json_proto method=POST [23:49:33]POST find Content-Length [23:49:33]Host: 172.17.45.196:8080 [23:49:33]Content-Length: 628 [23:49:33]Content-Type: application/json [23:49:33] [23:49:33]POST finish read [23:49:33]Found Content-Length = 628 [23:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14651", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 5.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:33]execute_script... [23:49:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14651", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 5.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:33]POST & json_proto [23:49:33]process_json_proto [23:49:33]json parsed OK: [23:49:33]protocol is kg_v1.0 [23:49:33]action value=close_receipt [23:49:33]process_action close_receipt [23:49:33]cmd_close_receipt [23:49:33]MH_GetDate [23:49:33]Write to MH i2c: F0 00 00 31 08 28 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: F0 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: F0 09 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: F0 09 00 31 08 00 0E D9 A6 66 BB 03 A5 66 ED [23:49:33]GetLastDocTimeStamp 1722210160 [23:49:33]current date 1722210574 [23:49:33]FM_GetShiftState [23:49:33]SAM_PROTO_GetShiftState [23:49:33]wFMCommunicate request_size=4 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 13 01 00 [23:49:33]Write to MH i2c: E2 08 00 32 08 80 13 01 00 00 00 00 00 B7 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 0E 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 0E 00 32 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 50 [23:49:33]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:49:33]wFMCommunicate OK [23:49:33]SAM_PROTO_GetShiftState done [23:49:33]FM_GetShiftState done [23:49:33]opened in 1722126323 [23:49:33]opened+sec_in_day 1722212723 [23:49:33]quantity*price = 60000 [23:49:33]sum+1 = 60001 [23:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 130 28.07.2024 23:49 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44759 ФПД: 248128746214573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234934&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44759&fm=248128746214573&tin=02508201610067®Number=0000000000092655&sum=60000 0 [23:49:34]StoreToDocumentArchive [23:49:34]shift 430 fd 44759 [23:49:34]save to /storage/0430/doc_00044759 [23:49:34]save last doc name /storage/0430/doc_00044759 to /storage/kkm_last_doc_name [23:49:34]save OK [23:49:34]Clear old archive folders... [23:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:49:34]tlvbuf is 017A0340 [23:49:34]SAM_PROTO_ClearQueue [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 09 00 00 [23:49:34]Write to MH i2c: E2 08 00 3F 08 80 09 00 00 00 00 00 00 B9 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [23:49:34]RAPDU: 90 00 [23:49:34]wFMCommunicate OK [23:49:34]SAM_PROTO_ClearQueue done [23:49:34]KKMCreateOFDPacket [23:49:34]OFDProtocolAddRootSTLVToBuf [23:49:34]FM_MakeSignedData [23:49:34]FM_MakeSignedData [23:49:34]SAM_PROTO_SignData [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 0D 01 02 [23:49:34]Write to MH i2c: E2 08 00 40 08 80 0D 01 02 00 00 00 00 C1 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [23:49:34]RAPDU: 90 00 [23:49:34]wFMCommunicate OK [23:49:34]wFMCommunicate request_size=255 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:49:34]Write to MH i2c: E2 02 01 41 08 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 F8 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 03 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [23:49:35]RAPDU: 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=28 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 D7 AE 00 00 35 04 06 00 E1 AB F9 C6 D4 AD [23:49:35]Write to MH i2c: E2 1F 00 42 08 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 D7 AE 00 00 35 04 06 00 E1 AB F9 C6 D4 AD 00 00 A3 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 03 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [23:49:35]RAPDU: 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 0D 03 02 [23:49:35]Write to MH i2c: E2 08 00 43 08 80 0D 03 02 00 00 00 00 C6 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 0B 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 0B 00 43 08 00 87 56 5D 98 5F 09 2A 8B 90 00 B6 [23:49:35]RAPDU: 87 56 5D 98 5F 09 2A 8B 90 00 [23:49:35]wFMCommunicate OK [23:49:35]SAM_PROTO_SignData done [23:49:35]FM_MakeSignedData done [23:49:35]CreateOFDProtocolMessage [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 11 00 00 [23:49:35]Write to MH i2c: E2 08 00 44 08 80 11 00 00 00 00 00 00 C6 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 17 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 17 00 44 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 1A [23:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:49:35]wFMCommunicate OK [23:49:35]CreateOFDProtocolMessage done [23:49:35]OFDSenderStorePacket 44759 [23:49:35]StoreOFDPacket docnum=44759 [23:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 E8 CD 19 01 F4 92 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D7 AE 00 00 35 04 06 00 E1 AB F9 C6 D4 AD 87 56 5D 98 5F 09 2A 8B [23:49:35]CheckFolder [23:49:35]dirname=/storage/ofd_packets [23:49:35]CheckFolder done [23:49:35]ProducePacketName [23:49:35]name=ofd_packets/00044759 [23:49:35]NVStorageSaveData ofd_packets/00044759 [23:49:35]File name is /storage/ofd_packets/00044759 [23:49:35]Write 319 bytes [23:49:35]NVStorageSaveData done [23:49:35]OFDSenderStorePacket done [23:49:35]KKMCreateOFDPacket done [23:49:35]NVStorageSaveData kkm_last_timestamp [23:49:35]File name is /storage/kkm_last_timestamp [23:49:35]Write 4 bytes [23:49:35]NVStorageSaveData done [23:49:35]ExternCall_PrintAddStr [23:49:35]wPrintStart [23:49:35]Write to MH i2c: 01 00 00 45 08 4D [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 07 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [23:49:35]RasterBufferAndPrint [23:49:35]line Счет N : (3)14651 [23:49:35]line ИНН: 02508201610067 [23:49:35]line Контрольно-Кассовый Чек [23:49:35]line ПРОДАЖА [23:49:35]line Товар: 4620006996716 [23:49:35]line Водка Талка 0,1л [23:49:35]line 5.000 * 120.00 [23:49:35]line = 600.00 [23:49:35]line НДС 12% НСП 1% [23:49:35]line > о реализуемом товаре [23:49:35]line ИТОГО: 600.00 [23:49:35]line НСП 1% : 5.31 [23:49:35]line НДС 12% : 63.72 [23:49:35]line Наличными: 600.00 [23:49:35]line Безнал.: 0.00 [23:49:35]line Место: АЗС № 128 "Партнер Нефть" [23:49:35]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:49:35]line СНО: Общий режим [23:49:35]line Чек 130 28.07.2024 23:49 [23:49:35]line Смена: 430 ФФД: 1.0 [23:49:35]line ЗНМ: 0300000045 [23:49:35]line РНМ: 0000000000092655 [23:49:35]line Версия ККМ: 001 [23:49:35]line ФМ: 0000000000874941 [23:49:35]line ФД: 44759 [23:49:35]line ФПД: 248128746214573 [23:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234934&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44759&fm=248128746214573&tin=02508201610067®Number=0000000000092655&sum=60000 [23:49:35]OFD Sender: Processing packet 44759 [packets to send 7, broken 6] [23:49:35]ProducePacketName [23:49:35]name=ofd_packets/00044759 [23:49:35]OFD Sender: To server: pG, [23:49:35]CommunicateWithHost lk.salyk.kg:30040 [23:49:35]ConnectInit lk.salyk.kg [23:49:35]line 0 [23:49:35]written 0, free lines is 4095 [23:49:35]Connected sock=10 [23:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 E8 CD 19 01 F4 92 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D7 AE 00 00 35 04 06 00 E1 AB F9 C6 D4 AD 87 56 5D 98 5F 09 2A 8B [23:49:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 72 76 47 00 01 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D7 AE 00 00 F4 03 04 00 20 85 A6 66 B6 04 01 00 00 CB 37 4A 33 08 CA 6E F0 [23:49:35]CommunicateWithHost err = 0 [23:49:35]CheckOFDResponse [23:49:35]1017 (14) - 77093643461234 [23:49:35]1041 (16) - 0000000000874941 [23:49:35]1040 (4) - 44759 [23:49:35]1012 (4) - 28.07.2024 17:51 [23:49:35]1206 (1) - 0 [23:49:35]OFD Sender: Remove packet 44759 [23:49:35]ProducePacketName [23:49:35]name=ofd_packets/00044759 [23:49:35]NVStorageDeleteData [23:49:36]Write to MH i2c: 01 00 00 6D 08 75 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 07 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FB 0C 83 [23:49:36]RasterBufferAndPrint [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]line [23:49:36]written 0, free lines is 3329 [23:49:36]process_action close_receipt done [23:49:36]requested_data is exist [23:49:36]produce_requested_data [23:49:36]requested_item fm.sn is exist - process it [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 11 00 00 [23:49:36]Write to MH i2c: E2 08 00 74 08 80 11 00 00 00 00 00 00 F6 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 17 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 17 00 74 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 4A [23:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:49:36]wFMCommunicate OK [23:49:36]requested_item fd.num is exist - process it [23:49:36]SAM_PROTO_GetFieldsCounters [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 13 00 00 [23:49:36]Write to MH i2c: E2 08 00 75 08 80 13 00 00 00 00 00 00 F9 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 62 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 62 00 75 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23:49:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D7 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:36]wFMCommunicate OK [23:49:36]SAM_PROTO_GetFieldsCounters done [23:49:36]requested_item shift.num is exist - process it [23:49:36]requested_item shift.opened is exist - process it [23:49:36]req_shift_opened [23:49:36]FM_GetShiftState [23:49:36]SAM_PROTO_GetShiftState [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 13 01 00 [23:49:36]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 0E 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 94 [23:49:36]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:49:36]wFMCommunicate OK [23:49:36]SAM_PROTO_GetShiftState done [23:49:36]FM_GetShiftState done [23:49:36]req_shift_opened done [23:49:36]requested_item shift.open_date is exist - process it [23:49:36]req_shift_open_date [23:49:36]req_shift_open_date done [23:49:36]produce_requested_data done [23:49:36]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44759,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:49:36]process_action_free close_receipt [23:49:36]json_value_free [23:49:36]json_value_free done [23:49:36]process_json_proto returns [23:49:36]Send response to host [23:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44759,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:49:36]free response buf [23:49:36]execute_script done [23:49:36]execute_script returns [23:49:36]free content buf [23:49:36]Sock 9.Close socket [23:49:36]Sock 9.Thread stoped [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:50]accept exits with 7 [23:49:50]New connection [23:49:50]New thread 3066625380 created [23:49:50]Thread 3066482020 joined [23:49:50]Waiting for new connection... [23:49:50] Sock 7.Parse request [23:49:50]Sock 7.Check first char [23:49:50]Sock 7.First char is OK [23:49:50]request: POST /json_proto HTTP/1.0 [23:49:50]Method: POST [23:49:50]URL: /json_proto [23:49:50]Method is POST - this is cgi request [23:49:50]url: /json_proto [23:49:50]query_string will be loaded in cgi processing [23:49:50]execute_cgi json_proto POST (null) [23:49:50]execute_cgi path=json_proto method=POST [23:49:50]POST find Content-Length [23:49:50]Host: 172.17.45.196:8080 [23:49:50]Content-Length: 671 [23:49:50]Content-Type: application/json [23:49:50] [23:49:50]POST finish read [23:49:50]Found Content-Length = 671 [23:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14652", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:50]execute_script... [23:49:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14652", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:50]POST & json_proto [23:49:50]process_json_proto [23:49:50]json parsed OK: [23:49:50]protocol is kg_v1.0 [23:49:50]action value=close_receipt [23:49:50]process_action close_receipt [23:49:50]cmd_close_receipt [23:49:50]MH_GetDate [23:49:50]Write to MH i2c: F0 00 00 77 08 6E [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 09 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 09 00 77 08 00 1F D9 A6 66 BB 03 A5 66 44 [23:49:50]GetLastDocTimeStamp 1722210574 [23:49:50]current date 1722210591 [23:49:50]FM_GetShiftState [23:49:50]SAM_PROTO_GetShiftState [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 13 01 00 [23:49:50]Write to MH i2c: E2 08 00 78 08 80 13 01 00 00 00 00 00 FD [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 78 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 96 [23:49:50]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_GetShiftState done [23:49:50]FM_GetShiftState done [23:49:50]opened in 1722126323 [23:49:50]opened+sec_in_day 1722212723 [23:49:50]quantity*price = 13000 [23:49:50]sum+1 = 13001 [23:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 131 28.07.2024 23:49 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44760 ФПД: 72813057214797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234951&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44760&fm=72813057214797&tin=02508201610067®Number=0000000000092655&sum=13000 0 [23:49:51]StoreToDocumentArchive [23:49:51]shift 430 fd 44760 [23:49:51]save to /storage/0430/doc_00044760 [23:49:51]save last doc name /storage/0430/doc_00044760 to /storage/kkm_last_doc_name [23:49:51]save OK [23:49:51]Clear old archive folders... [23:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=284 [23:49:51]tlvbuf is 017F2E10 [23:49:51]SAM_PROTO_ClearQueue [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 09 00 00 [23:49:51]Write to MH i2c: E2 08 00 85 08 80 09 00 00 00 00 00 00 FF [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_ClearQueue done [23:49:51]KKMCreateOFDPacket [23:49:51]OFDProtocolAddRootSTLVToBuf [23:49:51]FM_MakeSignedData [23:49:51]FM_MakeSignedData [23:49:51]SAM_PROTO_SignData [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 01 02 [23:49:51]Write to MH i2c: E2 08 00 86 08 80 0D 01 02 00 00 00 00 07 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=255 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 1F D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [23:49:51]Write to MH i2c: E2 02 01 87 08 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 1F D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 9A [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [23:49:52]RAPDU: 90 00 [23:49:52]wFMCommunicate OK [23:49:52]wFMCommunicate request_size=43 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D8 AE 00 00 35 04 06 00 42 39 1C 69 09 4D [23:49:52]Write to MH i2c: E2 2E 00 88 08 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D8 AE 00 00 35 04 06 00 42 39 1C 69 09 4D 00 00 CF [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [23:49:52]RAPDU: 90 00 [23:49:52]wFMCommunicate OK [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 0D 03 02 [23:49:52]Write to MH i2c: E2 08 00 89 08 80 0D 03 02 00 00 00 00 0C [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0B 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0B 00 89 08 00 12 93 3B 6A 5D BA B2 EA 90 00 0A [23:49:52]RAPDU: 12 93 3B 6A 5D BA B2 EA 90 00 [23:49:52]wFMCommunicate OK [23:49:52]SAM_PROTO_SignData done [23:49:52]FM_MakeSignedData done [23:49:52]CreateOFDProtocolMessage [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 11 00 00 [23:49:52]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 60 [23:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:49:52]wFMCommunicate OK [23:49:52]CreateOFDProtocolMessage done [23:49:52]OFDSenderStorePacket 44760 [23:49:52]StoreOFDPacket docnum=44760 [23:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 88 D0 28 01 F9 17 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 1F D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D8 AE 00 00 35 04 06 00 42 39 1C 69 09 4D 12 93 3B 6A 5D BA B2 EA [23:49:52]CheckFolder [23:49:52]dirname=/storage/ofd_packets [23:49:52]CheckFolder done [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00044760 [23:49:52]NVStorageSaveData ofd_packets/00044760 [23:49:52]File name is /storage/ofd_packets/00044760 [23:49:52]Write 334 bytes [23:49:52]NVStorageSaveData done [23:49:52]OFDSenderStorePacket done [23:49:52]KKMCreateOFDPacket done [23:49:52]NVStorageSaveData kkm_last_timestamp [23:49:52]File name is /storage/kkm_last_timestamp [23:49:52]Write 4 bytes [23:49:52]NVStorageSaveData done [23:49:52]ExternCall_PrintAddStr [23:49:52]wPrintStart [23:49:52]Write to MH i2c: 01 00 00 8B 08 93 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 FF 0F A8 [23:49:52]RasterBufferAndPrint [23:49:52]line Счет N : (3)14652 [23:49:52]line ИНН: 02508201610067 [23:49:52]line Контрольно-Кассовый Чек [23:49:52]line ПРОДАЖА [23:49:52]line Товар: 4620006995702 [23:49:52]line Водка Зеленая Марка 0,1л [23:49:52]line 1.000 * 130.00 [23:49:52]line = 130.00 [23:49:52]line НДС 12% НСП 1% [23:49:52]line > о реализуемом товаре [23:49:52]line ИТОГО: 130.00 [23:49:52]line НСП 1% : 1.15 [23:49:52]line НДС 12% : 13.80 [23:49:52]line Наличными: 130.00 [23:49:52]line Безнал.: 0.00 [23:49:52]line Место: АЗС № 128 "Партнер Нефть" [23:49:52]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:49:52]line СНО: Общий режим [23:49:52]line Чек 131 28.07.2024 23:49 [23:49:52]line Смена: 430 ФФД: 1.0 [23:49:52]line ЗНМ: 0300000045 [23:49:52]line РНМ: 0000000000092655 [23:49:52]line Версия ККМ: 001 [23:49:52]line ФМ: 0000000000874941 [23:49:52]line ФД: 44760 [23:49:52]line ФПД: 72813057214797 [23:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234951&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44760&fm=72813057214797&tin=02508201610067®Number=0000000000092655&sum=13000 [23:49:52]line 0 [23:49:52]OFD Sender: Processing packet 44760 [packets to send 7, broken 6] [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00044760 [23:49:52]OFD Sender: To server: pG, [23:49:52]CommunicateWithHost lk.salyk.kg:30040 [23:49:52]ConnectInit lk.salyk.kg [23:49:52]written 0, free lines is 4095 [23:49:52]Connected sock=10 [23:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 30 01 00 00 88 D0 28 01 F9 17 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 1F D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D8 AE 00 00 35 04 06 00 42 39 1C 69 09 4D 12 93 3B 6A 5D BA B2 EA [23:49:53]Write to MH i2c: 01 00 00 B3 08 BB [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: 01 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: 01 07 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 DC 0C AA [23:49:53]RasterBufferAndPrint [23:49:53]line [23:49:53]line [23:49:53]line [23:49:53]line [23:49:53]line [23:49:53]written 0, free lines is 3298 [23:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 C6 02 47 00 2F 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D8 AE 00 00 F4 03 04 00 31 85 A6 66 B6 04 01 00 00 DA 56 85 A0 51 C3 81 5E [23:49:53]CommunicateWithHost err = 0 [23:49:53]CheckOFDResponse [23:49:53]1017 (14) - 77093643461234 [23:49:53]1041 (16) - 0000000000874941 [23:49:53]1040 (4) - 44760 [23:49:53]1012 (4) - 28.07.2024 17:51 [23:49:53]1206 (1) - 0 [23:49:53]OFD Sender: Remove packet 44760 [23:49:53]ProducePacketName [23:49:53]name=ofd_packets/00044760 [23:49:53]NVStorageDeleteData [23:49:53]process_action close_receipt done [23:49:53]requested_data is exist [23:49:53]produce_requested_data [23:49:53]requested_item fm.sn is exist - process it [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 11 00 00 [23:49:53]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 17 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 17 00 BA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 90 [23:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:49:53]wFMCommunicate OK [23:49:53]requested_item fd.num is exist - process it [23:49:53]SAM_PROTO_GetFieldsCounters [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 13 00 00 [23:49:53]Write to MH i2c: E2 08 00 BB 08 80 13 00 00 00 00 00 00 3F [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 62 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 62 00 BB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [23:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D8 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:53]wFMCommunicate OK [23:49:53]SAM_PROTO_GetFieldsCounters done [23:49:53]requested_item shift.num is exist - process it [23:49:53]requested_item shift.opened is exist - process it [23:49:53]req_shift_opened [23:49:53]FM_GetShiftState [23:49:53]SAM_PROTO_GetShiftState [23:49:53]wFMCommunicate request_size=4 [23:49:53]MH_SAM_APDU [23:49:53]CAPDU: 80 13 01 00 [23:49:53]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [23:49:53]Write i2c OK [23:49:53]MH_I2C_Read... [23:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:53]Read from MH i2c: E2 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 0E 00 [23:49:53]MH_I2C_Read... [23:49:53]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 DA [23:49:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:49:53]wFMCommunicate OK [23:49:53]SAM_PROTO_GetShiftState done [23:49:53]FM_GetShiftState done [23:49:53]req_shift_opened done [23:49:53]requested_item shift.open_date is exist - process it [23:49:53]req_shift_open_date [23:49:53]req_shift_open_date done [23:49:53]produce_requested_data done [23:49:53]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44760,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:49:53]process_action_free close_receipt [23:49:53]json_value_free [23:49:53]json_value_free done [23:49:53]process_json_proto returns [23:49:53]Send response to host [23:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44760,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:49:53]free response buf [23:49:53]execute_script done [23:49:53]execute_script returns [23:49:53]free content buf [23:49:53]Sock 7.Close socket [23:49:53]Sock 7.Thread stoped [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:29]int [23:50:29]Write to MH i2c: 01 00 00 BD 08 C5 [23:50:29]*** FLAG_PRN_KEY set [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 BD 08 00 08 00 00 00 FF 0F E2 [23:50:29]state=0 [23:50:29]Key pressed [23:50:29]Feed [23:50:29]Write to MH i2c: D8 00 00 BE 08 9D [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: D8 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: D8 01 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: D8 01 00 BE 08 00 9E [23:50:29]int [23:50:29]Write to MH i2c: 01 00 00 BF 08 C7 [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 BF 08 00 48 00 00 00 3D 00 53 [23:50:29]state=2 [23:50:29]Key pressed [23:50:29]int [23:50:29]Write to MH i2c: 01 00 00 C0 08 C8 [23:50:29]*** FLAG_PRN_KEY reset [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 F6 0F D4 [23:50:29]state=2 [23:50:29]Stop feed [23:50:30]int [23:50:30]Write to MH i2c: 01 00 00 C1 08 C9 [23:50:30]*** FLAG_PRN_KEY set [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 07 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 07 00 C1 08 00 08 00 00 00 FF 0F E6 [23:50:30]state=0 [23:50:30]Key pressed [23:50:30]Feed [23:50:30]Write to MH i2c: D8 00 00 C2 08 A1 [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: D8 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: D8 01 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: D8 01 00 C2 08 00 A2 [23:50:30]int [23:50:30]Write to MH i2c: 01 00 00 C3 08 CB [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 07 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: 01 07 00 C3 08 00 48 00 00 00 3C 00 56 [23:50:30]state=2 [23:50:30]Key pressed [23:50:31]int [23:50:31]Write to MH i2c: 01 00 00 C4 08 CC [23:50:31]*** FLAG_PRN_KEY reset [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: 01 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: 01 07 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 F6 0F D8 [23:50:31]state=2 [23:50:31]Stop feed [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]accept exits with 9 [23:50:53]New connection [23:50:53]New thread 3066482020 created [23:50:53]Thread 3066625380 joined [23:50:53]Waiting for new connection... [23:50:53] Sock 9.Parse request [23:50:53]Sock 9.Check first char [23:50:53]Sock 9.First char is OK [23:50:53]request: POST /json_proto HTTP/1.0 [23:50:53]Method: POST [23:50:53]URL: /json_proto [23:50:53]Method is POST - this is cgi request [23:50:53]url: /json_proto [23:50:53]query_string will be loaded in cgi processing [23:50:53]execute_cgi json_proto POST (null) [23:50:53]execute_cgi path=json_proto method=POST [23:50:53]POST find Content-Length [23:50:53]Host: 172.17.45.196:8080 [23:50:53]Content-Length: 616 [23:50:53]Content-Type: application/json [23:50:53] [23:50:53]POST finish read [23:50:53]Found Content-Length = 616 [23:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14653", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:53]execute_script... [23:50:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14653", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:53]POST & json_proto [23:50:53]process_json_proto [23:50:53]json parsed OK: [23:50:53]protocol is kg_v1.0 [23:50:53]action value=close_receipt [23:50:53]process_action close_receipt [23:50:53]cmd_close_receipt [23:50:53]MH_GetDate [23:50:53]Write to MH i2c: F0 00 00 C5 08 BC [23:50:53]Write i2c OK [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: F0 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: F0 09 00 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: F0 09 00 C5 08 00 5E D9 A6 66 BB 03 A5 66 D1 [23:50:53]GetLastDocTimeStamp 1722210591 [23:50:53]current date 1722210654 [23:50:53]FM_GetShiftState [23:50:53]SAM_PROTO_GetShiftState [23:50:53]wFMCommunicate request_size=4 [23:50:53]MH_SAM_APDU [23:50:53]CAPDU: 80 13 01 00 [23:50:53]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [23:50:53]Write i2c OK [23:50:53]MH_I2C_Read... [23:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:53]Read from MH i2c: E2 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 0E 00 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 E4 [23:50:53]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:50:53]wFMCommunicate OK [23:50:53]SAM_PROTO_GetShiftState done [23:50:53]FM_GetShiftState done [23:50:53]opened in 1722126323 [23:50:53]opened+sec_in_day 1722212723 [23:50:53]quantity*price = 14000 [23:50:53]sum+1 = 14001 [23:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 132 28.07.2024 23:50 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44761 ФПД: 279971883550204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235054&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44761&fm=279971883550204&tin=02508201610067®Number=0000000000092655&sum=14000 0 [23:50:54]StoreToDocumentArchive [23:50:54]shift 430 fd 44761 [23:50:54]save to /storage/0430/doc_00044761 [23:50:54]save last doc name /storage/0430/doc_00044761 to /storage/kkm_last_doc_name [23:50:54]save OK [23:50:54]Clear old archive folders... [23:50:54]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:50:54]tlvbuf is 01812FF0 [23:50:54]SAM_PROTO_ClearQueue [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 09 00 00 [23:50:54]Write to MH i2c: E2 08 00 D3 08 80 09 00 00 00 00 00 00 4D [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [23:50:54]RAPDU: 90 00 [23:50:54]wFMCommunicate OK [23:50:54]SAM_PROTO_ClearQueue done [23:50:54]KKMCreateOFDPacket [23:50:54]OFDProtocolAddRootSTLVToBuf [23:50:54]FM_MakeSignedData [23:50:54]FM_MakeSignedData [23:50:54]SAM_PROTO_SignData [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 0D 01 02 [23:50:54]Write to MH i2c: E2 08 00 D4 08 80 0D 01 02 00 00 00 00 55 [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [23:50:54]RAPDU: 90 00 [23:50:54]wFMCommunicate OK [23:50:54]wFMCommunicate request_size=255 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:50:54]Write to MH i2c: E2 02 01 D5 08 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 B8 [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [23:50:54]RAPDU: 90 00 [23:50:54]wFMCommunicate OK [23:50:54]wFMCommunicate request_size=28 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 0D 02 02 17 37 34 39 34 31 10 04 04 00 D9 AE 00 00 35 04 06 00 FE A2 08 AA 85 FC [23:50:54]Write to MH i2c: E2 1F 00 D6 08 80 0D 02 02 17 00 37 34 39 34 31 10 04 04 00 D9 AE 00 00 35 04 06 00 FE A2 08 AA 85 FC 00 00 40 [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [23:50:54]RAPDU: 90 00 [23:50:54]wFMCommunicate OK [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 0D 03 02 [23:50:54]Write to MH i2c: E2 08 00 D7 08 80 0D 03 02 00 00 00 00 5A [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0B 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0B 00 D7 08 00 69 73 D0 99 A6 42 41 E5 90 00 AE [23:50:55]RAPDU: 69 73 D0 99 A6 42 41 E5 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_SignData done [23:50:55]FM_MakeSignedData done [23:50:55]CreateOFDProtocolMessage [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 11 00 00 [23:50:55]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 17 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 AE [23:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:50:55]wFMCommunicate OK [23:50:55]CreateOFDProtocolMessage done [23:50:55]OFDSenderStorePacket 44761 [23:50:55]StoreOFDPacket docnum=44761 [23:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 D8 70 19 01 CD 09 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D9 AE 00 00 35 04 06 00 FE A2 08 AA 85 FC 69 73 D0 99 A6 42 41 E5 [23:50:55]CheckFolder [23:50:55]dirname=/storage/ofd_packets [23:50:55]CheckFolder done [23:50:55]ProducePacketName [23:50:55]name=ofd_packets/00044761 [23:50:55]NVStorageSaveData ofd_packets/00044761 [23:50:55]File name is /storage/ofd_packets/00044761 [23:50:55]Write 319 bytes [23:50:55]NVStorageSaveData done [23:50:55]OFDSenderStorePacket done [23:50:55]KKMCreateOFDPacket done [23:50:55]NVStorageSaveData kkm_last_timestamp [23:50:55]File name is /storage/kkm_last_timestamp [23:50:55]Write 4 bytes [23:50:55]NVStorageSaveData done [23:50:55]ExternCall_PrintAddStr [23:50:55]wPrintStart [23:50:55]Write to MH i2c: 01 00 00 D9 08 E1 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 07 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [23:50:55]RasterBufferAndPrint [23:50:55]line Счет N : (3)14653 [23:50:55]line ИНН: 02508201610067 [23:50:55]line Контрольно-Кассовый Чек [23:50:55]line ПРОДАЖА [23:50:55]line Товар: 47803008 [23:50:55]line Сигареты Winston XS Blue [23:50:55]line 1.000 * 140.00 [23:50:55]line = 140.00 [23:50:55]line НДС 12% НСП 1% [23:50:55]line > о реализуемом товаре [23:50:55]line ИТОГО: 140.00 [23:50:55]line НСП 1% : 1.24 [23:50:55]line НДС 12% : 14.87 [23:50:55]line Наличными: 140.00 [23:50:55]line Безнал.: 0.00 [23:50:55]line Место: АЗС № 128 "Партнер Нефть" [23:50:55]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:50:55]line СНО: Общий режим [23:50:55]line Чек 132 28.07.2024 23:50 [23:50:55]line Смена: 430 ФФД: 1.0 [23:50:55]line ЗНМ: 0300000045 [23:50:55]line РНМ: 0000000000092655 [23:50:55]line Версия ККМ: 001 [23:50:55]line ФМ: 0000000000874941 [23:50:55]line ФД: 44761 [23:50:55]line ФПД: 279971883550204 [23:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235054&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44761&fm=279971883550204&tin=02508201610067®Number=0000000000092655&sum=14000 [23:50:55]line 0 [23:50:55]written 0, free lines is 4095 [23:50:55]OFD Sender: Processing packet 44761 [packets to send 7, broken 6] [23:50:55]ProducePacketName [23:50:55]name=ofd_packets/00044761 [23:50:55]OFD Sender: To server: pG, [23:50:55]CommunicateWithHost lk.salyk.kg:30040 [23:50:55]ConnectInit lk.salyk.kg [23:50:55]Connected sock=10 [23:50:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 21 01 00 00 D8 70 19 01 CD 09 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5E D9 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D9 AE 00 00 35 04 06 00 FE A2 08 AA 85 FC 69 73 D0 99 A6 42 41 E5 [23:50:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 09 AD 47 00 E6 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 D9 AE 00 00 F4 03 04 00 6F 85 A6 66 B6 04 01 00 00 46 20 02 FF E8 2A 32 4F [23:50:55]CommunicateWithHost err = 0 [23:50:55]CheckOFDResponse [23:50:55]1017 (14) - 77093643461234 [23:50:55]1041 (16) - 0000000000874941 [23:50:55]1040 (4) - 44761 [23:50:55]1012 (4) - 28.07.2024 17:52 [23:50:55]1206 (1) - 0 [23:50:55]OFD Sender: Remove packet 44761 [23:50:55]ProducePacketName [23:50:55]name=ofd_packets/00044761 [23:50:55]NVStorageDeleteData [23:50:55]Write to MH i2c: 01 00 00 01 09 0A [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 07 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 E9 0C 06 [23:50:55]RasterBufferAndPrint [23:50:55]line [23:50:55]line [23:50:55]line [23:50:55]line [23:50:55]line [23:50:55]written 0, free lines is 3312 [23:50:55]process_action close_receipt done [23:50:55]requested_data is exist [23:50:55]produce_requested_data [23:50:55]requested_item fm.sn is exist - process it [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 11 00 00 [23:50:55]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 17 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DF [23:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:50:55]wFMCommunicate OK [23:50:55]requested_item fd.num is exist - process it [23:50:55]SAM_PROTO_GetFieldsCounters [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 13 00 00 [23:50:55]Write to MH i2c: E2 08 00 09 09 80 13 00 00 00 00 00 00 8E [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 62 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 62 00 09 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [23:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 D9 AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_GetFieldsCounters done [23:50:55]requested_item shift.num is exist - process it [23:50:55]requested_item shift.opened is exist - process it [23:50:55]req_shift_opened [23:50:55]FM_GetShiftState [23:50:55]SAM_PROTO_GetShiftState [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 13 01 00 [23:50:55]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 29 [23:50:55]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]SAM_PROTO_GetShiftState done [23:50:55]FM_GetShiftState done [23:50:55]req_shift_opened done [23:50:55]requested_item shift.open_date is exist - process it [23:50:55]req_shift_open_date [23:50:55]req_shift_open_date done [23:50:55]produce_requested_data done [23:50:55]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44761,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:50:55]process_action_free close_receipt [23:50:55]json_value_free [23:50:55]json_value_free done [23:50:55]process_json_proto returns [23:50:55]Send response to host [23:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44761,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:50:55]free response buf [23:50:55]execute_script done [23:50:55]execute_script returns [23:50:55]free content buf [23:50:55]Sock 9.Close socket [23:50:55]Sock 9.Thread stoped [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:07]accept exits with 7 [23:54:07]New connection [23:54:07]New thread 3066625380 created [23:54:07]Thread 3066482020 joined [23:54:07]Waiting for new connection... [23:54:07] Sock 7.Parse request [23:54:07]Sock 7.Check first char [23:54:07]Sock 7.First char is OK [23:54:07]request: POST /json_proto HTTP/1.0 [23:54:07]Method: POST [23:54:07]URL: /json_proto [23:54:07]Method is POST - this is cgi request [23:54:07]url: /json_proto [23:54:07]query_string will be loaded in cgi processing [23:54:07]execute_cgi json_proto POST (null) [23:54:07]execute_cgi path=json_proto method=POST [23:54:07]POST find Content-Length [23:54:07]Host: 172.17.45.196:8080 [23:54:07]Content-Length: 619 [23:54:07]Content-Type: application/json [23:54:07] [23:54:07]POST finish read [23:54:07]Found Content-Length = 619 [23:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14654", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:07]execute_script... [23:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14654", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:07]POST & json_proto [23:54:07]process_json_proto [23:54:07]json parsed OK: [23:54:07]protocol is kg_v1.0 [23:54:07]action value=close_receipt [23:54:07]process_action close_receipt [23:54:07]cmd_close_receipt [23:54:07]MH_GetDate [23:54:07]Write to MH i2c: F0 00 00 0B 09 03 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: F0 09 00 0B 09 00 20 DA A6 66 BB 03 A5 66 DB [23:54:07]GetLastDocTimeStamp 1722210654 [23:54:07]current date 1722210848 [23:54:07]FM_GetShiftState [23:54:07]SAM_PROTO_GetShiftState [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 13 01 00 [23:54:07]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0E 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 2B [23:54:07]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:54:07]wFMCommunicate OK [23:54:07]SAM_PROTO_GetShiftState done [23:54:07]FM_GetShiftState done [23:54:07]opened in 1722126323 [23:54:07]opened+sec_in_day 1722212723 [23:54:07]quantity*price = 15000 [23:54:07]sum+1 = 15001 [23:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 133 28.07.2024 23:54 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44762 ФПД: 86813248455528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235409&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44762&fm=86813248455528&tin=02508201610067®Number=0000000000092655&sum=15000 0 [23:54:08]StoreToDocumentArchive [23:54:08]shift 430 fd 44762 [23:54:08]save to /storage/0430/doc_00044762 [23:54:08]save last doc name /storage/0430/doc_00044762 to /storage/kkm_last_doc_name [23:54:08]save OK [23:54:08]Clear old archive folders... [23:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:54:08]tlvbuf is 017A0400 [23:54:08]SAM_PROTO_ClearQueue [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 09 00 00 [23:54:08]Write to MH i2c: E2 08 00 19 09 80 09 00 00 00 00 00 00 94 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 03 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [23:54:08]RAPDU: 90 00 [23:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_ClearQueue done [23:54:08]KKMCreateOFDPacket [23:54:08]OFDProtocolAddRootSTLVToBuf [23:54:08]FM_MakeSignedData [23:54:08]FM_MakeSignedData [23:54:08]SAM_PROTO_SignData [23:54:08]wFMCommunicate request_size=4 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 0D 01 02 [23:54:08]Write to MH i2c: E2 08 00 1A 09 80 0D 01 02 00 00 00 00 9C [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:08]Read from MH i2c: E2 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 03 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [23:54:08]RAPDU: 90 00 [23:54:08]wFMCommunicate OK [23:54:08]wFMCommunicate request_size=255 [23:54:08]MH_SAM_APDU [23:54:08]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 21 DA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 [23:54:08]Write to MH i2c: E2 02 01 1B 09 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 21 DA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 61 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 03 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [23:54:09]RAPDU: 90 00 [23:54:09]wFMCommunicate OK [23:54:09]wFMCommunicate request_size=31 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 31 10 04 04 00 DA AE 00 00 35 04 06 00 4E F4 C8 D6 03 68 [23:54:09]Write to MH i2c: E2 22 00 1C 09 80 0D 02 02 1A 00 30 30 38 37 34 39 34 31 10 04 04 00 DA AE 00 00 35 04 06 00 4E F4 C8 D6 03 68 00 00 9E [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 03 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [23:54:09]RAPDU: 90 00 [23:54:09]wFMCommunicate OK [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 0D 03 02 [23:54:09]Write to MH i2c: E2 08 00 1D 09 80 0D 03 02 00 00 00 00 A1 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0B 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0B 00 1D 09 00 B7 40 0E 0E 32 49 41 AE 90 00 1F [23:54:09]RAPDU: B7 40 0E 0E 32 49 41 AE 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_SignData done [23:54:09]FM_MakeSignedData done [23:54:09]CreateOFDProtocolMessage [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 11 00 00 [23:54:09]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 17 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F5 [23:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:54:09]wFMCommunicate OK [23:54:09]CreateOFDProtocolMessage done [23:54:09]OFDSenderStorePacket 44762 [23:54:09]StoreOFDPacket docnum=44762 [23:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 28 29 1C 01 1A AB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 21 DA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DA AE 00 00 35 04 06 00 4E F4 C8 D6 03 68 B7 40 0E 0E 32 49 41 AE [23:54:09]CheckFolder [23:54:09]dirname=/storage/ofd_packets [23:54:09]CheckFolder done [23:54:09]ProducePacketName [23:54:09]name=ofd_packets/00044762 [23:54:09]NVStorageSaveData ofd_packets/00044762 [23:54:09]File name is /storage/ofd_packets/00044762 [23:54:09]Write 322 bytes [23:54:09]NVStorageSaveData done [23:54:09]OFDSenderStorePacket done [23:54:09]KKMCreateOFDPacket done [23:54:09]NVStorageSaveData kkm_last_timestamp [23:54:09]File name is /storage/kkm_last_timestamp [23:54:09]Write 4 bytes [23:54:09]NVStorageSaveData done [23:54:09]ExternCall_PrintAddStr [23:54:09]wPrintStart [23:54:09]Write to MH i2c: 01 00 00 1F 09 28 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 07 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [23:54:09]RasterBufferAndPrint [23:54:09]line Счет N : (3)14654 [23:54:09]line ИНН: 02508201610067 [23:54:09]line Контрольно-Кассовый Чек [23:54:09]line ПРОДАЖА [23:54:09]line Товар: 4640030091607 [23:54:09]line Сигареты ESSE Exchange [23:54:09]line 1.000 * 150.00 [23:54:09]line = 150.00 [23:54:09]line НДС 12% НСП 1% [23:54:09]line > о реализуемом товаре [23:54:09]line ИТОГО: 150.00 [23:54:09]line НСП 1% : 1.33 [23:54:09]line НДС 12% : 15.93 [23:54:09]line Наличными: 150.00 [23:54:09]line Безнал.: 0.00 [23:54:09]line Место: АЗС № 128 "Партнер Нефть" [23:54:09]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:54:09]line СНО: Общий режим [23:54:09]line Чек 133 28.07.2024 23:54 [23:54:09]line Смена: 430 ФФД: 1.0 [23:54:09]line ЗНМ: 0300000045 [23:54:09]line РНМ: 0000000000092655 [23:54:09]line Версия ККМ: 001 [23:54:09]line ФМ: 0000000000874941 [23:54:09]line ФД: 44762 [23:54:09]line ФПД: 86813248455528 [23:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235409&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44762&fm=86813248455528&tin=02508201610067®Number=0000000000092655&sum=15000 [23:54:09]OFD Sender: Processing packet 44762 [packets to send 7, broken 6] [23:54:09]ProducePacketName [23:54:09]name=ofd_packets/00044762 [23:54:09]OFD Sender: To server: pG, [23:54:09]CommunicateWithHost lk.salyk.kg:30040 [23:54:09]ConnectInit lk.salyk.kg [23:54:09]line 0 [23:54:09]written 0, free lines is 4095 [23:54:09]Connected sock=11 [23:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 24 01 00 00 28 29 1C 01 1A AB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 21 DA A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DA AE 00 00 35 04 06 00 4E F4 C8 D6 03 68 B7 40 0E 0E 32 49 41 AE [23:54:10]Write to MH i2c: 01 00 00 47 09 50 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 DD 0C 40 [23:54:10]RasterBufferAndPrint [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]written 0, free lines is 3299 [23:54:10]process_action close_receipt done [23:54:10]requested_data is exist [23:54:10]produce_requested_data [23:54:10]requested_item fm.sn is exist - process it [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 11 00 00 [23:54:10]Write to MH i2c: E2 08 00 4E 09 80 11 00 00 00 00 00 00 D1 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 4E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 25 [23:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:54:10]wFMCommunicate OK [23:54:10]requested_item fd.num is exist - process it [23:54:10]SAM_PROTO_GetFieldsCounters [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 13 00 00 [23:54:10]Write to MH i2c: E2 08 00 4F 09 80 13 00 00 00 00 00 00 D4 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 99 20 47 00 73 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DA AE 00 00 F4 03 04 00 32 86 A6 66 B6 04 01 00 00 48 1B 26 5A F1 62 FC 3D [23:54:10]CommunicateWithHost err = 0 [23:54:10]CheckOFDResponse [23:54:10]1017 (14) - 77093643461234 [23:54:10]1041 (16) - 0000000000874941 [23:54:10]1040 (4) - 44762 [23:54:10]1012 (4) - 28.07.2024 17:56 [23:54:10]1206 (1) - 0 [23:54:10]OFD Sender: Remove packet 44762 [23:54:10]ProducePacketName [23:54:10]name=ofd_packets/00044762 [23:54:10]NVStorageDeleteData [23:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 62 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 62 00 4F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [23:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DA AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_GetFieldsCounters done [23:54:10]requested_item shift.num is exist - process it [23:54:10]requested_item shift.opened is exist - process it [23:54:10]req_shift_opened [23:54:10]FM_GetShiftState [23:54:10]SAM_PROTO_GetShiftState [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 13 01 00 [23:54:10]Write to MH i2c: E2 08 00 50 09 80 13 01 00 00 00 00 00 D6 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0E 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0E 00 50 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 6F [23:54:10]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_GetShiftState done [23:54:10]FM_GetShiftState done [23:54:10]req_shift_opened done [23:54:10]requested_item shift.open_date is exist - process it [23:54:10]req_shift_open_date [23:54:10]req_shift_open_date done [23:54:10]produce_requested_data done [23:54:10]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44762,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:54:10]process_action_free close_receipt [23:54:10]json_value_free [23:54:10]json_value_free done [23:54:10]process_json_proto returns [23:54:10]Send response to host [23:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44762,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:54:10]free response buf [23:54:10]execute_script done [23:54:10]execute_script returns [23:54:10]free content buf [23:54:10]Sock 7.Close socket [23:54:10]Sock 7.Thread stoped [23:54:10]OFD Sender: No OFD packet to send [23:54:11]int [23:54:11]Write to MH i2c: 01 00 00 51 09 5A [23:54:11]*** FLAG_PRN_KEY set [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 51 09 00 08 00 00 00 FF 0F 77 [23:54:11]state=0 [23:54:11]Key pressed [23:54:11]Feed [23:54:11]Write to MH i2c: D8 00 00 52 09 32 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D8 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D8 01 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D8 01 00 52 09 00 33 [23:54:11]int [23:54:11]Write to MH i2c: 01 00 00 53 09 5C [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 53 09 00 48 00 00 00 3C 00 E7 [23:54:11]state=2 [23:54:11]Key pressed [23:54:11]int [23:54:11]Write to MH i2c: 01 00 00 54 09 5D [23:54:11]*** FLAG_PRN_KEY reset [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 F7 0F 6A [23:54:11]state=2 [23:54:11]Stop feed [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]accept exits with 9 [23:59:45]New connection [23:59:45]New thread 3066482020 created [23:59:45]Thread 3066625380 joined [23:59:45]Waiting for new connection... [23:59:45] Sock 9.Parse request [23:59:45]Sock 9.Check first char [23:59:45]Sock 9.First char is OK [23:59:45]request: POST /json_proto HTTP/1.0 [23:59:45]Method: POST [23:59:45]URL: /json_proto [23:59:45]Method is POST - this is cgi request [23:59:45]url: /json_proto [23:59:45]query_string will be loaded in cgi processing [23:59:45]execute_cgi json_proto POST (null) [23:59:45]execute_cgi path=json_proto method=POST [23:59:45]POST find Content-Length [23:59:45]Host: 172.17.45.196:8080 [23:59:45]Content-Length: 621 [23:59:45]Content-Type: application/json [23:59:45] [23:59:45]POST finish read [23:59:45]Found Content-Length = 621 [23:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14655", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]execute_script... [23:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14655", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]POST & json_proto [23:59:45]process_json_proto [23:59:45]json parsed OK: [23:59:45]protocol is kg_v1.0 [23:59:45]action value=close_receipt [23:59:45]process_action close_receipt [23:59:45]cmd_close_receipt [23:59:45]MH_GetDate [23:59:45]Write to MH i2c: F0 00 00 55 09 4D [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: F0 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: F0 09 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: F0 09 00 55 09 00 72 DB A6 66 BB 03 A5 66 78 [23:59:45]GetLastDocTimeStamp 1722210849 [23:59:45]current date 1722211186 [23:59:45]FM_GetShiftState [23:59:45]SAM_PROTO_GetShiftState [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 01 00 [23:59:45]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 75 [23:59:45]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_GetShiftState done [23:59:45]FM_GetShiftState done [23:59:45]opened in 1722126323 [23:59:45]opened+sec_in_day 1722212723 [23:59:45]quantity*price = 15000 [23:59:45]sum+1 = 15001 [23:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 134 28.07.2024 23:59 Смена: 430 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44763 ФПД: 247408270731142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235946&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44763&fm=247408270731142&tin=02508201610067®Number=0000000000092655&sum=15000 0 [23:59:46]StoreToDocumentArchive [23:59:46]shift 430 fd 44763 [23:59:46]save to /storage/0430/doc_00044763 [23:59:46]save last doc name /storage/0430/doc_00044763 to /storage/kkm_last_doc_name [23:59:46]save OK [23:59:46]Clear old archive folders... [23:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:59:46]tlvbuf is 01814650 [23:59:46]SAM_PROTO_ClearQueue [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 09 00 00 [23:59:46]Write to MH i2c: E2 08 00 63 09 80 09 00 00 00 00 00 00 DE [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 03 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [23:59:46]RAPDU: 90 00 [23:59:46]wFMCommunicate OK [23:59:46]SAM_PROTO_ClearQueue done [23:59:46]KKMCreateOFDPacket [23:59:46]OFDProtocolAddRootSTLVToBuf [23:59:46]FM_MakeSignedData [23:59:46]FM_MakeSignedData [23:59:46]SAM_PROTO_SignData [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 0D 01 02 [23:59:46]Write to MH i2c: E2 08 00 64 09 80 0D 01 02 00 00 00 00 E6 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 03 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [23:59:46]RAPDU: 90 00 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=255 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 DB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [23:59:46]Write to MH i2c: E2 02 01 65 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 DB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 13 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 03 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [23:59:47]RAPDU: 90 00 [23:59:47]wFMCommunicate OK [23:59:47]wFMCommunicate request_size=33 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DB AE 00 00 35 04 06 00 E1 04 3A 17 67 86 [23:59:47]Write to MH i2c: E2 24 00 66 09 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DB AE 00 00 35 04 06 00 E1 04 3A 17 67 86 00 00 25 [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 03 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [23:59:47]RAPDU: 90 00 [23:59:47]wFMCommunicate OK [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 0D 03 02 [23:59:47]Write to MH i2c: E2 08 00 67 09 80 0D 03 02 00 00 00 00 EB [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 0B 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 0B 00 67 09 00 CC 17 38 EB 35 9B 4A 5E 90 00 6A [23:59:47]RAPDU: CC 17 38 EB 35 9B 4A 5E 90 00 [23:59:47]wFMCommunicate OK [23:59:47]SAM_PROTO_SignData done [23:59:47]FM_MakeSignedData done [23:59:47]CreateOFDProtocolMessage [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 11 00 00 [23:59:47]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 17 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3F [23:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:59:47]wFMCommunicate OK [23:59:47]CreateOFDProtocolMessage done [23:59:47]OFDSenderStorePacket 44763 [23:59:47]StoreOFDPacket docnum=44763 [23:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 A9 27 1E 01 C4 5A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 DB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DB AE 00 00 35 04 06 00 E1 04 3A 17 67 86 CC 17 38 EB 35 9B 4A 5E [23:59:47]CheckFolder [23:59:47]dirname=/storage/ofd_packets [23:59:47]CheckFolder done [23:59:47]ProducePacketName [23:59:47]name=ofd_packets/00044763 [23:59:47]NVStorageSaveData ofd_packets/00044763 [23:59:47]File name is /storage/ofd_packets/00044763 [23:59:47]Write 324 bytes [23:59:47]NVStorageSaveData done [23:59:47]OFDSenderStorePacket done [23:59:47]KKMCreateOFDPacket done [23:59:47]NVStorageSaveData kkm_last_timestamp [23:59:47]File name is /storage/kkm_last_timestamp [23:59:47]Write 4 bytes [23:59:47]NVStorageSaveData done [23:59:47]ExternCall_PrintAddStr [23:59:47]wPrintStart [23:59:47]Write to MH i2c: 01 00 00 69 09 72 [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: 01 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: 01 07 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [23:59:47]RasterBufferAndPrint [23:59:47]line Счет N : (3)14655 [23:59:47]line ИНН: 02508201610067 [23:59:47]line Контрольно-Кассовый Чек [23:59:47]line ПРОДАЖА [23:59:47]line Товар: 4640030091645 [23:59:47]line Сигареты ESSE Exchange M [23:59:47]line 1.000 * 150.00 [23:59:47]line = 150.00 [23:59:47]line НДС 12% НСП 1% [23:59:47]line > о реализуемом товаре [23:59:47]line ИТОГО: 150.00 [23:59:47]line НСП 1% : 1.33 [23:59:47]line НДС 12% : 15.93 [23:59:47]line Наличными: 150.00 [23:59:47]line Безнал.: 0.00 [23:59:47]line Место: АЗС № 128 "Партнер Нефть" [23:59:47]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [23:59:47]line СНО: Общий режим [23:59:47]line Чек 134 28.07.2024 23:59 [23:59:47]line Смена: 430 ФФД: 1.0 [23:59:47]line ЗНМ: 0300000045 [23:59:47]line РНМ: 0000000000092655 [23:59:47]line Версия ККМ: 001 [23:59:47]line ФМ: 0000000000874941 [23:59:47]line ФД: 44763 [23:59:47]line ФПД: 247408270731142 [23:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235946&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44763&fm=247408270731142&tin=02508201610067®Number=0000000000092655&sum=15000 [23:59:47]line 0 [23:59:47]OFD Sender: Processing packet 44763 [packets to send 7, broken 6] [23:59:47]ProducePacketName [23:59:47]name=ofd_packets/00044763 [23:59:47]OFD Sender: To server: pG, [23:59:47]CommunicateWithHost lk.salyk.kg:30040 [23:59:47]ConnectInit lk.salyk.kg [23:59:47]written 0, free lines is 4095 [23:59:47]Connected sock=10 [23:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 A9 27 1E 01 C4 5A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 DB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DB AE 00 00 35 04 06 00 E1 04 3A 17 67 86 CC 17 38 EB 35 9B 4A 5E [23:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 27 B6 47 00 F8 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DB AE 00 00 F4 03 04 00 84 87 A6 66 B6 04 01 00 00 02 B6 69 21 D9 8A 0D 0C [23:59:47]CommunicateWithHost err = 0 [23:59:47]CheckOFDResponse [23:59:47]1017 (14) - 77093643461234 [23:59:47]1041 (16) - 0000000000874941 [23:59:47]1040 (4) - 44763 [23:59:47]1012 (4) - 28.07.2024 18:01 [23:59:47]1206 (1) - 0 [23:59:47]OFD Sender: Remove packet 44763 [23:59:47]ProducePacketName [23:59:47]name=ofd_packets/00044763 [23:59:47]NVStorageDeleteData [23:59:48]Write to MH i2c: 01 00 00 91 09 9A [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 07 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 E4 0C 91 [23:59:48]RasterBufferAndPrint [23:59:48]line [23:59:48]line [23:59:48]line [23:59:48]line [23:59:48]line [23:59:48]written 0, free lines is 3307 [23:59:48]process_action close_receipt done [23:59:48]requested_data is exist [23:59:48]produce_requested_data [23:59:48]requested_item fm.sn is exist - process it [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 11 00 00 [23:59:48]Write to MH i2c: E2 08 00 98 09 80 11 00 00 00 00 00 00 1B [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 17 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 17 00 98 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6F [23:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [23:59:48]wFMCommunicate OK [23:59:48]requested_item fd.num is exist - process it [23:59:48]SAM_PROTO_GetFieldsCounters [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 13 00 00 [23:59:48]Write to MH i2c: E2 08 00 99 09 80 13 00 00 00 00 00 00 1E [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 62 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 62 00 99 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:48]wFMCommunicate OK [23:59:48]SAM_PROTO_GetFieldsCounters done [23:59:48]requested_item shift.num is exist - process it [23:59:48]requested_item shift.opened is exist - process it [23:59:48]req_shift_opened [23:59:48]FM_GetShiftState [23:59:48]SAM_PROTO_GetShiftState [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 13 01 00 [23:59:48]Write to MH i2c: E2 08 00 9A 09 80 13 01 00 00 00 00 00 20 [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 0E 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 0E 00 9A 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 B9 [23:59:48]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [23:59:48]wFMCommunicate OK [23:59:48]SAM_PROTO_GetShiftState done [23:59:48]FM_GetShiftState done [23:59:48]req_shift_opened done [23:59:48]requested_item shift.open_date is exist - process it [23:59:48]req_shift_open_date [23:59:48]req_shift_open_date done [23:59:48]produce_requested_data done [23:59:48]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [23:59:48]process_action_free close_receipt [23:59:48]json_value_free [23:59:48]json_value_free done [23:59:48]process_json_proto returns [23:59:48]Send response to host [23:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [23:59:48]free response buf [23:59:48]execute_script done [23:59:48]execute_script returns [23:59:48]free content buf [23:59:48]Sock 9.Close socket [23:59:48]Sock 9.Thread stoped [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:00]accept exits with 7 [00:03:00]New connection [00:03:00]New thread 3066625380 created [00:03:00]Thread 3066482020 joined [00:03:00]Waiting for new connection... [00:03:00] Sock 7.Parse request [00:03:00]Sock 7.Check first char [00:03:00]Sock 7.First char is OK [00:03:00]request: POST /json_proto HTTP/1.0 [00:03:00]Method: POST [00:03:00]URL: /json_proto [00:03:00]Method is POST - this is cgi request [00:03:00]url: /json_proto [00:03:00]query_string will be loaded in cgi processing [00:03:00]execute_cgi json_proto POST (null) [00:03:00]execute_cgi path=json_proto method=POST [00:03:00]POST find Content-Length [00:03:00]Host: 172.17.45.196:8080 [00:03:00]Content-Length: 215 [00:03:00]Content-Type: application/json [00:03:00] [00:03:00]POST finish read [00:03:00]Found Content-Length = 215 [00:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:00]execute_script... [00:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:00]POST & json_proto [00:03:00]process_json_proto [00:03:00]json parsed OK: [00:03:00]protocol is kg_v1.0 [00:03:00]action value=get_value [00:03:00]process_action get_value [00:03:00]cmd_get_value [00:03:00]process_action get_value done [00:03:00]requested_data is exist [00:03:00]produce_requested_data [00:03:00]requested_item kkm.sn is exist - process it [00:03:00]requested_item kkm.ver is exist - process it [00:03:00]requested_item fm.sn is exist - process it [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 11 00 00 [00:03:00]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 17 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 72 [00:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:03:00]wFMCommunicate OK [00:03:00]requested_item fd.num is exist - process it [00:03:00]SAM_PROTO_GetFieldsCounters [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 13 00 00 [00:03:00]Write to MH i2c: E2 08 00 9C 09 80 13 00 00 00 00 00 00 21 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 62 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 62 00 9C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [00:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:00]wFMCommunicate OK [00:03:00]SAM_PROTO_GetFieldsCounters done [00:03:00]requested_item shift.num is exist - process it [00:03:00]requested_item shift.opened is exist - process it [00:03:00]req_shift_opened [00:03:00]FM_GetShiftState [00:03:00]SAM_PROTO_GetShiftState [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 13 01 00 [00:03:00]Write to MH i2c: E2 08 00 9D 09 80 13 01 00 00 00 00 00 23 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 0E 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 0E 00 9D 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 BC [00:03:00]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [00:03:00]wFMCommunicate OK [00:03:00]SAM_PROTO_GetShiftState done [00:03:00]FM_GetShiftState done [00:03:00]req_shift_opened done [00:03:00]requested_item shift.open_date is exist - process it [00:03:00]req_shift_open_date [00:03:00]req_shift_open_date done [00:03:00]produce_requested_data done [00:03:00]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [00:03:00]process_action_free get_value [00:03:00]json_value_free [00:03:00]json_value_free done [00:03:00]process_json_proto returns [00:03:00]Send response to host [00:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [00:03:00]free response buf [00:03:00]execute_script done [00:03:00]execute_script returns [00:03:00]free content buf [00:03:00]Sock 7.Close socket [00:03:00]Sock 7.Thread stoped [00:03:00]accept exits with 9 [00:03:00]New connection [00:03:00]New thread 3066482020 created [00:03:00]Thread 3066625380 joined [00:03:00]Waiting for new connection... [00:03:00] Sock 9.Parse request [00:03:00]Sock 9.Check first char [00:03:00]Sock 9.First char is OK [00:03:00]request: POST /json_proto HTTP/1.0 [00:03:00]Method: POST [00:03:00]URL: /json_proto [00:03:00]Method is POST - this is cgi request [00:03:00]url: /json_proto [00:03:00]query_string will be loaded in cgi processing [00:03:00]execute_cgi json_proto POST (null) [00:03:00]execute_cgi path=json_proto method=POST [00:03:00]POST find Content-Length [00:03:00]Host: 172.17.45.196:8080 [00:03:00]Content-Length: 331 [00:03:00]Content-Type: application/json [00:03:00] [00:03:00]POST finish read [00:03:00]Found Content-Length = 331 [00:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:00]execute_script... [00:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:00]POST & json_proto [00:03:00]process_json_proto [00:03:00]json parsed OK: [00:03:00]protocol is kg_v1.0 [00:03:00]action value=get_value [00:03:00]process_action get_value [00:03:00]cmd_get_value [00:03:00]process_action get_value done [00:03:00]requested_data is exist [00:03:00]produce_requested_data [00:03:00]requested_item fm.sale.total is exist - process it [00:03:00]SAM_PROTO_GetFMData [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 13 03 00 [00:03:00]Write to MH i2c: E2 08 00 9E 09 80 13 03 00 00 00 00 00 26 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 9E 09 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 B4 [00:03:01]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:03:01]wFMCommunicate OK [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 9F 09 80 17 00 00 00 00 00 00 28 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 9F 09 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 D1 [00:03:01]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:03:01]wFMCommunicate OK [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 A0 09 80 17 00 00 00 00 00 00 29 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 FD 00 A0 09 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 D7 [00:03:01]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:03:01]wFMCommunicate OK [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 17 00 00 [00:03:01]Write to MH i2c: E2 08 00 A1 09 80 17 00 00 00 00 00 00 2A [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:02]Read from MH i2c: E2 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 A1 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 A5 [00:03:02]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:03:02]wFMCommunicate OK [00:03:02]wFMCommunicate request_size=4 [00:03:02]MH_SAM_APDU [00:03:02]CAPDU: 80 17 00 00 [00:03:02]Write to MH i2c: E2 08 00 A2 09 80 17 00 00 00 00 00 00 2B [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:03:02]Read from MH i2c: E2 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 DF 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 DF 00 A2 09 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0B [00:03:02]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:02]wFMCommunicate OK [00:03:02]SAM_PROTO_GetFMData done [00:03:02]requested_item fm.sale_refund.total is exist - process it [00:03:02]requested_item fm.buy.total is exist - process it [00:03:02]requested_item shift.sale.total is exist - process it [00:03:02]SAM_PROTO_GetShiftData [00:03:02]wFMCommunicate request_size=4 [00:03:02]MH_SAM_APDU [00:03:02]CAPDU: 80 13 02 00 [00:03:02]Write to MH i2c: E2 08 00 A3 09 80 13 02 00 00 00 00 00 2A [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:02]Read from MH i2c: E2 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: E2 FD 00 A3 09 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B9 [00:03:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:02]wFMCommunicate OK [00:03:02]wFMCommunicate request_size=4 [00:03:02]MH_SAM_APDU [00:03:02]CAPDU: 80 17 00 00 [00:03:02]Write to MH i2c: E2 08 00 A4 09 80 17 00 00 00 00 00 00 2D [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 A4 09 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4F [00:03:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:03:03]wFMCommunicate OK [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 17 00 00 [00:03:03]Write to MH i2c: E2 08 00 A5 09 80 17 00 00 00 00 00 00 2E [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 A5 09 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E5 [00:03:03]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:03:03]wFMCommunicate OK [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 17 00 00 [00:03:03]Write to MH i2c: E2 08 00 A6 09 80 17 00 00 00 00 00 00 2F [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]OFD Sender: No OFD packet to send [00:03:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 A6 09 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A1 [00:03:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:03:03]wFMCommunicate OK [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 17 00 00 [00:03:03]Write to MH i2c: E2 08 00 A7 09 80 17 00 00 00 00 00 00 30 [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 CB 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 CB 00 A7 09 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:03:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:04]wFMCommunicate OK [00:03:04]SAM_PROTO_GetShiftData done [00:03:04]requested_item shift.sale.total_cash is exist - process it [00:03:04]requested_item shift.sale_refund.total is exist - process it [00:03:04]requested_item shift.sale_refund.total_cash is exist - process it [00:03:04]requested_item shift.buy.total is exist - process it [00:03:04]requested_item shift.buy.total_cash is exist - process it [00:03:04]produce_requested_data done [00:03:04]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:04]process_action_free get_value [00:03:04]json_value_free [00:03:04]json_value_free done [00:03:04]process_json_proto returns [00:03:04]Send response to host [00:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:04]free response buf [00:03:04]execute_script done [00:03:04]execute_script returns [00:03:04]free content buf [00:03:04]Sock 9.Close socket [00:03:04]Sock 9.Thread stoped [00:03:04]accept exits with 7 [00:03:04]New connection [00:03:04]New thread 3066625380 created [00:03:04]Thread 3066482020 joined [00:03:04]Waiting for new connection... [00:03:04] Sock 7.Parse request [00:03:04]Sock 7.Check first char [00:03:04]Sock 7.First char is OK [00:03:04]request: POST /json_proto HTTP/1.0 [00:03:04]Method: POST [00:03:04]URL: /json_proto [00:03:04]Method is POST - this is cgi request [00:03:04]url: /json_proto [00:03:04]query_string will be loaded in cgi processing [00:03:04]execute_cgi json_proto POST (null) [00:03:04]execute_cgi path=json_proto method=POST [00:03:04]POST find Content-Length [00:03:04]Host: 172.17.45.196:8080 [00:03:04]Content-Length: 331 [00:03:04]Content-Type: application/json [00:03:04] [00:03:04]POST finish read [00:03:04]Found Content-Length = 331 [00:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:04]execute_script... [00:03:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:04]POST & json_proto [00:03:04]process_json_proto [00:03:04]json parsed OK: [00:03:04]protocol is kg_v1.0 [00:03:04]action value=get_value [00:03:04]process_action get_value [00:03:04]cmd_get_value [00:03:04]process_action get_value done [00:03:04]requested_data is exist [00:03:04]produce_requested_data [00:03:04]requested_item fm.sale.total is exist - process it [00:03:04]SAM_PROTO_GetFMData [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 13 03 00 [00:03:04]Write to MH i2c: E2 08 00 A8 09 80 13 03 00 00 00 00 00 30 [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 A8 09 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 BE [00:03:04]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 A9 09 80 17 00 00 00 00 00 00 32 [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 A9 09 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 DB [00:03:04]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 AA 09 80 17 00 00 00 00 00 00 33 [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 AA 09 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 E1 [00:03:05]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 AB 09 80 17 00 00 00 00 00 00 34 [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 AB 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 AF [00:03:05]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 AC 09 80 17 00 00 00 00 00 00 35 [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 DF 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 DF 00 AC 09 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [00:03:06]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:06]wFMCommunicate OK [00:03:06]SAM_PROTO_GetFMData done [00:03:06]requested_item fm.sale_refund.total is exist - process it [00:03:06]requested_item fm.buy.total is exist - process it [00:03:06]requested_item shift.sale.total is exist - process it [00:03:06]SAM_PROTO_GetShiftData [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 13 02 00 [00:03:06]Write to MH i2c: E2 08 00 AD 09 80 13 02 00 00 00 00 00 34 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 AD 09 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C3 [00:03:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:06]wFMCommunicate OK [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 17 00 00 [00:03:06]Write to MH i2c: E2 08 00 AE 09 80 17 00 00 00 00 00 00 37 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 AE 09 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 59 [00:03:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=4 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 17 00 00 [00:03:07]Write to MH i2c: E2 08 00 AF 09 80 17 00 00 00 00 00 00 38 [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 AF 09 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 EF [00:03:07]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=4 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 17 00 00 [00:03:07]Write to MH i2c: E2 08 00 B0 09 80 17 00 00 00 00 00 00 39 [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 B0 09 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 AB [00:03:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=4 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 17 00 00 [00:03:07]Write to MH i2c: E2 08 00 B1 09 80 17 00 00 00 00 00 00 3A [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 CB 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 CB 00 B1 09 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [00:03:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetShiftData done [00:03:08]requested_item shift.sale.total_cash is exist - process it [00:03:08]requested_item shift.sale_refund.total is exist - process it [00:03:08]requested_item shift.sale_refund.total_cash is exist - process it [00:03:08]requested_item shift.buy.total is exist - process it [00:03:08]requested_item shift.buy.total_cash is exist - process it [00:03:08]produce_requested_data done [00:03:08]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:08]process_action_free get_value [00:03:08]json_value_free [00:03:08]json_value_free done [00:03:08]process_json_proto returns [00:03:08]Send response to host [00:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:08]free response buf [00:03:08]execute_script done [00:03:08]execute_script returns [00:03:08]free content buf [00:03:08]Sock 7.Close socket [00:03:08]Sock 7.Thread stoped [00:03:08]accept exits with 9 [00:03:08]New connection [00:03:08]New thread 3066482020 created [00:03:08]Thread 3066625380 joined [00:03:08]Waiting for new connection... [00:03:08] Sock 9.Parse request [00:03:08]Sock 9.Check first char [00:03:08]Sock 9.First char is OK [00:03:08]request: POST /json_proto HTTP/1.0 [00:03:08]Method: POST [00:03:08]URL: /json_proto [00:03:08]Method is POST - this is cgi request [00:03:08]url: /json_proto [00:03:08]query_string will be loaded in cgi processing [00:03:08]execute_cgi json_proto POST (null) [00:03:08]execute_cgi path=json_proto method=POST [00:03:08]POST find Content-Length [00:03:08]Host: 172.17.45.196:8080 [00:03:08]Content-Length: 263 [00:03:08]Content-Type: application/json [00:03:08] [00:03:08]POST finish read [00:03:08]Found Content-Length = 263 [00:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043D\u0430\u0437\u0430\u0440\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:08]execute_script... [00:03:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043D\u0430\u0437\u0430\u0440\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:08]POST & json_proto [00:03:08]process_json_proto [00:03:08]json parsed OK: [00:03:08]protocol is kg_v1.0 [00:03:08]action value=x_report [00:03:08]process_action x_report [00:03:08]cmd_x_report [00:03:08]MH_GetDate [00:03:08]Write to MH i2c: F0 00 00 B2 09 AA [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 B2 09 00 3D DC A6 66 BB 03 A5 66 A1 [00:03:08]GetLastDocTimeStamp 1722211186 [00:03:08]current date 1722211389 [00:03:08]FM_GetShiftState [00:03:08]SAM_PROTO_GetShiftState [00:03:08]wFMCommunicate request_size=4 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 13 01 00 [00:03:08]Write to MH i2c: E2 08 00 B3 09 80 13 01 00 00 00 00 00 39 [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 0E 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 0E 00 B3 09 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 D2 [00:03:08]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetShiftState done [00:03:08]FM_GetShiftState done [00:03:08]KKMCreateXReportDocument [00:03:08]Load OK [00:03:08]Malloc new data [00:03:08]MH_GetDate [00:03:08]Write to MH i2c: F0 00 00 B4 09 AC [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: F0 09 00 B4 09 00 3D DC A6 66 BB 03 A5 66 A3 [00:03:08]Malloc new data [00:03:08]Malloc new data [00:03:08]wFMCommunicate request_size=4 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 11 00 00 [00:03:08]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 17 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8C [00:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetFieldsCounters [00:03:08]wFMCommunicate request_size=4 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 13 00 00 [00:03:08]Write to MH i2c: E2 08 00 B6 09 80 13 00 00 00 00 00 00 3B [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:08]Read from MH i2c: E2 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 62 00 [00:03:08]MH_I2C_Read... [00:03:08]Read from MH i2c: E2 62 00 B6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [00:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetFieldsCounters done [00:03:08]Malloc new data [00:03:08]Malloc new data [00:03:08]Malloc new data [00:03:08]KKMCreateXReportDocument OK [00:03:08]KKMSetXReportData OK [00:03:08]KKMPrepareXReportFMData [00:03:08]SAM_PROTO_GetShiftData [00:03:08]wFMCommunicate request_size=4 [00:03:08]MH_SAM_APDU [00:03:08]CAPDU: 80 13 02 00 [00:03:08]Write to MH i2c: E2 08 00 B7 09 80 13 02 00 00 00 00 00 3E [00:03:08]Write i2c OK [00:03:08]MH_I2C_Read... [00:03:08]OFD Sender: No OFD packet to send [00:03:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 B7 09 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CD [00:03:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 17 00 00 [00:03:09]Write to MH i2c: E2 08 00 B8 09 80 17 00 00 00 00 00 00 41 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 B8 09 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 63 [00:03:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:03:09]wFMCommunicate OK [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 17 00 00 [00:03:09]Write to MH i2c: E2 08 00 B9 09 80 17 00 00 00 00 00 00 42 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 FD 00 B9 09 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F9 [00:03:10]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 17 00 00 [00:03:10]Write to MH i2c: E2 08 00 BA 09 80 17 00 00 00 00 00 00 43 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 BA 09 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B5 [00:03:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 17 00 00 [00:03:10]Write to MH i2c: E2 08 00 BB 09 80 17 00 00 00 00 00 00 44 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 CB 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 CB 00 BB 09 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2D [00:03:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftData done [00:03:10]1194 (1194) - счетчики итогов смены [00:03:10] 1134 (4) - 134 - количество чеков со всеми признаками расчетов [00:03:10] 1129 (155) - счетчики операций «приход» [00:03:10] 1135 (4) - 134 - количество чеков по признаку расчетов [00:03:10] 1201 (3) - 28276.00 - общая итоговая сумма в чеках [00:03:10] 1136 (3) - 25356.00 - итоговая сумма в чеках наличными [00:03:10] 1138 (3) - 2920.00 - итоговая сумма в чеках безналичными [00:03:10] 1024 (122) - суммы налогов [00:03:10] 1006 (9) - суммы НДС [00:03:10] 1010 (1) - 0% - код ставки НДС [00:03:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:10] 1006 (12) - суммы НДС [00:03:10] 1010 (1) - 12% - код ставки НДС [00:03:10] 1011 (3) - 3002.61 - сумма НДС по ставке [00:03:10] 1007 (9) - суммы НСП [00:03:10] 1014 (1) - 0% - код ставки НСП [00:03:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:10] 1007 (11) - суммы НСП [00:03:10] 1014 (1) - 1% - код ставки НСП [00:03:11] 1015 (2) - 249.98 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 2% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 3% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 5% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1130 (141) - счетчики операций «возврат прихода» [00:03:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:11] 1024 (117) - суммы налогов [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 0% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 12% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 2% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 3% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 5% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1131 (141) - счетчики операций «расход» [00:03:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:11] 1024 (117) - суммы налогов [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 0% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 12% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 2% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 3% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 5% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1132 (141) - счетчики операций «возврат расхода» [00:03:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:11] 1024 (117) - суммы налогов [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 0% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1006 (9) - суммы НДС [00:03:11] 1010 (1) - 12% - код ставки НДС [00:03:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 2% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 3% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 5% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 0,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1007 (9) - суммы НСП [00:03:11] 1014 (1) - 1,50% - код ставки НСП [00:03:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:11] 1133 (588) - - счетчики коррекции - не используются [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1194 (04AA) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1134 (046E) [00:03:11]Malloc new data [00:03:11]Processing tag 1129 (0469) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1135 (046F) [00:03:11]Malloc new data [00:03:11]Processing tag 1201 (04B1) [00:03:11]Malloc new data [00:03:11]Processing tag 1136 (0470) [00:03:11]Malloc new data [00:03:11]Processing tag 1138 (0472) [00:03:11]Malloc new data [00:03:11]Processing tag 1024 (0400) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]SetTLVBufToDocument err=0 [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1130 (046A) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1135 (046F) [00:03:11]Malloc new data [00:03:11]Processing tag 1201 (04B1) [00:03:11]Malloc new data [00:03:11]Processing tag 1136 (0470) [00:03:11]Malloc new data [00:03:11]Processing tag 1138 (0472) [00:03:11]Malloc new data [00:03:11]Processing tag 1024 (0400) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]SetTLVBufToDocument err=0 [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1131 (046B) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1135 (046F) [00:03:11]Malloc new data [00:03:11]Processing tag 1201 (04B1) [00:03:11]Malloc new data [00:03:11]Processing tag 1136 (0470) [00:03:11]Malloc new data [00:03:11]Processing tag 1138 (0472) [00:03:11]Malloc new data [00:03:11]Processing tag 1024 (0400) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1006 (03EE) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1010 (03F2) [00:03:11]Malloc new data [00:03:11]Processing tag 1011 (03F3) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:11]Processing tag 1007 (03EF) [00:03:11]Load OK [00:03:11]SetTLVBufToDocument [00:03:11]Processing tag 1014 (03F6) [00:03:11]Malloc new data [00:03:11]Processing tag 1015 (03F7) [00:03:11]Malloc new data [00:03:11]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]SetTLVBufToDocument err=0 [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1132 (046C) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1135 (046F) [00:03:12]Malloc new data [00:03:12]Processing tag 1201 (04B1) [00:03:12]Malloc new data [00:03:12]Processing tag 1136 (0470) [00:03:12]Malloc new data [00:03:12]Processing tag 1138 (0472) [00:03:12]Malloc new data [00:03:12]Processing tag 1024 (0400) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1006 (03EE) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1010 (03F2) [00:03:12]Malloc new data [00:03:12]Processing tag 1011 (03F3) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1006 (03EE) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1010 (03F2) [00:03:12]Malloc new data [00:03:12]Processing tag 1011 (03F3) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1007 (03EF) [00:03:12]Load OK [00:03:12]SetTLVBufToDocument [00:03:12]Processing tag 1014 (03F6) [00:03:12]Malloc new data [00:03:12]Processing tag 1015 (03F7) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]SetTLVBufToDocument err=0 [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Processing tag 1133 (046D) [00:03:12]Malloc new data [00:03:12]SetTLVBufToDocument err=0 [00:03:12]SetTLVBufToDocument err=0 [00:03:12]Malloc new data [00:03:12]SAM_PROTO_GetFMData [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 13 03 00 [00:03:12]Write to MH i2c: E2 08 00 BC 09 80 13 03 00 00 00 00 00 44 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 BC 09 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 D2 [00:03:12]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 BD 09 80 17 00 00 00 00 00 00 46 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 BD 09 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 EF [00:03:13]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 BE 09 80 17 00 00 00 00 00 00 47 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 BE 09 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 F5 [00:03:13]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 BF 09 80 17 00 00 00 00 00 00 48 [00:03:13]OFD Sender: No OFD packet to send [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 FD 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 FD 00 BF 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 C3 [00:03:14]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 17 00 00 [00:03:14]Write to MH i2c: E2 08 00 C0 09 80 17 00 00 00 00 00 00 49 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 DF 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 DF 00 C0 09 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:03:14]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetFMData done [00:03:14]FM_GetFMData:85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:15]oper:6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:15]total:95 E7 31 40 [00:03:15]Malloc new data [00:03:15]oper:6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:15]total:10 9E C9 [00:03:15]Malloc new data [00:03:15]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:15]total: [00:03:15]Malloc new data [00:03:15]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:15]total: [00:03:15]Malloc new data [00:03:15]KKMPrepareXReportFMData err=0 [00:03:15]Х отчет ИНН: 02508201610067 Кассир: Каназаров Э. 29.07.2024 00:03 Смена: 266 РНМ: 0000000000092655 ЗНМ: 0300000045 СНО: Общий режим Всего чеков: 134 ИТОГИ ПРИХОД Чеков: 134 Общий итог: 28276.00 Итого наличными: 25356.00 Итого безнал.: 2920.00 НДС 0% : 0.00 НДС 12% : 3002.61 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 249.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 25356.00 НС Приход: 10770123.73 НС Возвр.Прихода: 132132.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874941 [00:03:15]StoreToDocumentArchive [00:03:15]MH_GetDate [00:03:15]Write to MH i2c: F0 00 00 C1 09 B9 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: F0 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: F0 09 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: F0 09 00 C1 09 00 45 DC A6 66 BB 03 A5 66 B8 [00:03:15]shift 266 fd 1722211397 [00:03:15]Create dir for shift 0266 [00:03:15]save to /storage/0266/doc_1722211397 [00:03:15]save last doc name /storage/0266/doc_1722211397 to /storage/kkm_last_doc_name [00:03:15]save OK [00:03:15]Clear old archive folders... [00:03:15]NVStorageSaveData kkm_last_timestamp [00:03:15]File name is /storage/kkm_last_timestamp [00:03:15]Write 4 bytes [00:03:15]NVStorageSaveData done [00:03:15]ExternCall_PrintAddStr [00:03:15]wPrintStart [00:03:15]Write to MH i2c: 01 00 00 C2 09 CB [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [00:03:15]RasterBufferAndPrint [00:03:15]line Х отчет [00:03:15]line ИНН: 02508201610067 [00:03:15]line Кассир: Каназаров Э. [00:03:15]line 29.07.2024 00:03 [00:03:15]line Смена: 266 [00:03:15]line РНМ: 0000000000092655 [00:03:15]line ЗНМ: 0300000045 [00:03:15]line СНО: Общий режим [00:03:15]line Всего чеков: 134 [00:03:15]line ИТОГИ ПРИХОД [00:03:15]line Чеков: 134 [00:03:15]line Общий итог: 28276.00 [00:03:15]line Итого наличными: 25356.00 [00:03:15]line Итого безнал.: 2920.00 [00:03:15]line НДС 0% : 0.00 [00:03:15]line НДС 12% : 3002.61 [00:03:15]line НСП 0% : 0.00 [00:03:15]line НСП 1,50% : 0.00 [00:03:15]line НСП 0,50% : 0.00 [00:03:15]line НСП 5% : 0.00 [00:03:15]line НСП 3% : 0.00 [00:03:15]line НСП 2% : 0.00 [00:03:15]line НСП 1% : 249.98 [00:03:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:03:15]line Чеков: 0 [00:03:15]line Общий итог: 0.00 [00:03:15]line Итого наличными: 0.00 [00:03:15]line Итого безнал.: 0.00 [00:03:15]line НДС 0% : 0.00 [00:03:15]line НДС 12% : 0.00 [00:03:15]line НСП 0% : 0.00 [00:03:15]line НСП 1,50% : 0.00 [00:03:15]line НСП 0,50% : 0.00 [00:03:15]line НСП 5% : 0.00 [00:03:15]line НСП 3% : 0.00 [00:03:15]line НСП 2% : 0.00 [00:03:15]line НСП 1% : 0.00 [00:03:15]line ИТОГИ РАСХОД [00:03:15]line Чеков: 0 [00:03:15]line Общий итог: 0.00 [00:03:15]line Итого наличными: 0.00 [00:03:15]line Итого безнал.: 0.00 [00:03:15]line НДС 0% : 0.00 [00:03:15]line НДС 12% : 0.00 [00:03:15]line НСП 0% : 0.00 [00:03:15]line НСП 1,50% : 0.00 [00:03:15]line НСП 0,50% : 0.00 [00:03:15]line НСП 5% : 0.00 [00:03:15]line НСП 3% : 0.00 [00:03:15]line НСП 2% : 0.00 [00:03:15]line НСП 1% : 0.00 [00:03:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:03:15]line Чеков: 0 [00:03:15]line Общий итог: 0.00 [00:03:15]line Итого наличными: 0.00 [00:03:15]line Итого безнал.: 0.00 [00:03:15]line НДС 0% : 0.00 [00:03:15]line НДС 12% : 0.00 [00:03:15]line НСП 0% : 0.00 [00:03:15]line НСП 1,50% : 0.00 [00:03:15]line НСП 0,50% : 0.00 [00:03:15]line НСП 5% : 0.00 [00:03:15]line НСП 3% : 0.00 [00:03:15]line НСП 2% : 0.00 [00:03:15]line НСП 1% : 0.00 [00:03:15]line Сумма внесений: 0.00 [00:03:15]line Сумма выплат: 0.00 [00:03:15]line Нал. в кассе: 25356.00 [00:03:15]line НС Приход: 10770123.73 [00:03:15]line НС Возвр.Прихода: 132132.00 [00:03:15]line НС Расход: 0.00 [00:03:15]line НС Возвр.Расхода: 0.00 [00:03:15]line ФМ: 0000000000874941 [00:03:15]written 0, free lines is 4095 [00:03:16]Write to MH i2c: 01 00 00 0D 0A 17 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 9E 0A C6 [00:03:16]RasterBufferAndPrint [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]written 0, free lines is 2748 [00:03:16]process_action x_report done [00:03:16]requested_data is exist [00:03:16]produce_requested_data [00:03:16]requested_item fd.num is exist - process it [00:03:16]SAM_PROTO_GetFieldsCounters [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 13 00 00 [00:03:16]Write to MH i2c: E2 08 00 14 0A 80 13 00 00 00 00 00 00 9A [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 62 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 62 00 14 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [00:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:16]wFMCommunicate OK [00:03:16]SAM_PROTO_GetFieldsCounters done [00:03:16]requested_item shift.num is exist - process it [00:03:16]requested_item shift.opened is exist - process it [00:03:16]req_shift_opened [00:03:16]FM_GetShiftState [00:03:16]SAM_PROTO_GetShiftState [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 13 01 00 [00:03:16]Write to MH i2c: E2 08 00 15 0A 80 13 01 00 00 00 00 00 9C [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0E 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0E 00 15 0A 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 35 [00:03:17]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetShiftState done [00:03:17]FM_GetShiftState done [00:03:17]req_shift_opened done [00:03:17]requested_item shift.open_date is exist - process it [00:03:17]req_shift_open_date [00:03:17]req_shift_open_date done [00:03:17]produce_requested_data done [00:03:17]produce_requested_data return {"fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [00:03:17]process_action_free x_report [00:03:17]json_value_free [00:03:17]json_value_free done [00:03:17]process_json_proto returns [00:03:17]Send response to host [00:03:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [00:03:17]free response buf [00:03:17]execute_script done [00:03:17]execute_script returns [00:03:17]free content buf [00:03:17]Sock 9.Close socket [00:03:17]Sock 9.Thread stoped [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:54]accept exits with 7 [00:03:54]New connection [00:03:54]New thread 3066625380 created [00:03:54]Thread 3066482020 joined [00:03:54]Waiting for new connection... [00:03:54] Sock 7.Parse request [00:03:54]Sock 7.Check first char [00:03:54]Sock 7.First char is OK [00:03:54]request: POST /json_proto HTTP/1.0 [00:03:54]Method: POST [00:03:54]URL: /json_proto [00:03:54]Method is POST - this is cgi request [00:03:54]url: /json_proto [00:03:54]query_string will be loaded in cgi processing [00:03:54]execute_cgi json_proto POST (null) [00:03:54]execute_cgi path=json_proto method=POST [00:03:54]POST find Content-Length [00:03:54]Host: 172.17.45.196:8080 [00:03:54]Content-Length: 215 [00:03:54]Content-Type: application/json [00:03:54] [00:03:54]POST finish read [00:03:54]Found Content-Length = 215 [00:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:54]execute_script... [00:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:54]POST & json_proto [00:03:54]process_json_proto [00:03:54]json parsed OK: [00:03:54]protocol is kg_v1.0 [00:03:54]action value=get_value [00:03:54]process_action get_value [00:03:54]cmd_get_value [00:03:54]process_action get_value done [00:03:54]requested_data is exist [00:03:54]produce_requested_data [00:03:54]requested_item kkm.sn is exist - process it [00:03:54]requested_item kkm.ver is exist - process it [00:03:54]requested_item fm.sn is exist - process it [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 11 00 00 [00:03:54]Write to MH i2c: E2 08 00 16 0A 80 11 00 00 00 00 00 00 9A [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 17 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 17 00 16 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EE [00:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:03:54]wFMCommunicate OK [00:03:54]requested_item fd.num is exist - process it [00:03:54]SAM_PROTO_GetFieldsCounters [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 13 00 00 [00:03:54]Write to MH i2c: E2 08 00 17 0A 80 13 00 00 00 00 00 00 9D [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 62 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 62 00 17 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [00:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DB AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:54]wFMCommunicate OK [00:03:54]SAM_PROTO_GetFieldsCounters done [00:03:54]requested_item shift.num is exist - process it [00:03:54]requested_item shift.opened is exist - process it [00:03:54]req_shift_opened [00:03:54]FM_GetShiftState [00:03:54]SAM_PROTO_GetShiftState [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 13 01 00 [00:03:54]Write to MH i2c: E2 08 00 18 0A 80 13 01 00 00 00 00 00 9F [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 0E 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 0E 00 18 0A 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 38 [00:03:54]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [00:03:54]wFMCommunicate OK [00:03:54]SAM_PROTO_GetShiftState done [00:03:54]FM_GetShiftState done [00:03:54]req_shift_opened done [00:03:54]requested_item shift.open_date is exist - process it [00:03:54]req_shift_open_date [00:03:54]req_shift_open_date done [00:03:54]produce_requested_data done [00:03:54]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323} [00:03:54]process_action_free get_value [00:03:54]json_value_free [00:03:54]json_value_free done [00:03:54]process_json_proto returns [00:03:54]Send response to host [00:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44763,"shift.num":430,"shift.opened":1,"shift.open_date":1722126323}}} [00:03:54]free response buf [00:03:54]execute_script done [00:03:54]execute_script returns [00:03:54]free content buf [00:03:54]Sock 7.Close socket [00:03:54]Sock 7.Thread stoped [00:03:54]accept exits with 9 [00:03:54]New connection [00:03:54]New thread 3066482020 created [00:03:54]Thread 3066625380 joined [00:03:54]Waiting for new connection... [00:03:54] Sock 9.Parse request [00:03:54]Sock 9.Check first char [00:03:54]Sock 9.First char is OK [00:03:54]request: POST /json_proto HTTP/1.0 [00:03:54]Method: POST [00:03:54]URL: /json_proto [00:03:54]Method is POST - this is cgi request [00:03:54]url: /json_proto [00:03:54]query_string will be loaded in cgi processing [00:03:54]execute_cgi json_proto POST (null) [00:03:54]execute_cgi path=json_proto method=POST [00:03:54]POST find Content-Length [00:03:54]Host: 172.17.45.196:8080 [00:03:54]Content-Length: 331 [00:03:54]Content-Type: application/json [00:03:54] [00:03:54]POST finish read [00:03:54]Found Content-Length = 331 [00:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:54]execute_script... [00:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:54]POST & json_proto [00:03:54]process_json_proto [00:03:54]json parsed OK: [00:03:54]protocol is kg_v1.0 [00:03:54]action value=get_value [00:03:54]process_action get_value [00:03:54]cmd_get_value [00:03:54]process_action get_value done [00:03:54]requested_data is exist [00:03:54]produce_requested_data [00:03:55]requested_item fm.sale.total is exist - process it [00:03:55]SAM_PROTO_GetFMData [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 03 00 [00:03:55]Write to MH i2c: E2 08 00 19 0A 80 13 03 00 00 00 00 00 A2 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 19 0A 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 30 [00:03:55]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 1A 0A 80 17 00 00 00 00 00 00 A4 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 1A 0A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 4D [00:03:55]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 1B 0A 80 17 00 00 00 00 00 00 A5 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 1B 0A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 53 [00:03:56]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 1C 0A 80 17 00 00 00 00 00 00 A6 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 1C 0A 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 21 [00:03:56]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 1D 0A 80 17 00 00 00 00 00 00 A7 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 DF 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 DF 00 1D 0A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 87 [00:03:56]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:56]wFMCommunicate OK [00:03:56]SAM_PROTO_GetFMData done [00:03:56]requested_item fm.sale_refund.total is exist - process it [00:03:56]requested_item fm.buy.total is exist - process it [00:03:56]requested_item shift.sale.total is exist - process it [00:03:56]SAM_PROTO_GetShiftData [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 13 02 00 [00:03:56]Write to MH i2c: E2 08 00 1E 0A 80 13 02 00 00 00 00 00 A6 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 1E 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 35 [00:03:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 1F 0A 80 17 00 00 00 00 00 00 A9 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 1F 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 CB [00:03:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 20 0A 80 17 00 00 00 00 00 00 AA [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 20 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 61 [00:03:57]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 21 0A 80 17 00 00 00 00 00 00 AB [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 21 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1D [00:03:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:03:58]wFMCommunicate OK [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 17 00 00 [00:03:58]Write to MH i2c: E2 08 00 22 0A 80 17 00 00 00 00 00 00 AC [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 CB 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 CB 00 22 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [00:03:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetShiftData done [00:03:58]requested_item shift.sale.total_cash is exist - process it [00:03:58]requested_item shift.sale_refund.total is exist - process it [00:03:58]requested_item shift.sale_refund.total_cash is exist - process it [00:03:58]requested_item shift.buy.total is exist - process it [00:03:58]requested_item shift.buy.total_cash is exist - process it [00:03:58]produce_requested_data done [00:03:58]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:58]process_action_free get_value [00:03:58]json_value_free [00:03:58]json_value_free done [00:03:58]process_json_proto returns [00:03:58]Send response to host [00:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:58]free response buf [00:03:58]execute_script done [00:03:58]execute_script returns [00:03:58]free content buf [00:03:58]Sock 9.Close socket [00:03:58]Sock 9.Thread stoped [00:03:58]accept exits with 7 [00:03:58]New connection [00:03:58]New thread 3066625380 created [00:03:58]Thread 3066482020 joined [00:03:58]Waiting for new connection... [00:03:58] Sock 7.Parse request [00:03:58]Sock 7.Check first char [00:03:58]Sock 7.First char is OK [00:03:58]request: POST /json_proto HTTP/1.0 [00:03:58]Method: POST [00:03:58]URL: /json_proto [00:03:58]Method is POST - this is cgi request [00:03:58]url: /json_proto [00:03:58]query_string will be loaded in cgi processing [00:03:58]execute_cgi json_proto POST (null) [00:03:58]execute_cgi path=json_proto method=POST [00:03:58]POST find Content-Length [00:03:58]Host: 172.17.45.196:8080 [00:03:58]Content-Length: 331 [00:03:58]Content-Type: application/json [00:03:58] [00:03:58]POST finish read [00:03:58]Found Content-Length = 331 [00:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:58]execute_script... [00:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:58]POST & json_proto [00:03:58]process_json_proto [00:03:58]json parsed OK: [00:03:58]protocol is kg_v1.0 [00:03:58]action value=get_value [00:03:58]process_action get_value [00:03:58]cmd_get_value [00:03:58]process_action get_value done [00:03:58]requested_data is exist [00:03:58]produce_requested_data [00:03:58]requested_item fm.sale.total is exist - process it [00:03:58]SAM_PROTO_GetFMData [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 13 03 00 [00:03:58]Write to MH i2c: E2 08 00 23 0A 80 13 03 00 00 00 00 00 AC [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 FD 00 23 0A 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 3A [00:03:58]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:03:58]wFMCommunicate OK [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 17 00 00 [00:03:58]Write to MH i2c: E2 08 00 24 0A 80 17 00 00 00 00 00 00 AE [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]OFD Sender: No OFD packet to send [00:03:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:59]Read from MH i2c: E2 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 24 0A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 57 [00:03:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:03:59]wFMCommunicate OK [00:03:59]wFMCommunicate request_size=4 [00:03:59]MH_SAM_APDU [00:03:59]CAPDU: 80 17 00 00 [00:03:59]Write to MH i2c: E2 08 00 25 0A 80 17 00 00 00 00 00 00 AF [00:03:59]Write i2c OK [00:03:59]MH_I2C_Read... [00:03:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:59]Read from MH i2c: E2 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 25 0A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 5D [00:03:59]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:03:59]wFMCommunicate OK [00:03:59]wFMCommunicate request_size=4 [00:03:59]MH_SAM_APDU [00:03:59]CAPDU: 80 17 00 00 [00:03:59]Write to MH i2c: E2 08 00 26 0A 80 17 00 00 00 00 00 00 B0 [00:03:59]Write i2c OK [00:03:59]MH_I2C_Read... [00:03:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:59]Read from MH i2c: E2 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 FD 00 26 0A 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 2B [00:04:00]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:04:00]wFMCommunicate OK [00:04:00]wFMCommunicate request_size=4 [00:04:00]MH_SAM_APDU [00:04:00]CAPDU: 80 17 00 00 [00:04:00]Write to MH i2c: E2 08 00 27 0A 80 17 00 00 00 00 00 00 B1 [00:04:00]Write i2c OK [00:04:00]MH_I2C_Read... [00:04:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:04:00]Read from MH i2c: E2 [00:04:00]MH_I2C_Read... [00:04:00]Read from MH i2c: E2 DF 00 [00:04:00]MH_I2C_Read... [00:04:00]Read from MH i2c: E2 DF 00 27 0A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 91 [00:04:00]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:00]wFMCommunicate OK [00:04:00]SAM_PROTO_GetFMData done [00:04:00]requested_item fm.sale_refund.total is exist - process it [00:04:00]requested_item fm.buy.total is exist - process it [00:04:00]requested_item shift.sale.total is exist - process it [00:04:00]SAM_PROTO_GetShiftData [00:04:00]wFMCommunicate request_size=4 [00:04:00]MH_SAM_APDU [00:04:00]CAPDU: 80 13 02 00 [00:04:00]Write to MH i2c: E2 08 00 28 0A 80 13 02 00 00 00 00 00 B0 [00:04:00]Write i2c OK [00:04:00]MH_I2C_Read... [00:04:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:00]Read from MH i2c: E2 [00:04:00]MH_I2C_Read... [00:04:00]Read from MH i2c: E2 FD 00 [00:04:00]MH_I2C_Read... [00:04:00]Read from MH i2c: E2 FD 00 28 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 3F [00:04:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:04:01]wFMCommunicate OK [00:04:01]wFMCommunicate request_size=4 [00:04:01]MH_SAM_APDU [00:04:01]CAPDU: 80 17 00 00 [00:04:01]Write to MH i2c: E2 08 00 29 0A 80 17 00 00 00 00 00 00 B3 [00:04:01]Write i2c OK [00:04:01]MH_I2C_Read... [00:04:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:01]Read from MH i2c: E2 [00:04:01]MH_I2C_Read... [00:04:01]Read from MH i2c: E2 FD 00 [00:04:01]MH_I2C_Read... [00:04:01]Read from MH i2c: E2 FD 00 29 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D5 [00:04:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:04:01]wFMCommunicate OK [00:04:01]wFMCommunicate request_size=4 [00:04:01]MH_SAM_APDU [00:04:01]CAPDU: 80 17 00 00 [00:04:01]Write to MH i2c: E2 08 00 2A 0A 80 17 00 00 00 00 00 00 B4 [00:04:01]Write i2c OK [00:04:01]MH_I2C_Read... [00:04:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:01]Read from MH i2c: E2 [00:04:01]MH_I2C_Read... [00:04:01]Read from MH i2c: E2 FD 00 [00:04:01]MH_I2C_Read... [00:04:01]Read from MH i2c: E2 FD 00 2A 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 6B [00:04:01]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:04:02]wFMCommunicate OK [00:04:02]wFMCommunicate request_size=4 [00:04:02]MH_SAM_APDU [00:04:02]CAPDU: 80 17 00 00 [00:04:02]Write to MH i2c: E2 08 00 2B 0A 80 17 00 00 00 00 00 00 B5 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:02]Read from MH i2c: E2 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 FD 00 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 FD 00 2B 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 27 [00:04:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:04:02]wFMCommunicate OK [00:04:02]wFMCommunicate request_size=4 [00:04:02]MH_SAM_APDU [00:04:02]CAPDU: 80 17 00 00 [00:04:02]Write to MH i2c: E2 08 00 2C 0A 80 17 00 00 00 00 00 00 B6 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:04:02]Read from MH i2c: E2 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 CB 00 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 CB 00 2C 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9F [00:04:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:02]wFMCommunicate OK [00:04:02]SAM_PROTO_GetShiftData done [00:04:02]requested_item shift.sale.total_cash is exist - process it [00:04:02]requested_item shift.sale_refund.total is exist - process it [00:04:02]requested_item shift.sale_refund.total_cash is exist - process it [00:04:02]requested_item shift.buy.total is exist - process it [00:04:02]requested_item shift.buy.total_cash is exist - process it [00:04:02]produce_requested_data done [00:04:02]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:02]process_action_free get_value [00:04:02]json_value_free [00:04:02]json_value_free done [00:04:02]process_json_proto returns [00:04:02]Send response to host [00:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:02]free response buf [00:04:02]execute_script done [00:04:02]execute_script returns [00:04:02]free content buf [00:04:02]Sock 7.Close socket [00:04:02]Sock 7.Thread stoped [00:04:02]accept exits with 9 [00:04:02]New connection [00:04:02]New thread 3066482020 created [00:04:02]Thread 3066625380 joined [00:04:02]Waiting for new connection... [00:04:02] Sock 9.Parse request [00:04:02]Sock 9.Check first char [00:04:02]Sock 9.First char is OK [00:04:02]request: POST /json_proto HTTP/1.0 [00:04:02]Method: POST [00:04:02]URL: /json_proto [00:04:02]Method is POST - this is cgi request [00:04:02]url: /json_proto [00:04:02]query_string will be loaded in cgi processing [00:04:02]execute_cgi json_proto POST (null) [00:04:02]execute_cgi path=json_proto method=POST [00:04:02]POST find Content-Length [00:04:02]Host: 172.17.45.196:8080 [00:04:02]Content-Length: 266 [00:04:02]Content-Type: application/json [00:04:02] [00:04:02]POST finish read [00:04:02]Found Content-Length = 266 [00:04:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043D\u0430\u0437\u0430\u0440\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:02]execute_script... [00:04:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043D\u0430\u0437\u0430\u0440\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:02]POST & json_proto [00:04:02]process_json_proto [00:04:02]json parsed OK: [00:04:02]protocol is kg_v1.0 [00:04:02]action value=close_shift [00:04:02]process_action close_shift [00:04:02]cmd_close_shift [00:04:02]MH_GetDate [00:04:02]Write to MH i2c: F0 00 00 2D 0A 26 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 09 00 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 09 00 2D 0A 00 74 DC A6 66 BB 03 A5 66 54 [00:04:02]GetLastDocTimeStamp 1722211389 [00:04:02]current date 1722211444 [00:04:02]FM_GetShiftState [00:04:02]SAM_PROTO_GetShiftState [00:04:02]wFMCommunicate request_size=4 [00:04:02]MH_SAM_APDU [00:04:02]CAPDU: 80 13 01 00 [00:04:02]Write to MH i2c: E2 08 00 2E 0A 80 13 01 00 00 00 00 00 B5 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 0E 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 0E 00 2E 0A 00 09 00 01 F3 8F A5 66 00 00 00 00 90 00 4E [00:04:03]RAPDU: 09 00 01 F3 8F A5 66 00 00 00 00 90 00 [00:04:03]wFMCommunicate OK [00:04:03]SAM_PROTO_GetShiftState done [00:04:03]FM_GetShiftState done [00:04:03]KKMCreateCloseShiftDocument [00:04:03]Load OK [00:04:03]Malloc new data [00:04:03]MH_GetDate [00:04:03]Write to MH i2c: F0 00 00 2F 0A 28 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: F0 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: F0 09 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: F0 09 00 2F 0A 00 74 DC A6 66 BB 03 A5 66 56 [00:04:03]Malloc new data [00:04:03]Malloc new data [00:04:03]Malloc new data [00:04:03]Malloc new data [00:04:03]KKMCreateCloseShiftDocument OK [00:04:03]KKMSetCloseShiftData OK [00:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:04:03]tlvbuf is B6D587A0 [00:04:03]KKMLoadAndSignCloseShiftData [00:04:03]SAM_PROTO_ProcessDocument [00:04:03]wFMCommunicate request_size=9 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 01 00 04 05 00 49 00 [00:04:03]Write to MH i2c: E2 0C 00 30 0A 80 15 01 00 04 00 05 00 49 00 00 00 0F [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=23 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:04:03]Write to MH i2c: E2 1A 00 31 0A 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 B0 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=32 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 [00:04:03]Write to MH i2c: E2 23 00 32 0A 80 15 02 00 1B 00 FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 00 00 53 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=13 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 02 00 08 F4 03 04 00 74 DC A6 66 [00:04:03]Write to MH i2c: E2 10 00 33 0A 80 15 02 00 08 00 F4 03 04 00 74 DC A6 66 00 00 24 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=25 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [00:04:03]Write to MH i2c: E2 1C 00 34 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 22 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=4 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 15 03 00 [00:04:03]Write to MH i2c: E2 08 00 35 0A 80 15 03 00 00 00 00 00 C0 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:04]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:04:04]Read from MH i2c: E2 [00:04:04]MH_I2C_Read... [00:04:04]OFD Sender: No OFD packet to send [00:04:04]Read from MH i2c: E2 FD 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: E2 FD 00 35 0A 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DC AE 00 00 0E 04 04 00 AE 01 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 36 [00:04:04]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DC AE 00 00 0E 04 04 00 AE 01 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:04:04]wFMCommunicate OK [00:04:04]SAM_PROTO_ProcessDocument answer len = 1265 [00:04:04]SAM_PROTO_ProcessDocument remain to read = 1017 [00:04:04]wFMCommunicate request_size=4 [00:04:04]MH_SAM_APDU [00:04:04]CAPDU: 80 17 00 00 [00:04:04]Write to MH i2c: E2 08 00 36 0A 80 17 00 00 00 00 00 00 C0 [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:04]Read from MH i2c: E2 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: E2 FD 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: E2 FD 00 36 0A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 09 [00:04:04]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:04:04]wFMCommunicate OK [00:04:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:04]SAM_PROTO_ProcessDocument remain to read = 767 [00:04:04]wFMCommunicate request_size=4 [00:04:04]MH_SAM_APDU [00:04:04]CAPDU: 80 17 00 00 [00:04:04]Write to MH i2c: E2 08 00 37 0A 80 17 00 00 00 00 00 00 C1 [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:05]Read from MH i2c: E2 [00:04:05]MH_I2C_Read... [00:04:05]Read from MH i2c: E2 FD 00 [00:04:05]MH_I2C_Read... [00:04:05]Read from MH i2c: E2 FD 00 37 0A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 23 [00:04:05]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:04:05]wFMCommunicate OK [00:04:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:05]SAM_PROTO_ProcessDocument remain to read = 517 [00:04:05]wFMCommunicate request_size=4 [00:04:05]MH_SAM_APDU [00:04:05]CAPDU: 80 17 00 00 [00:04:05]Write to MH i2c: E2 08 00 38 0A 80 17 00 00 00 00 00 00 C2 [00:04:05]Write i2c OK [00:04:05]MH_I2C_Read... [00:04:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:05]Read from MH i2c: E2 [00:04:05]MH_I2C_Read... [00:04:05]Read from MH i2c: E2 FD 00 [00:04:05]MH_I2C_Read... [00:04:05]Read from MH i2c: E2 FD 00 38 0A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 4C [00:04:05]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:04:05]wFMCommunicate OK [00:04:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:05]SAM_PROTO_ProcessDocument remain to read = 267 [00:04:05]wFMCommunicate request_size=4 [00:04:05]MH_SAM_APDU [00:04:05]CAPDU: 80 17 00 00 [00:04:05]Write to MH i2c: E2 08 00 39 0A 80 17 00 00 00 00 00 00 C3 [00:04:05]Write i2c OK [00:04:05]MH_I2C_Read... [00:04:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:06]Read from MH i2c: E2 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 FD 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 FD 00 39 0A 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 8B [00:04:06]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:04:06]wFMCommunicate OK [00:04:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:06]SAM_PROTO_ProcessDocument remain to read = 17 [00:04:06]wFMCommunicate request_size=4 [00:04:06]MH_SAM_APDU [00:04:06]CAPDU: 80 17 00 00 [00:04:06]Write to MH i2c: E2 08 00 3A 0A 80 17 00 00 00 00 00 00 C4 [00:04:06]Write i2c OK [00:04:06]MH_I2C_Read... [00:04:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:04:06]Read from MH i2c: E2 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 14 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 14 00 3A 0A 00 01 00 06 F7 03 00 00 35 04 06 00 A4 75 5D 75 DB CF 90 00 9E [00:04:06]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 A4 75 5D 75 DB CF 90 00 [00:04:06]wFMCommunicate OK [00:04:06]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:04:06]SAM_PROTO_ProcessDocument done [00:04:06]1209 (1) - 1.0 - номер версии ФФД [00:04:06]1041 (16) - 0000000000874941 - номер ФМ [00:04:06]1040 (4) - 44764 - номер ФД [00:04:06]1038 (4) - 430 - номер смены [00:04:06]1118 (4) - 134 - количество кассовых чеков за смену [00:04:06]1111 (4) - 136 - общее количество ФД за смену [00:04:06]1194 (1194) - счетчики итогов смены [00:04:06] 1134 (4) - 134 - количество чеков со всеми признаками расчетов [00:04:06] 1129 (155) - счетчики операций «приход» [00:04:06] 1135 (4) - 134 - количество чеков по признаку расчетов [00:04:06] 1201 (3) - 28276.00 - общая итоговая сумма в чеках [00:04:06] 1136 (3) - 25356.00 - итоговая сумма в чеках наличными [00:04:06] 1138 (3) - 2920.00 - итоговая сумма в чеках безналичными [00:04:06] 1024 (122) - суммы налогов [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 0% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1006 (12) - суммы НДС [00:04:06] 1010 (1) - 12% - код ставки НДС [00:04:06] 1011 (3) - 3002.61 - сумма НДС по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (11) - суммы НСП [00:04:06] 1014 (1) - 1% - код ставки НСП [00:04:06] 1015 (2) - 249.98 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 2% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 3% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 5% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1130 (141) - счетчики операций «возврат прихода» [00:04:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:06] 1024 (117) - суммы налогов [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 0% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 12% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 2% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 3% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 5% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1131 (141) - счетчики операций «расход» [00:04:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:06] 1024 (117) - суммы налогов [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 0% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 12% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 2% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 3% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 5% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1132 (141) - счетчики операций «возврат расхода» [00:04:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:06] 1024 (117) - суммы налогов [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 0% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1006 (9) - суммы НДС [00:04:06] 1010 (1) - 12% - код ставки НДС [00:04:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 2% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 3% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 5% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 0,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1007 (9) - суммы НСП [00:04:06] 1014 (1) - 1,50% - код ставки НСП [00:04:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:06] 1133 (588) - - счетчики коррекции - не используются [00:04:06]1077 (6) - 180823986133967 - ФПД [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1209 (04B9) [00:04:06]Malloc new data [00:04:06]Processing tag 1041 (0411) [00:04:06]Processing tag 1040 (0410) [00:04:06]Malloc new data [00:04:06]Processing tag 1038 (040E) [00:04:06]Malloc new data [00:04:06]Processing tag 1118 (045E) [00:04:06]Malloc new data [00:04:06]Processing tag 1111 (0457) [00:04:06]Malloc new data [00:04:06]Processing tag 1194 (04AA) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1134 (046E) [00:04:06]Malloc new data [00:04:06]Processing tag 1129 (0469) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1135 (046F) [00:04:06]Malloc new data [00:04:06]Processing tag 1201 (04B1) [00:04:06]Malloc new data [00:04:06]Processing tag 1136 (0470) [00:04:06]Malloc new data [00:04:06]Processing tag 1138 (0472) [00:04:06]Malloc new data [00:04:06]Processing tag 1024 (0400) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1006 (03EE) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1010 (03F2) [00:04:06]Malloc new data [00:04:06]Processing tag 1011 (03F3) [00:04:06]Malloc new data [00:04:06]SetTLVBufToDocument err=0 [00:04:06]Processing tag 1006 (03EE) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1010 (03F2) [00:04:06]Malloc new data [00:04:06]Processing tag 1011 (03F3) [00:04:06]Malloc new data [00:04:06]SetTLVBufToDocument err=0 [00:04:06]Processing tag 1007 (03EF) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1014 (03F6) [00:04:06]Malloc new data [00:04:06]Processing tag 1015 (03F7) [00:04:06]Malloc new data [00:04:06]SetTLVBufToDocument err=0 [00:04:06]Processing tag 1007 (03EF) [00:04:06]Load OK [00:04:06]SetTLVBufToDocument [00:04:06]Processing tag 1014 (03F6) [00:04:06]Malloc new data [00:04:06]Processing tag 1015 (03F7) [00:04:06]Malloc new data [00:04:06]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1130 (046A) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1135 (046F) [00:04:07]Malloc new data [00:04:07]Processing tag 1201 (04B1) [00:04:07]Malloc new data [00:04:07]Processing tag 1136 (0470) [00:04:07]Malloc new data [00:04:07]Processing tag 1138 (0472) [00:04:07]Malloc new data [00:04:07]Processing tag 1024 (0400) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1131 (046B) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1135 (046F) [00:04:07]Malloc new data [00:04:07]Processing tag 1201 (04B1) [00:04:07]Malloc new data [00:04:07]Processing tag 1136 (0470) [00:04:07]Malloc new data [00:04:07]Processing tag 1138 (0472) [00:04:07]Malloc new data [00:04:07]Processing tag 1024 (0400) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1132 (046C) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1135 (046F) [00:04:07]Malloc new data [00:04:07]Processing tag 1201 (04B1) [00:04:07]Malloc new data [00:04:07]Processing tag 1136 (0470) [00:04:07]Malloc new data [00:04:07]Processing tag 1138 (0472) [00:04:07]Malloc new data [00:04:07]Processing tag 1024 (0400) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1006 (03EE) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1010 (03F2) [00:04:07]Malloc new data [00:04:07]Processing tag 1011 (03F3) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1007 (03EF) [00:04:07]Load OK [00:04:07]SetTLVBufToDocument [00:04:07]Processing tag 1014 (03F6) [00:04:07]Malloc new data [00:04:07]Processing tag 1015 (03F7) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1133 (046D) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Processing tag 1077 (0435) [00:04:07]Malloc new data [00:04:07]SetTLVBufToDocument err=0 [00:04:07]Malloc new data [00:04:07]SAM_PROTO_GetFMData [00:04:07]wFMCommunicate request_size=4 [00:04:07]MH_SAM_APDU [00:04:07]CAPDU: 80 13 03 00 [00:04:07]Write to MH i2c: E2 08 00 3B 0A 80 13 03 00 00 00 00 00 C4 [00:04:07]Write i2c OK [00:04:07]MH_I2C_Read... [00:04:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:08]Read from MH i2c: E2 [00:04:08]MH_I2C_Read... [00:04:08]Read from MH i2c: E2 FD 00 [00:04:08]MH_I2C_Read... [00:04:08]Read from MH i2c: E2 FD 00 3B 0A 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 52 [00:04:08]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:04:08]wFMCommunicate OK [00:04:08]wFMCommunicate request_size=4 [00:04:08]MH_SAM_APDU [00:04:08]CAPDU: 80 17 00 00 [00:04:08]Write to MH i2c: E2 08 00 3C 0A 80 17 00 00 00 00 00 00 C6 [00:04:08]Write i2c OK [00:04:08]MH_I2C_Read... [00:04:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:08]Read from MH i2c: E2 [00:04:08]MH_I2C_Read... [00:04:08]Read from MH i2c: E2 FD 00 [00:04:08]MH_I2C_Read... [00:04:08]Read from MH i2c: E2 FD 00 3C 0A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 6F [00:04:08]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:04:09]wFMCommunicate OK [00:04:09]wFMCommunicate request_size=4 [00:04:09]MH_SAM_APDU [00:04:09]CAPDU: 80 17 00 00 [00:04:09]Write to MH i2c: E2 08 00 3D 0A 80 17 00 00 00 00 00 00 C7 [00:04:09]Write i2c OK [00:04:09]MH_I2C_Read... [00:04:09]OFD Sender: No OFD packet to send [00:04:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:09]Read from MH i2c: E2 [00:04:09]MH_I2C_Read... [00:04:09]Read from MH i2c: E2 FD 00 [00:04:09]MH_I2C_Read... [00:04:09]Read from MH i2c: E2 FD 00 3D 0A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 75 [00:04:09]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:04:09]wFMCommunicate OK [00:04:09]wFMCommunicate request_size=4 [00:04:09]MH_SAM_APDU [00:04:09]CAPDU: 80 17 00 00 [00:04:09]Write to MH i2c: E2 08 00 3E 0A 80 17 00 00 00 00 00 00 C8 [00:04:09]Write i2c OK [00:04:09]MH_I2C_Read... [00:04:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:09]Read from MH i2c: E2 [00:04:09]MH_I2C_Read... [00:04:09]Read from MH i2c: E2 FD 00 [00:04:09]MH_I2C_Read... [00:04:09]Read from MH i2c: E2 FD 00 3E 0A 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 43 [00:04:10]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:04:10]wFMCommunicate OK [00:04:10]wFMCommunicate request_size=4 [00:04:10]MH_SAM_APDU [00:04:10]CAPDU: 80 17 00 00 [00:04:10]Write to MH i2c: E2 08 00 3F 0A 80 17 00 00 00 00 00 00 C9 [00:04:10]Write i2c OK [00:04:10]MH_I2C_Read... [00:04:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:04:10]Read from MH i2c: E2 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 DF 00 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 DF 00 3F 0A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A9 [00:04:10]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:10]wFMCommunicate OK [00:04:10]SAM_PROTO_GetFMData done [00:04:10]Malloc new data [00:04:10]Malloc new data [00:04:10]Malloc new data [00:04:10]Malloc new data [00:04:10]KKMLoadAndSignCloseShiftData err=0 [00:04:10]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Каназаров Э. 29.07.2024 00:04 Смена: 430 РНМ: 0000000000092655 ЗНМ: 0300000045 СНО: Общий режим Чеков за смену: 134 ФД за смену: 136 Всего чеков: 134 ИТОГИ ПРИХОД Чеков: 134 Общий итог: 28276.00 Итого наличными: 25356.00 Итого безнал.: 2920.00 НДС 0% : 0.00 НДС 12% : 3002.61 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 249.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 25356.00 НС Приход: 10770123.73 НС Возвр.Прихода: 132132.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 44764 ФМ: 0000000000874941 ФПД: 180823986133967 [00:04:10]StoreToDocumentArchive [00:04:10]shift 430 fd 44764 [00:04:10]save to /storage/0430/doc_00044764 [00:04:10]save last doc name /storage/0430/doc_00044764 to /storage/kkm_last_doc_name [00:04:10]save OK [00:04:10]Clear old archive folders... [00:04:10]Remove dir /storage/0266 [00:04:10]opendir ok [00:04:10]file . [00:04:10]file .. [00:04:10]file doc_1722211397 [00:04:10]remove file /storage/0266/doc_1722211397 [00:04:10]remove dir /storage/0266 [00:04:10]NVStorageSaveData kkm_registers [00:04:10]File name is /storage/kkm_registers [00:04:10]Write 24 bytes [00:04:10]NVStorageSaveData done [00:04:10]NVStorageSaveData kkm_registers [00:04:10]File name is /storage/kkm_registers [00:04:10]Write 24 bytes [00:04:10]NVStorageSaveData done [00:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [00:04:10]tlvbuf is 018516E0 [00:04:10]SAM_PROTO_ClearQueue [00:04:10]wFMCommunicate request_size=4 [00:04:10]MH_SAM_APDU [00:04:10]CAPDU: 80 09 00 00 [00:04:10]Write to MH i2c: E2 08 00 40 0A 80 09 00 00 00 00 00 00 BC [00:04:10]Write i2c OK [00:04:10]MH_I2C_Read... [00:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:10]Read from MH i2c: E2 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 03 00 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [00:04:10]RAPDU: 90 00 [00:04:10]wFMCommunicate OK [00:04:10]SAM_PROTO_ClearQueue done [00:04:10]KKMCreateOFDPacket [00:04:10]OFDProtocolAddRootSTLVToBuf [00:04:10]FM_MakeSignedData [00:04:10]FM_MakeSignedData [00:04:10]SAM_PROTO_SignData [00:04:10]wFMCommunicate request_size=4 [00:04:10]MH_SAM_APDU [00:04:10]CAPDU: 80 0D 01 02 [00:04:10]Write to MH i2c: E2 08 00 41 0A 80 0D 01 02 00 00 00 00 C4 [00:04:10]Write i2c OK [00:04:10]MH_I2C_Read... [00:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:10]Read from MH i2c: E2 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 03 00 [00:04:10]MH_I2C_Read... [00:04:10]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [00:04:10]RAPDU: 90 00 [00:04:10]wFMCommunicate OK [00:04:10]wFMCommunicate request_size=255 [00:04:10]MH_SAM_APDU [00:04:10]CAPDU: 80 0D 02 02 FA 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 74 DC A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 D5 04 6E 04 04 00 86 00 00 00 69 04 A2 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:04:11]Write to MH i2c: E2 02 01 42 0A 80 0D 02 02 FA 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 74 DC A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 D5 04 6E 04 04 00 86 00 00 00 69 04 A2 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 5E [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 03 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [00:04:11]RAPDU: 90 00 [00:04:11]wFMCommunicate OK [00:04:11]wFMCommunicate request_size=255 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 [00:04:11]Write to MH i2c: E2 02 01 43 0A 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 00 38 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:12]Read from MH i2c: E2 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 03 00 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [00:04:12]RAPDU: 90 00 [00:04:12]wFMCommunicate OK [00:04:12]wFMCommunicate request_size=255 [00:04:12]MH_SAM_APDU [00:04:12]CAPDU: 80 0D 02 02 FA EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 [00:04:12]Write to MH i2c: E2 02 01 44 0A 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 00 00 8F [00:04:12]Write i2c OK [00:04:12]MH_I2C_Read... [00:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:12]Read from MH i2c: E2 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 03 00 [00:04:12]MH_I2C_Read... [00:04:12]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [00:04:12]RAPDU: 90 00 [00:04:12]wFMCommunicate OK [00:04:12]wFMCommunicate request_size=255 [00:04:12]MH_SAM_APDU [00:04:12]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 [00:04:12]Write to MH i2c: E2 02 01 45 0A 80 0D 02 02 FA 00 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 8D [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [00:04:13]RAPDU: 90 00 [00:04:13]wFMCommunicate OK [00:04:13]wFMCommunicate request_size=255 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 0D 02 02 FA 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 [00:04:13]Write to MH i2c: E2 02 01 46 0A 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 55 [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [00:04:13]RAPDU: 90 00 [00:04:13]wFMCommunicate OK [00:04:13]wFMCommunicate request_size=140 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 0D 02 02 87 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 A4 75 5D 75 DB CF [00:04:14]Write to MH i2c: E2 8F 00 47 0A 80 0D 02 02 87 00 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 A4 75 5D 75 DB CF 00 00 2A [00:04:14]OFD Sender: No OFD packet to send [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [00:04:14]RAPDU: 90 00 [00:04:14]wFMCommunicate OK [00:04:14]wFMCommunicate request_size=4 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 0D 03 02 [00:04:14]Write to MH i2c: E2 08 00 48 0A 80 0D 03 02 00 00 00 00 CD [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 0B 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 0B 00 48 0A 00 90 28 07 B3 F7 96 CD B1 90 00 4B [00:04:14]RAPDU: 90 28 07 B3 F7 96 CD B1 90 00 [00:04:14]wFMCommunicate OK [00:04:14]SAM_PROTO_SignData done [00:04:14]FM_MakeSignedData done [00:04:14]CreateOFDProtocolMessage [00:04:14]wFMCommunicate request_size=4 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 11 00 00 [00:04:14]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:14]Read from MH i2c: E2 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 17 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 21 [00:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:04:14]wFMCommunicate OK [00:04:14]CreateOFDProtocolMessage done [00:04:14]OFDSenderStorePacket 44764 [00:04:14]StoreOFDPacket docnum=44764 [00:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 79 05 00 00 30 D6 71 05 2F D6 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 74 DC A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 D5 04 6E 04 04 00 86 00 00 00 69 04 A2 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 A4 75 5D 75 DB CF 90 28 07 B3 F7 96 CD B1 [00:04:14]CheckFolder [00:04:14]dirname=/storage/ofd_packets [00:04:14]CheckFolder done [00:04:14]ProducePacketName [00:04:14]name=ofd_packets/00044764 [00:04:14]NVStorageSaveData ofd_packets/00044764 [00:04:14]File name is /storage/ofd_packets/00044764 [00:04:14]Write 1431 bytes [00:04:14]NVStorageSaveData done [00:04:14]OFDSenderStorePacket done [00:04:14]KKMCreateOFDPacket done [00:04:14]NVStorageSaveData kkm_last_timestamp [00:04:14]File name is /storage/kkm_last_timestamp [00:04:14]Write 4 bytes [00:04:14]NVStorageSaveData done [00:04:14]ExternCall_PrintAddStr [00:04:14]wPrintStart [00:04:14]Write to MH i2c: 01 00 00 4A 0A 54 [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 07 00 [00:04:14]MH_I2C_Read... [00:04:14]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [00:04:14]RasterBufferAndPrint [00:04:14]line Отчет о закрытии смены [00:04:14]line ФФД: 1.0 [00:04:14]line ИНН: 02508201610067 [00:04:14]line Кассир: Каназаров Э. [00:04:14]line 29.07.2024 00:04 [00:04:14]line Смена: 430 [00:04:14]line РНМ: 0000000000092655 [00:04:14]line ЗНМ: 0300000045 [00:04:14]line СНО: Общий режим [00:04:14]line Чеков за смену: 134 [00:04:14]line ФД за смену: 136 [00:04:14]line Всего чеков: 134 [00:04:14]line ИТОГИ ПРИХОД [00:04:14]line Чеков: 134 [00:04:14]line Общий итог: 28276.00 [00:04:14]line Итого наличными: 25356.00 [00:04:14]line Итого безнал.: 2920.00 [00:04:14]line НДС 0% : 0.00 [00:04:14]line НДС 12% : 3002.61 [00:04:14]line НСП 0% : 0.00 [00:04:14]line НСП 1,50% : 0.00 [00:04:14]line НСП 0,50% : 0.00 [00:04:14]line НСП 5% : 0.00 [00:04:14]line НСП 3% : 0.00 [00:04:14]line НСП 2% : 0.00 [00:04:14]line НСП 1% : 249.98 [00:04:14]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:04:14]line Чеков: 0 [00:04:14]line Общий итог: 0.00 [00:04:14]line Итого наличными: 0.00 [00:04:14]line Итого безнал.: 0.00 [00:04:14]line НДС 0% : 0.00 [00:04:14]line НДС 12% : 0.00 [00:04:14]line НСП 0% : 0.00 [00:04:14]line НСП 1,50% : 0.00 [00:04:15]line НСП 0,50% : 0.00 [00:04:15]line НСП 5% : 0.00 [00:04:15]line НСП 3% : 0.00 [00:04:15]line НСП 2% : 0.00 [00:04:15]line НСП 1% : 0.00 [00:04:15]line ИТОГИ РАСХОД [00:04:15]line Чеков: 0 [00:04:15]line Общий итог: 0.00 [00:04:15]line Итого наличными: 0.00 [00:04:15]line Итого безнал.: 0.00 [00:04:15]line НДС 0% : 0.00 [00:04:15]line НДС 12% : 0.00 [00:04:15]line НСП 0% : 0.00 [00:04:15]line НСП 1,50% : 0.00 [00:04:15]line НСП 0,50% : 0.00 [00:04:15]line НСП 5% : 0.00 [00:04:15]line НСП 3% : 0.00 [00:04:15]line НСП 2% : 0.00 [00:04:15]line НСП 1% : 0.00 [00:04:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:04:15]line Чеков: 0 [00:04:15]line Общий итог: 0.00 [00:04:15]line Итого наличными: 0.00 [00:04:15]line Итого безнал.: 0.00 [00:04:15]line НДС 0% : 0.00 [00:04:15]line НДС 12% : 0.00 [00:04:15]line НСП 0% : 0.00 [00:04:15]line НСП 1,50% : 0.00 [00:04:15]line НСП 0,50% : 0.00 [00:04:15]line НСП 5% : 0.00 [00:04:15]line НСП 3% : 0.00 [00:04:15]line НСП 2% : 0.00 [00:04:15]line НСП 1% : 0.00 [00:04:15]line Сумма внесений: 0.00 [00:04:15]line Сумма выплат: 0.00 [00:04:15]line Нал. в кассе: 25356.00 [00:04:15]line НС Приход: 10770123.73 [00:04:15]line НС Возвр.Прихода: 132132.00 [00:04:15]line НС Расход: 0.00 [00:04:15]line НС Возвр.Расхода: 0.00 [00:04:15]line ФД: 44764 [00:04:15]line ФМ: 0000000000874941 [00:04:15]line ФПД: 180823986133967 [00:04:15]written 0, free lines is 4095 [00:04:15]OFD Sender: Processing packet 44764 [packets to send 7, broken 6] [00:04:15]ProducePacketName [00:04:15]name=ofd_packets/00044764 [00:04:15]OFD Sender: To server: pG, [00:04:15]CommunicateWithHost lk.salyk.kg:30040 [00:04:15]ConnectInit lk.salyk.kg [00:04:15]Connected sock=10 [00:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 79 05 00 00 30 D6 71 05 2F D6 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9A D0 B0 D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 74 DC A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 AA 04 D5 04 6E 04 04 00 86 00 00 00 69 04 A2 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C Write to MH i2c: 02 01 78 00 04 00 04 9A 00 0A 00 A4 00 [00:04:15]00 Write i2c OK [00:04:15]00 MH_I2C_Read... [00:04:15]79 Read from MH i2c: 04 01 8D [00:04:15]00 MH_I2C_Read... [00:04:15]6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 Read from MH i2c: 04 01 00 07 00 00 00 [00:04:15]04 MH_I2C_Read... [00:04:15]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 Read from MH i2c: 00 01 F2 07 03 00 01 9A 00 0A 01 00 F3 00 03 00 00 00 00 00 EF CD 03 0A 09 82 00 [00:04:15]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 RasterBufferAndPrint [00:04:15]01 line [00:04:15]00 line [00:04:15]01 line [00:04:15]F7 line [00:04:15]03 line [00:04:15]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 written 0, free lines is 2895 [00:04:15]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 process_action close_shift done [00:04:16]03 requested_data is exist [00:04:16]01 produce_requested_data [00:04:16]00 requested_item fd.num is exist - process it [00:04:16]04 SAM_PROTO_GetFieldsCounters [00:04:16]F7 wFMCommunicate request_size=4 [00:04:16]03 MH_SAM_APDU [00:04:16]00 CAPDU: 00 80 EF 13 03 00 09 00 00 [00:04:16]Write to MH i2c: E2 08 00 A1 0A 80 13 00 00 00 00 F6 00 03 00 01 27 00 [00:04:16]05 F7 03 00 00 EF Write i2c OK [00:04:16]03 MH_I2C_Read... [00:04:16]09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F Read from MH i2c: 04 E2 04 [00:04:16]00 MH_I2C_Read... [00:04:16]00 00 00 00 B1 04 00 Read from MH i2c: 00 E2 70 62 04 00 00 [00:04:16]00 MH_I2C_Read... [00:04:16]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 Read from MH i2c: F3 E2 03 62 00 00 00 A1 EE 0A 03 00 09 5D *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:16]00 00 B9 F2 04 03 01 01 00 00 01 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 11 03 04 00 10 00 00 EF 30 03 30 09 30 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 30 01 30 00 30 02 30 F7 30 03 30 00 30 00 38 EF 37 03 34 09 39 00 34 F6 31 03 0D 01 04 10 00 00 03 30 F7 30 03 30 00 30 00 30 EF 30 03 30 09 30 00 30 F6 30 03 30 01 39 00 32 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 36 03 35 00 35 00 10 EF 04 03 04 09 00 00 DC F6 AE 03 00 01 00 00 0E 06 04 F7 04 03 00 00 AE 00 01 D1 00 04 00 8D 12 00 04 6F 04 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 00 72 86 04 00 00 00 00 00 00 5E 04 04 75 04 00 00 EE 86 03 00 09 00 00 00 F2 57 03 04 01 04 00 00 00 88 F3 00 03 00 00 00 00 19 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 04 04 00 00 00 00 00 90 00 17 [00:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 38 EF 37 03 34 09 39 00 34 F6 31 03 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 01 39 00 32 02 36 F7 35 03 35 00 10 00 04 04 00 DC AE 00 00 0E 04 04 00 AE 01 00 00 EF 12 03 04 09 04 00 00 F6 86 03 00 01 00 00 00 03 5E F7 04 03 04 00 00 00 86 EF 00 03 00 09 00 00 57 F6 04 03 04 01 00 00 88 04 00 F7 00 03 00 00 19 00 04 EF 04 03 00 09 00 00 F6 00 03 00 01 00 00 90 05 00 F7 [00:04:16]03 00 wFMCommunicate OK [00:04:16]00 SAM_PROTO_GetFieldsCounters done [00:04:16]EF requested_item shift.num is exist - process it [00:04:16]03 requested_item shift.opened is exist - process it [00:04:16]09 req_shift_opened [00:04:16]00 FM_GetShiftState [00:04:16]F6 SAM_PROTO_GetShiftState [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 13 01 00 [00:04:16]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [00:04:16]03 01 00 06 F7 03 00 00 10 04 04 00 DC AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 A4 75 5D *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:16]75 Write i2c OK [00:04:16]DB MH_I2C_Read... [00:04:16]CF Read from MH i2c: 90 E2 28 [00:04:16]07 MH_I2C_Read... [00:04:16]B3 F7 96 CD B1 [00:04:16]Read from MH i2c: E2 0E 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 34 [00:04:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:16]wFMCommunicate OK [00:04:16]SAM_PROTO_GetShiftState done [00:04:16]FM_GetShiftState done [00:04:16]req_shift_opened done [00:04:16]requested_item shift.open_date is exist - process it [00:04:16]req_shift_open_date [00:04:16]FM_GetShiftState [00:04:16]SAM_PROTO_GetShiftState [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 13 01 00 [00:04:16]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 0E 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 35 [00:04:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:16]wFMCommunicate OK [00:04:16]SAM_PROTO_GetShiftState done [00:04:16]FM_GetShiftState done [00:04:16]req_shift_open_date done [00:04:16]produce_requested_data done [00:04:16]produce_requested_data return {"fd.num":44764,"shift.num":430,"shift.opened":0,"shift.open_date":0} [00:04:16]process_action_free close_shift [00:04:16]json_value_free [00:04:16]json_value_free done [00:04:16]process_json_proto returns [00:04:16]Send response to host [00:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":44764,"shift.num":430,"shift.opened":0,"shift.open_date":0}}} [00:04:16]free response buf [00:04:16]execute_script done [00:04:16]execute_script returns [00:04:16]free content buf [00:04:16]Sock 9.Close socket [00:04:16]Sock 9.Thread stoped [00:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 76 A0 47 00 F2 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DC AE 00 00 F4 03 04 00 91 88 A6 66 B6 04 01 00 00 D1 89 6F 18 28 5C F4 E7 [00:04:17]CommunicateWithHost err = 0 [00:04:17]CheckOFDResponse [00:04:17]1017 (14) - 77093643461234 [00:04:17]1041 (16) - 0000000000874941 [00:04:17]1040 (4) - 44764 [00:04:17]1012 (4) - 28.07.2024 18:06 [00:04:17]1206 (1) - 0 [00:04:17]OFD Sender: Remove packet 44764 [00:04:17]ProducePacketName [00:04:17]name=ofd_packets/00044764 [00:04:17]NVStorageDeleteData [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:35]int [00:04:35]Write to MH i2c: 01 00 00 A4 0A AE [00:04:35]*** FLAG_PRN_KEY set [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 A4 0A 00 08 00 00 00 FF 0F CB [00:04:35]state=0 [00:04:35]Key pressed [00:04:35]Feed [00:04:35]Write to MH i2c: D8 00 00 A5 0A 86 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D8 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D8 01 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D8 01 00 A5 0A 00 87 [00:04:35]int line is 0 - check status [00:04:35]Write to MH i2c: 01 00 00 A6 0A B0 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 A6 0A 00 48 00 00 00 3D 00 3C [00:04:35]state=2 [00:04:35]Key pressed [00:04:35]int [00:04:35]Write to MH i2c: 01 00 00 A7 0A B1 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 A7 0A 00 48 00 00 00 3C 00 3C [00:04:35]state=2 [00:04:35]Key pressed [00:04:36]int [00:04:36]Write to MH i2c: 01 00 00 A8 0A B2 [00:04:36]*** FLAG_PRN_KEY reset [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 07 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [00:04:36]state=2 [00:04:36]Stop feed [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:24]accept exits with 7 [00:19:24]New connection [00:19:24]New thread 3066625380 created [00:19:24]Thread 3066482020 joined [00:19:24]Waiting for new connection... [00:19:24] Sock 7.Parse request [00:19:24]Sock 7.Check first char [00:19:24]Sock 7.First char is OK [00:19:24]request: POST /json_proto HTTP/1.0 [00:19:24]Method: POST [00:19:24]URL: /json_proto [00:19:24]Method is POST - this is cgi request [00:19:24]url: /json_proto [00:19:24]query_string will be loaded in cgi processing [00:19:24]execute_cgi json_proto POST (null) [00:19:24]execute_cgi path=json_proto method=POST [00:19:24]POST find Content-Length [00:19:24]Host: 172.17.45.196:8080 [00:19:24]Content-Length: 215 [00:19:24]Content-Type: application/json [00:19:24] [00:19:24]POST finish read [00:19:24]Found Content-Length = 215 [00:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:24]execute_script... [00:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:24]POST & json_proto [00:19:24]process_json_proto [00:19:24]json parsed OK: [00:19:24]protocol is kg_v1.0 [00:19:24]action value=get_value [00:19:24]process_action get_value [00:19:24]cmd_get_value [00:19:24]process_action get_value done [00:19:24]requested_data is exist [00:19:24]produce_requested_data [00:19:24]requested_item kkm.sn is exist - process it [00:19:24]requested_item kkm.ver is exist - process it [00:19:24]requested_item fm.sn is exist - process it [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 11 00 00 [00:19:24]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 17 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 81 [00:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:19:24]wFMCommunicate OK [00:19:24]requested_item fd.num is exist - process it [00:19:24]SAM_PROTO_GetFieldsCounters [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 13 00 00 [00:19:24]Write to MH i2c: E2 08 00 AA 0A 80 13 00 00 00 00 00 00 30 [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 62 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 62 00 AA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [00:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DC AE 00 00 0E 04 04 00 AE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:24]wFMCommunicate OK [00:19:24]SAM_PROTO_GetFieldsCounters done [00:19:24]requested_item shift.num is exist - process it [00:19:24]requested_item shift.opened is exist - process it [00:19:24]req_shift_opened [00:19:24]FM_GetShiftState [00:19:24]SAM_PROTO_GetShiftState [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 13 01 00 [00:19:24]Write to MH i2c: E2 08 00 AB 0A 80 13 01 00 00 00 00 00 32 [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 0E 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 0E 00 AB 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3D [00:19:24]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:24]wFMCommunicate OK [00:19:24]SAM_PROTO_GetShiftState done [00:19:24]FM_GetShiftState done [00:19:24]req_shift_opened done [00:19:24]requested_item shift.open_date is exist - process it [00:19:24]req_shift_open_date [00:19:24]FM_GetShiftState [00:19:24]SAM_PROTO_GetShiftState [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 13 01 00 [00:19:24]Write to MH i2c: E2 08 00 AC 0A 80 13 01 00 00 00 00 00 33 [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 0E 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 0E 00 AC 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3E [00:19:24]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:24]wFMCommunicate OK [00:19:24]SAM_PROTO_GetShiftState done [00:19:24]FM_GetShiftState done [00:19:24]req_shift_open_date done [00:19:24]produce_requested_data done [00:19:24]produce_requested_data return {"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44764,"shift.num":430,"shift.opened":0,"shift.open_date":0} [00:19:24]process_action_free get_value [00:19:24]json_value_free [00:19:24]json_value_free done [00:19:24]process_json_proto returns [00:19:24]Send response to host [00:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000045","kkm.ver":"001","fm.sn":"0000000000874941","fd.num":44764,"shift.num":430,"shift.opened":0,"shift.open_date":0}}} [00:19:24]free response buf [00:19:24]execute_script done [00:19:24]execute_script returns [00:19:24]free content buf [00:19:24]Sock 7.Close socket [00:19:24]Sock 7.Thread stoped [00:19:24]accept exits with 9 [00:19:24]New connection [00:19:24]New thread 3066482020 created [00:19:24]Thread 3066625380 joined [00:19:24]Waiting for new connection... [00:19:24] Sock 9.Parse request [00:19:24]Sock 9.Check first char [00:19:24]Sock 9.First char is OK [00:19:24]request: POST /json_proto HTTP/1.0 [00:19:24]Method: POST [00:19:24]URL: /json_proto [00:19:24]Method is POST - this is cgi request [00:19:24]url: /json_proto [00:19:24]query_string will be loaded in cgi processing [00:19:24]execute_cgi json_proto POST (null) [00:19:24]execute_cgi path=json_proto method=POST [00:19:24]POST find Content-Length [00:19:24]Host: 172.17.45.196:8080 [00:19:24]Content-Length: 331 [00:19:24]Content-Type: application/json [00:19:24] [00:19:24]POST finish read [00:19:24]Found Content-Length = 331 [00:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:24]execute_script... [00:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:25]POST & json_proto [00:19:25]process_json_proto [00:19:25]json parsed OK: [00:19:25]protocol is kg_v1.0 [00:19:25]action value=get_value [00:19:25]process_action get_value [00:19:25]cmd_get_value [00:19:25]process_action get_value done [00:19:25]requested_data is exist [00:19:25]produce_requested_data [00:19:25]requested_item fm.sale.total is exist - process it [00:19:25]SAM_PROTO_GetFMData [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 13 03 00 [00:19:25]Write to MH i2c: E2 08 00 AD 0A 80 13 03 00 00 00 00 00 36 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 AD 0A 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 C4 [00:19:25]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 AE 0A 80 17 00 00 00 00 00 00 38 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 AE 0A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 E1 [00:19:25]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 AF 0A 80 17 00 00 00 00 00 00 39 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 AF 0A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 E7 [00:19:26]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:19:26]wFMCommunicate OK [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 17 00 00 [00:19:26]Write to MH i2c: E2 08 00 B0 0A 80 17 00 00 00 00 00 00 3A [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 B0 0A 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 B5 [00:19:26]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:19:26]wFMCommunicate OK [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 17 00 00 [00:19:26]Write to MH i2c: E2 08 00 B1 0A 80 17 00 00 00 00 00 00 3B [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 DF 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 DF 00 B1 0A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1B [00:19:26]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_GetFMData done [00:19:26]requested_item fm.sale_refund.total is exist - process it [00:19:26]requested_item fm.buy.total is exist - process it [00:19:26]requested_item shift.sale.total is exist - process it [00:19:26]SAM_PROTO_GetShiftData [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 13 02 00 [00:19:26]Write to MH i2c: E2 08 00 B2 0A 80 13 02 00 00 00 00 00 3A [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 [00:19:26]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 B2 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C9 [00:19:27]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 86 00 00 00 69 04 9B 00 6F 04 04 00 86 00 00 00 B1 04 03 00 50 25 2B 70 04 03 00 B0 B0 26 72 04 03 00 A0 74 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E5 94 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A6 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 B3 0A 80 17 00 00 00 00 00 00 3D [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 B3 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 5F [00:19:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 B4 0A 80 17 00 00 00 00 00 00 3E [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 B4 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F5 [00:19:27]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 B5 0A 80 17 00 00 00 00 00 00 3F [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 B5 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B1 [00:19:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 B6 0A 80 17 00 00 00 00 00 00 40 [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 CB 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 CB 00 B6 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:19:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:28]wFMCommunicate OK [00:19:28]SAM_PROTO_GetShiftData done [00:19:28]requested_item shift.sale.total_cash is exist - process it [00:19:28]requested_item shift.sale_refund.total is exist - process it [00:19:28]requested_item shift.sale_refund.total_cash is exist - process it [00:19:28]requested_item shift.buy.total is exist - process it [00:19:28]requested_item shift.buy.total_cash is exist - process it [00:19:28]produce_requested_data done [00:19:28]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:28]process_action_free get_value [00:19:28]json_value_free [00:19:28]json_value_free done [00:19:28]process_json_proto returns [00:19:28]Send response to host [00:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":28276.00,"shift.sale.total_cash":25356.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:28]free response buf [00:19:28]execute_script done [00:19:28]execute_script returns [00:19:28]free content buf [00:19:28]Sock 9.Close socket [00:19:28]Sock 9.Thread stoped [00:19:28]accept exits with 7 [00:19:28]New connection [00:19:28]New thread 3066625380 created [00:19:28]Thread 3066482020 joined [00:19:28]Waiting for new connection... [00:19:28] Sock 7.Parse request [00:19:28]Sock 7.Check first char [00:19:28]Sock 7.First char is OK [00:19:28]request: POST /json_proto HTTP/1.0 [00:19:28]Method: POST [00:19:28]URL: /json_proto [00:19:28]Method is POST - this is cgi request [00:19:28]url: /json_proto [00:19:28]query_string will be loaded in cgi processing [00:19:28]execute_cgi json_proto POST (null) [00:19:28]execute_cgi path=json_proto method=POST [00:19:28]POST find Content-Length [00:19:28]Host: 172.17.45.196:8080 [00:19:28]Content-Length: 247 [00:19:28]Content-Type: application/json [00:19:28] [00:19:28]POST finish read [00:19:28]Found Content-Length = 247 [00:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042E\u0437\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:28]execute_script... [00:19:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042E\u0437\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:28]POST & json_proto [00:19:28]process_json_proto [00:19:28]json parsed OK: [00:19:28]protocol is kg_v1.0 [00:19:28]action value=open_shift [00:19:28]process_action open_shift [00:19:28]cmd_open_shift [00:19:28]MH_GetDate [00:19:28]Write to MH i2c: F0 00 00 B7 0A B0 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 B7 0A 00 11 E0 A6 66 BB 03 A5 66 7F [00:19:28]GetLastDocTimeStamp 1722211444 [00:19:28]current date 1722212369 [00:19:28]FM_GetShiftState [00:19:28]SAM_PROTO_GetShiftState [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 13 01 00 [00:19:28]Write to MH i2c: E2 08 00 B8 0A 80 13 01 00 00 00 00 00 3F [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 0E 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 0E 00 B8 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4A [00:19:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:28]wFMCommunicate OK [00:19:28]SAM_PROTO_GetShiftState done [00:19:28]FM_GetShiftState done [00:19:28]KKMCreateOpenShiftDocument [00:19:28]Load OK [00:19:28]Malloc new data [00:19:28]MH_GetDate [00:19:28]Write to MH i2c: F0 00 00 B9 0A B2 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 B9 0A 00 11 E0 A6 66 BB 03 A5 66 81 [00:19:28]Malloc new data [00:19:28]KKMCreateOpenShiftDocument OK [00:19:28]KKMSetOpenShiftData OK [00:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=198 [00:19:28]tlvbuf is B6D586A0 [00:19:28]KKMLoadAndSignOpenShiftData [00:19:28]SAM_PROTO_ProcessDocument [00:19:28]wFMCommunicate request_size=9 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 01 00 04 02 00 C6 00 [00:19:28]Write to MH i2c: E2 0C 00 BA 0A 80 15 01 00 04 00 02 00 C6 00 00 00 13 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=23 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:19:28]Write to MH i2c: E2 1A 00 BB 0A 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 3A [00:19:28]OFD Sender: No OFD packet to send [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=26 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:19:28]Write to MH i2c: E2 1D 00 BC 0A 80 15 02 00 15 00 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 5C [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=90 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 55 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 [00:19:28]Write to MH i2c: E2 5D 00 BD 0A 80 15 02 00 55 00 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 00 00 BB [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=51 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:19:28]Write to MH i2c: E2 36 00 BE 0A 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 F5 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=13 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 08 F4 03 04 00 11 E0 A6 66 [00:19:28]Write to MH i2c: E2 10 00 BF 0A 80 15 02 00 08 00 F4 03 04 00 11 E0 A6 66 00 00 51 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=25 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 [00:19:28]Write to MH i2c: E2 1C 00 C0 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 00 00 AE [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [00:19:28]RAPDU: 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 03 00 [00:19:28]Write to MH i2c: E2 08 00 C1 0A 80 15 03 00 00 00 00 00 4C [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 38 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 38 00 C1 0A 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DD AE 00 00 0E 04 04 00 AF 01 00 00 35 04 06 00 AA 47 97 26 1C 1F 90 00 3D [00:19:29]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DD AE 00 00 0E 04 04 00 AF 01 00 00 35 04 06 00 AA 47 97 26 1C 1F 90 00 [00:19:29]wFMCommunicate OK [00:19:29]SAM_PROTO_ProcessDocument answer len = 51 [00:19:29]SAM_PROTO_ProcessDocument done [00:19:29]SetTLVBufToDocument [00:19:29]Processing tag 1209 (04B9) [00:19:29]Malloc new data [00:19:29]Processing tag 1041 (0411) [00:19:29]Processing tag 1040 (0410) [00:19:29]Malloc new data [00:19:29]Processing tag 1038 (040E) [00:19:29]Malloc new data [00:19:29]Processing tag 1077 (0435) [00:19:29]Malloc new data [00:19:29]SetTLVBufToDocument err=0 [00:19:29]KKMLoadAndSignOpenShiftData store KKM data [00:19:29]KKMLoadAndSignOpenShiftData err=0 [00:19:29]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Юзбаев А. Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 Место: АЗС № 128 "Партнер Нефть" 29.07.2024 00:19 Смена: 431 РНМ: 0000000000092655 ЗНМ: 0300000045 ФД: 44765 ФМ: 0000000000874941 ФПД: 187224455257119 [00:19:29]StoreToDocumentArchive [00:19:29]shift 431 fd 44765 [00:19:29]Create dir for shift 0431 [00:19:29]save to /storage/0431/doc_00044765 [00:19:29]save last doc name /storage/0431/doc_00044765 to /storage/kkm_last_doc_name [00:19:29]save OK [00:19:29]Clear old archive folders... [00:19:29]Remove dir /storage/0430 [00:19:29]opendir ok [00:19:29]file . [00:19:29]file .. [00:19:29]file doc_00044629 [00:19:29]remove file /storage/0430/doc_00044629 [00:19:29]file doc_00044630 [00:19:29]remove file /storage/0430/doc_00044630 [00:19:29]file doc_00044631 [00:19:29]remove file /storage/0430/doc_00044631 [00:19:29]file doc_00044632 [00:19:29]remove file /storage/0430/doc_00044632 [00:19:29]file doc_00044633 [00:19:29]remove file /storage/0430/doc_00044633 [00:19:29]file doc_00044634 [00:19:29]remove file /storage/0430/doc_00044634 [00:19:29]file doc_00044635 [00:19:29]remove file /storage/0430/doc_00044635 [00:19:29]file doc_00044636 [00:19:29]remove file /storage/0430/doc_00044636 [00:19:29]file doc_00044637 [00:19:29]remove file /storage/0430/doc_00044637 [00:19:29]file doc_00044638 [00:19:29]remove file /storage/0430/doc_00044638 [00:19:29]file doc_00044639 [00:19:29]remove file /storage/0430/doc_00044639 [00:19:29]file doc_00044640 [00:19:29]remove file /storage/0430/doc_00044640 [00:19:29]file doc_00044641 [00:19:29]remove file /storage/0430/doc_00044641 [00:19:29]file doc_00044642 [00:19:29]remove file /storage/0430/doc_00044642 [00:19:29]file doc_00044643 [00:19:29]remove file /storage/0430/doc_00044643 [00:19:29]file doc_00044644 [00:19:29]remove file /storage/0430/doc_00044644 [00:19:29]file doc_00044645 [00:19:29]remove file /storage/0430/doc_00044645 [00:19:29]file doc_00044646 [00:19:29]remove file /storage/0430/doc_00044646 [00:19:29]file doc_00044647 [00:19:29]remove file /storage/0430/doc_00044647 [00:19:29]file doc_00044648 [00:19:29]remove file /storage/0430/doc_00044648 [00:19:29]file doc_00044649 [00:19:29]remove file /storage/0430/doc_00044649 [00:19:29]file doc_00044650 [00:19:29]remove file /storage/0430/doc_00044650 [00:19:29]file doc_00044651 [00:19:29]remove file /storage/0430/doc_00044651 [00:19:29]file doc_00044652 [00:19:29]remove file /storage/0430/doc_00044652 [00:19:29]file doc_00044653 [00:19:29]remove file /storage/0430/doc_00044653 [00:19:29]file doc_00044654 [00:19:29]remove file /storage/0430/doc_00044654 [00:19:29]file doc_00044655 [00:19:29]remove file /storage/0430/doc_00044655 [00:19:29]file doc_00044656 [00:19:29]remove file /storage/0430/doc_00044656 [00:19:29]file doc_00044657 [00:19:29]remove file /storage/0430/doc_00044657 [00:19:29]file doc_00044658 [00:19:29]remove file /storage/0430/doc_00044658 [00:19:29]file doc_00044659 [00:19:29]remove file /storage/0430/doc_00044659 [00:19:29]file doc_00044660 [00:19:29]remove file /storage/0430/doc_00044660 [00:19:29]file doc_00044661 [00:19:29]remove file /storage/0430/doc_00044661 [00:19:29]file doc_00044662 [00:19:29]remove file /storage/0430/doc_00044662 [00:19:29]file doc_00044663 [00:19:29]remove file /storage/0430/doc_00044663 [00:19:29]file doc_00044664 [00:19:29]remove file /storage/0430/doc_00044664 [00:19:29]file doc_00044665 [00:19:29]remove file /storage/0430/doc_00044665 [00:19:29]file doc_00044666 [00:19:29]remove file /storage/0430/doc_00044666 [00:19:29]file doc_00044667 [00:19:29]remove file /storage/0430/doc_00044667 [00:19:29]file doc_00044668 [00:19:29]remove file /storage/0430/doc_00044668 [00:19:29]file doc_00044669 [00:19:29]remove file /storage/0430/doc_00044669 [00:19:29]file doc_00044670 [00:19:29]remove file /storage/0430/doc_00044670 [00:19:29]file doc_00044671 [00:19:29]remove file /storage/0430/doc_00044671 [00:19:29]file doc_00044672 [00:19:29]remove file /storage/0430/doc_00044672 [00:19:29]file doc_00044673 [00:19:29]remove file /storage/0430/doc_00044673 [00:19:29]file doc_00044674 [00:19:29]remove file /storage/0430/doc_00044674 [00:19:29]file doc_00044675 [00:19:29]remove file /storage/0430/doc_00044675 [00:19:29]file doc_00044676 [00:19:29]remove file /storage/0430/doc_00044676 [00:19:29]file doc_00044677 [00:19:29]remove file /storage/0430/doc_00044677 [00:19:29]file doc_00044678 [00:19:29]remove file /storage/0430/doc_00044678 [00:19:29]file doc_00044679 [00:19:29]remove file /storage/0430/doc_00044679 [00:19:29]file doc_00044680 [00:19:29]remove file /storage/0430/doc_00044680 [00:19:29]file doc_00044681 [00:19:29]remove file /storage/0430/doc_00044681 [00:19:29]file doc_00044682 [00:19:29]remove file /storage/0430/doc_00044682 [00:19:29]file doc_00044683 [00:19:29]remove file /storage/0430/doc_00044683 [00:19:29]file doc_00044684 [00:19:29]remove file /storage/0430/doc_00044684 [00:19:29]file doc_00044685 [00:19:29]remove file /storage/0430/doc_00044685 [00:19:29]file doc_00044686 [00:19:29]remove file /storage/0430/doc_00044686 [00:19:29]file doc_00044687 [00:19:29]remove file /storage/0430/doc_00044687 [00:19:29]file doc_00044688 [00:19:29]remove file /storage/0430/doc_00044688 [00:19:29]file doc_00044689 [00:19:29]remove file /storage/0430/doc_00044689 [00:19:29]file doc_00044690 [00:19:29]remove file /storage/0430/doc_00044690 [00:19:29]file doc_00044691 [00:19:29]remove file /storage/0430/doc_00044691 [00:19:29]file doc_00044692 [00:19:29]remove file /storage/0430/doc_00044692 [00:19:29]file doc_00044693 [00:19:29]remove file /storage/0430/doc_00044693 [00:19:29]file doc_00044694 [00:19:29]remove file /storage/0430/doc_00044694 [00:19:29]file doc_00044695 [00:19:29]remove file /storage/0430/doc_00044695 [00:19:29]file doc_00044696 [00:19:29]remove file /storage/0430/doc_00044696 [00:19:29]file doc_00044697 [00:19:29]remove file /storage/0430/doc_00044697 [00:19:29]file doc_00044698 [00:19:29]remove file /storage/0430/doc_00044698 [00:19:29]file doc_00044699 [00:19:29]remove file /storage/0430/doc_00044699 [00:19:29]file doc_00044700 [00:19:29]remove file /storage/0430/doc_00044700 [00:19:29]file doc_00044701 [00:19:29]remove file /storage/0430/doc_00044701 [00:19:29]file doc_00044702 [00:19:29]remove file /storage/0430/doc_00044702 [00:19:29]file doc_00044703 [00:19:29]remove file /storage/0430/doc_00044703 [00:19:29]file doc_00044704 [00:19:29]remove file /storage/0430/doc_00044704 [00:19:29]file doc_00044705 [00:19:29]remove file /storage/0430/doc_00044705 [00:19:29]file doc_00044706 [00:19:29]remove file /storage/0430/doc_00044706 [00:19:29]file doc_00044707 [00:19:29]remove file /storage/0430/doc_00044707 [00:19:29]file doc_00044708 [00:19:29]remove file /storage/0430/doc_00044708 [00:19:29]file doc_00044709 [00:19:29]remove file /storage/0430/doc_00044709 [00:19:29]file doc_00044710 [00:19:29]remove file /storage/0430/doc_00044710 [00:19:29]file doc_00044711 [00:19:29]remove file /storage/0430/doc_00044711 [00:19:29]file doc_00044712 [00:19:29]remove file /storage/0430/doc_00044712 [00:19:29]file doc_00044713 [00:19:29]remove file /storage/0430/doc_00044713 [00:19:29]file doc_00044714 [00:19:29]remove file /storage/0430/doc_00044714 [00:19:29]file doc_00044715 [00:19:29]remove file /storage/0430/doc_00044715 [00:19:29]file doc_00044716 [00:19:29]remove file /storage/0430/doc_00044716 [00:19:29]file doc_00044717 [00:19:29]remove file /storage/0430/doc_00044717 [00:19:29]file doc_00044718 [00:19:29]remove file /storage/0430/doc_00044718 [00:19:29]file doc_00044719 [00:19:29]remove file /storage/0430/doc_00044719 [00:19:29]file doc_00044720 [00:19:29]remove file /storage/0430/doc_00044720 [00:19:29]file doc_00044721 [00:19:29]remove file /storage/0430/doc_00044721 [00:19:29]file doc_00044722 [00:19:29]remove file /storage/0430/doc_00044722 [00:19:29]file doc_00044723 [00:19:29]remove file /storage/0430/doc_00044723 [00:19:29]file doc_00044724 [00:19:29]remove file /storage/0430/doc_00044724 [00:19:29]file doc_00044725 [00:19:29]remove file /storage/0430/doc_00044725 [00:19:29]file doc_00044726 [00:19:29]remove file /storage/0430/doc_00044726 [00:19:29]file doc_00044727 [00:19:29]remove file /storage/0430/doc_00044727 [00:19:29]file doc_00044728 [00:19:29]remove file /storage/0430/doc_00044728 [00:19:29]file doc_00044729 [00:19:29]remove file /storage/0430/doc_00044729 [00:19:29]file doc_00044730 [00:19:29]remove file /storage/0430/doc_00044730 [00:19:29]file doc_00044731 [00:19:29]remove file /storage/0430/doc_00044731 [00:19:29]file doc_00044732 [00:19:29]remove file /storage/0430/doc_00044732 [00:19:29]file doc_00044733 [00:19:29]remove file /storage/0430/doc_00044733 [00:19:29]file doc_00044734 [00:19:29]remove file /storage/0430/doc_00044734 [00:19:29]file doc_00044735 [00:19:29]remove file /storage/0430/doc_00044735 [00:19:29]file doc_00044736 [00:19:29]remove file /storage/0430/doc_00044736 [00:19:29]file doc_00044737 [00:19:29]remove file /storage/0430/doc_00044737 [00:19:29]file doc_00044738 [00:19:29]remove file /storage/0430/doc_00044738 [00:19:29]file doc_00044739 [00:19:29]remove file /storage/0430/doc_00044739 [00:19:29]file doc_00044740 [00:19:29]remove file /storage/0430/doc_00044740 [00:19:29]file doc_00044741 [00:19:29]remove file /storage/0430/doc_00044741 [00:19:29]file doc_00044742 [00:19:29]remove file /storage/0430/doc_00044742 [00:19:29]file doc_00044743 [00:19:29]remove file /storage/0430/doc_00044743 [00:19:29]file doc_00044744 [00:19:29]remove file /storage/0430/doc_00044744 [00:19:29]file doc_00044745 [00:19:29]remove file /storage/0430/doc_00044745 [00:19:29]file doc_00044746 [00:19:29]remove file /storage/0430/doc_00044746 [00:19:29]file doc_00044747 [00:19:29]remove file /storage/0430/doc_00044747 [00:19:29]file doc_00044748 [00:19:29]remove file /storage/0430/doc_00044748 [00:19:29]file doc_00044749 [00:19:29]remove file /storage/0430/doc_00044749 [00:19:29]file doc_00044750 [00:19:29]remove file /storage/0430/doc_00044750 [00:19:29]file doc_00044751 [00:19:29]remove file /storage/0430/doc_00044751 [00:19:29]file doc_00044752 [00:19:29]remove file /storage/0430/doc_00044752 [00:19:29]file doc_00044753 [00:19:29]remove file /storage/0430/doc_00044753 [00:19:29]file doc_00044754 [00:19:29]remove file /storage/0430/doc_00044754 [00:19:29]file doc_00044755 [00:19:29]remove file /storage/0430/doc_00044755 [00:19:29]file doc_00044756 [00:19:29]remove file /storage/0430/doc_00044756 [00:19:29]file doc_00044757 [00:19:29]remove file /storage/0430/doc_00044757 [00:19:29]file doc_00044758 [00:19:29]remove file /storage/0430/doc_00044758 [00:19:29]file doc_00044759 [00:19:29]remove file /storage/0430/doc_00044759 [00:19:29]file doc_00044760 [00:19:29]remove file /storage/0430/doc_00044760 [00:19:29]file doc_00044761 [00:19:29]remove file /storage/0430/doc_00044761 [00:19:29]file doc_00044762 [00:19:30]remove file /storage/0430/doc_00044762 [00:19:30]file doc_00044763 [00:19:30]remove file /storage/0430/doc_00044763 [00:19:30]file doc_00044764 [00:19:30]remove file /storage/0430/doc_00044764 [00:19:30]remove dir /storage/0430 [00:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=249 [00:19:30]tlvbuf is 017BA910 [00:19:30]SAM_PROTO_ClearQueue [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 09 00 00 [00:19:30]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [00:19:30]RAPDU: 90 00 [00:19:30]wFMCommunicate OK [00:19:30]SAM_PROTO_ClearQueue done [00:19:30]KKMCreateOFDPacket [00:19:30]OFDProtocolAddRootSTLVToBuf [00:19:30]FM_MakeSignedData [00:19:30]FM_MakeSignedData [00:19:30]SAM_PROTO_SignData [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 0D 01 02 [00:19:30]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [00:19:30]RAPDU: 90 00 [00:19:30]wFMCommunicate OK [00:19:30]wFMCommunicate request_size=255 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 0D 02 02 FA 02 00 F9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 11 E0 A6 66 0E 04 04 00 AF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 AA 47 97 [00:19:30]Write to MH i2c: E2 02 01 C4 0A 80 0D 02 02 FA 00 02 00 F9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 11 E0 A6 66 0E 04 04 00 AF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 AA 47 97 00 00 79 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [00:19:30]RAPDU: 90 00 [00:19:30]wFMCommunicate OK [00:19:30]wFMCommunicate request_size=8 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 0D 02 02 03 26 1C 1F [00:19:30]Write to MH i2c: E2 0B 00 C5 0A 80 0D 02 02 03 00 26 1C 1F 00 00 B0 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [00:19:30]RAPDU: 90 00 [00:19:30]wFMCommunicate OK [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 0D 03 02 [00:19:30]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 0B 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 0B 00 C6 0A 00 70 9E 2B 69 A9 35 06 69 90 00 3B [00:19:30]RAPDU: 70 9E 2B 69 A9 35 06 69 90 00 [00:19:30]wFMCommunicate OK [00:19:30]SAM_PROTO_SignData done [00:19:30]FM_MakeSignedData done [00:19:30]CreateOFDProtocolMessage [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 11 00 00 [00:19:30]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 17 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 9F [00:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:19:30]wFMCommunicate OK [00:19:30]CreateOFDProtocolMessage done [00:19:30]OFDSenderStorePacket 44765 [00:19:30]StoreOFDPacket docnum=44765 [00:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 01 00 00 F4 15 05 01 80 A0 5A 02 01 00 02 00 F9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 11 E0 A6 66 0E 04 04 00 AF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 AA 47 97 26 1C 1F 70 9E 2B 69 A9 35 06 69 [00:19:30]CheckFolder [00:19:30]dirname=/storage/ofd_packets [00:19:30]CheckFolder done [00:19:30]ProducePacketName [00:19:30]name=ofd_packets/00044765 [00:19:30]NVStorageSaveData ofd_packets/00044765 [00:19:30]File name is /storage/ofd_packets/00044765 [00:19:30]Write 299 bytes [00:19:30]NVStorageSaveData done [00:19:30]OFDSenderStorePacket done [00:19:30]KKMCreateOFDPacket done [00:19:30]NVStorageSaveData kkm_last_timestamp [00:19:30]File name is /storage/kkm_last_timestamp [00:19:30]Write 4 bytes [00:19:30]NVStorageSaveData done [00:19:30]ExternCall_PrintAddStr [00:19:30]wPrintStart [00:19:30]Write to MH i2c: 01 00 00 C8 0A D2 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 07 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [00:19:30]RasterBufferAndPrint [00:19:30]line Отчет об открытии смены [00:19:30]line ФФД: 1.0 [00:19:30]line ИНН: 02508201610067 [00:19:30]line Кассир: Юзбаев А. [00:19:30]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:19:30]line Место: АЗС № 128 "Партнер Нефть" [00:19:30]line 29.07.2024 00:19 [00:19:30]line Смена: 431 [00:19:30]line РНМ: 0000000000092655 [00:19:30]line ЗНМ: 0300000045 [00:19:30]line ФД: 44765 [00:19:30]line ФМ: 0000000000874941 [00:19:30]line ФПД: 187224455257119 [00:19:30]written 0, free lines is 4095 [00:19:30]OFD Sender: Processing packet 44765 [packets to send 7, broken 6] [00:19:30]ProducePacketName [00:19:30]name=ofd_packets/00044765 [00:19:30]OFD Sender: To server: pG, [00:19:30]CommunicateWithHost lk.salyk.kg:30040 [00:19:30]ConnectInit lk.salyk.kg [00:19:31]Write to MH i2c: 01 00 00 DA 0A E4 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 07 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 58 0E 51 [00:19:31]RasterBufferAndPrint [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]line [00:19:31]written 0, free lines is 3685 [00:19:31]process_action open_shift done [00:19:31]requested_data is exist [00:19:31]produce_requested_data [00:19:31]requested_item fd.num is exist - process it [00:19:31]SAM_PROTO_GetFieldsCounters [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 13 00 00 [00:19:31]Write to MH i2c: E2 08 00 E1 0A 80 13 00 00 00 00 00 00 67 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 62 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 62 00 E1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [00:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_GetFieldsCounters done [00:19:31]requested_item shift.num is exist - process it [00:19:31]requested_item shift.opened is exist - process it [00:19:31]req_shift_opened [00:19:31]FM_GetShiftState [00:19:31]SAM_PROTO_GetShiftState [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 13 01 00 [00:19:31]Write to MH i2c: E2 08 00 E2 0A 80 13 01 00 00 00 00 00 69 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 0E 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 0E 00 E2 0A 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 72 [00:19:31]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_GetShiftState done [00:19:31]FM_GetShiftState done [00:19:31]req_shift_opened done [00:19:31]requested_item shift.open_date is exist - process it [00:19:31]req_shift_open_date [00:19:31]req_shift_open_date done [00:19:31]produce_requested_data done [00:19:31]produce_requested_data return {"fd.num":44765,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:19:31]process_action_free open_shift [00:19:31]json_value_free [00:19:31]json_value_free done [00:19:31]process_json_proto returns [00:19:31]Send response to host [00:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":44765,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:19:31]free response buf [00:19:31]execute_script done [00:19:31]execute_script returns [00:19:31]free content buf [00:19:31]Sock 7.Close socket [00:19:31]Sock 7.Thread stoped [00:19:31]accept exits with 9 [00:19:31]New connection [00:19:31]New thread 3066482020 created [00:19:31]Thread 3066625380 joined [00:19:31]Waiting for new connection... [00:19:31] Sock 9.Parse request [00:19:31]Sock 9.Check first char [00:19:31]Sock 9.First char is OK [00:19:31]request: POST /json_proto HTTP/1.0 [00:19:31]Method: POST [00:19:31]URL: /json_proto [00:19:31]Method is POST - this is cgi request [00:19:31]url: /json_proto [00:19:31]query_string will be loaded in cgi processing [00:19:31]execute_cgi json_proto POST (null) [00:19:31]execute_cgi path=json_proto method=POST [00:19:31]POST find Content-Length [00:19:31]Host: 172.17.45.196:8080 [00:19:31]Content-Length: 331 [00:19:31]Content-Type: application/json [00:19:31] [00:19:31]POST finish read [00:19:31]Found Content-Length = 331 [00:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:31]execute_script... [00:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:31]POST & json_proto [00:19:31]process_json_proto [00:19:31]json parsed OK: [00:19:31]protocol is kg_v1.0 [00:19:31]action value=get_value [00:19:31]process_action get_value [00:19:31]cmd_get_value [00:19:31]process_action get_value done [00:19:31]requested_data is exist [00:19:31]produce_requested_data [00:19:31]requested_item fm.sale.total is exist - process it [00:19:31]SAM_PROTO_GetFMData [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 13 03 00 [00:19:31]Connected sock=10 [00:19:31]Write to MH i2c: Data to sent: E2 87 08 95 00 F6 E3 70 0A 80 47 13 2C 01 03 00 00 30 00 30 00 30 00 30 00 30 6C 30 [00:19:31]30 30 30 30 38 37 34 39 Write i2c OK [00:19:31]34 MH_I2C_Read... [00:19:31]31 0D 01 00 00 F4 15 05 01 80 A0 5A 02 01 00 02 00 F9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 AE D0 B7 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 51 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 B4 D0 B0 D0 BC D0 B6 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 9E D1 80 D0 BE D0 B7 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 39 39 2C 20 34 30 2E 31 33 36 36 35 36 2C 20 37 31 2E 37 32 34 39 31 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 11 E0 A6 66 0E 04 04 00 AF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DD AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 35 04 06 00 AA 47 97 26 1C 1F 70 9E 2B 69 A9 35 06 69 [00:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 08 BB 47 00 49 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DD AE 00 00 F4 03 04 00 23 8C A6 66 B6 04 01 00 00 A3 9E 40 02 A3 98 3A B1 [00:19:31]CommunicateWithHost err = 0 [00:19:31]CheckOFDResponse [00:19:31]1017 (14) - 77093643461234 [00:19:31]1041 (16) - 0000000000874941 [00:19:31]1040 (4) - 44765 [00:19:31]1012 (4) - 28.07.2024 18:21 [00:19:31]1206 (1) - 0 [00:19:31]OFD Sender: Remove packet 44765 [00:19:31]ProducePacketName [00:19:31]name=ofd_packets/00044765 [00:19:31]NVStorageDeleteData [00:19:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 FD 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 FD 00 E3 0A 00 C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 FA [00:19:31]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 7F AB 00 00 69 04 A0 00 6F 04 04 00 F0 AA 00 00 B1 04 04 00 95 E7 31 40 70 04 04 00 F8 DF C3 3B 72 04 04 00 9D 07 6E 04 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FF 38 D1 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 5B 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 10 9E C9 70 04 03 00 A8 B8 C6 72 04 03 00 68 E5 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E 69 15 EF 03 09 00 F6 03 90 00 [00:19:31]wFMCommunicate OK [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 17 00 00 [00:19:31]Write to MH i2c: E2 08 00 E4 0A 80 17 00 00 00 00 00 00 6E [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 E4 0A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 17 [00:19:32]OFD Sender: No OFD packet to send [00:19:32]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 C8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:19:32]wFMCommunicate OK [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 17 00 00 [00:19:32]Write to MH i2c: E2 08 00 E5 0A 80 17 00 00 00 00 00 00 6F [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 E5 0A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 1D [00:19:32]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:19:32]wFMCommunicate OK [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 17 00 00 [00:19:32]Write to MH i2c: E2 08 00 E6 0A 80 17 00 00 00 00 00 00 70 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 E6 0A 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 EB [00:19:33]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 17 00 00 [00:19:33]Write to MH i2c: E2 08 00 E7 0A 80 17 00 00 00 00 00 00 71 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 DF 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 DF 00 E7 0A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [00:19:33]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]SAM_PROTO_GetFMData done [00:19:33]requested_item fm.sale_refund.total is exist - process it [00:19:33]requested_item fm.buy.total is exist - process it [00:19:33]requested_item shift.sale.total is exist - process it [00:19:33]SAM_PROTO_GetShiftData [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 02 00 [00:19:33]Write to MH i2c: E2 08 00 E8 0A 80 13 02 00 00 00 00 00 70 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 E8 0A 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 E3 [00:19:34]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 E9 0A 80 17 00 00 00 00 00 00 73 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 E9 0A 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 7B [00:19:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 EA 0A 80 17 00 00 00 00 00 00 74 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 EA 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 46 [00:19:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 EB 0A 80 17 00 00 00 00 00 00 75 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 EB 0A 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 E7 [00:19:35]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 EC 0A 80 17 00 00 00 00 00 00 76 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 BD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 BD 00 EC 0A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [00:19:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:36]wFMCommunicate OK [00:19:36]SAM_PROTO_GetShiftData done [00:19:36]requested_item shift.sale.total_cash is exist - process it [00:19:36]requested_item shift.sale_refund.total is exist - process it [00:19:36]requested_item shift.sale_refund.total_cash is exist - process it [00:19:36]requested_item shift.buy.total is exist - process it [00:19:36]requested_item shift.buy.total_cash is exist - process it [00:19:36]produce_requested_data done [00:19:36]produce_requested_data return {"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:36]process_action_free get_value [00:19:36]json_value_free [00:19:36]json_value_free done [00:19:36]process_json_proto returns [00:19:36]Send response to host [00:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10770123.73,"fm.sale_refund.total":132132.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:36]free response buf [00:19:36]execute_script done [00:19:36]execute_script returns [00:19:36]free content buf [00:19:36]Sock 9.Close socket [00:19:36]Sock 9.Thread stoped [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:04]int [00:25:04]Write to MH i2c: 01 00 00 ED 0A F7 [00:25:04]*** FLAG_PRN_KEY set [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 ED 0A 00 08 00 00 00 FF 0F 14 [00:25:04]state=0 [00:25:04]Key pressed [00:25:04]Feed [00:25:04]Write to MH i2c: D8 00 00 EE 0A CF [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D8 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D8 01 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D8 01 00 EE 0A 00 D0 [00:25:04]int [00:25:04]Write to MH i2c: 01 00 00 EF 0A F9 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 EF 0A 00 48 00 00 00 3D 00 85 [00:25:04]state=2 [00:25:04]Key pressed [00:25:04]int [00:25:04]Write to MH i2c: 01 00 00 F0 0A FA [00:25:04]*** FLAG_PRN_KEY reset [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 F5 0F 05 [00:25:04]state=2 [00:25:04]Stop feed [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:54]accept exits with 7 [00:30:54]New connection [00:30:54]New thread 3066625380 created [00:30:54]Thread 3066482020 joined [00:30:54]Waiting for new connection... [00:30:54] Sock 7.Parse request [00:30:54]Sock 7.Check first char [00:30:54]Sock 7.First char is OK [00:30:54]request: POST /json_proto HTTP/1.0 [00:30:54]Method: POST [00:30:54]URL: /json_proto [00:30:54]Method is POST - this is cgi request [00:30:54]url: /json_proto [00:30:54]query_string will be loaded in cgi processing [00:30:54]execute_cgi json_proto POST (null) [00:30:54]execute_cgi path=json_proto method=POST [00:30:54]POST find Content-Length [00:30:54]Host: 172.17.45.196:8080 [00:30:54]Content-Length: 902 [00:30:54]Content-Type: application/json [00:30:54] [00:30:54]POST finish read [00:30:54]Found Content-Length = 902 [00:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14657", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:54]execute_script... [00:30:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14657", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:54]POST & json_proto [00:30:54]process_json_proto [00:30:54]json parsed OK: [00:30:54]protocol is kg_v1.0 [00:30:54]action value=close_receipt [00:30:54]process_action close_receipt [00:30:54]cmd_close_receipt [00:30:54]MH_GetDate [00:30:54]Write to MH i2c: F0 00 00 F1 0A EA [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: F0 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: F0 09 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: F0 09 00 F1 0A 00 C0 E2 A6 66 BB 03 A5 66 6A [00:30:54]GetLastDocTimeStamp 1722212369 [00:30:54]current date 1722213056 [00:30:54]FM_GetShiftState [00:30:54]SAM_PROTO_GetShiftState [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 13 01 00 [00:30:54]Write to MH i2c: E2 08 00 F2 0A 80 13 01 00 00 00 00 00 79 [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 0E 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 0E 00 F2 0A 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 82 [00:30:54]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:30:54]wFMCommunicate OK [00:30:54]SAM_PROTO_GetShiftState done [00:30:54]FM_GetShiftState done [00:30:54]opened in 1722212369 [00:30:54]opened+sec_in_day 1722298769 [00:30:54]quantity*price = 14300 [00:30:54]sum+1 = 14301 [00:30:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 323.00 НСП 1% : 2.85 НДС 12% : 34.30 Наличными: 323.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 1 29.07.2024 00:30 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44766 ФПД: 260877308884087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003056&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44766&fm=260877308884087&tin=02508201610067®Number=0000000000092655&sum=32300 0 [00:30:55]StoreToDocumentArchive [00:30:55]shift 431 fd 44766 [00:30:55]save to /storage/0431/doc_00044766 [00:30:55]save last doc name /storage/0431/doc_00044766 to /storage/kkm_last_doc_name [00:30:55]save OK [00:30:55]Clear old archive folders... [00:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=393 [00:30:55]tlvbuf is 0179FDF0 [00:30:55]SAM_PROTO_ClearQueue [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 09 00 00 [00:30:55]Write to MH i2c: E2 08 00 FF 0A 80 09 00 00 00 00 00 00 7B [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [00:30:55]RAPDU: 90 00 [00:30:55]wFMCommunicate OK [00:30:55]SAM_PROTO_ClearQueue done [00:30:55]KKMCreateOFDPacket [00:30:55]OFDProtocolAddRootSTLVToBuf [00:30:55]FM_MakeSignedData [00:30:55]FM_MakeSignedData [00:30:55]SAM_PROTO_SignData [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 0D 01 02 [00:30:55]Write to MH i2c: E2 08 00 00 0B 80 0D 01 02 00 00 00 00 84 [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [00:30:55]RAPDU: 90 00 [00:30:55]wFMCommunicate OK [00:30:55]wFMCommunicate request_size=255 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 [00:30:55]Write to MH i2c: E2 02 01 01 0B 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 00 [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [00:30:56]RAPDU: 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=152 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C0 E2 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DE AE 00 00 35 04 06 00 ED 44 3B 53 74 77 [00:30:56]Write to MH i2c: E2 9B 00 02 0B 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C0 E2 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DE AE 00 00 35 04 06 00 ED 44 3B 53 74 77 00 00 A8 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [00:30:56]RAPDU: 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 0D 03 02 [00:30:56]Write to MH i2c: E2 08 00 03 0B 80 0D 03 02 00 00 00 00 89 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 0B 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 0B 00 03 0B 00 90 00 66 47 09 94 71 92 90 00 67 [00:30:56]RAPDU: 90 00 66 47 09 94 71 92 90 00 [00:30:56]wFMCommunicate OK [00:30:56]SAM_PROTO_SignData done [00:30:56]FM_MakeSignedData done [00:30:56]CreateOFDProtocolMessage [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 11 00 00 [00:30:56]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 17 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 17 00 04 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 DD [00:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:30:56]wFMCommunicate OK [00:30:56]CreateOFDProtocolMessage done [00:30:56]OFDSenderStorePacket 44766 [00:30:56]StoreOFDPacket docnum=44766 [00:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 9D 01 00 00 E4 36 95 01 9D E5 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C0 E2 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DE AE 00 00 35 04 06 00 ED 44 3B 53 74 77 90 00 66 47 09 94 71 92 [00:30:56]CheckFolder [00:30:56]dirname=/storage/ofd_packets [00:30:56]CheckFolder done [00:30:56]ProducePacketName [00:30:56]name=ofd_packets/00044766 [00:30:56]NVStorageSaveData ofd_packets/00044766 [00:30:56]File name is /storage/ofd_packets/00044766 [00:30:56]Write 443 bytes [00:30:56]NVStorageSaveData done [00:30:56]OFDSenderStorePacket done [00:30:56]KKMCreateOFDPacket done [00:30:56]NVStorageSaveData kkm_last_timestamp [00:30:56]File name is /storage/kkm_last_timestamp [00:30:56]Write 4 bytes [00:30:56]NVStorageSaveData done [00:30:56]ExternCall_PrintAddStr [00:30:56]wPrintStart [00:30:56]Write to MH i2c: 01 00 00 05 0B 10 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 07 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [00:30:56]RasterBufferAndPrint [00:30:56]line Счет N : (3)14657 [00:30:56]line ИНН: 02508201610067 [00:30:56]line Контрольно-Кассовый Чек [00:30:56]line ПРОДАЖА [00:30:56]line Товар: 48744683 [00:30:56]line Сигареты Winston XStyle Caster+ [00:30:56]line 1.000 * 143.00 [00:30:56]line = 143.00 [00:30:56]line НДС 12% НСП 1% [00:30:56]line > о реализуемом товаре [00:30:56]line Товар: 5449000176448 [00:30:56]line Сок Piko Pulpy апельсин ПЭТ 1л [00:30:56]line 1.000 * 180.00 [00:30:56]line = 180.00 [00:30:56]line НДС 12% НСП 1% [00:30:56]line > о реализуемом товаре [00:30:56]line ИТОГО: 323.00 [00:30:56]line НСП 1% : 2.85 [00:30:56]line НДС 12% : 34.30 [00:30:56]line Наличными: 323.00 [00:30:56]line Безнал.: 0.00 [00:30:56]line Место: АЗС № 128 "Партнер Нефть" [00:30:56]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:30:56]line СНО: Общий режим [00:30:56]line Чек 1 29.07.2024 00:30 [00:30:56]line Смена: 431 ФФД: 1.0 [00:30:56]line ЗНМ: 0300000045 [00:30:56]line РНМ: 0000000000092655 [00:30:56]line Версия ККМ: 001 [00:30:56]line ФМ: 0000000000874941 [00:30:56]line ФД: 44766 [00:30:56]line ФПД: 260877308884087 [00:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003056&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44766&fm=260877308884087&tin=02508201610067®Number=0000000000092655&sum=32300 [00:30:56]line 0 [00:30:56]OFD Sender: Processing packet 44766 [packets to send 7, broken 6] [00:30:56]ProducePacketName [00:30:56]name=ofd_packets/00044766 [00:30:56]OFD Sender: To server: pG, [00:30:56]CommunicateWithHost lk.salyk.kg:30040 [00:30:56]ConnectInit lk.salyk.kg [00:30:56]written 0, free lines is 4095 [00:30:57]Write to MH i2c: 01 00 00 35 0B 40 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: 01 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: 01 07 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 58 0C AB [00:30:57]RasterBufferAndPrint [00:30:57]line [00:30:57]line [00:30:57]line [00:30:57]line [00:30:57]line [00:30:57]written 0, free lines is 3164 [00:30:57]process_action close_receipt done [00:30:57]requested_data is exist [00:30:57]produce_requested_data [00:30:57]requested_item fm.sn is exist - process it [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 11 00 00 [00:30:57]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 17 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 15 [00:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:30:57]wFMCommunicate OK [00:30:57]requested_item fd.num is exist - process it [00:30:57]SAM_PROTO_GetFieldsCounters [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 13 00 00 [00:30:57]Write to MH i2c: E2 08 00 3D 0B 80 13 00 00 00 00 00 00 C4 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 62 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 62 00 3D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DE AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DE AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:57]wFMCommunicate OK [00:30:57]SAM_PROTO_GetFieldsCounters done [00:30:57]requested_item shift.num is exist - process it [00:30:57]requested_item shift.opened is exist - process it [00:30:57]req_shift_opened [00:30:57]FM_GetShiftState [00:30:57]SAM_PROTO_GetShiftState [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 13 01 00 [00:30:57]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 0E 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 CF [00:30:57]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:30:57]wFMCommunicate OK [00:30:57]SAM_PROTO_GetShiftState done [00:30:57]FM_GetShiftState done [00:30:57]req_shift_opened done [00:30:57]requested_item shift.open_date is exist - process it [00:30:57]req_shift_open_date [00:30:57]req_shift_open_date done [00:30:57]produce_requested_data done [00:30:57]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44766,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:30:57]process_action_free close_receipt [00:30:57]json_value_free [00:30:57]json_value_free done [00:30:57]process_json_proto returns [00:30:57]Send response to host [00:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44766,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:30:57]free response buf [00:30:57]execute_script done [00:30:57]execute_script returns [00:30:57]free content buf [00:30:57]Sock 7.Close socket [00:30:57]Sock 7.Thread stoped [00:33:08]ConnectInit Can't connect to host [00:33:08]CommunicateWithHost connect error [00:33:08]CommunicateWithHost err = -1 [00:33:08]OFD Sender: Server communicate error [00:33:13]OFD Sender: Processing packet 44766 [packets to send 7, broken 6] [00:33:13]ProducePacketName [00:33:13]name=ofd_packets/00044766 [00:33:13]OFD Sender: To server: pG, [00:33:13]CommunicateWithHost lk.salyk.kg:30040 [00:33:13]ConnectInit lk.salyk.kg [00:33:13]Connected sock=7 [00:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 9D 01 00 00 E4 36 95 01 9D E5 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C0 E2 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DE AE 00 00 35 04 06 00 ED 44 3B 53 74 77 90 00 66 47 09 94 71 92 [00:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 6B BE 47 00 29 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DE AE 00 00 F4 03 04 00 59 8F A6 66 B6 04 01 00 00 1E 27 71 B2 9F B5 14 2C [00:33:13]CommunicateWithHost err = 0 [00:33:13]CheckOFDResponse [00:33:13]1017 (14) - 77093643461234 [00:33:13]1041 (16) - 0000000000874941 [00:33:13]1040 (4) - 44766 [00:33:13]1012 (4) - 28.07.2024 18:35 [00:33:13]1206 (1) - 0 [00:33:13]OFD Sender: Remove packet 44766 [00:33:13]ProducePacketName [00:33:13]name=ofd_packets/00044766 [00:33:13]NVStorageDeleteData [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:05]accept exits with 9 [00:35:05]New connection [00:35:05]New thread 3066482020 created [00:35:05]Thread 3066625380 joined [00:35:05]Waiting for new connection... [00:35:05] Sock 9.Parse request [00:35:05]Sock 9.Check first char [00:35:05]Sock 9.First char is OK [00:35:05]request: POST /json_proto HTTP/1.0 [00:35:05]Method: POST [00:35:05]URL: /json_proto [00:35:05]Method is POST - this is cgi request [00:35:05]url: /json_proto [00:35:05]query_string will be loaded in cgi processing [00:35:05]execute_cgi json_proto POST (null) [00:35:05]execute_cgi path=json_proto method=POST [00:35:05]POST find Content-Length [00:35:05]Host: 172.17.45.196:8080 [00:35:05]Content-Length: 646 [00:35:05]Content-Type: application/json [00:35:05] [00:35:05]POST finish read [00:35:05]Found Content-Length = 646 [00:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14658", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:05]execute_script... [00:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14658", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:05]POST & json_proto [00:35:05]process_json_proto [00:35:05]json parsed OK: [00:35:05]protocol is kg_v1.0 [00:35:05]action value=close_receipt [00:35:05]process_action close_receipt [00:35:05]cmd_close_receipt [00:35:05]MH_GetDate [00:35:05]Write to MH i2c: F0 00 00 3F 0B 39 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 09 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 09 00 3F 0B 00 BA E3 A6 66 BB 03 A5 66 B4 [00:35:05]GetLastDocTimeStamp 1722213056 [00:35:05]current date 1722213306 [00:35:05]FM_GetShiftState [00:35:05]SAM_PROTO_GetShiftState [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 01 00 [00:35:05]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 D1 [00:35:05]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetShiftState done [00:35:05]FM_GetShiftState done [00:35:05]opened in 1722212369 [00:35:05]opened+sec_in_day 1722298769 [00:35:05]quantity*price = 8000 [00:35:05]sum+1 = 8001 [00:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 2 29.07.2024 00:35 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44767 ФПД: 198967890752665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003506&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44767&fm=198967890752665&tin=02508201610067®Number=0000000000092655&sum=8000 0 [00:35:06]StoreToDocumentArchive [00:35:06]shift 431 fd 44767 [00:35:06]save to /storage/0431/doc_00044767 [00:35:06]save last doc name /storage/0431/doc_00044767 to /storage/kkm_last_doc_name [00:35:06]save OK [00:35:06]Clear old archive folders... [00:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:35:06]tlvbuf is 017A1190 [00:35:06]SAM_PROTO_ClearQueue [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 09 00 00 [00:35:06]Write to MH i2c: E2 08 00 4D 0B 80 09 00 00 00 00 00 00 CA [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]SAM_PROTO_ClearQueue done [00:35:06]KKMCreateOFDPacket [00:35:06]OFDProtocolAddRootSTLVToBuf [00:35:06]FM_MakeSignedData [00:35:06]FM_MakeSignedData [00:35:06]SAM_PROTO_SignData [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 0D 01 02 [00:35:06]Write to MH i2c: E2 08 00 4E 0B 80 0D 01 02 00 00 00 00 D2 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=255 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA E3 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 [00:35:06]Write to MH i2c: E2 02 01 4F 0B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA E3 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 00 00 F6 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=37 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DF AE 00 00 35 04 06 00 B4 F5 D2 73 34 99 [00:35:06]Write to MH i2c: E2 28 00 50 0B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DF AE 00 00 35 04 06 00 B4 F5 D2 73 34 99 00 00 75 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 0D 03 02 [00:35:06]Write to MH i2c: E2 08 00 51 0B 80 0D 03 02 00 00 00 00 D7 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 0B 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 0B 00 51 0B 00 44 5C 12 70 E9 82 8B 65 90 00 55 [00:35:07]RAPDU: 44 5C 12 70 E9 82 8B 65 90 00 [00:35:07]wFMCommunicate OK [00:35:07]SAM_PROTO_SignData done [00:35:07]FM_MakeSignedData done [00:35:07]CreateOFDProtocolMessage [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 11 00 00 [00:35:07]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 2B [00:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:35:07]wFMCommunicate OK [00:35:07]CreateOFDProtocolMessage done [00:35:07]OFDSenderStorePacket 44767 [00:35:07]StoreOFDPacket docnum=44767 [00:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 98 49 22 01 01 DA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA E3 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DF AE 00 00 35 04 06 00 B4 F5 D2 73 34 99 44 5C 12 70 E9 82 8B 65 [00:35:07]CheckFolder [00:35:07]dirname=/storage/ofd_packets [00:35:07]CheckFolder done [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00044767 [00:35:07]NVStorageSaveData ofd_packets/00044767 [00:35:07]File name is /storage/ofd_packets/00044767 [00:35:07]Write 328 bytes [00:35:07]NVStorageSaveData done [00:35:07]OFDSenderStorePacket done [00:35:07]KKMCreateOFDPacket done [00:35:07]NVStorageSaveData kkm_last_timestamp [00:35:07]File name is /storage/kkm_last_timestamp [00:35:07]Write 4 bytes [00:35:07]NVStorageSaveData done [00:35:07]ExternCall_PrintAddStr [00:35:07]wPrintStart [00:35:07]Write to MH i2c: 01 00 00 53 0B 5E [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 53 0B 00 00 00 00 00 FF 0F 73 [00:35:07]RasterBufferAndPrint [00:35:07]line Счет N : (3)14658 [00:35:07]line ИНН: 02508201610067 [00:35:07]line Контрольно-Кассовый Чек [00:35:07]line ПРОДАЖА [00:35:07]line Товар: 4700000310036 [00:35:07]line Вода Жалалабат 27 0,5л [00:35:07]line 2.000 * 40.00 [00:35:07]line = 80.00 [00:35:07]line НДС 12% НСП 1% [00:35:07]line > о реализуемом товаре [00:35:07]line ИТОГО: 80.00 [00:35:07]line НСП 1% : 0.71 [00:35:07]line НДС 12% : 8.50 [00:35:07]line Наличными: 80.00 [00:35:07]line Безнал.: 0.00 [00:35:07]line Место: АЗС № 128 "Партнер Нефть" [00:35:07]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:35:07]line СНО: Общий режим [00:35:07]line Чек 2 29.07.2024 00:35 [00:35:07]line Смена: 431 ФФД: 1.0 [00:35:07]line ЗНМ: 0300000045 [00:35:07]line РНМ: 0000000000092655 [00:35:07]line Версия ККМ: 001 [00:35:07]line ФМ: 0000000000874941 [00:35:07]line ФД: 44767 [00:35:07]line ФПД: 198967890752665 [00:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003506&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44767&fm=198967890752665&tin=02508201610067®Number=0000000000092655&sum=8000 [00:35:07]line 0 [00:35:07]OFD Sender: Processing packet 44767 [packets to send 7, broken 6] [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00044767 [00:35:07]OFD Sender: To server: pG, [00:35:07]CommunicateWithHost lk.salyk.kg:30040 [00:35:07]ConnectInit lk.salyk.kg [00:35:07]written 0, free lines is 4095 [00:35:07]Connected sock=10 [00:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2A 01 00 00 98 49 22 01 01 DA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA E3 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DF AE 00 00 35 04 06 00 B4 F5 D2 73 34 99 44 5C 12 70 E9 82 8B 65 [00:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 A3 01 47 00 EF 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 DF AE 00 00 F4 03 04 00 CC 8F A6 66 B6 04 01 00 00 0D B7 7E 0F 51 4C 5C CF [00:35:07]CommunicateWithHost err = 0 [00:35:07]CheckOFDResponse [00:35:07]1017 (14) - 77093643461234 [00:35:07]1041 (16) - 0000000000874941 [00:35:07]1040 (4) - 44767 [00:35:07]1012 (4) - 28.07.2024 18:37 [00:35:07]1206 (1) - 0 [00:35:07]OFD Sender: Remove packet 44767 [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00044767 [00:35:07]NVStorageDeleteData [00:35:07]Write to MH i2c: 01 00 00 7B 0B 86 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 EA 0C 83 [00:35:07]RasterBufferAndPrint [00:35:07]line [00:35:07]line [00:35:07]line [00:35:07]line [00:35:07]line [00:35:07]written 0, free lines is 3312 [00:35:07]process_action close_receipt done [00:35:07]requested_data is exist [00:35:07]produce_requested_data [00:35:07]requested_item fm.sn is exist - process it [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 11 00 00 [00:35:07]Write to MH i2c: E2 08 00 82 0B 80 11 00 00 00 00 00 00 07 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 82 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5B [00:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:35:07]wFMCommunicate OK [00:35:07]requested_item fd.num is exist - process it [00:35:07]SAM_PROTO_GetFieldsCounters [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 13 00 00 [00:35:07]Write to MH i2c: E2 08 00 83 0B 80 13 00 00 00 00 00 00 0A [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 62 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 62 00 83 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DF AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [00:35:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 DF AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetFieldsCounters done [00:35:08]requested_item shift.num is exist - process it [00:35:08]requested_item shift.opened is exist - process it [00:35:08]req_shift_opened [00:35:08]FM_GetShiftState [00:35:08]SAM_PROTO_GetShiftState [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 13 01 00 [00:35:08]Write to MH i2c: E2 08 00 84 0B 80 13 01 00 00 00 00 00 0C [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 0E 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 0E 00 84 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 15 [00:35:08]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetShiftState done [00:35:08]FM_GetShiftState done [00:35:08]req_shift_opened done [00:35:08]requested_item shift.open_date is exist - process it [00:35:08]req_shift_open_date [00:35:08]req_shift_open_date done [00:35:08]produce_requested_data done [00:35:08]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44767,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:35:08]process_action_free close_receipt [00:35:08]json_value_free [00:35:08]json_value_free done [00:35:08]process_json_proto returns [00:35:08]Send response to host [00:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44767,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:35:08]free response buf [00:35:08]execute_script done [00:35:08]execute_script returns [00:35:08]free content buf [00:35:08]Sock 9.Close socket [00:35:08]Sock 9.Thread stoped [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:19]accept exits with 7 [00:36:19]New connection [00:36:19]New thread 3066625380 created [00:36:19]Thread 3066482020 joined [00:36:19]Waiting for new connection... [00:36:19] Sock 7.Parse request [00:36:19]Sock 7.Check first char [00:36:19]Sock 7.First char is OK [00:36:19]request: POST /json_proto HTTP/1.0 [00:36:19]Method: POST [00:36:19]URL: /json_proto [00:36:19]Method is POST - this is cgi request [00:36:19]url: /json_proto [00:36:19]query_string will be loaded in cgi processing [00:36:19]execute_cgi json_proto POST (null) [00:36:19]execute_cgi path=json_proto method=POST [00:36:19]POST find Content-Length [00:36:19]Host: 172.17.45.196:8080 [00:36:19]Content-Length: 1071 [00:36:19]Content-Type: application/json [00:36:19] [00:36:19]POST finish read [00:36:19]Found Content-Length = 1071 [00:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14659", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:19]execute_script... [00:36:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14659", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:19]POST & json_proto [00:36:19]process_json_proto [00:36:19]json parsed OK: [00:36:19]protocol is kg_v1.0 [00:36:19]action value=close_receipt [00:36:19]process_action close_receipt [00:36:19]cmd_close_receipt [00:36:19]MH_GetDate [00:36:19]Write to MH i2c: F0 00 00 85 0B 7F [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: F0 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: F0 09 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: F0 09 00 85 0B 00 05 E4 A6 66 BB 03 A5 66 46 [00:36:19]GetLastDocTimeStamp 1722213306 [00:36:19]current date 1722213381 [00:36:19]FM_GetShiftState [00:36:19]SAM_PROTO_GetShiftState [00:36:19]wFMCommunicate request_size=4 [00:36:19]MH_SAM_APDU [00:36:19]CAPDU: 80 13 01 00 [00:36:19]Write to MH i2c: E2 08 00 86 0B 80 13 01 00 00 00 00 00 0E [00:36:19]Write i2c OK [00:36:19]MH_I2C_Read... [00:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:19]Read from MH i2c: E2 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 0E 00 [00:36:19]MH_I2C_Read... [00:36:19]Read from MH i2c: E2 0E 00 86 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 17 [00:36:19]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:36:19]wFMCommunicate OK [00:36:19]SAM_PROTO_GetShiftState done [00:36:19]FM_GetShiftState done [00:36:19]opened in 1722212369 [00:36:19]opened+sec_in_day 1722298769 [00:36:19]quantity*price = 14000 [00:36:19]sum+1 = 14001 [00:36:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 3 29.07.2024 00:36 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44768 ФПД: 131462337542608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003621&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44768&fm=131462337542608&tin=02508201610067®Number=0000000000092655&sum=22500 0 [00:36:20]StoreToDocumentArchive [00:36:20]shift 431 fd 44768 [00:36:20]save to /storage/0431/doc_00044768 [00:36:20]save last doc name /storage/0431/doc_00044768 to /storage/kkm_last_doc_name [00:36:20]save OK [00:36:20]Clear old archive folders... [00:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=399 [00:36:20]tlvbuf is 017A0900 [00:36:20]SAM_PROTO_ClearQueue [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 09 00 00 [00:36:20]Write to MH i2c: E2 08 00 93 0B 80 09 00 00 00 00 00 00 10 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 03 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [00:36:20]RAPDU: 90 00 [00:36:20]wFMCommunicate OK [00:36:20]SAM_PROTO_ClearQueue done [00:36:20]KKMCreateOFDPacket [00:36:20]OFDProtocolAddRootSTLVToBuf [00:36:20]FM_MakeSignedData [00:36:20]FM_MakeSignedData [00:36:20]SAM_PROTO_SignData [00:36:20]wFMCommunicate request_size=4 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 0D 01 02 [00:36:20]Write to MH i2c: E2 08 00 94 0B 80 0D 01 02 00 00 00 00 18 [00:36:20]Write i2c OK [00:36:20]MH_I2C_Read... [00:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:20]Read from MH i2c: E2 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 03 00 [00:36:20]MH_I2C_Read... [00:36:20]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [00:36:20]RAPDU: 90 00 [00:36:20]wFMCommunicate OK [00:36:20]wFMCommunicate request_size=255 [00:36:20]MH_SAM_APDU [00:36:20]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 [00:36:20]Write to MH i2c: E2 02 01 95 0B 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 00 00 EE [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:21]Read from MH i2c: E2 03 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [00:36:21]RAPDU: 90 00 [00:36:21]wFMCommunicate OK [00:36:21]wFMCommunicate request_size=158 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 05 E4 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E0 AE 00 00 35 04 06 00 77 90 75 EE 39 D0 [00:36:21]Write to MH i2c: E2 A1 00 96 0B 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 05 E4 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E0 AE 00 00 35 04 06 00 77 90 75 EE 39 D0 00 00 A9 [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 03 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [00:36:21]RAPDU: 90 00 [00:36:21]wFMCommunicate OK [00:36:21]wFMCommunicate request_size=4 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 0D 03 02 [00:36:21]Write to MH i2c: E2 08 00 97 0B 80 0D 03 02 00 00 00 00 1D [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 0B 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 0B 00 97 0B 00 28 02 60 DD B4 0E FC 2A 90 00 6D [00:36:21]RAPDU: 28 02 60 DD B4 0E FC 2A 90 00 [00:36:21]wFMCommunicate OK [00:36:21]SAM_PROTO_SignData done [00:36:21]FM_MakeSignedData done [00:36:21]CreateOFDProtocolMessage [00:36:21]wFMCommunicate request_size=4 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 11 00 00 [00:36:21]Write to MH i2c: E2 08 00 98 0B 80 11 00 00 00 00 00 00 1D [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 17 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 17 00 98 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 71 [00:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:36:21]wFMCommunicate OK [00:36:21]CreateOFDProtocolMessage done [00:36:21]OFDSenderStorePacket 44768 [00:36:21]StoreOFDPacket docnum=44768 [00:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A3 01 00 00 D8 02 9B 01 E7 9D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 05 E4 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E0 AE 00 00 35 04 06 00 77 90 75 EE 39 D0 28 02 60 DD B4 0E FC 2A [00:36:21]CheckFolder [00:36:21]dirname=/storage/ofd_packets [00:36:21]CheckFolder done [00:36:21]ProducePacketName [00:36:21]name=ofd_packets/00044768 [00:36:21]NVStorageSaveData ofd_packets/00044768 [00:36:21]File name is /storage/ofd_packets/00044768 [00:36:21]Write 449 bytes [00:36:21]NVStorageSaveData done [00:36:21]OFDSenderStorePacket done [00:36:21]KKMCreateOFDPacket done [00:36:21]NVStorageSaveData kkm_last_timestamp [00:36:21]File name is /storage/kkm_last_timestamp [00:36:21]Write 4 bytes [00:36:21]NVStorageSaveData done [00:36:21]ExternCall_PrintAddStr [00:36:21]wPrintStart [00:36:21]Write to MH i2c: 01 00 00 99 0B A4 [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: 01 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: 01 07 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 FF 0F B9 [00:36:21]RasterBufferAndPrint [00:36:21]line Счет N : (3)14659 [00:36:21]line ИНН: 02508201610067 [00:36:21]line Контрольно-Кассовый Чек [00:36:21]line ПРОДАЖА [00:36:21]line Товар: 48743587 [00:36:21]line Сигареты Winston XStyle Silver [00:36:21]line 1.000 * 140.00 [00:36:21]line = 140.00 [00:36:21]line НДС 12% НСП 1% [00:36:21]line > о реализуемом товаре [00:36:21]line Товар: 4600682557456 [00:36:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [00:36:21]line 1.000 * 85.00 [00:36:21]line = 85.00 [00:36:21]line НДС 12% НСП 1% [00:36:21]line > о реализуемом товаре [00:36:21]line ИТОГО: 225.00 [00:36:21]line НСП 1% : 1.99 [00:36:21]line НДС 12% : 23.90 [00:36:21]line Наличными: 0.00 [00:36:21]line Безнал.: 225.00 [00:36:21]line Место: АЗС № 128 "Партнер Нефть" [00:36:21]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:36:21]line СНО: Общий режим [00:36:21]line Чек 3 29.07.2024 00:36 [00:36:21]line Смена: 431 ФФД: 1.0 [00:36:21]line ЗНМ: 0300000045 [00:36:21]line РНМ: 0000000000092655 [00:36:21]line Версия ККМ: 001 [00:36:21]line Платежная система: Бакай Банк [00:36:21]line ФМ: 0000000000874941 [00:36:21]line ФД: 44768 [00:36:21]line ФПД: 131462337542608 [00:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003621&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44768&fm=131462337542608&tin=02508201610067®Number=0000000000092655&sum=22500 [00:36:21]line 0 [00:36:21]written 0, free lines is 4095 [00:36:21]OFD Sender: Processing packet 44768 [packets to send 7, broken 6] [00:36:21]ProducePacketName [00:36:21]name=ofd_packets/00044768 [00:36:21]OFD Sender: To server: pG, [00:36:21]CommunicateWithHost lk.salyk.kg:30040 [00:36:21]ConnectInit lk.salyk.kg [00:36:22]Connected sock=10 [00:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A3 01 00 00 D8 02 9B 01 E7 9D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 05 E4 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E0 AE 00 00 35 04 06 00 77 90 75 EE 39 D0 28 02 60 DD B4 0E FC 2A [00:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 FC 37 47 00 D8 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E0 AE 00 00 F4 03 04 00 16 90 A6 66 B6 04 01 00 00 88 73 AD EA D1 73 EA 7D [00:36:22]CommunicateWithHost err = 0 [00:36:22]CheckOFDResponse [00:36:22]1017 (14) - 77093643461234 [00:36:22]1041 (16) - 0000000000874941 [00:36:22]1040 (4) - 44768 [00:36:22]1012 (4) - 28.07.2024 18:38 [00:36:22]1206 (1) - 0 [00:36:22]OFD Sender: Remove packet 44768 [00:36:22]ProducePacketName [00:36:22]name=ofd_packets/00044768 [00:36:22]NVStorageDeleteData [00:36:22]Write to MH i2c: 01 00 00 CB 0B D6 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: 01 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: 01 07 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 32 0C 1B [00:36:22]RasterBufferAndPrint [00:36:22]line [00:36:22]line [00:36:22]line [00:36:22]line [00:36:22]line [00:36:22]written 0, free lines is 3130 [00:36:22]process_action close_receipt done [00:36:22]requested_data is exist [00:36:22]produce_requested_data [00:36:22]requested_item fm.sn is exist - process it [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 11 00 00 [00:36:22]Write to MH i2c: E2 08 00 D2 0B 80 11 00 00 00 00 00 00 57 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 17 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 17 00 D2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 AB [00:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:36:22]wFMCommunicate OK [00:36:22]requested_item fd.num is exist - process it [00:36:22]SAM_PROTO_GetFieldsCounters [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 13 00 00 [00:36:22]Write to MH i2c: E2 08 00 D3 0B 80 13 00 00 00 00 00 00 5A [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 62 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 62 00 D3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E0 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [00:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E0 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:22]wFMCommunicate OK [00:36:22]SAM_PROTO_GetFieldsCounters done [00:36:22]requested_item shift.num is exist - process it [00:36:22]requested_item shift.opened is exist - process it [00:36:22]req_shift_opened [00:36:22]FM_GetShiftState [00:36:22]SAM_PROTO_GetShiftState [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 13 01 00 [00:36:22]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 0E 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 65 [00:36:22]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:36:22]wFMCommunicate OK [00:36:22]SAM_PROTO_GetShiftState done [00:36:22]FM_GetShiftState done [00:36:22]req_shift_opened done [00:36:22]requested_item shift.open_date is exist - process it [00:36:22]req_shift_open_date [00:36:22]req_shift_open_date done [00:36:22]produce_requested_data done [00:36:22]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44768,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:36:22]process_action_free close_receipt [00:36:22]json_value_free [00:36:22]json_value_free done [00:36:22]process_json_proto returns [00:36:22]Send response to host [00:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44768,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:36:22]free response buf [00:36:22]execute_script done [00:36:22]execute_script returns [00:36:22]free content buf [00:36:22]Sock 7.Close socket [00:36:22]Sock 7.Thread stoped [00:36:22]OFD Sender: No OFD packet to send [00:36:25]int [00:36:25]Write to MH i2c: 01 00 00 D5 0B E0 [00:36:25]*** FLAG_PRN_KEY set [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 D5 0B 00 08 00 00 00 FF 0F FD [00:36:25]state=0 [00:36:25]Key pressed [00:36:25]Feed [00:36:25]Write to MH i2c: D8 00 00 D6 0B B8 [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: D8 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: D8 01 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: D8 01 00 D6 0B 00 B9 [00:36:25]int [00:36:25]Write to MH i2c: 01 00 00 D7 0B E2 [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 D7 0B 00 48 00 00 00 3C 00 6D [00:36:25]state=2 [00:36:25]Key pressed [00:36:25]int [00:36:25]Write to MH i2c: 01 00 00 D8 0B E3 [00:36:25]*** FLAG_PRN_KEY reset [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 FF 0F F8 [00:36:25]state=2 [00:36:25]Stop feed [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:14]accept exits with 9 [00:41:14]New connection [00:41:14]New thread 3066482020 created [00:41:14]Thread 3066625380 joined [00:41:14]Waiting for new connection... [00:41:14] Sock 9.Parse request [00:41:14]Sock 9.Check first char [00:41:14]Sock 9.First char is OK [00:41:14]request: POST /json_proto HTTP/1.0 [00:41:14]Method: POST [00:41:14]URL: /json_proto [00:41:14]Method is POST - this is cgi request [00:41:14]url: /json_proto [00:41:14]query_string will be loaded in cgi processing [00:41:14]execute_cgi json_proto POST (null) [00:41:14]execute_cgi path=json_proto method=POST [00:41:14]POST find Content-Length [00:41:14]Host: 172.17.45.196:8080 [00:41:14]Content-Length: 645 [00:41:14]Content-Type: application/json [00:41:14] [00:41:14]POST finish read [00:41:14]Found Content-Length = 645 [00:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14660", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:14]execute_script... [00:41:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14660", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:14]POST & json_proto [00:41:14]process_json_proto [00:41:14]json parsed OK: [00:41:14]protocol is kg_v1.0 [00:41:14]action value=close_receipt [00:41:14]process_action close_receipt [00:41:14]cmd_close_receipt [00:41:14]MH_GetDate [00:41:14]Write to MH i2c: F0 00 00 D9 0B D3 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 09 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: F0 09 00 D9 0B 00 2C E5 A6 66 BB 03 A5 66 C2 [00:41:14]GetLastDocTimeStamp 1722213381 [00:41:14]current date 1722213676 [00:41:14]FM_GetShiftState [00:41:14]SAM_PROTO_GetShiftState [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 13 01 00 [00:41:14]Write to MH i2c: E2 08 00 DA 0B 80 13 01 00 00 00 00 00 62 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0E 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0E 00 DA 0B 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 6B [00:41:14]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_GetShiftState done [00:41:14]FM_GetShiftState done [00:41:14]opened in 1722212369 [00:41:14]opened+sec_in_day 1722298769 [00:41:14]quantity*price = 20000 [00:41:14]sum+1 = 20001 [00:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 4 29.07.2024 00:41 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44769 ФПД: 240764289693386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004116&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44769&fm=240764289693386&tin=02508201610067®Number=0000000000092655&sum=20000 0 [00:41:15]StoreToDocumentArchive [00:41:15]shift 431 fd 44769 [00:41:15]save to /storage/0431/doc_00044769 [00:41:15]save last doc name /storage/0431/doc_00044769 to /storage/kkm_last_doc_name [00:41:15]save OK [00:41:15]Clear old archive folders... [00:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [00:41:15]tlvbuf is 017B7DC0 [00:41:15]SAM_PROTO_ClearQueue [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 09 00 00 [00:41:15]Write to MH i2c: E2 08 00 E7 0B 80 09 00 00 00 00 00 00 64 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 [00:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]SAM_PROTO_ClearQueue done [00:41:15]KKMCreateOFDPacket [00:41:15]OFDProtocolAddRootSTLVToBuf [00:41:15]FM_MakeSignedData [00:41:15]FM_MakeSignedData [00:41:15]SAM_PROTO_SignData [00:41:15]wFMCommunicate request_size=4 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 01 02 [00:41:15]Write to MH i2c: E2 08 00 E8 0B 80 0D 01 02 00 00 00 00 6C [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]wFMCommunicate request_size=255 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2C E5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [00:41:15]Write to MH i2c: E2 02 01 E9 0B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2C E5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 A1 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:15]Read from MH i2c: E2 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [00:41:15]RAPDU: 90 00 [00:41:15]wFMCommunicate OK [00:41:15]wFMCommunicate request_size=34 [00:41:15]MH_SAM_APDU [00:41:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E1 AE 00 00 35 04 06 00 DA F9 4D F6 36 CA [00:41:15]Write to MH i2c: E2 25 00 EA 0B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E1 AE 00 00 35 04 06 00 DA F9 4D F6 36 CA 00 00 D6 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 03 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [00:41:16]RAPDU: 90 00 [00:41:16]wFMCommunicate OK [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 0D 03 02 [00:41:16]Write to MH i2c: E2 08 00 EB 0B 80 0D 03 02 00 00 00 00 71 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 0B 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 0B 00 EB 0B 00 80 8B 4A AD 48 23 C1 2E 90 00 CE [00:41:16]RAPDU: 80 8B 4A AD 48 23 C1 2E 90 00 [00:41:16]wFMCommunicate OK [00:41:16]SAM_PROTO_SignData done [00:41:16]FM_MakeSignedData done [00:41:16]CreateOFDProtocolMessage [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 11 00 00 [00:41:16]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 C5 [00:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:41:16]wFMCommunicate OK [00:41:16]CreateOFDProtocolMessage done [00:41:16]OFDSenderStorePacket 44769 [00:41:16]StoreOFDPacket docnum=44769 [00:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 3B 95 1F 01 86 B5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2C E5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E1 AE 00 00 35 04 06 00 DA F9 4D F6 36 CA 80 8B 4A AD 48 23 C1 2E [00:41:16]CheckFolder [00:41:16]dirname=/storage/ofd_packets [00:41:16]CheckFolder done [00:41:16]ProducePacketName [00:41:16]name=ofd_packets/00044769 [00:41:16]NVStorageSaveData ofd_packets/00044769 [00:41:16]File name is /storage/ofd_packets/00044769 [00:41:16]Write 325 bytes [00:41:16]NVStorageSaveData done [00:41:16]OFDSenderStorePacket done [00:41:16]KKMCreateOFDPacket done [00:41:16]NVStorageSaveData kkm_last_timestamp [00:41:16]File name is /storage/kkm_last_timestamp [00:41:16]Write 4 bytes [00:41:16]NVStorageSaveData done [00:41:16]ExternCall_PrintAddStr [00:41:16]wPrintStart [00:41:16]Write to MH i2c: 01 00 00 ED 0B F8 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 FF 0F 0D [00:41:16]RasterBufferAndPrint [00:41:16]line Счет N : (3)14660 [00:41:16]line ИНН: 02508201610067 [00:41:16]line Контрольно-Кассовый Чек [00:41:16]line ПРОДАЖА [00:41:16]line Товар: 5449000005489 [00:41:16]line Вода Бонаква 1л б/г [00:41:16]line 4.000 * 50.00 [00:41:16]line = 200.00 [00:41:16]line НДС 12% НСП 1% [00:41:16]line > о реализуемом товаре [00:41:16]line ИТОГО: 200.00 [00:41:16]line НСП 1% : 1.77 [00:41:16]line НДС 12% : 21.24 [00:41:16]line Наличными: 200.00 [00:41:16]line Безнал.: 0.00 [00:41:16]line Место: АЗС № 128 "Партнер Нефть" [00:41:16]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:41:16]line СНО: Общий режим [00:41:16]line Чек 4 29.07.2024 00:41 [00:41:16]line Смена: 431 ФФД: 1.0 [00:41:16]line ЗНМ: 0300000045 [00:41:16]line РНМ: 0000000000092655 [00:41:16]line Версия ККМ: 001 [00:41:16]line ФМ: 0000000000874941 [00:41:16]line ФД: 44769 [00:41:16]line ФПД: 240764289693386 [00:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004116&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44769&fm=240764289693386&tin=02508201610067®Number=0000000000092655&sum=20000 [00:41:16]line 0 [00:41:16]OFD Sender: Processing packet 44769 [packets to send 7, broken 6] [00:41:16]ProducePacketName [00:41:16]name=ofd_packets/00044769 [00:41:16]OFD Sender: To server: pG, [00:41:16]CommunicateWithHost lk.salyk.kg:30040 [00:41:16]ConnectInit lk.salyk.kg [00:41:16]written 0, free lines is 4095 [00:41:16]Connected sock=10 [00:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 3B 95 1F 01 86 B5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 2C E5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E1 AE 00 00 35 04 06 00 DA F9 4D F6 36 CA 80 8B 4A AD 48 23 C1 2E [00:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 7D 70 47 00 9A 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E1 AE 00 00 F4 03 04 00 3D 91 A6 66 B6 04 01 00 00 24 E7 86 D1 06 FF 40 7A [00:41:16]CommunicateWithHost err = 0 [00:41:16]CheckOFDResponse [00:41:16]1017 (14) - 77093643461234 [00:41:16]1041 (16) - 0000000000874941 [00:41:16]1040 (4) - 44769 [00:41:16]1012 (4) - 28.07.2024 18:43 [00:41:16]1206 (1) - 0 [00:41:16]OFD Sender: Remove packet 44769 [00:41:16]ProducePacketName [00:41:16]name=ofd_packets/00044769 [00:41:16]NVStorageDeleteData [00:41:16]Write to MH i2c: 01 00 00 15 0C 21 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 F1 0C 25 [00:41:16]RasterBufferAndPrint [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]line [00:41:16]written 0, free lines is 3319 [00:41:16]process_action close_receipt done [00:41:16]requested_data is exist [00:41:16]produce_requested_data [00:41:16]requested_item fm.sn is exist - process it [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 11 00 00 [00:41:16]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F6 [00:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:41:17]wFMCommunicate OK [00:41:17]requested_item fd.num is exist - process it [00:41:17]SAM_PROTO_GetFieldsCounters [00:41:17]wFMCommunicate request_size=4 [00:41:17]MH_SAM_APDU [00:41:17]CAPDU: 80 13 00 00 [00:41:17]Write to MH i2c: E2 08 00 1D 0C 80 13 00 00 00 00 00 00 A5 [00:41:17]Write i2c OK [00:41:17]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 62 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 62 00 1D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E1 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [00:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E1 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:17]wFMCommunicate OK [00:41:17]SAM_PROTO_GetFieldsCounters done [00:41:17]requested_item shift.num is exist - process it [00:41:17]requested_item shift.opened is exist - process it [00:41:17]req_shift_opened [00:41:17]FM_GetShiftState [00:41:17]SAM_PROTO_GetShiftState [00:41:17]wFMCommunicate request_size=4 [00:41:17]MH_SAM_APDU [00:41:17]CAPDU: 80 13 01 00 [00:41:17]Write to MH i2c: E2 08 00 1E 0C 80 13 01 00 00 00 00 00 A7 [00:41:17]Write i2c OK [00:41:17]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 0E 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 0E 00 1E 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 B0 [00:41:17]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:41:17]wFMCommunicate OK [00:41:17]SAM_PROTO_GetShiftState done [00:41:17]FM_GetShiftState done [00:41:17]req_shift_opened done [00:41:17]requested_item shift.open_date is exist - process it [00:41:17]req_shift_open_date [00:41:17]req_shift_open_date done [00:41:17]produce_requested_data done [00:41:17]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44769,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:41:17]process_action_free close_receipt [00:41:17]json_value_free [00:41:17]json_value_free done [00:41:17]process_json_proto returns [00:41:17]Send response to host [00:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44769,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:41:17]free response buf [00:41:17]execute_script done [00:41:17]execute_script returns [00:41:17]free content buf [00:41:17]Sock 9.Close socket [00:41:17]Sock 9.Thread stoped [00:41:17]OFD Sender: No OFD packet to send [00:41:18]int [00:41:18]Write to MH i2c: 01 00 00 1F 0C 2B [00:41:18]*** FLAG_PRN_KEY set [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 1F 0C 00 08 00 00 00 FF 0F 48 [00:41:18]state=0 [00:41:18]Key pressed [00:41:18]Feed [00:41:18]Write to MH i2c: D8 00 00 20 0C 03 [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: D8 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: D8 01 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: D8 01 00 20 0C 00 04 [00:41:18]int [00:41:18]Write to MH i2c: 01 00 00 21 0C 2D [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 21 0C 00 48 00 00 00 3C 00 B8 [00:41:18]state=2 [00:41:18]Key pressed [00:41:18]int [00:41:18]Write to MH i2c: 01 00 00 22 0C 2E [00:41:18]*** FLAG_PRN_KEY reset [00:41:18]Write i2c OK [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 [00:41:18]MH_I2C_Read... [00:41:18]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 FF 0F 43 [00:41:18]state=2 [00:41:18]Stop feed [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]accept exits with 7 [00:53:17]New connection [00:53:17]New thread 3066625380 created [00:53:17]Thread 3066482020 joined [00:53:17]Waiting for new connection... [00:53:17] Sock 7.Parse request [00:53:17]Sock 7.Check first char [00:53:17]Sock 7.First char is OK [00:53:17]request: POST /json_proto HTTP/1.0 [00:53:17]Method: POST [00:53:17]URL: /json_proto [00:53:17]Method is POST - this is cgi request [00:53:17]url: /json_proto [00:53:17]query_string will be loaded in cgi processing [00:53:17]execute_cgi json_proto POST (null) [00:53:17]execute_cgi path=json_proto method=POST [00:53:17]POST find Content-Length [00:53:17]Host: 172.17.45.196:8080 [00:53:17]Content-Length: 961 [00:53:17]Content-Type: application/json [00:53:17] [00:53:17]POST finish read [00:53:17]Found Content-Length = 961 [00:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14661", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:17]execute_script... [00:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14661", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:17]POST & json_proto [00:53:17]process_json_proto [00:53:17]json parsed OK: [00:53:17]protocol is kg_v1.0 [00:53:17]action value=close_receipt [00:53:17]process_action close_receipt [00:53:17]cmd_close_receipt [00:53:17]MH_GetDate [00:53:17]Write to MH i2c: F0 00 00 23 0C 1E [00:53:17]Write i2c OK [00:53:17]MH_I2C_Read... [00:53:17]Read from MH i2c: F0 [00:53:17]MH_I2C_Read... [00:53:17]Read from MH i2c: F0 09 00 [00:53:17]MH_I2C_Read... [00:53:17]Read from MH i2c: F0 09 00 23 0C 00 FF E7 A6 66 BB 03 A5 66 E2 [00:53:17]GetLastDocTimeStamp 1722213676 [00:53:17]current date 1722214399 [00:53:17]FM_GetShiftState [00:53:17]SAM_PROTO_GetShiftState [00:53:17]wFMCommunicate request_size=4 [00:53:17]MH_SAM_APDU [00:53:17]CAPDU: 80 13 01 00 [00:53:17]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [00:53:17]Write i2c OK [00:53:17]MH_I2C_Read... [00:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:17]Read from MH i2c: E2 [00:53:17]MH_I2C_Read... [00:53:17]Read from MH i2c: E2 0E 00 [00:53:17]MH_I2C_Read... [00:53:17]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 B6 [00:53:17]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:53:17]wFMCommunicate OK [00:53:17]SAM_PROTO_GetShiftState done [00:53:17]FM_GetShiftState done [00:53:17]opened in 1722212369 [00:53:17]opened+sec_in_day 1722298769 [00:53:17]quantity*price = 6500 [00:53:17]sum+1 = 6501 [00:53:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.07 НДС 12% : 24.95 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 5 29.07.2024 00:53 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44770 ФПД: 2672724250004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005319&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44770&fm=2672724250004&tin=02508201610067®Number=0000000000092655&sum=23500 0 [00:53:18]StoreToDocumentArchive [00:53:18]shift 431 fd 44770 [00:53:18]save to /storage/0431/doc_00044770 [00:53:18]save last doc name /storage/0431/doc_00044770 to /storage/kkm_last_doc_name [00:53:18]save OK [00:53:18]Clear old archive folders... [00:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=398 [00:53:18]tlvbuf is B6E71C80 [00:53:18]SAM_PROTO_ClearQueue [00:53:18]wFMCommunicate request_size=4 [00:53:18]MH_SAM_APDU [00:53:18]CAPDU: 80 09 00 00 [00:53:18]Write to MH i2c: E2 08 00 31 0C 80 09 00 00 00 00 00 00 AF [00:53:18]Write i2c OK [00:53:18]MH_I2C_Read... [00:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:18]Read from MH i2c: E2 [00:53:18]MH_I2C_Read... [00:53:18]Read from MH i2c: E2 03 00 [00:53:18]MH_I2C_Read... [00:53:18]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [00:53:18]RAPDU: 90 00 [00:53:18]wFMCommunicate OK [00:53:18]SAM_PROTO_ClearQueue done [00:53:18]KKMCreateOFDPacket [00:53:18]OFDProtocolAddRootSTLVToBuf [00:53:18]FM_MakeSignedData [00:53:18]FM_MakeSignedData [00:53:18]SAM_PROTO_SignData [00:53:18]wFMCommunicate request_size=4 [00:53:18]MH_SAM_APDU [00:53:18]CAPDU: 80 0D 01 02 [00:53:18]Write to MH i2c: E2 08 00 32 0C 80 0D 01 02 00 00 00 00 B7 [00:53:18]Write i2c OK [00:53:18]MH_I2C_Read... [00:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:18]Read from MH i2c: E2 [00:53:18]MH_I2C_Read... [00:53:18]Read from MH i2c: E2 03 00 [00:53:18]MH_I2C_Read... [00:53:18]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [00:53:18]RAPDU: 90 00 [00:53:18]wFMCommunicate OK [00:53:18]wFMCommunicate request_size=255 [00:53:18]MH_SAM_APDU [00:53:18]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 [00:53:19]Write to MH i2c: E2 02 01 33 0C 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 00 26 [00:53:19]Write i2c OK [00:53:19]MH_I2C_Read... [00:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:19]Read from MH i2c: E2 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 03 00 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [00:53:19]RAPDU: 90 00 [00:53:19]wFMCommunicate OK [00:53:19]wFMCommunicate request_size=157 [00:53:19]MH_SAM_APDU [00:53:19]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF E7 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E2 AE 00 00 35 04 06 00 02 6E 4A C7 8D 94 [00:53:19]Write to MH i2c: E2 A0 00 34 0C 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF E7 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E2 AE 00 00 35 04 06 00 02 6E 4A C7 8D 94 00 00 AD [00:53:19]Write i2c OK [00:53:19]MH_I2C_Read... [00:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:19]Read from MH i2c: E2 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 03 00 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [00:53:19]RAPDU: 90 00 [00:53:19]wFMCommunicate OK [00:53:19]wFMCommunicate request_size=4 [00:53:19]MH_SAM_APDU [00:53:19]CAPDU: 80 0D 03 02 [00:53:19]Write to MH i2c: E2 08 00 35 0C 80 0D 03 02 00 00 00 00 BC [00:53:19]Write i2c OK [00:53:19]MH_I2C_Read... [00:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:19]Read from MH i2c: E2 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 0B 00 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 0B 00 35 0C 00 AC 3F F4 80 A8 9D 9C BB 90 00 B8 [00:53:19]RAPDU: AC 3F F4 80 A8 9D 9C BB 90 00 [00:53:19]wFMCommunicate OK [00:53:19]SAM_PROTO_SignData done [00:53:19]FM_MakeSignedData done [00:53:19]CreateOFDProtocolMessage [00:53:19]wFMCommunicate request_size=4 [00:53:19]MH_SAM_APDU [00:53:19]CAPDU: 80 11 00 00 [00:53:19]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [00:53:19]Write i2c OK [00:53:19]MH_I2C_Read... [00:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:19]Read from MH i2c: E2 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 17 00 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 10 [00:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:53:19]wFMCommunicate OK [00:53:19]CreateOFDProtocolMessage done [00:53:19]OFDSenderStorePacket 44770 [00:53:19]StoreOFDPacket docnum=44770 [00:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A2 01 00 00 79 3D 9A 01 F7 B4 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF E7 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E2 AE 00 00 35 04 06 00 02 6E 4A C7 8D 94 AC 3F F4 80 A8 9D 9C BB [00:53:19]CheckFolder [00:53:19]dirname=/storage/ofd_packets [00:53:19]CheckFolder done [00:53:19]ProducePacketName [00:53:19]name=ofd_packets/00044770 [00:53:19]NVStorageSaveData ofd_packets/00044770 [00:53:19]File name is /storage/ofd_packets/00044770 [00:53:19]Write 448 bytes [00:53:19]NVStorageSaveData done [00:53:19]OFDSenderStorePacket done [00:53:19]KKMCreateOFDPacket done [00:53:19]NVStorageSaveData kkm_last_timestamp [00:53:19]File name is /storage/kkm_last_timestamp [00:53:19]Write 4 bytes [00:53:19]NVStorageSaveData done [00:53:19]ExternCall_PrintAddStr [00:53:19]wPrintStart [00:53:19]Write to MH i2c: 01 00 00 37 0C 43 [00:53:19]OFD Sender: Processing packet 44770 [packets to send 7, broken 6] [00:53:19]ProducePacketName [00:53:19]name=ofd_packets/00044770 [00:53:19]OFD Sender: To server: pG, [00:53:19]CommunicateWithHost lk.salyk.kg:30040 [00:53:19]ConnectInit lk.salyk.kg [00:53:19]Write i2c OK [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: 01 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: 01 07 00 [00:53:19]MH_I2C_Read... [00:53:19]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [00:53:19]RasterBufferAndPrint [00:53:19]line Счет N : (3)14661 [00:53:19]line ИНН: 02508201610067 [00:53:19]line Контрольно-Кассовый Чек [00:53:19]line ПРОДАЖА [00:53:19]line Товар: 4700040114120 [00:53:19]line Султан чай 1л. чер персик [00:53:19]line 1.000 * 65.00 [00:53:19]line = 65.00 [00:53:19]line НДС 12% НСП 1% [00:53:19]line > о реализуемом товаре [00:53:19]line Товар: 4700000480357 [00:53:19]line Пиво шахтерское 1л ПЭТ [00:53:19]line 1.000 * 170.00 [00:53:19]line = 170.00 [00:53:19]line НДС 12% НСП 1% [00:53:19]line > о реализуемом товаре [00:53:19]line ИТОГО: 235.00 [00:53:19]line НСП 1% : 2.07 [00:53:19]line НДС 12% : 24.95 [00:53:19]line Наличными: 235.00 [00:53:19]line Безнал.: 0.00 [00:53:19]line Место: АЗС № 128 "Партнер Нефть" [00:53:19]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:53:19]line СНО: Общий режим [00:53:19]line Чек 5 29.07.2024 00:53 [00:53:19]line Смена: 431 ФФД: 1.0 [00:53:19]line ЗНМ: 0300000045 [00:53:19]line РНМ: 0000000000092655 [00:53:19]line Версия ККМ: 001 [00:53:19]line ФМ: 0000000000874941 [00:53:19]line ФД: 44770 [00:53:19]line ФПД: 2672724250004 [00:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005319&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44770&fm=2672724250004&tin=02508201610067®Number=0000000000092655&sum=23500 [00:53:19]line 0 [00:53:19]written 0, free lines is 4095 [00:53:19]Connected sock=10 [00:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 A2 01 00 00 79 3D 9A 01 F7 B4 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF E7 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E2 AE 00 00 35 04 06 00 02 6E 4A C7 8D 94 AC 3F F4 80 A8 9D 9C BB [00:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 AE B7 47 00 9A 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E2 AE 00 00 F4 03 04 00 10 94 A6 66 B6 04 01 00 00 1E 92 C9 EB B6 97 69 3C [00:53:20]CommunicateWithHost err = 0 [00:53:20]CheckOFDResponse [00:53:20]1017 (14) - 77093643461234 [00:53:20]1041 (16) - 0000000000874941 [00:53:20]1040 (4) - 44770 [00:53:20]1012 (4) - 28.07.2024 18:55 [00:53:20]1206 (1) - 0 [00:53:20]OFD Sender: Remove packet 44770 [00:53:20]ProducePacketName [00:53:20]name=ofd_packets/00044770 [00:53:20]NVStorageDeleteData [00:53:20]Write to MH i2c: 01 00 00 65 0C 71 [00:53:20]Write i2c OK [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: 01 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: 01 07 00 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: 01 07 00 65 0C 00 00 00 00 00 7E 0C 02 [00:53:20]RasterBufferAndPrint [00:53:20]line [00:53:20]line [00:53:20]line [00:53:20]line [00:53:20]line [00:53:20]written 0, free lines is 3204 [00:53:20]process_action close_receipt done [00:53:20]requested_data is exist [00:53:20]produce_requested_data [00:53:20]requested_item fm.sn is exist - process it [00:53:20]wFMCommunicate request_size=4 [00:53:20]MH_SAM_APDU [00:53:20]CAPDU: 80 11 00 00 [00:53:20]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [00:53:20]Write i2c OK [00:53:20]MH_I2C_Read... [00:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:20]Read from MH i2c: E2 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 17 00 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 46 [00:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:53:20]wFMCommunicate OK [00:53:20]requested_item fd.num is exist - process it [00:53:20]SAM_PROTO_GetFieldsCounters [00:53:20]wFMCommunicate request_size=4 [00:53:20]MH_SAM_APDU [00:53:20]CAPDU: 80 13 00 00 [00:53:20]Write to MH i2c: E2 08 00 6D 0C 80 13 00 00 00 00 00 00 F5 [00:53:20]Write i2c OK [00:53:20]MH_I2C_Read... [00:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:20]Read from MH i2c: E2 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 62 00 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 62 00 6D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E2 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [00:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E2 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:53:20]wFMCommunicate OK [00:53:20]SAM_PROTO_GetFieldsCounters done [00:53:20]requested_item shift.num is exist - process it [00:53:20]requested_item shift.opened is exist - process it [00:53:20]req_shift_opened [00:53:20]FM_GetShiftState [00:53:20]SAM_PROTO_GetShiftState [00:53:20]wFMCommunicate request_size=4 [00:53:20]MH_SAM_APDU [00:53:20]CAPDU: 80 13 01 00 [00:53:20]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [00:53:20]Write i2c OK [00:53:20]MH_I2C_Read... [00:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:20]Read from MH i2c: E2 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 0E 00 [00:53:20]MH_I2C_Read... [00:53:20]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 00 [00:53:20]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:53:20]wFMCommunicate OK [00:53:20]SAM_PROTO_GetShiftState done [00:53:20]FM_GetShiftState done [00:53:20]req_shift_opened done [00:53:20]requested_item shift.open_date is exist - process it [00:53:20]req_shift_open_date [00:53:20]req_shift_open_date done [00:53:20]produce_requested_data done [00:53:20]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44770,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:53:20]process_action_free close_receipt [00:53:20]json_value_free [00:53:20]json_value_free done [00:53:20]process_json_proto returns [00:53:20]Send response to host [00:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44770,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:53:20]free response buf [00:53:20]execute_script done [00:53:20]execute_script returns [00:53:20]free content buf [00:53:20]Sock 7.Close socket [00:53:20]Sock 7.Thread stoped [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]accept exits with 9 [00:54:40]New connection [00:54:40]New thread 3066482020 created [00:54:40]Thread 3066625380 joined [00:54:40]Waiting for new connection... [00:54:40] Sock 9.Parse request [00:54:40]Sock 9.Check first char [00:54:40]Sock 9.First char is OK [00:54:40]request: POST /json_proto HTTP/1.0 [00:54:40]Method: POST [00:54:40]URL: /json_proto [00:54:40]Method is POST - this is cgi request [00:54:40]url: /json_proto [00:54:40]query_string will be loaded in cgi processing [00:54:40]execute_cgi json_proto POST (null) [00:54:40]execute_cgi path=json_proto method=POST [00:54:40]POST find Content-Length [00:54:40]Host: 172.17.45.196:8080 [00:54:40]Content-Length: 1062 [00:54:40]Content-Type: application/json [00:54:40] [00:54:40]POST finish read [00:54:40]Found Content-Length = 1062 [00:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14662", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:40]execute_script... [00:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14662", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:40]POST & json_proto [00:54:40]process_json_proto [00:54:40]json parsed OK: [00:54:40]protocol is kg_v1.0 [00:54:40]action value=close_receipt [00:54:40]process_action close_receipt [00:54:40]cmd_close_receipt [00:54:40]MH_GetDate [00:54:40]Write to MH i2c: F0 00 00 6F 0C 6A [00:54:40]Write i2c OK [00:54:40]MH_I2C_Read... [00:54:40]Read from MH i2c: F0 [00:54:40]MH_I2C_Read... [00:54:40]Read from MH i2c: F0 09 00 [00:54:40]MH_I2C_Read... [00:54:40]Read from MH i2c: F0 09 00 6F 0C 00 52 E8 A6 66 BB 03 A5 66 82 [00:54:40]GetLastDocTimeStamp 1722214399 [00:54:40]current date 1722214482 [00:54:40]FM_GetShiftState [00:54:40]SAM_PROTO_GetShiftState [00:54:40]wFMCommunicate request_size=4 [00:54:40]MH_SAM_APDU [00:54:40]CAPDU: 80 13 01 00 [00:54:40]Write to MH i2c: E2 08 00 70 0C 80 13 01 00 00 00 00 00 F9 [00:54:40]Write i2c OK [00:54:40]MH_I2C_Read... [00:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:40]Read from MH i2c: E2 [00:54:40]MH_I2C_Read... [00:54:40]Read from MH i2c: E2 0E 00 [00:54:40]MH_I2C_Read... [00:54:40]Read from MH i2c: E2 0E 00 70 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 02 [00:54:40]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:54:40]wFMCommunicate OK [00:54:40]SAM_PROTO_GetShiftState done [00:54:40]FM_GetShiftState done [00:54:40]opened in 1722212369 [00:54:40]opened+sec_in_day 1722298769 [00:54:40]quantity*price = 26500 [00:54:40]sum+1 = 26501 [00:54:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 0.00 Безнал.: 405.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 6 29.07.2024 00:54 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874941 ФД: 44771 ФПД: 183686873311133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005442&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44771&fm=183686873311133&tin=02508201610067®Number=0000000000092655&sum=40500 0 [00:54:41]StoreToDocumentArchive [00:54:41]shift 431 fd 44771 [00:54:41]save to /storage/0431/doc_00044771 [00:54:41]save last doc name /storage/0431/doc_00044771 to /storage/kkm_last_doc_name [00:54:41]save OK [00:54:41]Clear old archive folders... [00:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=384 [00:54:41]tlvbuf is 01813020 [00:54:41]SAM_PROTO_ClearQueue [00:54:41]wFMCommunicate request_size=4 [00:54:41]MH_SAM_APDU [00:54:41]CAPDU: 80 09 00 00 [00:54:41]Write to MH i2c: E2 08 00 7D 0C 80 09 00 00 00 00 00 00 FB [00:54:41]Write i2c OK [00:54:41]MH_I2C_Read... [00:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:41]Read from MH i2c: E2 [00:54:41]MH_I2C_Read... [00:54:41]Read from MH i2c: E2 03 00 [00:54:41]MH_I2C_Read... [00:54:41]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [00:54:41]RAPDU: 90 00 [00:54:41]wFMCommunicate OK [00:54:41]SAM_PROTO_ClearQueue done [00:54:41]KKMCreateOFDPacket [00:54:41]OFDProtocolAddRootSTLVToBuf [00:54:41]FM_MakeSignedData [00:54:41]FM_MakeSignedData [00:54:41]SAM_PROTO_SignData [00:54:41]wFMCommunicate request_size=4 [00:54:41]MH_SAM_APDU [00:54:41]CAPDU: 80 0D 01 02 [00:54:41]Write to MH i2c: E2 08 00 7E 0C 80 0D 01 02 00 00 00 00 03 [00:54:41]Write i2c OK [00:54:41]MH_I2C_Read... [00:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:41]Read from MH i2c: E2 [00:54:41]MH_I2C_Read... [00:54:41]Read from MH i2c: E2 03 00 [00:54:41]MH_I2C_Read... [00:54:41]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [00:54:41]RAPDU: 90 00 [00:54:41]wFMCommunicate OK [00:54:41]wFMCommunicate request_size=255 [00:54:41]MH_SAM_APDU [00:54:41]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [00:54:41]Write to MH i2c: E2 02 01 7F 0C 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 86 [00:54:41]Write i2c OK [00:54:41]MH_I2C_Read... [00:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:42]Read from MH i2c: E2 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 03 00 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [00:54:42]RAPDU: 90 00 [00:54:42]wFMCommunicate OK [00:54:42]wFMCommunicate request_size=143 [00:54:42]MH_SAM_APDU [00:54:42]CAPDU: 80 0D 02 02 8A 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 52 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E3 AE 00 00 35 04 06 00 A7 0F EE D5 67 9D [00:54:42]Write to MH i2c: E2 92 00 80 0C 80 0D 02 02 8A 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 52 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E3 AE 00 00 35 04 06 00 A7 0F EE D5 67 9D 00 00 6A [00:54:42]Write i2c OK [00:54:42]MH_I2C_Read... [00:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:42]Read from MH i2c: E2 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 03 00 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [00:54:42]RAPDU: 90 00 [00:54:42]wFMCommunicate OK [00:54:42]wFMCommunicate request_size=4 [00:54:42]MH_SAM_APDU [00:54:42]CAPDU: 80 0D 03 02 [00:54:42]Write to MH i2c: E2 08 00 81 0C 80 0D 03 02 00 00 00 00 08 [00:54:42]Write i2c OK [00:54:42]MH_I2C_Read... [00:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:42]Read from MH i2c: E2 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 0B 00 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 0B 00 81 0C 00 80 F7 7C BD 11 A0 E1 76 90 00 C1 [00:54:42]RAPDU: 80 F7 7C BD 11 A0 E1 76 90 00 [00:54:42]wFMCommunicate OK [00:54:42]SAM_PROTO_SignData done [00:54:42]FM_MakeSignedData done [00:54:42]CreateOFDProtocolMessage [00:54:42]wFMCommunicate request_size=4 [00:54:42]MH_SAM_APDU [00:54:42]CAPDU: 80 11 00 00 [00:54:42]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [00:54:42]Write i2c OK [00:54:42]MH_I2C_Read... [00:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:42]Read from MH i2c: E2 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 17 00 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5C [00:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:54:42]wFMCommunicate OK [00:54:42]CreateOFDProtocolMessage done [00:54:42]OFDSenderStorePacket 44771 [00:54:42]StoreOFDPacket docnum=44771 [00:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 94 01 00 00 7A 92 8C 01 6E 4D 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 52 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E3 AE 00 00 35 04 06 00 A7 0F EE D5 67 9D 80 F7 7C BD 11 A0 E1 76 [00:54:42]CheckFolder [00:54:42]dirname=/storage/ofd_packets [00:54:42]CheckFolder done [00:54:42]ProducePacketName [00:54:42]name=ofd_packets/00044771 [00:54:42]NVStorageSaveData ofd_packets/00044771 [00:54:42]File name is /storage/ofd_packets/00044771 [00:54:42]Write 434 bytes [00:54:42]NVStorageSaveData done [00:54:42]OFDSenderStorePacket done [00:54:42]KKMCreateOFDPacket done [00:54:42]NVStorageSaveData kkm_last_timestamp [00:54:42]File name is /storage/kkm_last_timestamp [00:54:42]Write 4 bytes [00:54:42]NVStorageSaveData done [00:54:42]ExternCall_PrintAddStr [00:54:42]wPrintStart [00:54:42]Write to MH i2c: 01 00 00 83 0C 8F [00:54:42]OFD Sender: Processing packet 44771 [packets to send 7, broken 6] [00:54:42]ProducePacketName [00:54:42]name=ofd_packets/00044771 [00:54:42]OFD Sender: To server: pG, [00:54:42]CommunicateWithHost lk.salyk.kg:30040 [00:54:42]Write i2c OK [00:54:42]MH_I2C_Read... [00:54:42]ConnectInit lk.salyk.kg [00:54:42]Read from MH i2c: 01 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: 01 07 00 [00:54:42]MH_I2C_Read... [00:54:42]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 FF 0F A4 [00:54:42]RasterBufferAndPrint [00:54:42]line Счет N : (3)14662 [00:54:42]line ИНН: 02508201610067 [00:54:42]line Контрольно-Кассовый Чек [00:54:42]line ПРОДАЖА [00:54:42]line Товар: 90448300 [00:54:42]line Энерг напиток Red Bull 0,355л [00:54:42]line 1.000 * 265.00 [00:54:42]line = 265.00 [00:54:42]line НДС 12% НСП 1% [00:54:42]line > о реализуемом товаре [00:54:42]line Товар: 48743587 [00:54:42]line Сигареты Winston XStyle Silver [00:54:42]line 1.000 * 140.00 [00:54:42]line = 140.00 [00:54:42]line НДС 12% НСП 1% [00:54:42]line > о реализуемом товаре [00:54:42]line ИТОГО: 405.00 [00:54:42]line НСП 1% : 3.58 [00:54:42]line НДС 12% : 43.01 [00:54:42]line Наличными: 0.00 [00:54:42]line Безнал.: 405.00 [00:54:42]line Место: АЗС № 128 "Партнер Нефть" [00:54:42]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:54:42]line СНО: Общий режим [00:54:42]line Чек 6 29.07.2024 00:54 [00:54:42]line Смена: 431 ФФД: 1.0 [00:54:42]line ЗНМ: 0300000045 [00:54:42]line РНМ: 0000000000092655 [00:54:42]line Версия ККМ: 001 [00:54:42]line Платежная система: Бакай Банк [00:54:42]line ФМ: 0000000000874941 [00:54:42]line ФД: 44771 [00:54:42]line ФПД: 183686873311133 [00:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005442&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44771&fm=183686873311133&tin=02508201610067®Number=0000000000092655&sum=40500 [00:54:42]line 0 [00:54:42]written 0, free lines is 4095 [00:54:42]Connected sock=11 [00:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 94 01 00 00 7A 92 8C 01 6E 4D 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 52 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E3 AE 00 00 35 04 06 00 A7 0F EE D5 67 9D 80 F7 7C BD 11 A0 E1 76 [00:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 30 51 47 00 02 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E3 AE 00 00 F4 03 04 00 63 94 A6 66 B6 04 01 00 00 17 4D AF C6 68 74 CE F5 [00:54:43]CommunicateWithHost err = 0 [00:54:43]CheckOFDResponse [00:54:43]1017 (14) - 77093643461234 [00:54:43]1041 (16) - 0000000000874941 [00:54:43]1040 (4) - 44771 [00:54:43]1012 (4) - 28.07.2024 18:56 [00:54:43]1206 (1) - 0 [00:54:43]OFD Sender: Remove packet 44771 [00:54:43]ProducePacketName [00:54:43]name=ofd_packets/00044771 [00:54:43]NVStorageDeleteData [00:54:43]Write to MH i2c: 01 00 00 B4 0C C0 [00:54:43]Write i2c OK [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: 01 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: 01 07 00 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 45 0C 18 [00:54:43]RasterBufferAndPrint [00:54:43]line [00:54:43]line [00:54:43]line [00:54:43]line [00:54:43]line [00:54:43]written 0, free lines is 3149 [00:54:43]process_action close_receipt done [00:54:43]requested_data is exist [00:54:43]produce_requested_data [00:54:43]requested_item fm.sn is exist - process it [00:54:43]wFMCommunicate request_size=4 [00:54:43]MH_SAM_APDU [00:54:43]CAPDU: 80 11 00 00 [00:54:43]Write to MH i2c: E2 08 00 BB 0C 80 11 00 00 00 00 00 00 41 [00:54:43]Write i2c OK [00:54:43]MH_I2C_Read... [00:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:43]Read from MH i2c: E2 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 17 00 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 17 00 BB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 95 [00:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:54:43]wFMCommunicate OK [00:54:43]requested_item fd.num is exist - process it [00:54:43]SAM_PROTO_GetFieldsCounters [00:54:43]wFMCommunicate request_size=4 [00:54:43]MH_SAM_APDU [00:54:43]CAPDU: 80 13 00 00 [00:54:43]Write to MH i2c: E2 08 00 BC 0C 80 13 00 00 00 00 00 00 44 [00:54:43]Write i2c OK [00:54:43]MH_I2C_Read... [00:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:43]Read from MH i2c: E2 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 62 00 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 62 00 BC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E3 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [00:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E3 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:43]wFMCommunicate OK [00:54:43]SAM_PROTO_GetFieldsCounters done [00:54:43]requested_item shift.num is exist - process it [00:54:43]requested_item shift.opened is exist - process it [00:54:43]req_shift_opened [00:54:43]FM_GetShiftState [00:54:43]SAM_PROTO_GetShiftState [00:54:43]wFMCommunicate request_size=4 [00:54:43]MH_SAM_APDU [00:54:43]CAPDU: 80 13 01 00 [00:54:43]Write to MH i2c: E2 08 00 BD 0C 80 13 01 00 00 00 00 00 46 [00:54:43]Write i2c OK [00:54:43]MH_I2C_Read... [00:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:43]Read from MH i2c: E2 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 0E 00 [00:54:43]MH_I2C_Read... [00:54:43]Read from MH i2c: E2 0E 00 BD 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 4F [00:54:43]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:54:43]wFMCommunicate OK [00:54:43]SAM_PROTO_GetShiftState done [00:54:43]FM_GetShiftState done [00:54:43]req_shift_opened done [00:54:43]requested_item shift.open_date is exist - process it [00:54:43]req_shift_open_date [00:54:43]req_shift_open_date done [00:54:43]produce_requested_data done [00:54:43]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44771,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:54:43]process_action_free close_receipt [00:54:43]json_value_free [00:54:43]json_value_free done [00:54:43]process_json_proto returns [00:54:43]Send response to host [00:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44771,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:54:43]free response buf [00:54:43]execute_script done [00:54:43]execute_script returns [00:54:43]free content buf [00:54:43]Sock 9.Close socket [00:54:43]Sock 9.Thread stoped [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:50]int [00:54:50]Write to MH i2c: 01 00 00 BE 0C CA [00:54:50]*** FLAG_PRN_KEY set [00:54:50]Write i2c OK [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 BE 0C 00 08 00 00 00 FF 0F E7 [00:54:50]state=0 [00:54:50]Key pressed [00:54:50]Feed [00:54:50]Write to MH i2c: D8 00 00 BF 0C A2 [00:54:50]Write i2c OK [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: D8 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: D8 01 00 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: D8 01 00 BF 0C 00 A3 [00:54:50]int [00:54:50]Write to MH i2c: 01 00 00 C0 0C CC [00:54:50]Write i2c OK [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 C0 0C 00 48 00 00 00 3D 00 58 [00:54:50]state=2 [00:54:50]Key pressed [00:54:50]int [00:54:50]Write to MH i2c: 01 00 00 C1 0C CD [00:54:50]*** FLAG_PRN_KEY reset [00:54:50]Write i2c OK [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 [00:54:50]MH_I2C_Read... [00:54:50]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0F E2 [00:54:50]state=2 [00:54:50]Stop feed [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:36]accept exits with 7 [00:56:36]New connection [00:56:36]New thread 3066625380 created [00:56:36]Thread 3066482020 joined [00:56:36]Waiting for new connection... [00:56:36] Sock 7.Parse request [00:56:36]Sock 7.Check first char [00:56:36]Sock 7.First char is OK [00:56:36]request: POST /json_proto HTTP/1.0 [00:56:36]Method: POST [00:56:36]URL: /json_proto [00:56:36]Method is POST - this is cgi request [00:56:36]url: /json_proto [00:56:36]query_string will be loaded in cgi processing [00:56:36]execute_cgi json_proto POST (null) [00:56:36]execute_cgi path=json_proto method=POST [00:56:36]POST find Content-Length [00:56:36]Host: 172.17.45.196:8080 [00:56:36]Content-Length: 1505 [00:56:36]Content-Type: application/json [00:56:36] [00:56:36]POST finish read [00:56:36]Found Content-Length = 1505 [00:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14663", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 312.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:36]execute_script... [00:56:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14663", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 312.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:36]POST & json_proto [00:56:36]process_json_proto [00:56:36]json parsed OK: [00:56:36]protocol is kg_v1.0 [00:56:36]action value=close_receipt [00:56:36]process_action close_receipt [00:56:36]cmd_close_receipt [00:56:36]MH_GetDate [00:56:36]Write to MH i2c: F0 00 00 C2 0C BD [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: F0 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: F0 09 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: F0 09 00 C2 0C 00 C5 E8 A6 66 BB 03 A5 66 48 [00:56:36]GetLastDocTimeStamp 1722214482 [00:56:36]current date 1722214597 [00:56:36]FM_GetShiftState [00:56:36]SAM_PROTO_GetShiftState [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 13 01 00 [00:56:36]Write to MH i2c: E2 08 00 C3 0C 80 13 01 00 00 00 00 00 4C [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 C3 0C 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 55 [00:56:36]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_GetShiftState done [00:56:36]FM_GetShiftState done [00:56:36]opened in 1722212369 [00:56:36]opened+sec_in_day 1722298769 [00:56:36]quantity*price = 3700 [00:56:36]sum+1 = 3701 [00:56:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173822 Р/ж Orbit б/сах мята 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 312.00 НСП 1% : 2.77 НДС 12% : 33.14 Наличными: 312.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 7 29.07.2024 00:56 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44772 ФПД: 87167812996642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005638&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44772&fm=87167812996642&tin=02508201610067®Number=0000000000092655&sum=31200 0 [00:56:37]StoreToDocumentArchive [00:56:37]shift 431 fd 44772 [00:56:37]save to /storage/0431/doc_00044772 [00:56:37]save last doc name /storage/0431/doc_00044772 to /storage/kkm_last_doc_name [00:56:37]save OK [00:56:37]Clear old archive folders... [00:56:37]ProcessDocumentItem done err = 0, tmpTLVsize=666 [00:56:37]tlvbuf is 01814810 [00:56:37]SAM_PROTO_ClearQueue [00:56:37]wFMCommunicate request_size=4 [00:56:37]MH_SAM_APDU [00:56:37]CAPDU: 80 09 00 00 [00:56:37]Write to MH i2c: E2 08 00 D0 0C 80 09 00 00 00 00 00 00 4E [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:37]Read from MH i2c: E2 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 03 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [00:56:37]RAPDU: 90 00 [00:56:37]wFMCommunicate OK [00:56:37]SAM_PROTO_ClearQueue done [00:56:37]KKMCreateOFDPacket [00:56:37]OFDProtocolAddRootSTLVToBuf [00:56:37]FM_MakeSignedData [00:56:37]FM_MakeSignedData [00:56:37]SAM_PROTO_SignData [00:56:37]wFMCommunicate request_size=4 [00:56:37]MH_SAM_APDU [00:56:37]CAPDU: 80 0D 01 02 [00:56:37]Write to MH i2c: E2 08 00 D1 0C 80 0D 01 02 00 00 00 00 56 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:37]Read from MH i2c: E2 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 03 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [00:56:37]RAPDU: 90 00 [00:56:37]wFMCommunicate OK [00:56:37]wFMCommunicate request_size=255 [00:56:37]MH_SAM_APDU [00:56:37]CAPDU: 80 0D 02 02 FA 03 00 9A 02 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 [00:56:37]Write to MH i2c: E2 02 01 D2 0C 80 0D 02 02 FA 00 03 00 9A 02 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 00 00 5E [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [00:56:38]RAPDU: 90 00 [00:56:38]wFMCommunicate OK [00:56:38]wFMCommunicate request_size=255 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 0D 02 02 FA B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [00:56:38]Write to MH i2c: E2 02 01 D3 0C 80 0D 02 02 FA 00 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 E7 [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [00:56:38]RAPDU: 90 00 [00:56:38]wFMCommunicate OK [00:56:38]wFMCommunicate request_size=175 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0C 00 00 00 00 07 04 06 00 E0 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C6 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E4 AE 00 00 35 04 06 00 4F 47 56 87 8E 22 [00:56:38]Write to MH i2c: E2 B2 00 D4 0C 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0C 00 00 00 00 07 04 06 00 E0 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C6 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E4 AE 00 00 35 04 06 00 4F 47 56 87 8E 22 00 00 A1 [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 03 00 D4 0C 00 90 00 54 [00:56:38]RAPDU: 90 00 [00:56:38]wFMCommunicate OK [00:56:38]wFMCommunicate request_size=4 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 0D 03 02 [00:56:38]Write to MH i2c: E2 08 00 D5 0C 80 0D 03 02 00 00 00 00 5C [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 0B 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 0B 00 D5 0C 00 3D 2F BE 38 7A EE BA 54 90 00 35 [00:56:38]RAPDU: 3D 2F BE 38 7A EE BA 54 90 00 [00:56:38]wFMCommunicate OK [00:56:38]SAM_PROTO_SignData done [00:56:38]FM_MakeSignedData done [00:56:38]CreateOFDProtocolMessage [00:56:38]wFMCommunicate request_size=4 [00:56:38]MH_SAM_APDU [00:56:38]CAPDU: 80 11 00 00 [00:56:38]Write to MH i2c: E2 08 00 D6 0C 80 11 00 00 00 00 00 00 5C [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:38]Read from MH i2c: E2 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 17 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: E2 17 00 D6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B0 [00:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:56:38]wFMCommunicate OK [00:56:38]CreateOFDProtocolMessage done [00:56:38]OFDSenderStorePacket 44772 [00:56:38]StoreOFDPacket docnum=44772 [00:56:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AE 02 00 00 9F F0 A6 02 6C 29 5A 03 01 00 03 00 9A 02 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0C 00 00 00 00 07 04 06 00 E0 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C6 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E4 AE 00 00 35 04 06 00 4F 47 56 87 8E 22 3D 2F BE 38 7A EE BA 54 [00:56:38]CheckFolder [00:56:38]dirname=/storage/ofd_packets [00:56:38]CheckFolder done [00:56:38]ProducePacketName [00:56:38]name=ofd_packets/00044772 [00:56:38]NVStorageSaveData ofd_packets/00044772 [00:56:38]File name is /storage/ofd_packets/00044772 [00:56:38]Write 716 bytes [00:56:38]NVStorageSaveData done [00:56:38]OFDSenderStorePacket done [00:56:38]KKMCreateOFDPacket done [00:56:38]NVStorageSaveData kkm_last_timestamp [00:56:38]File name is /storage/kkm_last_timestamp [00:56:38]Write 4 bytes [00:56:38]NVStorageSaveData done [00:56:38]ExternCall_PrintAddStr [00:56:38]wPrintStart [00:56:38]Write to MH i2c: 01 00 00 D7 0C E3 [00:56:38]OFD Sender: No OFD packet to send [00:56:38]Write i2c OK [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: 01 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: 01 07 00 [00:56:38]MH_I2C_Read... [00:56:38]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 FF 0F F8 [00:56:38]RasterBufferAndPrint [00:56:38]line Счет N : (3)14663 [00:56:38]line ИНН: 02508201610067 [00:56:38]line Контрольно-Кассовый Чек [00:56:38]line ПРОДАЖА [00:56:38]line Товар: 42113164 [00:56:38]line Жев Orbit White Spearmint [00:56:38]line 1.000 * 37.00 [00:56:38]line = 37.00 [00:56:38]line НДС 12% НСП 1% [00:56:38]line > о реализуемом товаре [00:56:38]line Товар: 42069942 [00:56:38]line Жев Orbit White Fresh Mint [00:56:38]line 1.000 * 45.00 [00:56:38]line = 45.00 [00:56:38]line НДС 12% НСП 1% [00:56:38]line > о реализуемом товаре [00:56:38]line Товар: 50173976 [00:56:38]line Жев Orbit Winterfresh под [00:56:38]line 1.000 * 45.00 [00:56:38]line = 45.00 [00:56:38]line НДС 12% НСП 1% [00:56:38]line > о реализуемом товаре [00:56:38]line Товар: 50173822 [00:56:38]line Р/ж Orbit б/сах мята 13,6г [00:56:38]line 1.000 * 45.00 [00:56:38]line = 45.00 [00:56:38]line НДС 12% НСП 1% [00:56:38]line > о реализуемом товаре [00:56:38]line Товар: 48743570 [00:56:38]line Сигареты Winston XStyle Blue [00:56:38]line 1.000 * 140.00 [00:56:38]line = 140.00 [00:56:38]line НДС 12% НСП 1% [00:56:38]line > о реализуемом товаре [00:56:38]line ИТОГО: 312.00 [00:56:38]line НСП 1% : 2.77 [00:56:38]line НДС 12% : 33.14 [00:56:38]line Наличными: 312.00 [00:56:38]line Безнал.: 0.00 [00:56:38]line Место: АЗС № 128 "Партнер Нефть" [00:56:38]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:56:38]line СНО: Общий режим [00:56:38]line Чек 7 29.07.2024 00:56 [00:56:38]line Смена: 431 ФФД: 1.0 [00:56:38]line ЗНМ: 0300000045 [00:56:38]line РНМ: 0000000000092655 [00:56:38]line Версия ККМ: 001 [00:56:38]line ФМ: 0000000000874941 [00:56:39]line ФД: 44772 [00:56:39]line ФПД: 87167812996642 [00:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005638&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44772&fm=87167812996642&tin=02508201610067®Number=0000000000092655&sum=31200 [00:56:39]line 0 [00:56:39]written 0, free lines is 4095 [00:56:39]OFD Sender: Processing packet 44772 [packets to send 7, broken 6] [00:56:39]ProducePacketName [00:56:39]name=ofd_packets/00044772 [00:56:39]OFD Sender: To server: pG, [00:56:39]CommunicateWithHost lk.salyk.kg:30040 [00:56:39]ConnectInit lk.salyk.kg [00:56:39]Connected sock=9 [00:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AE 02 00 00 9F F0 A6 02 6C 29 5A 03 01 00 03 00 9A 02 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0C 00 00 00 00 07 04 06 00 E0 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C6 E8 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E4 AE 00 00 35 04 06 00 4F 47 56 87 8E 22 3D 2F BE 38 7A EE BA 54 [00:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 C7 95 47 00 96 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E4 AE 00 00 F4 03 04 00 D7 94 A6 66 B6 04 01 00 00 6E 30 60 59 F0 92 E2 E6 [00:56:39]CommunicateWithHost err = 0 [00:56:39]CheckOFDResponse [00:56:39]1017 (14) - 77093643461234 [00:56:39]1041 (16) - 0000000000874941 [00:56:39]1040 (4) - 44772 [00:56:39]1012 (4) - 28.07.2024 18:58 [00:56:39]1206 (1) - 0 [00:56:39]OFD Sender: Remove packet 44772 [00:56:39]ProducePacketName [00:56:39]name=ofd_packets/00044772 [00:56:39]NVStorageDeleteData [00:56:39]Write to MH i2c: 01 00 00 17 0D 24 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: 01 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: 01 07 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 5A 0B 90 [00:56:39]RasterBufferAndPrint [00:56:39]line [00:56:39]line [00:56:39]line [00:56:39]line [00:56:39]line [00:56:39]written 0, free lines is 2915 [00:56:39]process_action close_receipt done [00:56:39]requested_data is exist [00:56:39]produce_requested_data [00:56:39]requested_item fm.sn is exist - process it [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 11 00 00 [00:56:39]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 17 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 17 00 1E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 F9 [00:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:56:39]wFMCommunicate OK [00:56:39]requested_item fd.num is exist - process it [00:56:39]SAM_PROTO_GetFieldsCounters [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 13 00 00 [00:56:39]Write to MH i2c: E2 08 00 1F 0D 80 13 00 00 00 00 00 00 A8 [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 62 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 62 00 1F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E4 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [00:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E4 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetFieldsCounters done [00:56:39]requested_item shift.num is exist - process it [00:56:39]requested_item shift.opened is exist - process it [00:56:39]req_shift_opened [00:56:39]FM_GetShiftState [00:56:39]SAM_PROTO_GetShiftState [00:56:39]wFMCommunicate request_size=4 [00:56:39]MH_SAM_APDU [00:56:39]CAPDU: 80 13 01 00 [00:56:39]Write to MH i2c: E2 08 00 20 0D 80 13 01 00 00 00 00 00 AA [00:56:39]Write i2c OK [00:56:39]MH_I2C_Read... [00:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:39]Read from MH i2c: E2 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 [00:56:39]MH_I2C_Read... [00:56:39]Read from MH i2c: E2 0E 00 20 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 B3 [00:56:39]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:56:39]wFMCommunicate OK [00:56:39]SAM_PROTO_GetShiftState done [00:56:39]FM_GetShiftState done [00:56:39]req_shift_opened done [00:56:39]requested_item shift.open_date is exist - process it [00:56:39]req_shift_open_date [00:56:39]req_shift_open_date done [00:56:39]produce_requested_data done [00:56:39]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44772,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:56:39]process_action_free close_receipt [00:56:39]json_value_free [00:56:39]json_value_free done [00:56:39]process_json_proto returns [00:56:39]Send response to host [00:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44772,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:56:39]free response buf [00:56:39]execute_script done [00:56:39]execute_script returns [00:56:39]free content buf [00:56:39]Sock 7.Close socket [00:56:39]Sock 7.Thread stoped [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:51]accept exits with 10 [00:58:51]New connection [00:58:51]New thread 3066482020 created [00:58:51]Thread 3066625380 joined [00:58:51]Waiting for new connection... [00:58:51] Sock 10.Parse request [00:58:51]Sock 10.Check first char [00:58:51]Sock 10.First char is OK [00:58:51]request: POST /json_proto HTTP/1.0 [00:58:51]Method: POST [00:58:51]URL: /json_proto [00:58:51]Method is POST - this is cgi request [00:58:51]url: /json_proto [00:58:51]query_string will be loaded in cgi processing [00:58:51]execute_cgi json_proto POST (null) [00:58:51]execute_cgi path=json_proto method=POST [00:58:51]POST find Content-Length [00:58:51]Host: 172.17.45.196:8080 [00:58:51]Content-Length: 619 [00:58:51]Content-Type: application/json [00:58:51] [00:58:51]POST finish read [00:58:51]Found Content-Length = 619 [00:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14664", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:51]execute_script... [00:58:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14664", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:51]POST & json_proto [00:58:51]process_json_proto [00:58:51]json parsed OK: [00:58:51]protocol is kg_v1.0 [00:58:51]action value=close_receipt [00:58:51]process_action close_receipt [00:58:51]cmd_close_receipt [00:58:51]MH_GetDate [00:58:51]Write to MH i2c: F0 00 00 21 0D 1D [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: F0 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: F0 09 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: F0 09 00 21 0D 00 4D E9 A6 66 BB 03 A5 66 31 [00:58:51]GetLastDocTimeStamp 1722214598 [00:58:51]current date 1722214733 [00:58:51]FM_GetShiftState [00:58:51]SAM_PROTO_GetShiftState [00:58:51]wFMCommunicate request_size=4 [00:58:51]MH_SAM_APDU [00:58:51]CAPDU: 80 13 01 00 [00:58:51]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:51]Read from MH i2c: E2 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 0E 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 B5 [00:58:51]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:58:51]wFMCommunicate OK [00:58:51]SAM_PROTO_GetShiftState done [00:58:51]FM_GetShiftState done [00:58:51]opened in 1722212369 [00:58:51]opened+sec_in_day 1722298769 [00:58:51]quantity*price = 40500 [00:58:51]sum+1 = 40501 [00:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 8 29.07.2024 00:58 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44773 ФПД: 53173187295016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005853&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44773&fm=53173187295016&tin=02508201610067®Number=0000000000092655&sum=40500 0 [00:58:52]StoreToDocumentArchive [00:58:52]shift 431 fd 44773 [00:58:52]save to /storage/0431/doc_00044773 [00:58:52]save last doc name /storage/0431/doc_00044773 to /storage/kkm_last_doc_name [00:58:52]save OK [00:58:52]Clear old archive folders... [00:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [00:58:52]tlvbuf is 0180E300 [00:58:52]SAM_PROTO_ClearQueue [00:58:52]wFMCommunicate request_size=4 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 09 00 00 [00:58:52]Write to MH i2c: E2 08 00 2F 0D 80 09 00 00 00 00 00 00 AE [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [00:58:52]RAPDU: 90 00 [00:58:52]wFMCommunicate OK [00:58:52]SAM_PROTO_ClearQueue done [00:58:52]KKMCreateOFDPacket [00:58:52]OFDProtocolAddRootSTLVToBuf [00:58:52]FM_MakeSignedData [00:58:52]FM_MakeSignedData [00:58:52]SAM_PROTO_SignData [00:58:52]wFMCommunicate request_size=4 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 0D 01 02 [00:58:52]Write to MH i2c: E2 08 00 30 0D 80 0D 01 02 00 00 00 00 B6 [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [00:58:52]RAPDU: 90 00 [00:58:52]wFMCommunicate OK [00:58:52]wFMCommunicate request_size=255 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D E9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 [00:58:52]Write to MH i2c: E2 02 01 31 0D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D E9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 00 00 AD [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:52]Read from MH i2c: E2 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 [00:58:52]MH_I2C_Read... [00:58:52]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [00:58:52]RAPDU: 90 00 [00:58:52]wFMCommunicate OK [00:58:52]wFMCommunicate request_size=39 [00:58:52]MH_SAM_APDU [00:58:52]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E5 AE 00 00 35 04 06 00 30 5C 58 F0 B7 28 [00:58:52]Write to MH i2c: E2 2A 00 32 0D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E5 AE 00 00 35 04 06 00 30 5C 58 F0 B7 28 00 00 BB [00:58:52]Write i2c OK [00:58:52]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:53]Read from MH i2c: E2 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 03 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [00:58:53]RAPDU: 90 00 [00:58:53]wFMCommunicate OK [00:58:53]wFMCommunicate request_size=4 [00:58:53]MH_SAM_APDU [00:58:53]CAPDU: 80 0D 03 02 [00:58:53]Write to MH i2c: E2 08 00 33 0D 80 0D 03 02 00 00 00 00 BB [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:53]Read from MH i2c: E2 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0B 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 0B 00 33 0D 00 E6 71 0C C9 04 9E 80 2D 90 00 37 [00:58:53]RAPDU: E6 71 0C C9 04 9E 80 2D 90 00 [00:58:53]wFMCommunicate OK [00:58:53]SAM_PROTO_SignData done [00:58:53]FM_MakeSignedData done [00:58:53]CreateOFDProtocolMessage [00:58:53]wFMCommunicate request_size=4 [00:58:53]MH_SAM_APDU [00:58:53]CAPDU: 80 11 00 00 [00:58:53]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:53]Read from MH i2c: E2 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 17 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: E2 17 00 34 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 0F [00:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:58:53]wFMCommunicate OK [00:58:53]CreateOFDProtocolMessage done [00:58:53]OFDSenderStorePacket 44773 [00:58:53]StoreOFDPacket docnum=44773 [00:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 A4 B6 24 01 07 BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D E9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E5 AE 00 00 35 04 06 00 30 5C 58 F0 B7 28 E6 71 0C C9 04 9E 80 2D [00:58:53]CheckFolder [00:58:53]dirname=/storage/ofd_packets [00:58:53]CheckFolder done [00:58:53]ProducePacketName [00:58:53]name=ofd_packets/00044773 [00:58:53]NVStorageSaveData ofd_packets/00044773 [00:58:53]File name is /storage/ofd_packets/00044773 [00:58:53]Write 330 bytes [00:58:53]NVStorageSaveData done [00:58:53]OFDSenderStorePacket done [00:58:53]KKMCreateOFDPacket done [00:58:53]NVStorageSaveData kkm_last_timestamp [00:58:53]File name is /storage/kkm_last_timestamp [00:58:53]Write 4 bytes [00:58:53]NVStorageSaveData done [00:58:53]ExternCall_PrintAddStr [00:58:53]wPrintStart [00:58:53]Write to MH i2c: 01 00 00 35 0D 42 [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 07 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [00:58:53]RasterBufferAndPrint [00:58:53]line Счет N : (3)14664 [00:58:53]line ИНН: 02508201610067 [00:58:53]line Контрольно-Кассовый Чек [00:58:53]line ПРОДАЖА [00:58:53]line Товар: 4650063110756 [00:58:53]line Масло Gazpromneft Super 10w40 1л [00:58:53]line 1.000 * 405.00 [00:58:53]line = 405.00 [00:58:53]line НДС 12% НСП 1% [00:58:53]line > о реализуемом товаре [00:58:53]line ИТОГО: 405.00 [00:58:53]line НСП 1% : 3.58 [00:58:53]line НДС 12% : 43.01 [00:58:53]line Наличными: 405.00 [00:58:53]line Безнал.: 0.00 [00:58:53]line Место: АЗС № 128 "Партнер Нефть" [00:58:53]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [00:58:53]line СНО: Общий режим [00:58:53]line Чек 8 29.07.2024 00:58 [00:58:53]line Смена: 431 ФФД: 1.0 [00:58:53]line ЗНМ: 0300000045 [00:58:53]line РНМ: 0000000000092655 [00:58:53]line Версия ККМ: 001 [00:58:53]line ФМ: 0000000000874941 [00:58:53]line ФД: 44773 [00:58:53]line ФПД: 53173187295016 [00:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005853&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44773&fm=53173187295016&tin=02508201610067®Number=0000000000092655&sum=40500 [00:58:53]line 0 [00:58:53]OFD Sender: Processing packet 44773 [packets to send 7, broken 6] [00:58:53]ProducePacketName [00:58:53]name=ofd_packets/00044773 [00:58:53]OFD Sender: To server: pG, [00:58:53]CommunicateWithHost lk.salyk.kg:30040 [00:58:53]ConnectInit lk.salyk.kg [00:58:53]written 0, free lines is 4095 [00:58:53]Connected sock=9 [00:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 2C 01 00 00 A4 B6 24 01 07 BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D E9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E5 AE 00 00 35 04 06 00 30 5C 58 F0 B7 28 E6 71 0C C9 04 9E 80 2D [00:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F3 45 47 00 F0 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E5 AE 00 00 F4 03 04 00 5E 95 A6 66 B6 04 01 00 00 1B 76 C9 B5 10 91 85 D8 [00:58:53]CommunicateWithHost err = 0 [00:58:53]CheckOFDResponse [00:58:53]1017 (14) - 77093643461234 [00:58:53]1041 (16) - 0000000000874941 [00:58:53]1040 (4) - 44773 [00:58:53]1012 (4) - 28.07.2024 19:00 [00:58:53]1206 (1) - 0 [00:58:53]OFD Sender: Remove packet 44773 [00:58:53]ProducePacketName [00:58:53]name=ofd_packets/00044773 [00:58:53]NVStorageDeleteData [00:58:53]Write to MH i2c: 01 00 00 5E 0D 6B [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 07 00 [00:58:53]MH_I2C_Read... [00:58:53]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 CE 0C 4C [00:58:53]RasterBufferAndPrint [00:58:53]line [00:58:53]line [00:58:53]line [00:58:53]line [00:58:53]line [00:58:53]written 0, free lines is 3284 [00:58:53]process_action close_receipt done [00:58:53]requested_data is exist [00:58:53]produce_requested_data [00:58:53]requested_item fm.sn is exist - process it [00:58:53]wFMCommunicate request_size=4 [00:58:53]MH_SAM_APDU [00:58:53]CAPDU: 80 11 00 00 [00:58:53]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [00:58:53]Write i2c OK [00:58:53]MH_I2C_Read... [00:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 17 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 40 [00:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [00:58:54]wFMCommunicate OK [00:58:54]requested_item fd.num is exist - process it [00:58:54]SAM_PROTO_GetFieldsCounters [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 13 00 00 [00:58:54]Write to MH i2c: E2 08 00 66 0D 80 13 00 00 00 00 00 00 EF [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 62 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 62 00 66 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E5 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [00:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E5 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:54]wFMCommunicate OK [00:58:54]SAM_PROTO_GetFieldsCounters done [00:58:54]requested_item shift.num is exist - process it [00:58:54]requested_item shift.opened is exist - process it [00:58:54]req_shift_opened [00:58:54]FM_GetShiftState [00:58:54]SAM_PROTO_GetShiftState [00:58:54]wFMCommunicate request_size=4 [00:58:54]MH_SAM_APDU [00:58:54]CAPDU: 80 13 01 00 [00:58:54]Write to MH i2c: E2 08 00 67 0D 80 13 01 00 00 00 00 00 F1 [00:58:54]Write i2c OK [00:58:54]MH_I2C_Read... [00:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:54]Read from MH i2c: E2 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 0E 00 [00:58:54]MH_I2C_Read... [00:58:54]Read from MH i2c: E2 0E 00 67 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 FA [00:58:54]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [00:58:54]wFMCommunicate OK [00:58:54]SAM_PROTO_GetShiftState done [00:58:54]FM_GetShiftState done [00:58:54]req_shift_opened done [00:58:54]requested_item shift.open_date is exist - process it [00:58:54]req_shift_open_date [00:58:54]req_shift_open_date done [00:58:54]produce_requested_data done [00:58:54]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44773,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [00:58:54]process_action_free close_receipt [00:58:54]json_value_free [00:58:54]json_value_free done [00:58:54]process_json_proto returns [00:58:54]Send response to host [00:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44773,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [00:58:54]free response buf [00:58:54]execute_script done [00:58:54]execute_script returns [00:58:54]free content buf [00:58:54]Sock 10.Close socket [00:58:54]Sock 10.Thread stoped [00:58:54]OFD Sender: No OFD packet to send [00:58:55]int [00:58:55]Write to MH i2c: 01 00 00 68 0D 75 [00:58:55]*** FLAG_PRN_KEY set [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 68 0D 00 08 00 00 00 FF 0F 92 [00:58:55]state=0 [00:58:55]Key pressed [00:58:55]Feed [00:58:55]Write to MH i2c: D8 00 00 69 0D 4D [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: D8 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: D8 01 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: D8 01 00 69 0D 00 4E [00:58:55]int [00:58:55]Write to MH i2c: 01 00 00 6A 0D 77 [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 6A 0D 00 48 00 00 00 3C 00 02 [00:58:55]state=2 [00:58:55]Key pressed [00:58:55]int [00:58:55]Write to MH i2c: 01 00 00 6B 0D 78 [00:58:55]*** FLAG_PRN_KEY reset [00:58:55]Write i2c OK [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 [00:58:55]MH_I2C_Read... [00:58:55]Read from MH i2c: 01 07 00 6B 0D 00 00 00 00 00 F6 0F 84 [00:58:55]state=2 [00:58:55]Stop feed [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:15]accept exits with 7 [01:08:15]New connection [01:08:15]New thread 3066625380 created [01:08:15]Thread 3066482020 joined [01:08:15]Waiting for new connection... [01:08:15] Sock 7.Parse request [01:08:15]Sock 7.Check first char [01:08:15]Sock 7.First char is OK [01:08:15]request: POST /json_proto HTTP/1.0 [01:08:15]Method: POST [01:08:15]URL: /json_proto [01:08:15]Method is POST - this is cgi request [01:08:15]url: /json_proto [01:08:15]query_string will be loaded in cgi processing [01:08:15]execute_cgi json_proto POST (null) [01:08:15]execute_cgi path=json_proto method=POST [01:08:15]POST find Content-Length [01:08:15]Host: 172.17.45.196:8080 [01:08:15]Content-Length: 640 [01:08:15]Content-Type: application/json [01:08:15] [01:08:15]POST finish read [01:08:15]Found Content-Length = 640 [01:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14665", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:15]execute_script... [01:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14665", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:15]POST & json_proto [01:08:15]process_json_proto [01:08:15]json parsed OK: [01:08:15]protocol is kg_v1.0 [01:08:15]action value=close_receipt [01:08:15]process_action close_receipt [01:08:15]cmd_close_receipt [01:08:15]MH_GetDate [01:08:15]Write to MH i2c: F0 00 00 6C 0D 68 [01:08:15]Write i2c OK [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: F0 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: F0 09 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: F0 09 00 6C 0D 00 81 EB A6 66 BB 03 A5 66 B2 [01:08:15]GetLastDocTimeStamp 1722214733 [01:08:15]current date 1722215297 [01:08:15]FM_GetShiftState [01:08:15]SAM_PROTO_GetShiftState [01:08:15]wFMCommunicate request_size=4 [01:08:15]MH_SAM_APDU [01:08:15]CAPDU: 80 13 01 00 [01:08:15]Write to MH i2c: E2 08 00 6D 0D 80 13 01 00 00 00 00 00 F7 [01:08:15]Write i2c OK [01:08:15]MH_I2C_Read... [01:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:15]Read from MH i2c: E2 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 0E 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 0E 00 6D 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 00 [01:08:15]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:08:15]wFMCommunicate OK [01:08:15]SAM_PROTO_GetShiftState done [01:08:15]FM_GetShiftState done [01:08:15]opened in 1722212369 [01:08:15]opened+sec_in_day 1722298769 [01:08:15]quantity*price = 24000 [01:08:15]sum+1 = 24001 [01:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 9 29.07.2024 01:08 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44774 ФПД: 20903517108504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010817&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44774&fm=20903517108504&tin=02508201610067®Number=0000000000092655&sum=24000 0 [01:08:16]StoreToDocumentArchive [01:08:16]shift 431 fd 44774 [01:08:16]save to /storage/0431/doc_00044774 [01:08:16]save last doc name /storage/0431/doc_00044774 to /storage/kkm_last_doc_name [01:08:16]save OK [01:08:16]Clear old archive folders... [01:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=285 [01:08:16]tlvbuf is 017EAB30 [01:08:16]SAM_PROTO_ClearQueue [01:08:16]wFMCommunicate request_size=4 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 09 00 00 [01:08:16]Write to MH i2c: E2 08 00 7A 0D 80 09 00 00 00 00 00 00 F9 [01:08:16]Write i2c OK [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 [01:08:16]MH_I2C_Read... [01:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:16]Read from MH i2c: E2 03 00 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [01:08:16]RAPDU: 90 00 [01:08:16]wFMCommunicate OK [01:08:16]SAM_PROTO_ClearQueue done [01:08:16]KKMCreateOFDPacket [01:08:16]OFDProtocolAddRootSTLVToBuf [01:08:16]FM_MakeSignedData [01:08:16]FM_MakeSignedData [01:08:16]SAM_PROTO_SignData [01:08:16]wFMCommunicate request_size=4 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 0D 01 02 [01:08:16]Write to MH i2c: E2 08 00 7B 0D 80 0D 01 02 00 00 00 00 01 [01:08:16]Write i2c OK [01:08:16]MH_I2C_Read... [01:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:16]Read from MH i2c: E2 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [01:08:16]RAPDU: 90 00 [01:08:16]wFMCommunicate OK [01:08:16]wFMCommunicate request_size=255 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 81 EB A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 [01:08:16]Write to MH i2c: E2 02 01 7C 0D 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 81 EB A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 00 00 E4 [01:08:16]Write i2c OK [01:08:16]MH_I2C_Read... [01:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:16]Read from MH i2c: E2 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [01:08:16]RAPDU: 90 00 [01:08:16]wFMCommunicate OK [01:08:16]wFMCommunicate request_size=44 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E6 AE 00 00 35 04 06 00 13 02 FA B6 39 18 [01:08:16]Write to MH i2c: E2 2F 00 7D 0D 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E6 AE 00 00 35 04 06 00 13 02 FA B6 39 18 00 00 CE [01:08:16]Write i2c OK [01:08:16]MH_I2C_Read... [01:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:16]Read from MH i2c: E2 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [01:08:16]RAPDU: 90 00 [01:08:16]wFMCommunicate OK [01:08:16]wFMCommunicate request_size=4 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 0D 03 02 [01:08:16]Write to MH i2c: E2 08 00 7E 0D 80 0D 03 02 00 00 00 00 06 [01:08:16]Write i2c OK [01:08:16]MH_I2C_Read... [01:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:16]Read from MH i2c: E2 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 0B 00 [01:08:16]MH_I2C_Read... [01:08:16]Read from MH i2c: E2 0B 00 7E 0D 00 54 A7 05 B7 59 77 CF 9A 90 00 F7 [01:08:16]RAPDU: 54 A7 05 B7 59 77 CF 9A 90 00 [01:08:16]wFMCommunicate OK [01:08:16]SAM_PROTO_SignData done [01:08:16]FM_MakeSignedData done [01:08:16]CreateOFDProtocolMessage [01:08:16]wFMCommunicate request_size=4 [01:08:16]MH_SAM_APDU [01:08:16]CAPDU: 80 11 00 00 [01:08:16]Write to MH i2c: E2 08 00 7F 0D 80 11 00 00 00 00 00 00 06 [01:08:17]Write i2c OK [01:08:17]MH_I2C_Read... [01:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:17]Read from MH i2c: E2 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: E2 17 00 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: E2 17 00 7F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 5A [01:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:08:17]wFMCommunicate OK [01:08:17]CreateOFDProtocolMessage done [01:08:17]OFDSenderStorePacket 44774 [01:08:17]StoreOFDPacket docnum=44774 [01:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 66 42 29 01 FE 1E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 81 EB A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E6 AE 00 00 35 04 06 00 13 02 FA B6 39 18 54 A7 05 B7 59 77 CF 9A [01:08:17]CheckFolder [01:08:17]dirname=/storage/ofd_packets [01:08:17]CheckFolder done [01:08:17]ProducePacketName [01:08:17]name=ofd_packets/00044774 [01:08:17]NVStorageSaveData ofd_packets/00044774 [01:08:17]File name is /storage/ofd_packets/00044774 [01:08:17]Write 335 bytes [01:08:17]NVStorageSaveData done [01:08:17]OFDSenderStorePacket done [01:08:17]KKMCreateOFDPacket done [01:08:17]NVStorageSaveData kkm_last_timestamp [01:08:17]File name is /storage/kkm_last_timestamp [01:08:17]Write 4 bytes [01:08:17]NVStorageSaveData done [01:08:17]ExternCall_PrintAddStr [01:08:17]wPrintStart [01:08:17]Write to MH i2c: 01 00 00 80 0D 8D [01:08:17]Write i2c OK [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 07 00 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 FF 0F A2 [01:08:17]RasterBufferAndPrint [01:08:17]line Счет N : (3)14665 [01:08:17]line ИНН: 02508201610067 [01:08:17]line Контрольно-Кассовый Чек [01:08:17]line ПРОДАЖА [01:08:17]line Товар: 4870145004753 [01:08:17]line Напиток Garage hard lemon ст 0,4л [01:08:17]line 2.000 * 120.00 [01:08:17]line = 240.00 [01:08:17]line НДС 12% НСП 1% [01:08:17]line > о реализуемом товаре [01:08:17]line ИТОГО: 240.00 [01:08:17]line НСП 1% : 2.12 [01:08:17]line НДС 12% : 25.49 [01:08:17]line Наличными: 240.00 [01:08:17]line Безнал.: 0.00 [01:08:17]line Место: АЗС № 128 "Партнер Нефть" [01:08:17]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [01:08:17]line СНО: Общий режим [01:08:17]line Чек 9 29.07.2024 01:08 [01:08:17]line Смена: 431 ФФД: 1.0 [01:08:17]line ЗНМ: 0300000045 [01:08:17]line РНМ: 0000000000092655 [01:08:17]line Версия ККМ: 001 [01:08:17]line ФМ: 0000000000874941 [01:08:17]line ФД: 44774 [01:08:17]line ФПД: 20903517108504 [01:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010817&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44774&fm=20903517108504&tin=02508201610067®Number=0000000000092655&sum=24000 [01:08:17]line 0 [01:08:17]OFD Sender: Processing packet 44774 [packets to send 7, broken 6] [01:08:17]ProducePacketName [01:08:17]name=ofd_packets/00044774 [01:08:17]OFD Sender: To server: pG, [01:08:17]CommunicateWithHost lk.salyk.kg:30040 [01:08:17]ConnectInit lk.salyk.kg [01:08:17]written 0, free lines is 4095 [01:08:17]Connected sock=10 [01:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 31 01 00 00 66 42 29 01 FE 1E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 81 EB A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E6 AE 00 00 35 04 06 00 13 02 FA B6 39 18 54 A7 05 B7 59 77 CF 9A [01:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 B9 5C 47 00 1E 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E6 AE 00 00 F4 03 04 00 92 97 A6 66 B6 04 01 00 00 B2 EB D4 CB B4 3C C5 1C [01:08:17]CommunicateWithHost err = 0 [01:08:17]CheckOFDResponse [01:08:17]1017 (14) - 77093643461234 [01:08:17]1041 (16) - 0000000000874941 [01:08:17]1040 (4) - 44774 [01:08:17]1012 (4) - 28.07.2024 19:10 [01:08:17]1206 (1) - 0 [01:08:17]OFD Sender: Remove packet 44774 [01:08:17]ProducePacketName [01:08:17]name=ofd_packets/00044774 [01:08:17]NVStorageDeleteData [01:08:17]Write to MH i2c: 01 00 00 A9 0D B6 [01:08:17]Write i2c OK [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 07 00 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: 01 07 00 A9 0D 00 00 00 00 00 D7 0C A0 [01:08:17]RasterBufferAndPrint [01:08:17]line [01:08:17]line [01:08:17]line [01:08:17]line [01:08:17]line [01:08:17]written 0, free lines is 3293 [01:08:17]process_action close_receipt done [01:08:17]requested_data is exist [01:08:17]produce_requested_data [01:08:17]requested_item fm.sn is exist - process it [01:08:17]wFMCommunicate request_size=4 [01:08:17]MH_SAM_APDU [01:08:17]CAPDU: 80 11 00 00 [01:08:17]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [01:08:17]Write i2c OK [01:08:17]MH_I2C_Read... [01:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:17]Read from MH i2c: E2 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: E2 17 00 [01:08:17]MH_I2C_Read... [01:08:17]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 8B [01:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:08:17]wFMCommunicate OK [01:08:17]requested_item fd.num is exist - process it [01:08:17]SAM_PROTO_GetFieldsCounters [01:08:17]wFMCommunicate request_size=4 [01:08:17]MH_SAM_APDU [01:08:17]CAPDU: 80 13 00 00 [01:08:17]Write to MH i2c: E2 08 00 B1 0D 80 13 00 00 00 00 00 00 3A [01:08:17]Write i2c OK [01:08:17]MH_I2C_Read... [01:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:18]Read from MH i2c: E2 [01:08:18]MH_I2C_Read... [01:08:18]Read from MH i2c: E2 62 00 [01:08:18]MH_I2C_Read... [01:08:18]Read from MH i2c: E2 62 00 B1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E6 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [01:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E6 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:18]wFMCommunicate OK [01:08:18]SAM_PROTO_GetFieldsCounters done [01:08:18]requested_item shift.num is exist - process it [01:08:18]requested_item shift.opened is exist - process it [01:08:18]req_shift_opened [01:08:18]FM_GetShiftState [01:08:18]SAM_PROTO_GetShiftState [01:08:18]wFMCommunicate request_size=4 [01:08:18]MH_SAM_APDU [01:08:18]CAPDU: 80 13 01 00 [01:08:18]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [01:08:18]Write i2c OK [01:08:18]MH_I2C_Read... [01:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:18]Read from MH i2c: E2 [01:08:18]MH_I2C_Read... [01:08:18]Read from MH i2c: E2 0E 00 [01:08:18]MH_I2C_Read... [01:08:18]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 45 [01:08:18]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:08:18]wFMCommunicate OK [01:08:18]SAM_PROTO_GetShiftState done [01:08:18]FM_GetShiftState done [01:08:18]req_shift_opened done [01:08:18]requested_item shift.open_date is exist - process it [01:08:18]req_shift_open_date [01:08:18]req_shift_open_date done [01:08:18]produce_requested_data done [01:08:18]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44774,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [01:08:18]process_action_free close_receipt [01:08:18]json_value_free [01:08:18]json_value_free done [01:08:18]process_json_proto returns [01:08:18]Send response to host [01:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44774,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [01:08:18]free response buf [01:08:18]execute_script done [01:08:18]execute_script returns [01:08:18]free content buf [01:08:18]Sock 7.Close socket [01:08:18]Sock 7.Thread stoped [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]accept exits with 9 [01:14:33]New connection [01:14:33]New thread 3066482020 created [01:14:33]Thread 3066625380 joined [01:14:33]Waiting for new connection... [01:14:33] Sock 9.Parse request [01:14:33]Sock 9.Check first char [01:14:33]Sock 9.First char is OK [01:14:33]request: POST /json_proto HTTP/1.0 [01:14:33]Method: POST [01:14:33]URL: /json_proto [01:14:33]Method is POST - this is cgi request [01:14:33]url: /json_proto [01:14:33]query_string will be loaded in cgi processing [01:14:33]execute_cgi json_proto POST (null) [01:14:33]execute_cgi path=json_proto method=POST [01:14:33]POST find Content-Length [01:14:33]Host: 172.17.45.196:8080 [01:14:33]Content-Length: 621 [01:14:33]Content-Type: application/json [01:14:33] [01:14:33]POST finish read [01:14:33]Found Content-Length = 621 [01:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14666", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:33]execute_script... [01:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14666", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:33]POST & json_proto [01:14:33]process_json_proto [01:14:33]json parsed OK: [01:14:33]protocol is kg_v1.0 [01:14:33]action value=close_receipt [01:14:33]process_action close_receipt [01:14:33]cmd_close_receipt [01:14:33]MH_GetDate [01:14:33]Write to MH i2c: F0 00 00 B3 0D AF [01:14:33]Write i2c OK [01:14:33]MH_I2C_Read... [01:14:33]Read from MH i2c: F0 [01:14:33]MH_I2C_Read... [01:14:33]Read from MH i2c: F0 09 00 [01:14:33]MH_I2C_Read... [01:14:33]Read from MH i2c: F0 09 00 B3 0D 00 FB EC A6 66 BB 03 A5 66 74 [01:14:33]GetLastDocTimeStamp 1722215297 [01:14:33]current date 1722215675 [01:14:33]FM_GetShiftState [01:14:33]SAM_PROTO_GetShiftState [01:14:33]wFMCommunicate request_size=4 [01:14:33]MH_SAM_APDU [01:14:33]CAPDU: 80 13 01 00 [01:14:33]Write to MH i2c: E2 08 00 B4 0D 80 13 01 00 00 00 00 00 3E [01:14:33]Write i2c OK [01:14:33]MH_I2C_Read... [01:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:33]Read from MH i2c: E2 [01:14:33]MH_I2C_Read... [01:14:33]Read from MH i2c: E2 0E 00 [01:14:33]MH_I2C_Read... [01:14:33]Read from MH i2c: E2 0E 00 B4 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 47 [01:14:33]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:14:33]wFMCommunicate OK [01:14:33]SAM_PROTO_GetShiftState done [01:14:33]FM_GetShiftState done [01:14:33]opened in 1722212369 [01:14:33]opened+sec_in_day 1722298769 [01:14:33]quantity*price = 30000 [01:14:33]sum+1 = 30001 [01:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 10 29.07.2024 01:14 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44775 ФПД: 167577988970347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011435&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44775&fm=167577988970347&tin=02508201610067®Number=0000000000092655&sum=30000 0 [01:14:34]StoreToDocumentArchive [01:14:34]shift 431 fd 44775 [01:14:34]save to /storage/0431/doc_00044775 [01:14:34]save last doc name /storage/0431/doc_00044775 to /storage/kkm_last_doc_name [01:14:34]save OK [01:14:34]Clear old archive folders... [01:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:14:34]tlvbuf is 017B6980 [01:14:34]SAM_PROTO_ClearQueue [01:14:34]wFMCommunicate request_size=4 [01:14:34]MH_SAM_APDU [01:14:34]CAPDU: 80 09 00 00 [01:14:34]Write to MH i2c: E2 08 00 C1 0D 80 09 00 00 00 00 00 00 40 [01:14:34]Write i2c OK [01:14:34]MH_I2C_Read... [01:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:14:34]Read from MH i2c: E2 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [01:14:34]RAPDU: 90 00 [01:14:34]wFMCommunicate OK [01:14:34]SAM_PROTO_ClearQueue done [01:14:34]KKMCreateOFDPacket [01:14:34]OFDProtocolAddRootSTLVToBuf [01:14:34]FM_MakeSignedData [01:14:34]FM_MakeSignedData [01:14:34]SAM_PROTO_SignData [01:14:34]wFMCommunicate request_size=4 [01:14:34]MH_SAM_APDU [01:14:34]CAPDU: 80 0D 01 02 [01:14:34]Write to MH i2c: E2 08 00 C2 0D 80 0D 01 02 00 00 00 00 48 [01:14:34]Write i2c OK [01:14:34]MH_I2C_Read... [01:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:14:34]Read from MH i2c: E2 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [01:14:34]RAPDU: 90 00 [01:14:34]wFMCommunicate OK [01:14:34]wFMCommunicate request_size=255 [01:14:34]MH_SAM_APDU [01:14:34]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB EC A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 [01:14:34]Write to MH i2c: E2 02 01 C3 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB EC A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 00 00 BD [01:14:34]Write i2c OK [01:14:34]MH_I2C_Read... [01:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:34]Read from MH i2c: E2 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 C3 0D 00 90 00 44 [01:14:34]RAPDU: 90 00 [01:14:34]wFMCommunicate OK [01:14:34]wFMCommunicate request_size=33 [01:14:34]MH_SAM_APDU [01:14:34]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E7 AE 00 00 35 04 06 00 98 69 4A 81 37 6B [01:14:34]Write to MH i2c: E2 24 00 C4 0D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E7 AE 00 00 35 04 06 00 98 69 4A 81 37 6B 00 00 DE [01:14:34]Write i2c OK [01:14:34]MH_I2C_Read... [01:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:34]Read from MH i2c: E2 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [01:14:34]RAPDU: 90 00 [01:14:34]wFMCommunicate OK [01:14:34]wFMCommunicate request_size=4 [01:14:34]MH_SAM_APDU [01:14:34]CAPDU: 80 0D 03 02 [01:14:34]Write to MH i2c: E2 08 00 C5 0D 80 0D 03 02 00 00 00 00 4D [01:14:34]Write i2c OK [01:14:34]MH_I2C_Read... [01:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:14:34]Read from MH i2c: E2 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 0B 00 [01:14:34]MH_I2C_Read... [01:14:34]Read from MH i2c: E2 0B 00 C5 0D 00 62 C3 7C 42 2B C8 2D 2E 90 00 7F [01:14:34]RAPDU: 62 C3 7C 42 2B C8 2D 2E 90 00 [01:14:35]wFMCommunicate OK [01:14:35]SAM_PROTO_SignData done [01:14:35]FM_MakeSignedData done [01:14:35]CreateOFDProtocolMessage [01:14:35]wFMCommunicate request_size=4 [01:14:35]MH_SAM_APDU [01:14:35]CAPDU: 80 11 00 00 [01:14:35]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [01:14:35]Write i2c OK [01:14:35]MH_I2C_Read... [01:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:35]Read from MH i2c: E2 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: E2 17 00 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 A1 [01:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:14:35]wFMCommunicate OK [01:14:35]CreateOFDProtocolMessage done [01:14:35]OFDSenderStorePacket 44775 [01:14:35]StoreOFDPacket docnum=44775 [01:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 4B 06 1E 01 58 C9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB EC A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E7 AE 00 00 35 04 06 00 98 69 4A 81 37 6B 62 C3 7C 42 2B C8 2D 2E [01:14:35]CheckFolder [01:14:35]dirname=/storage/ofd_packets [01:14:35]CheckFolder done [01:14:35]ProducePacketName [01:14:35]name=ofd_packets/00044775 [01:14:35]NVStorageSaveData ofd_packets/00044775 [01:14:35]File name is /storage/ofd_packets/00044775 [01:14:35]Write 324 bytes [01:14:35]NVStorageSaveData done [01:14:35]OFDSenderStorePacket done [01:14:35]KKMCreateOFDPacket done [01:14:35]NVStorageSaveData kkm_last_timestamp [01:14:35]File name is /storage/kkm_last_timestamp [01:14:35]Write 4 bytes [01:14:35]NVStorageSaveData done [01:14:35]ExternCall_PrintAddStr [01:14:35]wPrintStart [01:14:35]Write to MH i2c: 01 00 00 C7 0D D4 [01:14:35]Write i2c OK [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 07 00 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [01:14:35]RasterBufferAndPrint [01:14:35]line Счет N : (3)14666 [01:14:35]line ИНН: 02508201610067 [01:14:35]line Контрольно-Кассовый Чек [01:14:35]line ПРОДАЖА [01:14:35]line Товар: 4640030091645 [01:14:35]line Сигареты ESSE Exchange M [01:14:35]line 2.000 * 150.00 [01:14:35]line = 300.00 [01:14:35]line НДС 12% НСП 1% [01:14:35]line > о реализуемом товаре [01:14:35]line ИТОГО: 300.00 [01:14:35]line НСП 1% : 2.65 [01:14:35]line НДС 12% : 31.86 [01:14:35]line Наличными: 300.00 [01:14:35]line Безнал.: 0.00 [01:14:35]line Место: АЗС № 128 "Партнер Нефть" [01:14:35]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [01:14:35]line СНО: Общий режим [01:14:35]line Чек 10 29.07.2024 01:14 [01:14:35]line Смена: 431 ФФД: 1.0 [01:14:35]line ЗНМ: 0300000045 [01:14:35]line РНМ: 0000000000092655 [01:14:35]line Версия ККМ: 001 [01:14:35]line ФМ: 0000000000874941 [01:14:35]line ФД: 44775 [01:14:35]line ФПД: 167577988970347 [01:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011435&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44775&fm=167577988970347&tin=02508201610067®Number=0000000000092655&sum=30000 [01:14:35]OFD Sender: Processing packet 44775 [packets to send 7, broken 6] [01:14:35]ProducePacketName [01:14:35]name=ofd_packets/00044775 [01:14:35]OFD Sender: To server: pG, [01:14:35]CommunicateWithHost lk.salyk.kg:30040 [01:14:35]ConnectInit lk.salyk.kg [01:14:35]line 0 [01:14:35]written 0, free lines is 4095 [01:14:35]Connected sock=7 [01:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 26 01 00 00 4B 06 1E 01 58 C9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 FB EC A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E7 AE 00 00 35 04 06 00 98 69 4A 81 37 6B 62 C3 7C 42 2B C8 2D 2E [01:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 F3 E3 47 00 53 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E7 AE 00 00 F4 03 04 00 0C 99 A6 66 B6 04 01 00 00 17 A7 D0 3E CE F4 F9 C3 [01:14:35]CommunicateWithHost err = 0 [01:14:35]CheckOFDResponse [01:14:35]1017 (14) - 77093643461234 [01:14:35]1041 (16) - 0000000000874941 [01:14:35]1040 (4) - 44775 [01:14:35]1012 (4) - 28.07.2024 19:16 [01:14:35]1206 (1) - 0 [01:14:35]OFD Sender: Remove packet 44775 [01:14:35]ProducePacketName [01:14:35]name=ofd_packets/00044775 [01:14:35]NVStorageDeleteData [01:14:35]Write to MH i2c: 01 00 00 EF 0D FC [01:14:35]Write i2c OK [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 07 00 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 DC 0C EB [01:14:35]RasterBufferAndPrint [01:14:35]line [01:14:35]line [01:14:35]line [01:14:35]line [01:14:35]line [01:14:35]written 0, free lines is 3300 [01:14:35]process_action close_receipt done [01:14:35]requested_data is exist [01:14:35]produce_requested_data [01:14:35]requested_item fm.sn is exist - process it [01:14:35]wFMCommunicate request_size=4 [01:14:35]MH_SAM_APDU [01:14:35]CAPDU: 80 11 00 00 [01:14:35]Write to MH i2c: E2 08 00 F6 0D 80 11 00 00 00 00 00 00 7D [01:14:35]Write i2c OK [01:14:35]MH_I2C_Read... [01:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:35]Read from MH i2c: E2 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: E2 17 00 [01:14:35]MH_I2C_Read... [01:14:35]Read from MH i2c: E2 17 00 F6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D1 [01:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:14:35]wFMCommunicate OK [01:14:35]requested_item fd.num is exist - process it [01:14:35]SAM_PROTO_GetFieldsCounters [01:14:35]wFMCommunicate request_size=4 [01:14:35]MH_SAM_APDU [01:14:35]CAPDU: 80 13 00 00 [01:14:35]Write to MH i2c: E2 08 00 F7 0D 80 13 00 00 00 00 00 00 80 [01:14:35]Write i2c OK [01:14:35]MH_I2C_Read... [01:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:14:36]Read from MH i2c: E2 [01:14:36]MH_I2C_Read... [01:14:36]Read from MH i2c: E2 62 00 [01:14:36]MH_I2C_Read... [01:14:36]Read from MH i2c: E2 62 00 F7 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E7 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [01:14:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E7 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:14:36]wFMCommunicate OK [01:14:36]SAM_PROTO_GetFieldsCounters done [01:14:36]requested_item shift.num is exist - process it [01:14:36]requested_item shift.opened is exist - process it [01:14:36]req_shift_opened [01:14:36]FM_GetShiftState [01:14:36]SAM_PROTO_GetShiftState [01:14:36]wFMCommunicate request_size=4 [01:14:36]MH_SAM_APDU [01:14:36]CAPDU: 80 13 01 00 [01:14:36]Write to MH i2c: E2 08 00 F8 0D 80 13 01 00 00 00 00 00 82 [01:14:36]Write i2c OK [01:14:36]MH_I2C_Read... [01:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:36]Read from MH i2c: E2 [01:14:36]MH_I2C_Read... [01:14:36]Read from MH i2c: E2 0E 00 [01:14:36]MH_I2C_Read... [01:14:36]Read from MH i2c: E2 0E 00 F8 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 8B [01:14:36]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:14:36]wFMCommunicate OK [01:14:36]SAM_PROTO_GetShiftState done [01:14:36]FM_GetShiftState done [01:14:36]req_shift_opened done [01:14:36]requested_item shift.open_date is exist - process it [01:14:36]req_shift_open_date [01:14:36]req_shift_open_date done [01:14:36]produce_requested_data done [01:14:36]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44775,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [01:14:36]process_action_free close_receipt [01:14:36]json_value_free [01:14:36]json_value_free done [01:14:36]process_json_proto returns [01:14:36]Send response to host [01:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44775,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [01:14:36]free response buf [01:14:36]execute_script done [01:14:36]execute_script returns [01:14:36]free content buf [01:14:36]Sock 9.Close socket [01:14:36]Sock 9.Thread stoped [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:14]int [01:26:14]Write to MH i2c: 01 00 00 F9 0D 06 [01:26:14]*** FLAG_PRN_KEY set [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 F9 0D 00 08 00 00 00 FF 0F 23 [01:26:14]state=0 [01:26:14]Key pressed [01:26:14]Feed [01:26:14]Write to MH i2c: D8 00 00 FA 0D DE [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: D8 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: D8 01 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: D8 01 00 FA 0D 00 DF [01:26:14]int [01:26:14]Write to MH i2c: 01 00 00 FB 0D 08 [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 FB 0D 00 48 00 00 00 3D 00 94 [01:26:14]state=2 [01:26:14]Key pressed [01:26:14]int [01:26:14]Write to MH i2c: 01 00 00 FC 0D 09 [01:26:14]*** FLAG_PRN_KEY reset [01:26:14]Write i2c OK [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 [01:26:14]MH_I2C_Read... [01:26:14]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 F6 0F 15 [01:26:14]state=2 [01:26:14]Stop feed [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:38]accept exits with 10 [01:33:38]New connection [01:33:38]New thread 3066625380 created [01:33:38]Thread 3066482020 joined [01:33:38]Waiting for new connection... [01:33:38] Sock 10.Parse request [01:33:38]Sock 10.Check first char [01:33:38]Sock 10.First char is OK [01:33:38]request: POST /json_proto HTTP/1.0 [01:33:38]Method: POST [01:33:38]URL: /json_proto [01:33:38]Method is POST - this is cgi request [01:33:38]url: /json_proto [01:33:38]query_string will be loaded in cgi processing [01:33:38]execute_cgi json_proto POST (null) [01:33:38]execute_cgi path=json_proto method=POST [01:33:38]POST find Content-Length [01:33:38]Host: 172.17.45.196:8080 [01:33:38]Content-Length: 978 [01:33:38]Content-Type: application/json [01:33:38] [01:33:38]POST finish read [01:33:38]Found Content-Length = 978 [01:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14667", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:38]execute_script... [01:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14667", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 2.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:38]POST & json_proto [01:33:38]process_json_proto [01:33:38]json parsed OK: [01:33:38]protocol is kg_v1.0 [01:33:38]action value=close_receipt [01:33:38]process_action close_receipt [01:33:38]cmd_close_receipt [01:33:38]MH_GetDate [01:33:38]Write to MH i2c: F0 00 00 FD 0D F9 [01:33:38]Write i2c OK [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: F0 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: F0 09 00 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: F0 09 00 FD 0D 00 74 F1 A6 66 BB 03 A5 66 3C [01:33:38]GetLastDocTimeStamp 1722215675 [01:33:38]current date 1722216820 [01:33:38]FM_GetShiftState [01:33:38]SAM_PROTO_GetShiftState [01:33:38]wFMCommunicate request_size=4 [01:33:38]MH_SAM_APDU [01:33:38]CAPDU: 80 13 01 00 [01:33:38]Write to MH i2c: E2 08 00 FE 0D 80 13 01 00 00 00 00 00 88 [01:33:38]Write i2c OK [01:33:38]MH_I2C_Read... [01:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:38]Read from MH i2c: E2 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: E2 0E 00 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: E2 0E 00 FE 0D 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 91 [01:33:38]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:33:38]wFMCommunicate OK [01:33:38]SAM_PROTO_GetShiftState done [01:33:38]FM_GetShiftState done [01:33:38]opened in 1722212369 [01:33:38]opened+sec_in_day 1722298769 [01:33:38]quantity*price = 50000 [01:33:38]sum+1 = 50001 [01:33:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 570.00 НСП 1% : 5.04 НДС 12% : 60.53 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 11 29.07.2024 01:33 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44776 ФПД: 151165335189287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013340&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44776&fm=151165335189287&tin=02508201610067®Number=0000000000092655&sum=57000 0 [01:33:39]StoreToDocumentArchive [01:33:39]shift 431 fd 44776 [01:33:39]save to /storage/0431/doc_00044776 [01:33:39]save last doc name /storage/0431/doc_00044776 to /storage/kkm_last_doc_name [01:33:39]save OK [01:33:39]Clear old archive folders... [01:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=407 [01:33:39]tlvbuf is 017EB9E0 [01:33:39]SAM_PROTO_ClearQueue [01:33:39]wFMCommunicate request_size=4 [01:33:39]MH_SAM_APDU [01:33:39]CAPDU: 80 09 00 00 [01:33:39]Write to MH i2c: E2 08 00 0B 0E 80 09 00 00 00 00 00 00 8B [01:33:39]Write i2c OK [01:33:39]MH_I2C_Read... [01:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:33:39]Read from MH i2c: E2 [01:33:39]MH_I2C_Read... [01:33:39]Read from MH i2c: E2 03 00 [01:33:39]MH_I2C_Read... [01:33:39]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [01:33:39]RAPDU: 90 00 [01:33:39]wFMCommunicate OK [01:33:39]SAM_PROTO_ClearQueue done [01:33:39]KKMCreateOFDPacket [01:33:39]OFDProtocolAddRootSTLVToBuf [01:33:39]FM_MakeSignedData [01:33:39]FM_MakeSignedData [01:33:39]SAM_PROTO_SignData [01:33:39]wFMCommunicate request_size=4 [01:33:39]MH_SAM_APDU [01:33:39]CAPDU: 80 0D 01 02 [01:33:39]Write to MH i2c: E2 08 00 0C 0E 80 0D 01 02 00 00 00 00 93 [01:33:39]Write i2c OK [01:33:39]MH_I2C_Read... [01:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:33:39]Read from MH i2c: E2 [01:33:39]MH_I2C_Read... [01:33:39]Read from MH i2c: E2 03 00 [01:33:39]MH_I2C_Read... [01:33:39]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [01:33:39]RAPDU: 90 00 [01:33:39]wFMCommunicate OK [01:33:39]wFMCommunicate request_size=255 [01:33:39]MH_SAM_APDU [01:33:39]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [01:33:39]Write to MH i2c: E2 02 01 0D 0E 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 87 [01:33:39]Write i2c OK [01:33:39]MH_I2C_Read... [01:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:40]Read from MH i2c: E2 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 03 00 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 03 00 0D 0E 00 90 00 8F [01:33:40]RAPDU: 90 00 [01:33:40]wFMCommunicate OK [01:33:40]wFMCommunicate request_size=166 [01:33:40]MH_SAM_APDU [01:33:40]CAPDU: 80 0D 02 02 A1 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 74 F1 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E8 AE 00 00 35 04 06 00 89 7B EC 1B 37 27 [01:33:40]Write to MH i2c: E2 A9 00 0E 0E 80 0D 02 02 A1 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 74 F1 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E8 AE 00 00 35 04 06 00 89 7B EC 1B 37 27 00 00 04 [01:33:40]Write i2c OK [01:33:40]MH_I2C_Read... [01:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:40]Read from MH i2c: E2 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 03 00 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 03 00 0E 0E 00 90 00 90 [01:33:40]RAPDU: 90 00 [01:33:40]wFMCommunicate OK [01:33:40]wFMCommunicate request_size=4 [01:33:40]MH_SAM_APDU [01:33:40]CAPDU: 80 0D 03 02 [01:33:40]Write to MH i2c: E2 08 00 0F 0E 80 0D 03 02 00 00 00 00 98 [01:33:40]Write i2c OK [01:33:40]MH_I2C_Read... [01:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:33:40]Read from MH i2c: E2 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 0B 00 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 0B 00 0F 0E 00 02 13 A5 1D 1E 57 C6 61 90 00 0C [01:33:40]RAPDU: 02 13 A5 1D 1E 57 C6 61 90 00 [01:33:40]wFMCommunicate OK [01:33:40]SAM_PROTO_SignData done [01:33:40]FM_MakeSignedData done [01:33:40]CreateOFDProtocolMessage [01:33:40]wFMCommunicate request_size=4 [01:33:40]MH_SAM_APDU [01:33:40]CAPDU: 80 11 00 00 [01:33:40]Write to MH i2c: E2 08 00 10 0E 80 11 00 00 00 00 00 00 98 [01:33:40]Write i2c OK [01:33:40]MH_I2C_Read... [01:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:40]Read from MH i2c: E2 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 17 00 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: E2 17 00 10 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 EC [01:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:33:40]wFMCommunicate OK [01:33:40]CreateOFDProtocolMessage done [01:33:40]OFDSenderStorePacket 44776 [01:33:40]StoreOFDPacket docnum=44776 [01:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AB 01 00 00 CB A8 A3 01 D7 86 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 74 F1 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E8 AE 00 00 35 04 06 00 89 7B EC 1B 37 27 02 13 A5 1D 1E 57 C6 61 [01:33:40]CheckFolder [01:33:40]dirname=/storage/ofd_packets [01:33:40]CheckFolder done [01:33:40]ProducePacketName [01:33:40]name=ofd_packets/00044776 [01:33:40]NVStorageSaveData ofd_packets/00044776 [01:33:40]File name is /storage/ofd_packets/00044776 [01:33:40]Write 457 bytes [01:33:40]NVStorageSaveData done [01:33:40]OFDSenderStorePacket done [01:33:40]KKMCreateOFDPacket done [01:33:40]NVStorageSaveData kkm_last_timestamp [01:33:40]File name is /storage/kkm_last_timestamp [01:33:40]Write 4 bytes [01:33:40]NVStorageSaveData done [01:33:40]ExternCall_PrintAddStr [01:33:40]wPrintStart [01:33:40]Write to MH i2c: 01 00 00 11 0E 1F [01:33:40]Write i2c OK [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: 01 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: 01 07 00 [01:33:40]MH_I2C_Read... [01:33:40]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 FF 0F 34 [01:33:40]RasterBufferAndPrint [01:33:40]line Счет N : (3)14667 [01:33:40]line ИНН: 02508201610067 [01:33:40]line Контрольно-Кассовый Чек [01:33:40]line ПРОДАЖА [01:33:40]line Товар: 4606532000189 [01:33:40]line Тормозная жидкость РосДот-4 0,455кг [01:33:40]line 2.000 * 250.00 [01:33:40]line = 500.00 [01:33:40]line НДС 12% НСП 1% [01:33:40]line > о реализуемом товаре [01:33:40]line Товар: 4700000310326 [01:33:40]line Вода Адыгене 1л б/г [01:33:40]line 2.000 * 35.00 [01:33:40]line = 70.00 [01:33:40]line НДС 12% НСП 1% [01:33:40]line > о реализуемом товаре [01:33:40]line ИТОГО: 570.00 [01:33:40]line НСП 1% : 5.04 [01:33:40]line НДС 12% : 60.53 [01:33:40]line Наличными: 570.00 [01:33:40]line Безнал.: 0.00 [01:33:40]line Место: АЗС № 128 "Партнер Нефть" [01:33:40]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [01:33:40]line СНО: Общий режим [01:33:40]line Чек 11 29.07.2024 01:33 [01:33:40]line Смена: 431 ФФД: 1.0 [01:33:40]line ЗНМ: 0300000045 [01:33:40]line РНМ: 0000000000092655 [01:33:40]line Версия ККМ: 001 [01:33:40]line ФМ: 0000000000874941 [01:33:40]line ФД: 44776 [01:33:40]line ФПД: 151165335189287 [01:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013340&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44776&fm=151165335189287&tin=02508201610067®Number=0000000000092655&sum=57000 [01:33:40]line 0 [01:33:40]OFD Sender: Processing packet 44776 [packets to send 7, broken 6] [01:33:40]ProducePacketName [01:33:40]name=ofd_packets/00044776 [01:33:40]OFD Sender: To server: pG, [01:33:40]CommunicateWithHost lk.salyk.kg:30040 [01:33:40]ConnectInit lk.salyk.kg [01:33:40]written 0, free lines is 4095 [01:33:40]Connected sock=9 [01:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 AB 01 00 00 CB A8 A3 01 D7 86 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 74 F1 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E8 AE 00 00 35 04 06 00 89 7B EC 1B 37 27 02 13 A5 1D 1E 57 C6 61 [01:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 83 06 47 00 FD F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E8 AE 00 00 F4 03 04 00 85 9D A6 66 B6 04 01 00 00 E6 66 2F CD 49 CD 16 93 [01:33:41]CommunicateWithHost err = 0 [01:33:41]CheckOFDResponse [01:33:41]1017 (14) - 77093643461234 [01:33:41]1041 (16) - 0000000000874941 [01:33:41]1040 (4) - 44776 [01:33:41]1012 (4) - 28.07.2024 19:35 [01:33:41]1206 (1) - 0 [01:33:41]OFD Sender: Remove packet 44776 [01:33:41]ProducePacketName [01:33:41]name=ofd_packets/00044776 [01:33:41]NVStorageDeleteData [01:33:41]Write to MH i2c: 01 00 00 40 0E 4E [01:33:41]Write i2c OK [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: 01 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: 01 07 00 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 84 0C E5 [01:33:41]RasterBufferAndPrint [01:33:41]line [01:33:41]line [01:33:41]line [01:33:41]line [01:33:41]line [01:33:41]written 0, free lines is 3210 [01:33:41]process_action close_receipt done [01:33:41]requested_data is exist [01:33:41]produce_requested_data [01:33:41]requested_item fm.sn is exist - process it [01:33:41]wFMCommunicate request_size=4 [01:33:41]MH_SAM_APDU [01:33:41]CAPDU: 80 11 00 00 [01:33:41]Write to MH i2c: E2 08 00 47 0E 80 11 00 00 00 00 00 00 CF [01:33:41]Write i2c OK [01:33:41]MH_I2C_Read... [01:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:41]Read from MH i2c: E2 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 17 00 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 17 00 47 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 23 [01:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:33:41]wFMCommunicate OK [01:33:41]requested_item fd.num is exist - process it [01:33:41]SAM_PROTO_GetFieldsCounters [01:33:41]wFMCommunicate request_size=4 [01:33:41]MH_SAM_APDU [01:33:41]CAPDU: 80 13 00 00 [01:33:41]Write to MH i2c: E2 08 00 48 0E 80 13 00 00 00 00 00 00 D2 [01:33:41]Write i2c OK [01:33:41]MH_I2C_Read... [01:33:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:33:41]Read from MH i2c: E2 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 62 00 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 62 00 48 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E8 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [01:33:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E8 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:33:41]wFMCommunicate OK [01:33:41]SAM_PROTO_GetFieldsCounters done [01:33:41]requested_item shift.num is exist - process it [01:33:41]requested_item shift.opened is exist - process it [01:33:41]req_shift_opened [01:33:41]FM_GetShiftState [01:33:41]SAM_PROTO_GetShiftState [01:33:41]wFMCommunicate request_size=4 [01:33:41]MH_SAM_APDU [01:33:41]CAPDU: 80 13 01 00 [01:33:41]Write to MH i2c: E2 08 00 49 0E 80 13 01 00 00 00 00 00 D4 [01:33:41]Write i2c OK [01:33:41]MH_I2C_Read... [01:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:41]Read from MH i2c: E2 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 0E 00 [01:33:41]MH_I2C_Read... [01:33:41]Read from MH i2c: E2 0E 00 49 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 DD [01:33:41]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:33:41]wFMCommunicate OK [01:33:41]SAM_PROTO_GetShiftState done [01:33:41]FM_GetShiftState done [01:33:41]req_shift_opened done [01:33:41]requested_item shift.open_date is exist - process it [01:33:41]req_shift_open_date [01:33:41]req_shift_open_date done [01:33:41]produce_requested_data done [01:33:41]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44776,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [01:33:41]process_action_free close_receipt [01:33:41]json_value_free [01:33:41]json_value_free done [01:33:41]process_json_proto returns [01:33:41]Send response to host [01:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44776,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [01:33:41]free response buf [01:33:41]execute_script done [01:33:41]execute_script returns [01:33:41]free content buf [01:33:41]Sock 10.Close socket [01:33:41]Sock 10.Thread stoped [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:50:58]int [01:50:58]Write to MH i2c: 01 00 00 4A 0E 58 [01:50:58]*** FLAG_PRN_KEY set [01:50:58]Write i2c OK [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 4A 0E 00 08 00 00 00 FF 0F 75 [01:50:58]state=0 [01:50:58]Key pressed [01:50:58]Feed [01:50:58]Write to MH i2c: D8 00 00 4B 0E 30 [01:50:58]Write i2c OK [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: D8 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: D8 01 00 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: D8 01 00 4B 0E 00 31 [01:50:58]int [01:50:58]Write to MH i2c: 01 00 00 4C 0E 5A [01:50:58]Write i2c OK [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 4C 0E 00 48 00 00 00 3D 00 E6 [01:50:58]state=2 [01:50:58]Key pressed [01:50:58]int [01:50:58]Write to MH i2c: 01 00 00 4D 0E 5B [01:50:58]*** FLAG_PRN_KEY reset [01:50:58]Write i2c OK [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 [01:50:58]MH_I2C_Read... [01:50:58]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 F6 0F 67 [01:50:58]state=2 [01:50:58]Stop feed [01:51:02]OFD Sender: No OFD packet to send [01:51:04]accept exits with 7 [01:51:04]New connection [01:51:04]New thread 3066482020 created [01:51:04]Thread 3066625380 joined [01:51:04]Waiting for new connection... [01:51:04] Sock 7.Parse request [01:51:04]Sock 7.Check first char [01:51:04]Sock 7.First char is OK [01:51:04]request: POST /json_proto HTTP/1.0 [01:51:04]Method: POST [01:51:04]URL: /json_proto [01:51:04]Method is POST - this is cgi request [01:51:04]url: /json_proto [01:51:04]query_string will be loaded in cgi processing [01:51:04]execute_cgi json_proto POST (null) [01:51:04]execute_cgi path=json_proto method=POST [01:51:04]POST find Content-Length [01:51:04]Host: 172.17.45.196:8080 [01:51:04]Content-Length: 622 [01:51:04]Content-Type: application/json [01:51:04] [01:51:04]POST finish read [01:51:04]Found Content-Length = 622 [01:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14668", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:04]execute_script... [01:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14668", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:04]POST & json_proto [01:51:04]process_json_proto [01:51:04]json parsed OK: [01:51:04]protocol is kg_v1.0 [01:51:04]action value=close_receipt [01:51:04]process_action close_receipt [01:51:04]cmd_close_receipt [01:51:04]MH_GetDate [01:51:04]Write to MH i2c: F0 00 00 4E 0E 4B [01:51:04]Write i2c OK [01:51:04]MH_I2C_Read... [01:51:04]Read from MH i2c: F0 [01:51:04]MH_I2C_Read... [01:51:04]Read from MH i2c: F0 09 00 [01:51:04]MH_I2C_Read... [01:51:04]Read from MH i2c: F0 09 00 4E 0E 00 8A F5 A6 66 BB 03 A5 66 A8 [01:51:04]GetLastDocTimeStamp 1722216820 [01:51:04]current date 1722217866 [01:51:04]FM_GetShiftState [01:51:04]SAM_PROTO_GetShiftState [01:51:04]wFMCommunicate request_size=4 [01:51:04]MH_SAM_APDU [01:51:04]CAPDU: 80 13 01 00 [01:51:04]Write to MH i2c: E2 08 00 4F 0E 80 13 01 00 00 00 00 00 DA [01:51:04]Write i2c OK [01:51:04]MH_I2C_Read... [01:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:04]Read from MH i2c: E2 [01:51:04]MH_I2C_Read... [01:51:04]Read from MH i2c: E2 0E 00 [01:51:04]MH_I2C_Read... [01:51:04]Read from MH i2c: E2 0E 00 4F 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 E3 [01:51:04]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:51:04]wFMCommunicate OK [01:51:04]SAM_PROTO_GetShiftState done [01:51:04]FM_GetShiftState done [01:51:04]opened in 1722212369 [01:51:04]opened+sec_in_day 1722298769 [01:51:04]quantity*price = 14000 [01:51:04]sum+1 = 14001 [01:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 12 29.07.2024 01:51 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44777 ФПД: 224299598371260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T015106&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44777&fm=224299598371260&tin=02508201610067®Number=0000000000092655&sum=14000 0 [01:51:05]StoreToDocumentArchive [01:51:05]shift 431 fd 44777 [01:51:05]save to /storage/0431/doc_00044777 [01:51:05]save last doc name /storage/0431/doc_00044777 to /storage/kkm_last_doc_name [01:51:05]save OK [01:51:05]Clear old archive folders... [01:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:51:05]tlvbuf is 017A6950 [01:51:05]SAM_PROTO_ClearQueue [01:51:05]wFMCommunicate request_size=4 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 09 00 00 [01:51:05]Write to MH i2c: E2 08 00 5C 0E 80 09 00 00 00 00 00 00 DC [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 5C 0E 00 90 00 DE [01:51:05]RAPDU: 90 00 [01:51:05]wFMCommunicate OK [01:51:05]SAM_PROTO_ClearQueue done [01:51:05]KKMCreateOFDPacket [01:51:05]OFDProtocolAddRootSTLVToBuf [01:51:05]FM_MakeSignedData [01:51:05]FM_MakeSignedData [01:51:05]SAM_PROTO_SignData [01:51:05]wFMCommunicate request_size=4 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 0D 01 02 [01:51:05]Write to MH i2c: E2 08 00 5D 0E 80 0D 01 02 00 00 00 00 E4 [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 5D 0E 00 90 00 DF [01:51:05]RAPDU: 90 00 [01:51:05]wFMCommunicate OK [01:51:05]wFMCommunicate request_size=255 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8A F5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 [01:51:05]Write to MH i2c: E2 02 01 5E 0E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8A F5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 00 00 BD [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 5E 0E 00 90 00 E0 [01:51:05]RAPDU: 90 00 [01:51:05]wFMCommunicate OK [01:51:05]wFMCommunicate request_size=34 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E9 AE 00 00 35 04 06 00 CB FF D1 E2 59 BC [01:51:05]Write to MH i2c: E2 25 00 5F 0E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E9 AE 00 00 35 04 06 00 CB FF D1 E2 59 BC 00 00 D2 [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [01:51:05]RAPDU: 90 00 [01:51:05]wFMCommunicate OK [01:51:05]wFMCommunicate request_size=4 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 0D 03 02 [01:51:05]Write to MH i2c: E2 08 00 60 0E 80 0D 03 02 00 00 00 00 E9 [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 0B 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 0B 00 60 0E 00 02 C7 D9 D4 60 CC 3F A0 90 00 6B [01:51:05]RAPDU: 02 C7 D9 D4 60 CC 3F A0 90 00 [01:51:05]wFMCommunicate OK [01:51:05]SAM_PROTO_SignData done [01:51:05]FM_MakeSignedData done [01:51:05]CreateOFDProtocolMessage [01:51:05]wFMCommunicate request_size=4 [01:51:05]MH_SAM_APDU [01:51:05]CAPDU: 80 11 00 00 [01:51:05]Write to MH i2c: E2 08 00 61 0E 80 11 00 00 00 00 00 00 E9 [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:05]Read from MH i2c: E2 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 17 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: E2 17 00 61 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 3D [01:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:51:05]wFMCommunicate OK [01:51:05]CreateOFDProtocolMessage done [01:51:05]OFDSenderStorePacket 44777 [01:51:05]StoreOFDPacket docnum=44777 [01:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 0D CF 1F 01 ED 90 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8A F5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E9 AE 00 00 35 04 06 00 CB FF D1 E2 59 BC 02 C7 D9 D4 60 CC 3F A0 [01:51:05]CheckFolder [01:51:05]dirname=/storage/ofd_packets [01:51:05]CheckFolder done [01:51:05]ProducePacketName [01:51:05]name=ofd_packets/00044777 [01:51:05]NVStorageSaveData ofd_packets/00044777 [01:51:05]File name is /storage/ofd_packets/00044777 [01:51:05]Write 325 bytes [01:51:05]NVStorageSaveData done [01:51:05]OFDSenderStorePacket done [01:51:05]KKMCreateOFDPacket done [01:51:05]NVStorageSaveData kkm_last_timestamp [01:51:05]File name is /storage/kkm_last_timestamp [01:51:05]Write 4 bytes [01:51:05]NVStorageSaveData done [01:51:05]ExternCall_PrintAddStr [01:51:05]wPrintStart [01:51:05]Write to MH i2c: 01 00 00 62 0E 70 [01:51:05]Write i2c OK [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: 01 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: 01 07 00 [01:51:05]MH_I2C_Read... [01:51:05]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 FF 0F 85 [01:51:05]RasterBufferAndPrint [01:51:05]line Счет N : (3)14668 [01:51:05]line ИНН: 02508201610067 [01:51:05]line Контрольно-Кассовый Чек [01:51:05]line ПРОДАЖА [01:51:05]line Товар: 48743587 [01:51:05]line Сигареты Winston XStyle Silver [01:51:05]line 1.000 * 140.00 [01:51:05]line = 140.00 [01:51:05]line НДС 12% НСП 1% [01:51:05]line > о реализуемом товаре [01:51:05]line ИТОГО: 140.00 [01:51:05]line НСП 1% : 1.24 [01:51:05]line НДС 12% : 14.87 [01:51:05]line Наличными: 140.00 [01:51:05]line Безнал.: 0.00 [01:51:05]line Место: АЗС № 128 "Партнер Нефть" [01:51:05]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [01:51:05]line СНО: Общий режим [01:51:05]line Чек 12 29.07.2024 01:51 [01:51:05]line Смена: 431 ФФД: 1.0 [01:51:05]line ЗНМ: 0300000045 [01:51:05]line РНМ: 0000000000092655 [01:51:06]line Версия ККМ: 001 [01:51:06]line ФМ: 0000000000874941 [01:51:06]line ФД: 44777 [01:51:06]line ФПД: 224299598371260 [01:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T015106&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44777&fm=224299598371260&tin=02508201610067®Number=0000000000092655&sum=14000 [01:51:06]line 0 [01:51:06]OFD Sender: Processing packet 44777 [packets to send 7, broken 6] [01:51:06]ProducePacketName [01:51:06]name=ofd_packets/00044777 [01:51:06]OFD Sender: To server: pG, [01:51:06]CommunicateWithHost lk.salyk.kg:30040 [01:51:06]ConnectInit lk.salyk.kg [01:51:06]written 0, free lines is 4095 [01:51:06]Connected sock=10 [01:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 27 01 00 00 0D CF 1F 01 ED 90 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 8A F5 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E9 AE 00 00 35 04 06 00 CB FF D1 E2 59 BC 02 C7 D9 D4 60 CC 3F A0 [01:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 40 FC 47 00 4B 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 E9 AE 00 00 F4 03 04 00 9B A1 A6 66 B6 04 01 00 00 89 3B 0D E7 CB 98 8A BA [01:51:06]CommunicateWithHost err = 0 [01:51:06]CheckOFDResponse [01:51:06]1017 (14) - 77093643461234 [01:51:06]1041 (16) - 0000000000874941 [01:51:06]1040 (4) - 44777 [01:51:06]1012 (4) - 28.07.2024 19:52 [01:51:06]1206 (1) - 0 [01:51:06]OFD Sender: Remove packet 44777 [01:51:06]ProducePacketName [01:51:06]name=ofd_packets/00044777 [01:51:06]NVStorageDeleteData [01:51:06]Write to MH i2c: 01 00 00 8B 0E 99 [01:51:06]Write i2c OK [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: 01 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: 01 07 00 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 CA 0C 76 [01:51:06]RasterBufferAndPrint [01:51:06]line [01:51:06]line [01:51:06]line [01:51:06]line [01:51:06]line [01:51:06]written 0, free lines is 3279 [01:51:06]process_action close_receipt done [01:51:06]requested_data is exist [01:51:06]produce_requested_data [01:51:06]requested_item fm.sn is exist - process it [01:51:06]wFMCommunicate request_size=4 [01:51:06]MH_SAM_APDU [01:51:06]CAPDU: 80 11 00 00 [01:51:06]Write to MH i2c: E2 08 00 92 0E 80 11 00 00 00 00 00 00 1A [01:51:06]Write i2c OK [01:51:06]MH_I2C_Read... [01:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:06]Read from MH i2c: E2 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: E2 17 00 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: E2 17 00 92 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 6E [01:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [01:51:06]wFMCommunicate OK [01:51:06]requested_item fd.num is exist - process it [01:51:06]SAM_PROTO_GetFieldsCounters [01:51:06]wFMCommunicate request_size=4 [01:51:06]MH_SAM_APDU [01:51:06]CAPDU: 80 13 00 00 [01:51:06]Write to MH i2c: E2 08 00 93 0E 80 13 00 00 00 00 00 00 1D [01:51:06]Write i2c OK [01:51:06]MH_I2C_Read... [01:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:06]Read from MH i2c: E2 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: E2 62 00 [01:51:06]MH_I2C_Read... [01:51:06]Read from MH i2c: E2 62 00 93 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E9 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [01:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 E9 AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:51:06]wFMCommunicate OK [01:51:06]SAM_PROTO_GetFieldsCounters done [01:51:06]requested_item shift.num is exist - process it [01:51:06]requested_item shift.opened is exist - process it [01:51:06]req_shift_opened [01:51:06]FM_GetShiftState [01:51:06]SAM_PROTO_GetShiftState [01:51:06]wFMCommunicate request_size=4 [01:51:06]MH_SAM_APDU [01:51:06]CAPDU: 80 13 01 00 [01:51:06]Write to MH i2c: E2 08 00 94 0E 80 13 01 00 00 00 00 00 1F [01:51:06]Write i2c OK [01:51:06]MH_I2C_Read... [01:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:07]Read from MH i2c: E2 [01:51:07]MH_I2C_Read... [01:51:07]Read from MH i2c: E2 0E 00 [01:51:07]MH_I2C_Read... [01:51:07]Read from MH i2c: E2 0E 00 94 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 28 [01:51:07]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [01:51:07]wFMCommunicate OK [01:51:07]SAM_PROTO_GetShiftState done [01:51:07]FM_GetShiftState done [01:51:07]req_shift_opened done [01:51:07]requested_item shift.open_date is exist - process it [01:51:07]req_shift_open_date [01:51:07]req_shift_open_date done [01:51:07]produce_requested_data done [01:51:07]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44777,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [01:51:07]process_action_free close_receipt [01:51:07]json_value_free [01:51:07]json_value_free done [01:51:07]process_json_proto returns [01:51:07]Send response to host [01:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44777,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [01:51:07]free response buf [01:51:07]execute_script done [01:51:07]execute_script returns [01:51:07]free content buf [01:51:07]Sock 7.Close socket [01:51:07]Sock 7.Thread stoped [01:51:07]OFD Sender: No OFD packet to send [01:51:08]int [01:51:08]Write to MH i2c: 01 00 00 95 0E A3 [01:51:08]*** FLAG_PRN_KEY set [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 95 0E 00 08 00 00 00 FF 0F C0 [01:51:08]state=0 [01:51:08]Key pressed [01:51:08]Feed [01:51:08]Write to MH i2c: D8 00 00 96 0E 7B [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: D8 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: D8 01 00 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: D8 01 00 96 0E 00 7C [01:51:08]int [01:51:08]Write to MH i2c: 01 00 00 97 0E A5 [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 97 0E 00 48 00 00 00 3C 00 30 [01:51:08]state=2 [01:51:08]Key pressed [01:51:08]int [01:51:08]Write to MH i2c: 01 00 00 98 0E A6 [01:51:08]*** FLAG_PRN_KEY reset [01:51:08]Write i2c OK [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 [01:51:08]MH_I2C_Read... [01:51:08]Read from MH i2c: 01 07 00 98 0E 00 00 00 00 00 F7 0F B3 [01:51:08]state=2 [01:51:08]Stop feed [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:57]accept exits with 9 [02:08:57]New connection [02:08:57]New thread 3066625380 created [02:08:57]Thread 3066482020 joined [02:08:57]Waiting for new connection... [02:08:57] Sock 9.Parse request [02:08:57]Sock 9.Check first char [02:08:57]Sock 9.First char is OK [02:08:57]request: POST /json_proto HTTP/1.0 [02:08:57]Method: POST [02:08:57]URL: /json_proto [02:08:57]Method is POST - this is cgi request [02:08:57]url: /json_proto [02:08:57]query_string will be loaded in cgi processing [02:08:57]execute_cgi json_proto POST (null) [02:08:57]execute_cgi path=json_proto method=POST [02:08:57]POST find Content-Length [02:08:57]Host: 172.17.45.196:8080 [02:08:57]Content-Length: 617 [02:08:57]Content-Type: application/json [02:08:57] [02:08:57]POST finish read [02:08:57]Found Content-Length = 617 [02:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14669", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:57]execute_script... [02:08:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14669", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:57]POST & json_proto [02:08:57]process_json_proto [02:08:57]json parsed OK: [02:08:57]protocol is kg_v1.0 [02:08:57]action value=close_receipt [02:08:57]process_action close_receipt [02:08:57]cmd_close_receipt [02:08:57]MH_GetDate [02:08:57]Write to MH i2c: F0 00 00 99 0E 96 [02:08:57]Write i2c OK [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: F0 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: F0 09 00 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: F0 09 00 99 0E 00 BB F9 A6 66 BB 03 A5 66 28 [02:08:57]GetLastDocTimeStamp 1722217866 [02:08:57]current date 1722218939 [02:08:57]FM_GetShiftState [02:08:57]SAM_PROTO_GetShiftState [02:08:57]wFMCommunicate request_size=4 [02:08:57]MH_SAM_APDU [02:08:57]CAPDU: 80 13 01 00 [02:08:57]Write to MH i2c: E2 08 00 9A 0E 80 13 01 00 00 00 00 00 25 [02:08:57]Write i2c OK [02:08:57]MH_I2C_Read... [02:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:57]Read from MH i2c: E2 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: E2 0E 00 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: E2 0E 00 9A 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 2E [02:08:57]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [02:08:57]wFMCommunicate OK [02:08:57]SAM_PROTO_GetShiftState done [02:08:57]FM_GetShiftState done [02:08:57]opened in 1722212369 [02:08:57]opened+sec_in_day 1722298769 [02:08:57]quantity*price = 15500 [02:08:57]sum+1 = 15501 [02:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 13 29.07.2024 02:08 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44778 ФПД: 233423858987503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020859&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44778&fm=233423858987503&tin=02508201610067®Number=0000000000092655&sum=15500 0 [02:08:58]StoreToDocumentArchive [02:08:58]shift 431 fd 44778 [02:08:58]save to /storage/0431/doc_00044778 [02:08:58]save last doc name /storage/0431/doc_00044778 to /storage/kkm_last_doc_name [02:08:58]save OK [02:08:58]Clear old archive folders... [02:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=270 [02:08:58]tlvbuf is 0179B9D0 [02:08:58]SAM_PROTO_ClearQueue [02:08:58]wFMCommunicate request_size=4 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 09 00 00 [02:08:58]Write to MH i2c: E2 08 00 A7 0E 80 09 00 00 00 00 00 00 27 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 A7 0E 00 90 00 29 [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]SAM_PROTO_ClearQueue done [02:08:58]KKMCreateOFDPacket [02:08:58]OFDProtocolAddRootSTLVToBuf [02:08:58]FM_MakeSignedData [02:08:58]FM_MakeSignedData [02:08:58]SAM_PROTO_SignData [02:08:58]wFMCommunicate request_size=4 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 01 02 [02:08:58]Write to MH i2c: E2 08 00 A8 0E 80 0D 01 02 00 00 00 00 2F [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 A8 0E 00 90 00 2A [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=255 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BB F9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [02:08:58]Write to MH i2c: E2 02 01 A9 0E 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BB F9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 13 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 A9 0E 00 90 00 2B [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=29 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 02 02 18 38 37 34 39 34 31 10 04 04 00 EA AE 00 00 35 04 06 00 D4 4C 3A 32 71 EF [02:08:58]Write to MH i2c: E2 20 00 AA 0E 80 0D 02 02 18 00 38 37 34 39 34 31 10 04 04 00 EA AE 00 00 35 04 06 00 D4 4C 3A 32 71 EF 00 00 7E [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=4 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 03 02 [02:08:58]Write to MH i2c: E2 08 00 AB 0E 80 0D 03 02 00 00 00 00 34 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:59]Read from MH i2c: E2 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 0B 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 0B 00 AB 0E 00 C7 12 96 A7 BA 7C 6A AD 90 00 98 [02:08:59]RAPDU: C7 12 96 A7 BA 7C 6A AD 90 00 [02:08:59]wFMCommunicate OK [02:08:59]SAM_PROTO_SignData done [02:08:59]FM_MakeSignedData done [02:08:59]CreateOFDProtocolMessage [02:08:59]wFMCommunicate request_size=4 [02:08:59]MH_SAM_APDU [02:08:59]CAPDU: 80 11 00 00 [02:08:59]Write to MH i2c: E2 08 00 AC 0E 80 11 00 00 00 00 00 00 34 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:59]Read from MH i2c: E2 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 17 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 17 00 AC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 88 [02:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [02:08:59]wFMCommunicate OK [02:08:59]CreateOFDProtocolMessage done [02:08:59]OFDSenderStorePacket 44778 [02:08:59]StoreOFDPacket docnum=44778 [02:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 79 71 1A 01 73 31 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BB F9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EA AE 00 00 35 04 06 00 D4 4C 3A 32 71 EF C7 12 96 A7 BA 7C 6A AD [02:08:59]CheckFolder [02:08:59]dirname=/storage/ofd_packets [02:08:59]CheckFolder done [02:08:59]ProducePacketName [02:08:59]name=ofd_packets/00044778 [02:08:59]NVStorageSaveData ofd_packets/00044778 [02:08:59]File name is /storage/ofd_packets/00044778 [02:08:59]Write 320 bytes [02:08:59]NVStorageSaveData done [02:08:59]OFDSenderStorePacket done [02:08:59]KKMCreateOFDPacket done [02:08:59]NVStorageSaveData kkm_last_timestamp [02:08:59]File name is /storage/kkm_last_timestamp [02:08:59]Write 4 bytes [02:08:59]OFD Sender: Processing packet 44778 [packets to send 7, broken 6] [02:08:59]ProducePacketName [02:08:59]name=ofd_packets/00044778 [02:08:59]OFD Sender: To server: pG, [02:08:59]CommunicateWithHost lk.salyk.kg:30040 [02:08:59]ConnectInit lk.salyk.kg [02:08:59]NVStorageSaveData done [02:08:59]ExternCall_PrintAddStr [02:08:59]wPrintStart [02:08:59]Write to MH i2c: 01 00 00 AD 0E BB [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 FF 0F D0 [02:08:59]RasterBufferAndPrint [02:08:59]line Счет N : (3)14669 [02:08:59]line ИНН: 02508201610067 [02:08:59]line Контрольно-Кассовый Чек [02:08:59]line ПРОДАЖА [02:08:59]line Товар: 48746526 [02:08:59]line Сигареты Mevius Wind Blue [02:08:59]line 1.000 * 155.00 [02:08:59]line = 155.00 [02:08:59]line НДС 12% НСП 1% [02:08:59]line > о реализуемом товаре [02:08:59]line ИТОГО: 155.00 [02:08:59]line НСП 1% : 1.37 [02:08:59]line НДС 12% : 16.46 [02:08:59]line Наличными: 155.00 [02:08:59]line Безнал.: 0.00 [02:08:59]line Место: АЗС № 128 "Партнер Нефть" [02:08:59]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [02:08:59]line СНО: Общий режим [02:08:59]line Чек 13 29.07.2024 02:08 [02:08:59]line Смена: 431 ФФД: 1.0 [02:08:59]line ЗНМ: 0300000045 [02:08:59]line РНМ: 0000000000092655 [02:08:59]line Версия ККМ: 001 [02:08:59]line ФМ: 0000000000874941 [02:08:59]line ФД: 44778 [02:08:59]line ФПД: 233423858987503 [02:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T020859&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44778&fm=233423858987503&tin=02508201610067®Number=0000000000092655&sum=15500 [02:08:59]line 0 [02:08:59]Connected sock=11 [02:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 22 01 00 00 79 71 1A 01 73 31 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BB F9 A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EA AE 00 00 35 04 06 00 D4 4C 3A 32 71 EF C7 12 96 A7 BA 7C 6A AD [02:08:59]written 0, free lines is 4095 [02:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 1D E0 47 00 23 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EA AE 00 00 F4 03 04 00 CC A5 A6 66 B6 04 01 00 00 5A 39 FB 58 CE AF 35 35 [02:08:59]CommunicateWithHost err = 0 [02:08:59]CheckOFDResponse [02:08:59]1017 (14) - 77093643461234 [02:08:59]1041 (16) - 0000000000874941 [02:08:59]1040 (4) - 44778 [02:08:59]1012 (4) - 28.07.2024 20:10 [02:08:59]1206 (1) - 0 [02:08:59]OFD Sender: Remove packet 44778 [02:08:59]ProducePacketName [02:08:59]name=ofd_packets/00044778 [02:08:59]NVStorageDeleteData [02:08:59]Write to MH i2c: 01 00 00 D5 0E E3 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 D5 0E 00 00 00 00 00 D1 0C C7 [02:08:59]RasterBufferAndPrint [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]written 0, free lines is 3286 [02:08:59]process_action close_receipt done [02:08:59]requested_data is exist [02:08:59]produce_requested_data [02:08:59]requested_item fm.sn is exist - process it [02:08:59]wFMCommunicate request_size=4 [02:08:59]MH_SAM_APDU [02:08:59]CAPDU: 80 11 00 00 [02:08:59]Write to MH i2c: E2 08 00 DC 0E 80 11 00 00 00 00 00 00 64 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 [02:08:59]MH_I2C_Read... [02:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:59]Read from MH i2c: E2 17 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: E2 17 00 DC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 B8 [02:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [02:08:59]wFMCommunicate OK [02:08:59]requested_item fd.num is exist - process it [02:08:59]SAM_PROTO_GetFieldsCounters [02:08:59]wFMCommunicate request_size=4 [02:08:59]MH_SAM_APDU [02:08:59]CAPDU: 80 13 00 00 [02:08:59]Write to MH i2c: E2 08 00 DD 0E 80 13 00 00 00 00 00 00 67 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:00]Read from MH i2c: E2 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 62 00 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 62 00 DD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 EA AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [02:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 EA AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:09:00]wFMCommunicate OK [02:09:00]SAM_PROTO_GetFieldsCounters done [02:09:00]requested_item shift.num is exist - process it [02:09:00]requested_item shift.opened is exist - process it [02:09:00]req_shift_opened [02:09:00]FM_GetShiftState [02:09:00]SAM_PROTO_GetShiftState [02:09:00]wFMCommunicate request_size=4 [02:09:00]MH_SAM_APDU [02:09:00]CAPDU: 80 13 01 00 [02:09:00]Write to MH i2c: E2 08 00 DE 0E 80 13 01 00 00 00 00 00 69 [02:09:00]Write i2c OK [02:09:00]MH_I2C_Read... [02:09:00]OFD Sender: No OFD packet to send [02:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:00]Read from MH i2c: E2 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 0E 00 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 0E 00 DE 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 72 [02:09:00]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [02:09:00]wFMCommunicate OK [02:09:00]SAM_PROTO_GetShiftState done [02:09:00]FM_GetShiftState done [02:09:00]req_shift_opened done [02:09:00]requested_item shift.open_date is exist - process it [02:09:00]req_shift_open_date [02:09:00]req_shift_open_date done [02:09:00]produce_requested_data done [02:09:00]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44778,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [02:09:00]process_action_free close_receipt [02:09:00]json_value_free [02:09:00]json_value_free done [02:09:00]process_json_proto returns [02:09:00]Send response to host [02:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44778,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [02:09:00]free response buf [02:09:00]execute_script done [02:09:00]execute_script returns [02:09:00]free content buf [02:09:00]Sock 9.Close socket [02:09:00]Sock 9.Thread stoped [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:33]int [02:14:33]Write to MH i2c: 01 00 00 DF 0E ED [02:14:33]*** FLAG_PRN_KEY set [02:14:33]Write i2c OK [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 DF 0E 00 08 00 00 00 FF 0F 0A [02:14:33]state=0 [02:14:33]Key pressed [02:14:33]Feed [02:14:33]Write to MH i2c: D8 00 00 E0 0E C5 [02:14:33]Write i2c OK [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: D8 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: D8 01 00 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: D8 01 00 E0 0E 00 C6 [02:14:33]int [02:14:33]Write to MH i2c: 01 00 00 E1 0E EF [02:14:33]Write i2c OK [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 E1 0E 00 48 00 00 00 3D 00 7B [02:14:33]state=2 [02:14:33]Key pressed [02:14:33]int [02:14:33]Write to MH i2c: 01 00 00 E2 0E F0 [02:14:33]*** FLAG_PRN_KEY reset [02:14:33]Write i2c OK [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 [02:14:33]MH_I2C_Read... [02:14:33]Read from MH i2c: 01 07 00 E2 0E 00 00 00 00 00 F6 0F FC [02:14:33]state=2 [02:14:33]Stop feed [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:20]accept exits with 7 [02:35:20]New connection [02:35:20]New thread 3066482020 created [02:35:20]Thread 3066625380 joined [02:35:20]Waiting for new connection... [02:35:20] Sock 7.Parse request [02:35:20]Sock 7.Check first char [02:35:20]Sock 7.First char is OK [02:35:20]request: POST /json_proto HTTP/1.0 [02:35:20]Method: POST [02:35:20]URL: /json_proto [02:35:20]Method is POST - this is cgi request [02:35:20]url: /json_proto [02:35:20]query_string will be loaded in cgi processing [02:35:20]execute_cgi json_proto POST (null) [02:35:20]execute_cgi path=json_proto method=POST [02:35:20]POST find Content-Length [02:35:20]Host: 172.17.45.196:8080 [02:35:20]Content-Length: 624 [02:35:20]Content-Type: application/json [02:35:20] [02:35:20]POST finish read [02:35:20]Found Content-Length = 624 [02:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14670", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:20]execute_script... [02:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14670", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:20]POST & json_proto [02:35:20]process_json_proto [02:35:20]json parsed OK: [02:35:20]protocol is kg_v1.0 [02:35:20]action value=close_receipt [02:35:20]process_action close_receipt [02:35:20]cmd_close_receipt [02:35:20]MH_GetDate [02:35:20]Write to MH i2c: F0 00 00 E3 0E E0 [02:35:20]Write i2c OK [02:35:20]MH_I2C_Read... [02:35:20]Read from MH i2c: F0 [02:35:20]MH_I2C_Read... [02:35:20]Read from MH i2c: F0 09 00 [02:35:20]MH_I2C_Read... [02:35:20]Read from MH i2c: F0 09 00 E3 0E 00 EA FF A6 66 BB 03 A5 66 A7 [02:35:20]GetLastDocTimeStamp 1722218939 [02:35:20]current date 1722220522 [02:35:20]FM_GetShiftState [02:35:20]SAM_PROTO_GetShiftState [02:35:20]wFMCommunicate request_size=4 [02:35:20]MH_SAM_APDU [02:35:20]CAPDU: 80 13 01 00 [02:35:20]Write to MH i2c: E2 08 00 E4 0E 80 13 01 00 00 00 00 00 6F [02:35:20]Write i2c OK [02:35:20]MH_I2C_Read... [02:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:20]Read from MH i2c: E2 [02:35:20]MH_I2C_Read... [02:35:20]Read from MH i2c: E2 0E 00 [02:35:20]MH_I2C_Read... [02:35:20]Read from MH i2c: E2 0E 00 E4 0E 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 78 [02:35:20]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [02:35:20]wFMCommunicate OK [02:35:20]SAM_PROTO_GetShiftState done [02:35:20]FM_GetShiftState done [02:35:20]opened in 1722212369 [02:35:20]opened+sec_in_day 1722298769 [02:35:20]quantity*price = 15000 [02:35:20]sum+1 = 15001 [02:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 14 29.07.2024 02:35 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44779 ФПД: 127454786816563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T023522&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44779&fm=127454786816563&tin=02508201610067®Number=0000000000092655&sum=15000 0 [02:35:21]StoreToDocumentArchive [02:35:21]shift 431 fd 44779 [02:35:21]save to /storage/0431/doc_00044779 [02:35:21]save last doc name /storage/0431/doc_00044779 to /storage/kkm_last_doc_name [02:35:21]save OK [02:35:21]Clear old archive folders... [02:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=277 [02:35:21]tlvbuf is 0180E300 [02:35:21]SAM_PROTO_ClearQueue [02:35:21]wFMCommunicate request_size=4 [02:35:21]MH_SAM_APDU [02:35:21]CAPDU: 80 09 00 00 [02:35:21]Write to MH i2c: E2 08 00 F1 0E 80 09 00 00 00 00 00 00 71 [02:35:21]Write i2c OK [02:35:21]MH_I2C_Read... [02:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:21]Read from MH i2c: E2 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 F1 0E 00 90 00 73 [02:35:21]RAPDU: 90 00 [02:35:21]wFMCommunicate OK [02:35:21]SAM_PROTO_ClearQueue done [02:35:21]KKMCreateOFDPacket [02:35:21]OFDProtocolAddRootSTLVToBuf [02:35:21]FM_MakeSignedData [02:35:21]FM_MakeSignedData [02:35:21]SAM_PROTO_SignData [02:35:21]wFMCommunicate request_size=4 [02:35:21]MH_SAM_APDU [02:35:21]CAPDU: 80 0D 01 02 [02:35:21]Write to MH i2c: E2 08 00 F2 0E 80 0D 01 02 00 00 00 00 79 [02:35:21]Write i2c OK [02:35:21]MH_I2C_Read... [02:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:21]Read from MH i2c: E2 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 F2 0E 00 90 00 74 [02:35:21]RAPDU: 90 00 [02:35:21]wFMCommunicate OK [02:35:21]wFMCommunicate request_size=255 [02:35:21]MH_SAM_APDU [02:35:21]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA FF A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 [02:35:21]Write to MH i2c: E2 02 01 F3 0E 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA FF A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 00 00 16 [02:35:21]Write i2c OK [02:35:21]MH_I2C_Read... [02:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:21]Read from MH i2c: E2 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 F3 0E 00 90 00 75 [02:35:21]RAPDU: 90 00 [02:35:21]wFMCommunicate OK [02:35:21]wFMCommunicate request_size=36 [02:35:21]MH_SAM_APDU [02:35:21]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EB AE 00 00 35 04 06 00 73 EB 61 4B 0A 33 [02:35:21]Write to MH i2c: E2 27 00 F4 0E 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EB AE 00 00 35 04 06 00 73 EB 61 4B 0A 33 00 00 82 [02:35:21]Write i2c OK [02:35:21]MH_I2C_Read... [02:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:21]Read from MH i2c: E2 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 [02:35:21]MH_I2C_Read... [02:35:21]Read from MH i2c: E2 03 00 F4 0E 00 90 00 76 [02:35:21]RAPDU: 90 00 [02:35:21]wFMCommunicate OK [02:35:21]wFMCommunicate request_size=4 [02:35:21]MH_SAM_APDU [02:35:21]CAPDU: 80 0D 03 02 [02:35:21]Write to MH i2c: E2 08 00 F5 0E 80 0D 03 02 00 00 00 00 7E [02:35:21]Write i2c OK [02:35:21]MH_I2C_Read... [02:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:22]Read from MH i2c: E2 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 0B 00 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 0B 00 F5 0E 00 0D 8F 5A 75 95 6C 6E 54 90 00 AD [02:35:22]RAPDU: 0D 8F 5A 75 95 6C 6E 54 90 00 [02:35:22]wFMCommunicate OK [02:35:22]SAM_PROTO_SignData done [02:35:22]FM_MakeSignedData done [02:35:22]CreateOFDProtocolMessage [02:35:22]wFMCommunicate request_size=4 [02:35:22]MH_SAM_APDU [02:35:22]CAPDU: 80 11 00 00 [02:35:22]Write to MH i2c: E2 08 00 F6 0E 80 11 00 00 00 00 00 00 7E [02:35:22]Write i2c OK [02:35:22]MH_I2C_Read... [02:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:22]Read from MH i2c: E2 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 17 00 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 17 00 F6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 D2 [02:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [02:35:22]wFMCommunicate OK [02:35:22]CreateOFDProtocolMessage done [02:35:22]OFDSenderStorePacket 44779 [02:35:22]StoreOFDPacket docnum=44779 [02:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 29 01 00 00 C3 E1 21 01 7D 8A 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA FF A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EB AE 00 00 35 04 06 00 73 EB 61 4B 0A 33 0D 8F 5A 75 95 6C 6E 54 [02:35:22]CheckFolder [02:35:22]dirname=/storage/ofd_packets [02:35:22]CheckFolder done [02:35:22]ProducePacketName [02:35:22]name=ofd_packets/00044779 [02:35:22]NVStorageSaveData ofd_packets/00044779 [02:35:22]File name is /storage/ofd_packets/00044779 [02:35:22]Write 327 bytes [02:35:22]NVStorageSaveData done [02:35:22]OFDSenderStorePacket done [02:35:22]KKMCreateOFDPacket done [02:35:22]NVStorageSaveData kkm_last_timestamp [02:35:22]File name is /storage/kkm_last_timestamp [02:35:22]Write 4 bytes [02:35:22]NVStorageSaveData done [02:35:22]ExternCall_PrintAddStr [02:35:22]wPrintStart [02:35:22]Write to MH i2c: 01 00 00 F7 0E 05 [02:35:22]Write i2c OK [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 07 00 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 FF 0F 1A [02:35:22]RasterBufferAndPrint [02:35:22]line Счет N : (3)14670 [02:35:22]line ИНН: 02508201610067 [02:35:22]line Контрольно-Кассовый Чек [02:35:22]line ПРОДАЖА [02:35:22]line Товар: 46230607 [02:35:22]line Сигареты Richmond Bronze Edition [02:35:22]line 1.000 * 150.00 [02:35:22]line = 150.00 [02:35:22]line НДС 12% НСП 1% [02:35:22]line > о реализуемом товаре [02:35:22]line ИТОГО: 150.00 [02:35:22]line НСП 1% : 1.33 [02:35:22]line НДС 12% : 15.93 [02:35:22]line Наличными: 150.00 [02:35:22]line Безнал.: 0.00 [02:35:22]line Место: АЗС № 128 "Партнер Нефть" [02:35:22]line Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 [02:35:22]line СНО: Общий режим [02:35:22]line Чек 14 29.07.2024 02:35 [02:35:22]line Смена: 431 ФФД: 1.0 [02:35:22]line ЗНМ: 0300000045 [02:35:22]line РНМ: 0000000000092655 [02:35:22]line Версия ККМ: 001 [02:35:22]line ФМ: 0000000000874941 [02:35:22]line ФД: 44779 [02:35:22]line ФПД: 127454786816563 [02:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T023522&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44779&fm=127454786816563&tin=02508201610067®Number=0000000000092655&sum=15000 [02:35:22]line 0 [02:35:22]OFD Sender: Processing packet 44779 [packets to send 7, broken 6] [02:35:22]ProducePacketName [02:35:22]name=ofd_packets/00044779 [02:35:22]OFD Sender: To server: pG, [02:35:22]CommunicateWithHost lk.salyk.kg:30040 [02:35:22]ConnectInit lk.salyk.kg [02:35:22]written 0, free lines is 4095 [02:35:22]Connected sock=10 [02:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 29 01 00 00 C3 E1 21 01 7D 8A 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA FF A6 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EB AE 00 00 35 04 06 00 73 EB 61 4B 0A 33 0D 8F 5A 75 95 6C 6E 54 [02:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 4F 00 00 00 1D 29 47 00 94 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EB AE 00 00 F4 03 04 00 FB AB A6 66 B6 04 01 00 00 FD AC C5 31 01 4C B1 0A [02:35:22]CommunicateWithHost err = 0 [02:35:22]CheckOFDResponse [02:35:22]1017 (14) - 77093643461234 [02:35:22]1041 (16) - 0000000000874941 [02:35:22]1040 (4) - 44779 [02:35:22]1012 (4) - 28.07.2024 20:37 [02:35:22]1206 (1) - 0 [02:35:22]OFD Sender: Remove packet 44779 [02:35:22]ProducePacketName [02:35:22]name=ofd_packets/00044779 [02:35:22]NVStorageDeleteData [02:35:22]Write to MH i2c: 01 00 00 20 0F 2F [02:35:22]Write i2c OK [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 07 00 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: 01 07 00 20 0F 00 00 00 00 00 C0 0C 02 [02:35:22]RasterBufferAndPrint [02:35:22]line [02:35:22]line [02:35:22]line [02:35:22]line [02:35:22]line [02:35:22]written 0, free lines is 3268 [02:35:22]process_action close_receipt done [02:35:22]requested_data is exist [02:35:22]produce_requested_data [02:35:22]requested_item fm.sn is exist - process it [02:35:22]wFMCommunicate request_size=4 [02:35:22]MH_SAM_APDU [02:35:22]CAPDU: 80 11 00 00 [02:35:22]Write to MH i2c: E2 08 00 27 0F 80 11 00 00 00 00 00 00 B0 [02:35:22]Write i2c OK [02:35:22]MH_I2C_Read... [02:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:22]Read from MH i2c: E2 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 17 00 [02:35:22]MH_I2C_Read... [02:35:22]Read from MH i2c: E2 17 00 27 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 04 [02:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 90 00 [02:35:22]wFMCommunicate OK [02:35:22]requested_item fd.num is exist - process it [02:35:22]SAM_PROTO_GetFieldsCounters [02:35:22]wFMCommunicate request_size=4 [02:35:22]MH_SAM_APDU [02:35:22]CAPDU: 80 13 00 00 [02:35:22]Write to MH i2c: E2 08 00 28 0F 80 13 00 00 00 00 00 00 B3 [02:35:22]Write i2c OK [02:35:22]MH_I2C_Read... [02:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:23]Read from MH i2c: E2 [02:35:23]MH_I2C_Read... [02:35:23]Read from MH i2c: E2 62 00 [02:35:23]MH_I2C_Read... [02:35:23]Read from MH i2c: E2 62 00 28 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 EB AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [02:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 10 04 04 00 EB AE 00 00 0E 04 04 00 AF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:35:23]wFMCommunicate OK [02:35:23]SAM_PROTO_GetFieldsCounters done [02:35:23]requested_item shift.num is exist - process it [02:35:23]requested_item shift.opened is exist - process it [02:35:23]req_shift_opened [02:35:23]FM_GetShiftState [02:35:23]SAM_PROTO_GetShiftState [02:35:23]wFMCommunicate request_size=4 [02:35:23]MH_SAM_APDU [02:35:23]CAPDU: 80 13 01 00 [02:35:23]Write to MH i2c: E2 08 00 29 0F 80 13 01 00 00 00 00 00 B5 [02:35:23]Write i2c OK [02:35:23]MH_I2C_Read... [02:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:23]Read from MH i2c: E2 [02:35:23]MH_I2C_Read... [02:35:23]Read from MH i2c: E2 0E 00 [02:35:23]MH_I2C_Read... [02:35:23]Read from MH i2c: E2 0E 00 29 0F 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 BE [02:35:23]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [02:35:23]wFMCommunicate OK [02:35:23]SAM_PROTO_GetShiftState done [02:35:23]FM_GetShiftState done [02:35:23]req_shift_opened done [02:35:23]requested_item shift.open_date is exist - process it [02:35:23]req_shift_open_date [02:35:23]req_shift_open_date done [02:35:23]produce_requested_data done [02:35:23]produce_requested_data return {"fm.sn":"0000000000874941","fd.num":44779,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369} [02:35:23]process_action_free close_receipt [02:35:23]json_value_free [02:35:23]json_value_free done [02:35:23]process_json_proto returns [02:35:23]Send response to host [02:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874941","fd.num":44779,"shift.num":431,"shift.opened":1,"shift.open_date":1722212369}}} [02:35:23]free response buf [02:35:23]execute_script done [02:35:23]execute_script returns [02:35:23]free content buf [02:35:23]Sock 7.Close socket [02:35:23]Sock 7.Thread stoped [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:11]accept exits with 9 [02:57:11]New connection [02:57:11]New thread 3066625380 created [02:57:11]Thread 3066482020 joined [02:57:11]Waiting for new connection... [02:57:11] Sock 9.Parse request [02:57:11]Sock 9.Check first char [02:57:11]Sock 9.First char is OK [02:57:11]request: POST /json_proto HTTP/1.0 [02:57:11]Method: POST [02:57:11]URL: /json_proto [02:57:11]Method is POST - this is cgi request [02:57:11]url: /json_proto [02:57:11]query_string will be loaded in cgi processing [02:57:11]execute_cgi json_proto POST (null) [02:57:11]execute_cgi path=json_proto method=POST [02:57:11]POST find Content-Length [02:57:11]Host: 172.17.45.196:8080 [02:57:11]Content-Length: 901 [02:57:11]Content-Type: application/json [02:57:11] [02:57:11]POST finish read [02:57:11]Found Content-Length = 901 [02:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14671", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:57:11]execute_script... [02:57:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)14671", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:57:11]POST & json_proto [02:57:11]process_json_proto [02:57:11]json parsed OK: [02:57:11]protocol is kg_v1.0 [02:57:11]action value=close_receipt [02:57:11]process_action close_receipt [02:57:11]cmd_close_receipt [02:57:11]MH_GetDate [02:57:11]Write to MH i2c: F0 00 00 2A 0F 28 [02:57:11]Write i2c OK [02:57:11]MH_I2C_Read... [02:57:11]Read from MH i2c: F0 [02:57:11]MH_I2C_Read... [02:57:11]Read from MH i2c: F0 09 00 [02:57:11]MH_I2C_Read... [02:57:11]Read from MH i2c: F0 09 00 2A 0F 00 09 05 A7 66 BB 03 A5 66 15 [02:57:11]GetLastDocTimeStamp 1722220522 [02:57:11]current date 1722221833 [02:57:11]FM_GetShiftState [02:57:11]SAM_PROTO_GetShiftState [02:57:11]wFMCommunicate request_size=4 [02:57:11]MH_SAM_APDU [02:57:11]CAPDU: 80 13 01 00 [02:57:11]Write to MH i2c: E2 08 00 2B 0F 80 13 01 00 00 00 00 00 B7 [02:57:11]Write i2c OK [02:57:11]MH_I2C_Read... [02:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:11]Read from MH i2c: E2 [02:57:11]MH_I2C_Read... [02:57:11]Read from MH i2c: E2 0E 00 [02:57:11]MH_I2C_Read... [02:57:11]Read from MH i2c: E2 0E 00 2B 0F 00 09 00 01 11 E0 A6 66 00 00 00 00 90 00 C0 [02:57:11]RAPDU: 09 00 01 11 E0 A6 66 00 00 00 00 90 00 [02:57:11]wFMCommunicate OK [02:57:11]SAM_PROTO_GetShiftState done [02:57:11]FM_GetShiftState done [02:57:11]opened in 1722212369 [02:57:11]opened+sec_in_day 1722298769 [02:57:11]quantity*price = 14300 [02:57:11]sum+1 = 14301 [02:57:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 128 "Партнер Нефть" Адрес: 720001, г. Кадамжай, ул. Орозбекова 99, 40.136656, 71.724914 СНО: Общий режим Чек 15 29.07.2024 02:57 Смена: 431 ФФД: 1.0 ЗНМ: 0300000045 РНМ: 0000000000092655 Версия ККМ: 001 ФМ: 0000000000874941 ФД: 44780 ФПД: 64126071743928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T025713&type=1&operation_type=1&fn_number=0000000000874941&fd_number=44780&fm=64126071743928&tin=02508201610067®Number=0000000000092655&sum=21000 0 [02:57:12]StoreToDocumentArchive [02:57:12]shift 431 fd 44780 [02:57:12]save to /storage/0431/doc_00044780 [02:57:12]save last doc name /storage/0431/doc_00044780 to /storage/kkm_last_doc_name [02:57:12]save OK [02:57:12]Clear old archive folders... [02:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=390 [02:57:12]tlvbuf is 01804420 [02:57:12]SAM_PROTO_ClearQueue [02:57:12]wFMCommunicate request_size=4 [02:57:12]MH_SAM_APDU [02:57:12]CAPDU: 80 09 00 00 [02:57:12]Write to MH i2c: E2 08 00 38 0F 80 09 00 00 00 00 00 00 B9 [02:57:12]Write i2c OK [02:57:12]MH_I2C_Read... [02:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:12]Read from MH i2c: E2 [02:57:12]MH_I2C_Read... [02:57:12]Read from MH i2c: E2 03 00 [02:57:12]MH_I2C_Read... [02:57:12]Read from MH i2c: E2 03 00 38 0F 00 90 00 BB [02:57:12]RAPDU: 90 00 [02:57:12]wFMCommunicate OK [02:57:12]SAM_PROTO_ClearQueue done [02:57:12]KKMCreateOFDPacket [02:57:12]OFDProtocolAddRootSTLVToBuf [02:57:12]FM_MakeSignedData [02:57:12]FM_MakeSignedData [02:57:12]SAM_PROTO_SignData [02:57:12]wFMCommunicate request_size=4 [02:57:12]MH_SAM_APDU [02:57:12]CAPDU: 80 0D 01 02 [02:57:12]Write to MH i2c: E2 08 00 39 0F 80 0D 01 02 00 00 00 00 C1 [02:57:12]Write i2c OK [02:57:12]MH_I2C_Read... [02:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:12]Read from MH i2c: E2 [02:57:12]MH_I2C_Read... [02:57:12]Read from MH i2c: E2 03 00 [02:57:12]MH_I2C_Read... [02:57:12]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [02:57:12]RAPDU: 90 00 [02:57:12]wFMCommunicate OK [02:57:12]wFMCommunicate request_size=255 [02:57:12]MH_SAM_APDU [02:57:12]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [02:57:12]Write to MH i2c: E2 02 01 3A 0F 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 7D [02:57:12]Write i2c OK [02:57:12]MH_I2C_Read... [02:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:13]Read from MH i2c: E2 [02:57:13]MH_I2C_Read... [02:57:13]Read from MH i2c: E2 03 00 [02:57:13]MH_I2C_Read... [02:57:13]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [02:57:13]RAPDU: 90 00 [02:57:13]wFMCommunicate OK [02:57:13]wFMCommunicate request_size=149 [02:57:13]MH_SAM_APDU [02:57:13]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 09 05 A7 66 0E 04 04 00 AF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 31 10 04 04 00 EC AE 00 00 35 04