[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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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 54000000005725AE (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: 44528406+1684785137=1729313543 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 40 00 FF FF 5F [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 07 3B 13 67 F1 C7 6B 64 42 [04:52:23]Current date/time: 19.10.2024 04:52 [04:52:23]FM_Init [04:52:23]wFMConnect [04:52:23]MH_SAM_On [04:52:23]Write to MH i2c: E0 00 00 08 00 E7 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_init finished! [04:52:23]*** atr: [04:52:23]*** 0F 3B D5 18 FF 81 91 FE [04:52:23]*** 1F C3 80 73 C8 21 10 0A [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]*** 00 00 00 00 00 00 00 00 [04:52:23]Read from MH i2c: E0 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E0 10 00 [04:52:23]MH_I2C_Read... [04:52:23]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:52:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:52:23]wFMCommunicate request_size=10 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:52:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:52:23]RAPDU: 90 00 [04:52:23]wFMCommunicate OK [04:52:23]wFMCommunicate request_size=4 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 11 00 00 [04:52:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 17 00 [04:52:23]MH_I2C_Read... [04:52:23]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 31 38 34 33 90 00 D6 [04:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:52:23]wFMCommunicate OK [04:52:23]Detected FM SN is 0000000000871843 [04:52:23]Stored FM SN is 0000000000871843 [04:52:23]wFMCommunicate request_size=9 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 16 00 00 04 C3 A3 00 00 [04:52:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:52:23]RAPDU: 90 00 [04:52:23]wFMCommunicate OK [04:52:23]FM PIN OK [04:52:23]wFMCommunicate request_size=8 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 14 04 00 03 02 00 01 [04:52:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:52:23]RAPDU: 90 00 [04:52:23]wFMCommunicate OK [04:52:23]wFMCommunicate request_size=13 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:52:23]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:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:52:23]RAPDU: 90 00 [04:52:23]wFMCommunicate OK [04:52:23]wFMCommunicate request_size=4 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 11 00 00 [04:52:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 17 00 [04:52:23]MH_I2C_Read... [04:52:23]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 31 38 34 33 90 00 DA [04:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:52:23]wFMCommunicate OK [04:52:23]DocumentArchiveInit [04:52:23]Start Httpd... [04:52:23]Httpd thread 3066924388 created [04:52:23]Write to MH i2c: 01 00 00 0F 00 0F [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 07 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:52:23]Allocated Socket 5 [04:52:23]Bind OK [04:52:23]Listen OK [04:52:23]httpd running on port 8080 [04:52:23]Waiting for new connection... [04:52:23]MH Int Process started [04:52:23]accept exits with 6 [04:52:23]New connection [04:52:23]New thread 3066637668 created [04:52:23]Waiting for new connection... [04:52:23] Sock 6.Parse request [04:52:23]Sock 6.Check first char [04:52:23]Sock 6.First char is OK [04:52:23]request: POST /json_proto HTTP/1.0 [04:52:23]Method: POST [04:52:23]URL: /json_proto [04:52:23]Method is POST - this is cgi request [04:52:23]url: /json_proto [04:52:23]query_string will be loaded in cgi processing [04:52:23]execute_cgi json_proto POST (null) [04:52:23]execute_cgi path=json_proto method=POST [04:52:23]POST find Content-Length [04:52:23]Host: 172.17.44.67:8080 [04:52:23]Content-Length: 215 [04:52:23]Content-Type: application/json [04:52:23] [04:52:23]POST finish read [04:52:23]Found Content-Length = 215 [04:52:23]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:52:23]execute_script... [04:52:23]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:52:23]POST & json_proto [04:52:23]process_json_proto [04:52:23]json parsed OK: [04:52:23]protocol is kg_v1.0 [04:52:23]action value=get_value [04:52:23]process_action get_value [04:52:23]cmd_get_value [04:52:23]process_action get_value done [04:52:23]requested_data is exist [04:52:23]produce_requested_data [04:52:23]requested_item kkm.sn is exist - process it [04:52:23]requested_item kkm.ver is exist - process it [04:52:23]requested_item fm.sn is exist - process it [04:52:23]wFMCommunicate request_size=4 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 11 00 00 [04:52:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 17 00 [04:52:23]MH_I2C_Read... [04:52:23]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 31 38 34 33 90 00 DC [04:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:52:23]wFMCommunicate OK [04:52:23]requested_item fd.num is exist - process it [04:52:23]SAM_PROTO_GetFieldsCounters [04:52:23]wFMCommunicate request_size=4 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 13 00 00 [04:52:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]OFD Sender: Processing packet 82504 [packets to send 254, broken 253] [04:52:23]ProducePacketName [04:52:23]name=ofd_packets/00082504 [04:52:23]OFD Sender: To server: pG, [04:52:23]CommunicateWithHost lk.salyk.kg:30040 [04:52:23]ConnectInit lk.salyk.kg [04:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 62 00 [04:52:23]MH_I2C_Read... [04:52:23]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 48 42 01 00 0E 04 04 00 0F 02 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 4B [04:52: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 48 42 01 00 0E 04 04 00 0F 02 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 [04:52:23]wFMCommunicate OK [04:52:23]SAM_PROTO_GetFieldsCounters done [04:52:23]requested_item shift.num is exist - process it [04:52:23]requested_item shift.opened is exist - process it [04:52:23]req_shift_opened [04:52:23]FM_GetShiftState [04:52:23]SAM_PROTO_GetShiftState [04:52:23]wFMCommunicate request_size=4 [04:52:23]MH_SAM_APDU [04:52:23]CAPDU: 80 13 01 00 [04:52:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:52:23]Write i2c OK [04:52:23]MH_I2C_Read... [04:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:23]Read from MH i2c: E2 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 0E 00 [04:52:23]MH_I2C_Read... [04:52:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 91 [04:52:23]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [04:52:23]wFMCommunicate OK [04:52:23]SAM_PROTO_GetShiftState done [04:52:23]FM_GetShiftState done [04:52:23]req_shift_opened done [04:52:23]requested_item shift.open_date is exist - process it [04:52:23]req_shift_open_date [04:52:23]req_shift_open_date done [04:52:23]produce_requested_data done [04:52:23]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82504,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [04:52:23]process_action_free get_value [04:52:23]json_value_free [04:52:23]json_value_free done [04:52:23]process_json_proto returns [04:52:23]Send response to host [04:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82504,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [04:52:23]free response buf [04:52:23]execute_script done [04:52:23]execute_script returns [04:52:23]free content buf [04:52:23]Sock 6.Close socket [04:52:23]Sock 6.Thread stoped [04:52:23]accept exits with 10 [04:52:23]New connection [04:52:23]New thread 3066494308 created [04:52:23]Thread 3066637668 joined [04:52:23]Waiting for new connection... [04:52:23] Sock 10.Parse request [04:52:23]Sock 10.Check first char [04:52:23]Sock 10.First char is OK [04:52:23]request: POST /json_proto HTTP/1.0 [04:52:23]Method: POST [04:52:23]URL: /json_proto [04:52:23]Method is POST - this is cgi request [04:52:23]url: /json_proto [04:52:24]query_string will be loaded in cgi processing [04:52:24]execute_cgi json_proto POST (null) [04:52:24]execute_cgi path=json_proto method=POST [04:52:24]POST find Content-Length [04:52:24]Host: 172.17.44.67:8080 [04:52:24]Content-Length: 331 [04:52:24]Content-Type: application/json [04:52:24] [04:52:24]POST finish read [04:52:24]Found Content-Length = 331 [04:52: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" ] } } [04:52:24]execute_script... [04:52:24]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:52:24]POST & json_proto [04:52:24]process_json_proto [04:52:24]json parsed OK: [04:52:24]protocol is kg_v1.0 [04:52:24]action value=get_value [04:52:24]process_action get_value [04:52:24]cmd_get_value [04:52:24]process_action get_value done [04:52:24]requested_data is exist [04:52:24]produce_requested_data [04:52:24]requested_item fm.sale.total is exist - process it [04:52:24]SAM_PROTO_GetFMData [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 13 03 00 [04:52:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 2A 3E 01 00 69 04 A3 00 6F 04 04 00 8F 3B 01 00 B1 04 05 00 C2 12 FC 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 1E 24 7C 3A 00 04 7D 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 CD B4 5D 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1E 11 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 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 60 F3 06 02 EF 90 00 94 [04:52:24]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 2A 3E 01 00 69 04 A3 00 6F 04 04 00 8F 3B 01 00 B1 04 05 00 C2 12 FC 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 1E 24 7C 3A 00 04 7D 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 CD B4 5D 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1E 11 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 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 60 F3 06 02 EF 90 00 [04:52:24]wFMCommunicate OK [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 17 00 00 [04:52:24]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [04:52:24]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:24]wFMCommunicate OK [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 17 00 00 [04:52:24]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:24]Connected sock=7 [04:52:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C1 B4 07 01 93 DB 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 63 16 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 42 01 00 35 04 06 00 21 7B B8 A6 1D 6A C1 96 C6 D6 67 23 41 2D [04:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:24]Read from MH i2c: E2 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 [04:52:24]MH_I2C_Read... [04:52:24]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [04:52:24]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:24]wFMCommunicate OK [04:52:24]wFMCommunicate request_size=4 [04:52:24]MH_SAM_APDU [04:52:24]CAPDU: 80 17 00 00 [04:52:24]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:52:24]Write i2c OK [04:52:24]MH_I2C_Read... [04:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:25]Read from MH i2c: E2 [04:52:25]MH_I2C_Read... [04:52:25]Read from MH i2c: E2 FD 00 [04:52:25]MH_I2C_Read... [04:52:25]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [04:52:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:25]wFMCommunicate OK [04:52:25]wFMCommunicate request_size=4 [04:52:25]MH_SAM_APDU [04:52:25]CAPDU: 80 17 00 00 [04:52:25]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:52:25]Write i2c OK [04:52:25]MH_I2C_Read... [04:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [04:52:25]Read from MH i2c: E2 [04:52:25]MH_I2C_Read... [04:52:25]Read from MH i2c: E2 E4 00 [04:52:25]MH_I2C_Read... [04:52:25]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:25]wFMCommunicate OK [04:52:25]SAM_PROTO_GetFMData done [04:52:25]requested_item fm.sale_refund.total is exist - process it [04:52:25]requested_item fm.buy.total is exist - process it [04:52:25]requested_item shift.sale.total is exist - process it [04:52:25]SAM_PROTO_GetShiftData [04:52:25]wFMCommunicate request_size=4 [04:52:25]MH_SAM_APDU [04:52:25]CAPDU: 80 13 02 00 [04:52:25]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04:52:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FF F2 47 00 D9 9F 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 31 38 34 33 10 04 04 00 48 42 01 00 F4 03 04 00 3F E0 12 67 B6 04 01 00 00 8C A2 28 60 F9 D4 E0 E8 [04:52:25]CommunicateWithHost err = 0 [04:52:25]CheckOFDResponse [04:52:25]1017 (14) - 77093643461234 [04:52:25]1041 (16) - 0000000000871843 [04:52:25]1040 (4) - 82504 [04:52:25]1012 (4) - 18.10.2024 22:25 [04:52:25]1206 (1) - 0 [04:52:25]OFD Sender: Remove packet 82504 [04:52:25]ProducePacketName [04:52:25]name=ofd_packets/00082504 [04:52:25]NVStorageDeleteData [04:52:25]Write i2c OK [04:52:25]MH_I2C_Read... [04:52:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:52:26]Read from MH i2c: E2 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 18 00 00 A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 23 4E 70 04 00 00 72 04 02 00 23 4E 00 04 78 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 4C 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [04:52:26]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 23 4E 70 04 00 00 72 04 02 00 23 4E 00 04 78 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 4C 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:26]wFMCommunicate OK [04:52:26]wFMCommunicate request_size=4 [04:52:26]MH_SAM_APDU [04:52:26]CAPDU: 80 17 00 00 [04:52:26]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:52:26]Write i2c OK [04:52:26]MH_I2C_Read... [04:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:26]Read from MH i2c: E2 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [04:52:26]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:26]wFMCommunicate OK [04:52:26]wFMCommunicate request_size=4 [04:52:26]MH_SAM_APDU [04:52:26]CAPDU: 80 17 00 00 [04:52:26]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:52:26]Write i2c OK [04:52:26]MH_I2C_Read... [04:52:26]OFD Sender: No OFD packet to send [04:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:26]Read from MH i2c: E2 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 [04:52:26]MH_I2C_Read... [04:52:26]Read from MH i2c: E2 FD 00 1A 00 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [04:52:26]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:52:26]wFMCommunicate OK [04:52:26]wFMCommunicate request_size=4 [04:52:26]MH_SAM_APDU [04:52:26]CAPDU: 80 17 00 00 [04:52:26]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:52:26]Write i2c OK [04:52:26]MH_I2C_Read... [04:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:52:27]Read from MH i2c: E2 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 FD 00 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 1A [04:52:27]RAPDU: 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 90 00 [04:52:27]wFMCommunicate OK [04:52:27]wFMCommunicate request_size=4 [04:52:27]MH_SAM_APDU [04:52:27]CAPDU: 80 17 00 00 [04:52:27]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:52:27]Write i2c OK [04:52:27]MH_I2C_Read... [04:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [04:52:27]Read from MH i2c: E2 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 C4 00 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 C4 00 1C 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [04:52:27]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:27]wFMCommunicate OK [04:52:27]SAM_PROTO_GetShiftData done [04:52:27]requested_item shift.sale.total_cash is exist - process it [04:52:27]requested_item shift.sale_refund.total is exist - process it [04:52:27]requested_item shift.sale_refund.total_cash is exist - process it [04:52:27]requested_item shift.buy.total is exist - process it [04:52:27]requested_item shift.buy.total_cash is exist - process it [04:52:27]produce_requested_data done [04:52:27]produce_requested_data return {"fm.sale.total":63750847.38,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":200.03,"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} [04:52:27]process_action_free get_value [04:52:27]json_value_free [04:52:27]json_value_free done [04:52:27]process_json_proto returns [04:52:27]Send response to host [04:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750847.38,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":200.03,"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}}} [04:52:27]free response buf [04:52:27]execute_script done [04:52:27]execute_script returns [04:52:27]free content buf [04:52:27]Sock 10.Close socket [04:52:27]Sock 10.Thread stoped [04:52:27]accept exits with 6 [04:52:27]New connection [04:52:27]New thread 3066637668 created [04:52:27]Thread 3066494308 joined [04:52:27]Waiting for new connection... [04:52:27] Sock 6.Parse request [04:52:27]Sock 6.Check first char [04:52:27]Sock 6.First char is OK [04:52:27]request: POST /json_proto HTTP/1.0 [04:52:27]Method: POST [04:52:27]URL: /json_proto [04:52:27]Method is POST - this is cgi request [04:52:27]url: /json_proto [04:52:27]query_string will be loaded in cgi processing [04:52:27]execute_cgi json_proto POST (null) [04:52:27]execute_cgi path=json_proto method=POST [04:52:27]POST find Content-Length [04:52:27]Host: 172.17.44.67:8080 [04:52:27]Content-Length: 771 [04:52:27]Content-Type: application/json [04:52:27] [04:52:27]POST finish read [04:52:27]Found Content-Length = 771 [04:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:27]execute_script... [04:52: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 : (1)918995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:27]POST & json_proto [04:52:27]process_json_proto [04:52:27]json parsed OK: [04:52:27]protocol is kg_v1.0 [04:52:27]action value=close_receipt [04:52:27]process_action close_receipt [04:52:27]cmd_close_receipt [04:52:27]MH_GetDate [04:52:27]Write to MH i2c: F0 00 00 1D 00 0C [04:52:27]Write i2c OK [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: F0 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: F0 09 00 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: F0 09 00 1D 00 00 0C 3B 13 67 F1 C7 6B 64 5D [04:52:27]GetLastDocTimeStamp 1729304163 [04:52:27]current date 1729313548 [04:52:27]FM_GetShiftState [04:52:27]SAM_PROTO_GetShiftState [04:52:27]wFMCommunicate request_size=4 [04:52:27]MH_SAM_APDU [04:52:27]CAPDU: 80 13 01 00 [04:52:27]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [04:52:27]Write i2c OK [04:52:27]MH_I2C_Read... [04:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:27]Read from MH i2c: E2 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 0E 00 [04:52:27]MH_I2C_Read... [04:52:27]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 9D [04:52:27]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [04:52:27]wFMCommunicate OK [04:52:27]SAM_PROTO_GetShiftState done [04:52:27]FM_GetShiftState done [04:52:27]opened in 1729298811 [04:52:27]opened+sec_in_day 1729385211 [04:52:27]quantity*price = 50063 [04:52:27]sum+1 = 50064 [04:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 2 19.10.2024 04:52 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82505 ФПД: 197938031950368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T045228&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82505&fm=197938031950368&tin=02508201610067®Number=0000000000091680&sum=50063 [04:52:28]StoreToDocumentArchive [04:52:28]shift 527 fd 82505 [04:52:28]save to /storage/0527/doc_00082505 [04:52:28]save last doc name /storage/0527/doc_00082505 to /storage/kkm_last_doc_name [04:52:28]save OK [04:52:28]Clear old archive folders... [04:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:52:28]tlvbuf is 0158FAE0 [04:52:28]SAM_PROTO_ClearQueue [04:52:28]wFMCommunicate request_size=4 [04:52:28]MH_SAM_APDU [04:52:28]CAPDU: 80 09 00 00 [04:52:28]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:52:28]Write i2c OK [04:52:28]MH_I2C_Read... [04:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:52:28]Read from MH i2c: E2 [04:52:28]MH_I2C_Read... [04:52:28]Read from MH i2c: E2 03 00 [04:52:28]MH_I2C_Read... [04:52:28]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:52:28]RAPDU: 90 00 [04:52:28]wFMCommunicate OK [04:52:28]SAM_PROTO_ClearQueue done [04:52:28]KKMCreateOFDPacket [04:52:28]OFDProtocolAddRootSTLVToBuf [04:52:28]FM_MakeSignedData [04:52:28]FM_MakeSignedData [04:52:28]SAM_PROTO_SignData [04:52:28]wFMCommunicate request_size=4 [04:52:28]MH_SAM_APDU [04:52:28]CAPDU: 80 0D 01 02 [04:52:28]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:52:28]Write i2c OK [04:52:28]MH_I2C_Read... [04:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:52:28]Read from MH i2c: E2 [04:52:28]MH_I2C_Read... [04:52:28]Read from MH i2c: E2 03 00 [04:52:28]MH_I2C_Read... [04:52:28]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:52:28]RAPDU: 90 00 [04:52:28]wFMCommunicate OK [04:52:28]wFMCommunicate request_size=255 [04:52:28]MH_SAM_APDU [04:52:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0C 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 42 01 00 35 04 06 00 [04:52:28]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0C 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 42 01 00 35 04 06 00 00 00 76 [04:52:29]Write i2c OK [04:52:29]MH_I2C_Read... [04:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:29]Read from MH i2c: E2 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 03 00 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:52:29]RAPDU: 90 00 [04:52:29]wFMCommunicate OK [04:52:29]wFMCommunicate request_size=11 [04:52:29]MH_SAM_APDU [04:52:29]CAPDU: 80 0D 02 02 06 B4 06 0A 14 FA 20 [04:52:29]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 B4 06 0A 14 FA 20 00 00 A6 [04:52:29]Write i2c OK [04:52:29]MH_I2C_Read... [04:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:29]Read from MH i2c: E2 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 03 00 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:52:29]RAPDU: 90 00 [04:52:29]wFMCommunicate OK [04:52:29]wFMCommunicate request_size=4 [04:52:29]MH_SAM_APDU [04:52:29]CAPDU: 80 0D 03 02 [04:52:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:52:29]Write i2c OK [04:52:29]MH_I2C_Read... [04:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:52:29]Read from MH i2c: E2 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 0B 00 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 0B 00 2F 00 00 87 5C B3 CB 03 FE 03 51 90 00 61 [04:52:29]RAPDU: 87 5C B3 CB 03 FE 03 51 90 00 [04:52:29]wFMCommunicate OK [04:52:29]SAM_PROTO_SignData done [04:52:29]FM_MakeSignedData done [04:52:29]CreateOFDProtocolMessage [04:52:29]wFMCommunicate request_size=4 [04:52:29]MH_SAM_APDU [04:52:29]CAPDU: 80 11 00 00 [04:52:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:52:29]Write i2c OK [04:52:29]MH_I2C_Read... [04:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:29]Read from MH i2c: E2 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: E2 17 00 [04:52:29]MH_I2C_Read... [04:52:29]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 31 38 34 33 90 00 FC [04:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:52:29]wFMCommunicate OK [04:52:29]CreateOFDProtocolMessage done [04:52:29]OFDSenderStorePacket 82505 [04:52:29]StoreOFDPacket docnum=82505 [04:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AE B5 08 01 0D F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0C 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 42 01 00 35 04 06 00 B4 06 0A 14 FA 20 87 5C B3 CB 03 FE 03 51 [04:52:29]CheckFolder [04:52:29]dirname=/storage/ofd_packets [04:52:29]CheckFolder done [04:52:29]ProducePacketName [04:52:29]name=ofd_packets/00082505 [04:52:29]NVStorageSaveData ofd_packets/00082505 [04:52:29]File name is /storage/ofd_packets/00082505 [04:52:29]Write 302 bytes [04:52:29]NVStorageSaveData done [04:52:29]OFDSenderStorePacket done [04:52:29]KKMCreateOFDPacket done [04:52:29]NVStorageSaveData kkm_last_timestamp [04:52:29]File name is /storage/kkm_last_timestamp [04:52:29]Write 4 bytes [04:52:29]NVStorageSaveData done [04:52:29]ExternCall_PrintAddStr [04:52:29]wPrintStart [04:52:29]Write to MH i2c: 01 00 00 31 00 31 [04:52:29]Write i2c OK [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: 01 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: 01 07 00 [04:52:29]MH_I2C_Read... [04:52:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:52:29]RasterBufferAndPrint [04:52:29]line Счет N : (1)918995 [04:52:29]line ИНН: 02508201610067 [04:52:29]line Контрольно-Кассовый Чек [04:52:29]line ПРОДАЖА [04:52:29]line ТРК (МРК, ГНК) : 31 [04:52:29]line Товар: 2710194210 [04:52:29]line ДТ(л)-К-5 [04:52:29]line 6.570 * 76.20 [04:52:29]line = 500.63 [04:52:29]line НДС 12% НСП 1% [04:52:29]line > о реализуемом товаре [04:52:29]line ИТОГО: 500.63 [04:52:29]line НСП 1% : 4.43 [04:52:29]line НДС 12% : 53.16 [04:52:29]line Наличными: 0.00 [04:52:29]line Безнал.: 500.63 [04:52:29]line Место: АЗС № 114 "Партнер Нефть" [04:52:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [04:52:29]line СНО: Общий режим [04:52:29]line Чек 2 19.10.2024 04:52 [04:52:29]line Смена: 527 ФФД: 1.0 [04:52:29]line ЗНМ: 0300000086 [04:52:29]line РНМ: 0000000000091680 [04:52:29]line Версия ККМ: 001 [04:52:29]line Платежная система: Mbank [04:52:29]line ФМ: 0000000000871843 [04:52:29]line ФД: 82505 [04:52:29]line ФПД: 197938031950368 [04:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T045228&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82505&fm=197938031950368&tin=02508201610067®Number=0000000000091680&sum=50063 [04:52:29]written 0, free lines is 4095 [04:52:29]OFD Sender: Processing packet 82505 [packets to send 254, broken 253] [04:52:29]ProducePacketName [04:52:29]name=ofd_packets/00082505 [04:52:29]OFD Sender: To server: pG, [04:52:29]CommunicateWithHost lk.salyk.kg:30040 [04:52:29]ConnectInit lk.salyk.kg [04:52:30]Connected sock=11 [04:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AE B5 08 01 0D F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0C 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 42 01 00 35 04 06 00 B4 06 0A 14 FA 20 87 5C B3 CB 03 FE 03 51 [04:52:30]Write to MH i2c: 01 00 00 5A 00 5A [04:52:30]Write i2c OK [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: 01 [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: 01 07 00 [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 5A 0D C8 [04:52:30]RasterBufferAndPrint [04:52:30]line [04:52:30]line [04:52:30]line [04:52:30]line [04:52:30]line [04:52:30]written 0, free lines is 3437 [04:52:30]MH_Cut [04:52:30]Write to MH i2c: D1 01 00 61 00 01 33 [04:52:30]Write i2c OK [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: D1 [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: D1 01 00 [04:52:30]MH_I2C_Read... [04:52:30]Read from MH i2c: D1 01 00 61 00 00 32 [04:52:30]Write to MH i2c: 01 00 00 62 00 62 [04:52:30]Write i2c OK [04:52:30]MH_I2C_Read... [04:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 06 6D 47 00 0F 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 31 38 34 33 10 04 04 00 49 42 01 00 F4 03 04 00 45 E0 12 67 B6 04 01 00 00 C8 FB 98 82 57 08 AE 4C [04:52:30]CommunicateWithHost err = 0 [04:52:30]CheckOFDResponse [04:52:30]1017 (14) - 77093643461234 [04:52:30]1041 (16) - 0000000000871843 [04:52:30]1040 (4) - 82505 [04:52:30]1012 (4) - 18.10.2024 22:25 [04:52:30]1206 (1) - 0 [04:52:30]OFD Sender: Remove packet 82505 [04:52:30]ProducePacketName [04:52:30]name=ofd_packets/00082505 [04:52:30]NVStorageDeleteData [04:52:31]*** Cut start [04:52:31]*** Partial cut [04:52:31]*** CUTSNS_PIN = 1 [04:52:31]*** CUTSNS_PIN = 0 [04:52:31]OFD Sender: No OFD packet to send [04:52:31]*** Brake cut motor [04:52:31]Read from MH i2c: 01 [04:52:31]MH_I2C_Read... [04:52:31]*** Stop cut motor [04:52:31]*** Cut end [04:52:31]Read from MH i2c: 01 07 00 [04:52:31]MH_I2C_Read... [04:52:31]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [04:52:31]process_action close_receipt done [04:52:31]requested_data is exist [04:52:31]produce_requested_data [04:52:31]requested_item fm.sn is exist - process it [04:52:31]wFMCommunicate request_size=4 [04:52:31]MH_SAM_APDU [04:52:31]CAPDU: 80 11 00 00 [04:52:31]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [04:52:31]Write i2c OK [04:52:31]MH_I2C_Read... [04:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:31]Read from MH i2c: E2 [04:52:31]MH_I2C_Read... [04:52:31]Read from MH i2c: E2 17 00 [04:52:31]MH_I2C_Read... [04:52:31]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 31 38 34 33 90 00 2F [04:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:52:31]wFMCommunicate OK [04:52:31]requested_item fd.num is exist - process it [04:52:31]SAM_PROTO_GetFieldsCounters [04:52:31]wFMCommunicate request_size=4 [04:52:31]MH_SAM_APDU [04:52:31]CAPDU: 80 13 00 00 [04:52:31]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [04:52:31]Write i2c OK [04:52:31]MH_I2C_Read... [04:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:32]Read from MH i2c: E2 [04:52:32]MH_I2C_Read... [04:52:32]Read from MH i2c: E2 62 00 [04:52:32]MH_I2C_Read... [04:52:32]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 49 42 01 00 0E 04 04 00 0F 02 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 A2 [04:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 49 42 01 00 0E 04 04 00 0F 02 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 [04:52:32]wFMCommunicate OK [04:52:32]SAM_PROTO_GetFieldsCounters done [04:52:32]requested_item shift.num is exist - process it [04:52:32]requested_item shift.opened is exist - process it [04:52:32]req_shift_opened [04:52:32]FM_GetShiftState [04:52:32]SAM_PROTO_GetShiftState [04:52:32]wFMCommunicate request_size=4 [04:52:32]MH_SAM_APDU [04:52:32]CAPDU: 80 13 01 00 [04:52:32]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [04:52:32]Write i2c OK [04:52:32]MH_I2C_Read... [04:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:32]Read from MH i2c: E2 [04:52:32]MH_I2C_Read... [04:52:32]Read from MH i2c: E2 0E 00 [04:52:32]MH_I2C_Read... [04:52:32]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E4 [04:52:32]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [04:52:32]wFMCommunicate OK [04:52:32]SAM_PROTO_GetShiftState done [04:52:32]FM_GetShiftState done [04:52:32]req_shift_opened done [04:52:32]requested_item shift.open_date is exist - process it [04:52:32]req_shift_open_date [04:52:32]req_shift_open_date done [04:52:32]produce_requested_data done [04:52:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82505,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [04:52:32]process_action_free close_receipt [04:52:32]json_value_free [04:52:32]json_value_free done [04:52:32]process_json_proto returns [04:52:32]Send response to host [04:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82505,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [04:52:32]free response buf [04:52:32]execute_script done [04:52:32]execute_script returns [04:52:32]free content buf [04:52:32]Sock 6.Close socket [04:52:32]Sock 6.Thread stoped [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:15]recv_with_timeout no data received [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]accept exits with 10 [04:53:41]New connection [04:53:41]New thread 3066494308 created [04:53:41]Thread 3066637668 joined [04:53:41]Waiting for new connection... [04:53:41] Sock 10.Parse request [04:53:41]Sock 10.Check first char [04:53:41]Sock 10.First char is OK [04:53:41]request: POST /json_proto HTTP/1.0 [04:53:41]Method: POST [04:53:41]URL: /json_proto [04:53:41]Method is POST - this is cgi request [04:53:41]url: /json_proto [04:53:41]query_string will be loaded in cgi processing [04:53:41]execute_cgi json_proto POST (null) [04:53:41]execute_cgi path=json_proto method=POST [04:53:41]POST find Content-Length [04:53:41]Host: 172.17.44.67:8080 [04:53:41]Content-Length: 687 [04:53:41]Content-Type: application/json [04:53:41] [04:53:41]POST finish read [04:53:41]Found Content-Length = 687 [04:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:41]execute_script... [04:53:41]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)918996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:41]POST & json_proto [04:53:41]process_json_proto [04:53:41]json parsed OK: [04:53:41]protocol is kg_v1.0 [04:53:41]action value=close_receipt [04:53:41]process_action close_receipt [04:53:41]cmd_close_receipt [04:53:41]MH_GetDate [04:53:41]Write to MH i2c: F0 00 00 66 00 55 [04:53:41]Write i2c OK [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 09 00 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 09 00 66 00 00 56 3B 13 67 F1 C7 6B 64 F0 [04:53:41]GetLastDocTimeStamp 1729313548 [04:53:41]current date 1729313622 [04:53:41]FM_GetShiftState [04:53:41]SAM_PROTO_GetShiftState [04:53:41]wFMCommunicate request_size=4 [04:53:41]MH_SAM_APDU [04:53:41]CAPDU: 80 13 01 00 [04:53:41]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [04:53:41]Write i2c OK [04:53:41]MH_I2C_Read... [04:53:41]OFD Sender: No OFD packet to send [04:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:41]Read from MH i2c: E2 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: E2 0E 00 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E6 [04:53:41]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [04:53:41]wFMCommunicate OK [04:53:41]SAM_PROTO_GetShiftState done [04:53:41]FM_GetShiftState done [04:53:41]opened in 1729298811 [04:53:41]opened+sec_in_day 1729385211 [04:53:41]quantity*price = 150037 [04:53:41]sum+1 = 150039 [04:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 3 19.10.2024 04:53 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82506 ФПД: 102248963440093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T045342&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82506&fm=102248963440093&tin=02508201610067®Number=0000000000091680&sum=150000 [04:53:42]StoreToDocumentArchive [04:53:42]shift 527 fd 82506 [04:53:42]save to /storage/0527/doc_00082506 [04:53:42]save last doc name /storage/0527/doc_00082506 to /storage/kkm_last_doc_name [04:53:42]save OK [04:53:42]Clear old archive folders... [04:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:53:42]tlvbuf is 0158E290 [04:53:42]SAM_PROTO_ClearQueue [04:53:42]wFMCommunicate request_size=4 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 09 00 00 [04:53:42]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:53:42]Read from MH i2c: E2 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [04:53:42]RAPDU: 90 00 [04:53:42]wFMCommunicate OK [04:53:42]SAM_PROTO_ClearQueue done [04:53:42]KKMCreateOFDPacket [04:53:42]OFDProtocolAddRootSTLVToBuf [04:53:42]FM_MakeSignedData [04:53:42]FM_MakeSignedData [04:53:42]SAM_PROTO_SignData [04:53:42]wFMCommunicate request_size=4 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 0D 01 02 [04:53:42]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:53:42]Read from MH i2c: E2 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [04:53:42]RAPDU: 90 00 [04:53:42]wFMCommunicate OK [04:53:42]wFMCommunicate request_size=255 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 56 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 42 01 00 35 04 06 00 [04:53:42]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 56 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 42 01 00 35 04 06 00 00 00 7C [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:53:43]RAPDU: 90 00 [04:53:43]wFMCommunicate OK [04:53:43]wFMCommunicate request_size=11 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 0D 02 02 06 5C FE B1 24 FD DD [04:53:43]Write to MH i2c: E2 0E 00 77 00 80 0D 02 02 06 00 5C FE B1 24 FD DD 00 00 06 [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [04:53:43]RAPDU: 90 00 [04:53:43]wFMCommunicate OK [04:53:43]wFMCommunicate request_size=4 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 0D 03 02 [04:53:43]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 0B 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 0B 00 78 00 00 86 39 52 43 1C 9B B3 8D 90 00 3F [04:53:43]RAPDU: 86 39 52 43 1C 9B B3 8D 90 00 [04:53:43]wFMCommunicate OK [04:53:43]SAM_PROTO_SignData done [04:53:43]FM_MakeSignedData done [04:53:43]CreateOFDProtocolMessage [04:53:43]wFMCommunicate request_size=4 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 11 00 00 [04:53:43]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 17 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [04:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:53:43]wFMCommunicate OK [04:53:43]CreateOFDProtocolMessage done [04:53:43]OFDSenderStorePacket 82506 [04:53:43]StoreOFDPacket docnum=82506 [04:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B9 EF 08 01 DD 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 56 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 42 01 00 35 04 06 00 5C FE B1 24 FD DD 86 39 52 43 1C 9B B3 8D [04:53:43]CheckFolder [04:53:43]dirname=/storage/ofd_packets [04:53:43]CheckFolder done [04:53:43]ProducePacketName [04:53:43]name=ofd_packets/00082506 [04:53:43]NVStorageSaveData ofd_packets/00082506 [04:53:43]File name is /storage/ofd_packets/00082506 [04:53:43]Write 302 bytes [04:53:43]NVStorageSaveData done [04:53:43]OFDSenderStorePacket done [04:53:43]KKMCreateOFDPacket done [04:53:43]NVStorageSaveData kkm_last_timestamp [04:53:43]File name is /storage/kkm_last_timestamp [04:53:43]Write 4 bytes [04:53:43]NVStorageSaveData done [04:53:43]ExternCall_PrintAddStr [04:53:43]wPrintStart [04:53:43]Write to MH i2c: 01 00 00 7A 00 7A [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 07 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [04:53:43]RasterBufferAndPrint [04:53:43]line Счет N : (1)918996 [04:53:43]line ИНН: 02508201610067 [04:53:43]line Контрольно-Кассовый Чек [04:53:43]line ПРОДАЖА [04:53:43]line ТРК (МРК, ГНК) : 31 [04:53:43]line Товар: 2710194210 [04:53:43]line ДТ(л)-К-5 [04:53:43]line 19.690 * 76.20 [04:53:43]line = 1500.38 [04:53:43]line НДС 12% НСП 1% [04:53:43]line > о реализуемом товаре [04:53:43]line ОКРУГЛЕНИЕ: -0.38 [04:53:43]line ИТОГО: 1500.00 [04:53:43]line Внесено: 1500.00 [04:53:43]line СДАЧА: 0.00 [04:53:43]line НСП 1% : 13.28 [04:53:43]line НДС 12% : 159.33 [04:53:43]line Наличными: 1500.00 [04:53:43]line Безнал.: 0.00 [04:53:43]line Место: АЗС № 114 "Партнер Нефть" [04:53:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [04:53:43]line СНО: Общий режим [04:53:43]line Чек 3 19.10.2024 04:53 [04:53:43]line Смена: 527 ФФД: 1.0 [04:53:43]line ЗНМ: 0300000086 [04:53:43]line РНМ: 0000000000091680 [04:53:43]line Версия ККМ: 001 [04:53:43]line ФМ: 0000000000871843 [04:53:43]line ФД: 82506 [04:53:43]line ФПД: 102248963440093 [04:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T045342&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82506&fm=102248963440093&tin=02508201610067®Number=0000000000091680&sum=150000 [04:53:43]OFD Sender: Processing packet 82506 [packets to send 254, broken 253] [04:53:43]ProducePacketName [04:53:43]name=ofd_packets/00082506 [04:53:43]OFD Sender: To server: pG, [04:53:43]CommunicateWithHost lk.salyk.kg:30040 [04:53:43]ConnectInit lk.salyk.kg [04:53:43]written 0, free lines is 4095 [04:53:44]Write to MH i2c: 01 00 00 A5 00 A5 [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 07 00 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E1 0C 99 [04:53:44]RasterBufferAndPrint [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]written 0, free lines is 3303 [04:53:44]MH_Cut [04:53:44]Write to MH i2c: D1 01 00 AC 00 01 7E [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 01 00 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 01 00 AC 00 00 7D [04:53:44]Write to MH i2c: 01 00 00 AD 00 AD [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]Connected sock=9 [04:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B9 EF 08 01 DD 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 56 3B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 42 01 00 35 04 06 00 5C FE B1 24 FD DD 86 39 52 43 1C 9B B3 8D [04:53:44]*** Cut start [04:53:44]*** Partial cut [04:53:44]*** CUTSNS_PIN = 1 [04:53:44]*** CUTSNS_PIN = 0 [04:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BC 7D 47 00 A6 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 31 38 34 33 10 04 04 00 4A 42 01 00 F4 03 04 00 8E E0 12 67 B6 04 01 00 00 7B BF C0 3B FC 1B 3E 22 [04:53:44]CommunicateWithHost err = 0 [04:53:44]CheckOFDResponse [04:53:44]1017 (14) - 77093643461234 [04:53:44]1041 (16) - 0000000000871843 [04:53:44]1040 (4) - 82506 [04:53:44]1012 (4) - 18.10.2024 22:26 [04:53:44]1206 (1) - 0 [04:53:44]OFD Sender: Remove packet 82506 [04:53:44]ProducePacketName [04:53:44]name=ofd_packets/00082506 [04:53:44]NVStorageDeleteData [04:53:45]*** Brake cut motor [04:53:45]OFD Sender: No OFD packet to send [04:53:45]Read from MH i2c: 01 [04:53:45]MH_I2C_Read... [04:53:45]*** Stop cut motor [04:53:45]*** Cut end [04:53:45]Read from MH i2c: 01 07 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [04:53:45]process_action close_receipt done [04:53:45]requested_data is exist [04:53:45]produce_requested_data [04:53:45]requested_item fm.sn is exist - process it [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 11 00 00 [04:53:45]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 17 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [04:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:53:45]wFMCommunicate OK [04:53:45]requested_item fd.num is exist - process it [04:53:45]SAM_PROTO_GetFieldsCounters [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 13 00 00 [04:53:45]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 62 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 62 00 AF 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4A 42 01 00 0E 04 04 00 0F 02 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 F1 [04:53: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4A 42 01 00 0E 04 04 00 0F 02 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 [04:53:45]wFMCommunicate OK [04:53:45]SAM_PROTO_GetFieldsCounters done [04:53:45]requested_item shift.num is exist - process it [04:53:45]requested_item shift.opened is exist - process it [04:53:45]req_shift_opened [04:53:45]FM_GetShiftState [04:53:45]SAM_PROTO_GetShiftState [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 13 01 00 [04:53:45]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 2F [04:53:45]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [04:53:45]wFMCommunicate OK [04:53:45]SAM_PROTO_GetShiftState done [04:53:45]FM_GetShiftState done [04:53:45]req_shift_opened done [04:53:45]requested_item shift.open_date is exist - process it [04:53:45]req_shift_open_date [04:53:45]req_shift_open_date done [04:53:45]produce_requested_data done [04:53:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82506,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [04:53:45]process_action_free close_receipt [04:53:45]json_value_free [04:53:45]json_value_free done [04:53:45]process_json_proto returns [04:53:45]Send response to host [04:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82506,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [04:53:45]free response buf [04:53:45]execute_script done [04:53:45]execute_script returns [04:53:45]free content buf [04:53:45]Sock 10.Close socket [04:53:45]Sock 10.Thread stoped [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:54]accept exits with 7 [06:07:54]New connection [06:07:54]New thread 3066637668 created [06:07:54]Thread 3066494308 joined [06:07:54]Waiting for new connection... [06:07:54] Sock 7.Parse request [06:07:54]Sock 7.Check first char [06:07:54]Sock 7.First char is OK [06:07:54]request: POST /json_proto HTTP/1.0 [06:07:54]Method: POST [06:07:54]URL: /json_proto [06:07:54]Method is POST - this is cgi request [06:07:54]url: /json_proto [06:07:54]query_string will be loaded in cgi processing [06:07:54]execute_cgi json_proto POST (null) [06:07:54]execute_cgi path=json_proto method=POST [06:07:54]POST find Content-Length [06:07:54]Host: 172.17.44.67:8080 [06:07:54]Content-Length: 687 [06:07:54]Content-Type: application/json [06:07:54] [06:07:54]POST finish read [06:07:54]Found Content-Length = 687 [06:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:54]execute_script... [06:07: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 : (1)918997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:54]POST & json_proto [06:07:54]process_json_proto [06:07:54]json parsed OK: [06:07:54]protocol is kg_v1.0 [06:07:54]action value=close_receipt [06:07:54]process_action close_receipt [06:07:54]cmd_close_receipt [06:07:54]MH_GetDate [06:07:54]Write to MH i2c: F0 00 00 B1 00 A0 [06:07:54]Write i2c OK [06:07:54]MH_I2C_Read... [06:07:54]Read from MH i2c: F0 [06:07:54]MH_I2C_Read... [06:07:54]Read from MH i2c: F0 09 00 [06:07:54]MH_I2C_Read... [06:07:54]Read from MH i2c: F0 09 00 B1 00 00 BB 4C 13 67 F1 C7 6B 64 B1 [06:07:54]GetLastDocTimeStamp 1729313622 [06:07:54]current date 1729318075 [06:07:54]FM_GetShiftState [06:07:54]SAM_PROTO_GetShiftState [06:07:54]wFMCommunicate request_size=4 [06:07:54]MH_SAM_APDU [06:07:54]CAPDU: 80 13 01 00 [06:07:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [06:07:54]Write i2c OK [06:07:54]MH_I2C_Read... [06:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:54]Read from MH i2c: E2 [06:07:54]MH_I2C_Read... [06:07:54]Read from MH i2c: E2 0E 00 [06:07:54]MH_I2C_Read... [06:07:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 31 [06:07:54]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [06:07:54]wFMCommunicate OK [06:07:54]SAM_PROTO_GetShiftState done [06:07:54]FM_GetShiftState done [06:07:54]opened in 1729298811 [06:07:54]opened+sec_in_day 1729385211 [06:07:54]quantity*price = 120015 [06:07:54]sum+1 = 120016 [06:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 4 19.10.2024 06:07 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82507 ФПД: 95929044710263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T060755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82507&fm=95929044710263&tin=02508201610067®Number=0000000000091680&sum=120000 [06:07:55]StoreToDocumentArchive [06:07:55]shift 527 fd 82507 [06:07:55]save to /storage/0527/doc_00082507 [06:07:55]save last doc name /storage/0527/doc_00082507 to /storage/kkm_last_doc_name [06:07:55]save OK [06:07:55]Clear old archive folders... [06:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:07:55]tlvbuf is 015244C0 [06:07:55]SAM_PROTO_ClearQueue [06:07:55]wFMCommunicate request_size=4 [06:07:55]MH_SAM_APDU [06:07:55]CAPDU: 80 09 00 00 [06:07:55]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [06:07:55]Write i2c OK [06:07:55]MH_I2C_Read... [06:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:55]Read from MH i2c: E2 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [06:07:55]RAPDU: 90 00 [06:07:55]wFMCommunicate OK [06:07:55]SAM_PROTO_ClearQueue done [06:07:55]KKMCreateOFDPacket [06:07:55]OFDProtocolAddRootSTLVToBuf [06:07:55]FM_MakeSignedData [06:07:55]FM_MakeSignedData [06:07:55]SAM_PROTO_SignData [06:07:55]wFMCommunicate request_size=4 [06:07:55]MH_SAM_APDU [06:07:55]CAPDU: 80 0D 01 02 [06:07:55]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [06:07:55]Write i2c OK [06:07:55]MH_I2C_Read... [06:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:55]Read from MH i2c: E2 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [06:07:55]RAPDU: 90 00 [06:07:55]wFMCommunicate OK [06:07:55]wFMCommunicate request_size=255 [06:07:55]MH_SAM_APDU [06:07:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 BB 4C 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 42 01 00 35 04 06 00 [06:07:55]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 BB 4C 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 42 01 00 35 04 06 00 00 00 36 [06:07:55]Write i2c OK [06:07:55]MH_I2C_Read... [06:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:55]Read from MH i2c: E2 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [06:07:55]RAPDU: 90 00 [06:07:55]wFMCommunicate OK [06:07:55]wFMCommunicate request_size=11 [06:07:55]MH_SAM_APDU [06:07:55]CAPDU: 80 0D 02 02 06 57 3F 38 A2 33 77 [06:07:55]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 57 3F 38 A2 33 77 00 00 62 [06:07:55]Write i2c OK [06:07:55]MH_I2C_Read... [06:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:55]Read from MH i2c: E2 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 [06:07:55]MH_I2C_Read... [06:07:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [06:07:55]RAPDU: 90 00 [06:07:55]wFMCommunicate OK [06:07:55]wFMCommunicate request_size=4 [06:07:55]MH_SAM_APDU [06:07:55]CAPDU: 80 0D 03 02 [06:07:55]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [06:07:55]Write i2c OK [06:07:55]MH_I2C_Read... [06:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:56]Read from MH i2c: E2 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: E2 0B 00 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: E2 0B 00 C3 00 00 E4 B5 3F 0A 4A 40 37 F4 90 00 D6 [06:07:56]RAPDU: E4 B5 3F 0A 4A 40 37 F4 90 00 [06:07:56]wFMCommunicate OK [06:07:56]SAM_PROTO_SignData done [06:07:56]FM_MakeSignedData done [06:07:56]CreateOFDProtocolMessage [06:07:56]wFMCommunicate request_size=4 [06:07:56]MH_SAM_APDU [06:07:56]CAPDU: 80 11 00 00 [06:07:56]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [06:07:56]Write i2c OK [06:07:56]MH_I2C_Read... [06:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:56]Read from MH i2c: E2 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: E2 17 00 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [06:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:07:56]wFMCommunicate OK [06:07:56]CreateOFDProtocolMessage done [06:07:56]OFDSenderStorePacket 82507 [06:07:56]StoreOFDPacket docnum=82507 [06:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 25 2C 08 01 47 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 BB 4C 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 42 01 00 35 04 06 00 57 3F 38 A2 33 77 E4 B5 3F 0A 4A 40 37 F4 [06:07:56]CheckFolder [06:07:56]dirname=/storage/ofd_packets [06:07:56]CheckFolder done [06:07:56]ProducePacketName [06:07:56]name=ofd_packets/00082507 [06:07:56]NVStorageSaveData ofd_packets/00082507 [06:07:56]File name is /storage/ofd_packets/00082507 [06:07:56]Write 302 bytes [06:07:56]NVStorageSaveData done [06:07:56]OFDSenderStorePacket done [06:07:56]KKMCreateOFDPacket done [06:07:56]NVStorageSaveData kkm_last_timestamp [06:07:56]File name is /storage/kkm_last_timestamp [06:07:56]Write 4 bytes [06:07:56]NVStorageSaveData done [06:07:56]ExternCall_PrintAddStr [06:07:56]wPrintStart [06:07:56]Write to MH i2c: 01 00 00 C5 00 C5 [06:07:56]Write i2c OK [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 07 00 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [06:07:56]RasterBufferAndPrint [06:07:56]line Счет N : (1)918997 [06:07:56]line ИНН: 02508201610067 [06:07:56]line Контрольно-Кассовый Чек [06:07:56]line ПРОДАЖА [06:07:56]line ТРК (МРК, ГНК) : 31 [06:07:56]line Товар: 2710194210 [06:07:56]line ДТ(л)-К-5 [06:07:56]line 15.750 * 76.20 [06:07:56]line = 1200.15 [06:07:56]line НДС 12% НСП 1% [06:07:56]line > о реализуемом товаре [06:07:56]line ОКРУГЛЕНИЕ: -0.15 [06:07:56]line ИТОГО: 1200.00 [06:07:56]line Внесено: 1200.00 [06:07:56]line СДАЧА: 0.00 [06:07:56]line НСП 1% : 10.62 [06:07:56]line НДС 12% : 127.45 [06:07:56]line Наличными: 1200.00 [06:07:56]line Безнал.: 0.00 [06:07:56]line Место: АЗС № 114 "Партнер Нефть" [06:07:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [06:07:56]line СНО: Общий режим [06:07:56]line Чек 4 19.10.2024 06:07 [06:07:56]line Смена: 527 ФФД: 1.0 [06:07:56]line ЗНМ: 0300000086 [06:07:56]line РНМ: 0000000000091680 [06:07:56]line Версия ККМ: 001 [06:07:56]line ФМ: 0000000000871843 [06:07:56]line ФД: 82507 [06:07:56]line ФПД: 95929044710263 [06:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T060755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82507&fm=95929044710263&tin=02508201610067®Number=0000000000091680&sum=120000 [06:07:56]OFD Sender: Processing packet 82507 [packets to send 254, broken 253] [06:07:56]ProducePacketName [06:07:56]name=ofd_packets/00082507 [06:07:56]OFD Sender: To server: pG, [06:07:56]CommunicateWithHost lk.salyk.kg:30040 [06:07:56]ConnectInit lk.salyk.kg [06:07:56]written 0, free lines is 4095 [06:07:56]Write to MH i2c: 01 00 00 F0 00 F0 [06:07:56]Write i2c OK [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 07 00 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 DA 0C DD [06:07:56]RasterBufferAndPrint [06:07:56]line [06:07:56]line [06:07:56]line [06:07:56]line [06:07:56]line [06:07:56]written 0, free lines is 3297 [06:07:56]MH_Cut [06:07:56]Write to MH i2c: D1 01 00 F7 00 01 C9 [06:07:56]Write i2c OK [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: D1 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: D1 01 00 [06:07:56]MH_I2C_Read... [06:07:56]Read from MH i2c: D1 01 00 F7 00 00 C8 [06:07:56]Write to MH i2c: 01 00 00 F8 00 F8 [06:07:56]Write i2c OK [06:07:56]MH_I2C_Read... [06:07:57]Connected sock=11 [06:07:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 25 2C 08 01 47 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 BB 4C 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 42 01 00 35 04 06 00 57 3F 38 A2 33 77 E4 B5 3F 0A 4A 40 37 F4 [06:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 12 A1 47 00 9A F5 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 31 38 34 33 10 04 04 00 4B 42 01 00 F4 03 04 00 F4 F1 12 67 B6 04 01 00 00 33 CB D9 FD 2B 87 9A 87 [06:07:57]CommunicateWithHost err = 0 [06:07:57]CheckOFDResponse [06:07:57]1017 (14) - 77093643461234 [06:07:57]1041 (16) - 0000000000871843 [06:07:57]1040 (4) - 82507 [06:07:57]1012 (4) - 18.10.2024 23:40 [06:07:57]1206 (1) - 0 [06:07:57]OFD Sender: Remove packet 82507 [06:07:57]ProducePacketName [06:07:57]name=ofd_packets/00082507 [06:07:57]NVStorageDeleteData [06:07:57]*** Cut start [06:07:57]*** Partial cut [06:07:57]*** CUTSNS_PIN = 1 [06:07:57]*** CUTSNS_PIN = 0 [06:07:57]*** Brake cut motor [06:07:58]OFD Sender: No OFD packet to send [06:07:58]Read from MH i2c: 01 [06:07:58]MH_I2C_Read... [06:07:58]*** Stop cut motor [06:07:58]*** Cut end [06:07:58]Read from MH i2c: 01 07 00 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [06:07:58]process_action close_receipt done [06:07:58]requested_data is exist [06:07:58]produce_requested_data [06:07:58]requested_item fm.sn is exist - process it [06:07:58]wFMCommunicate request_size=4 [06:07:58]MH_SAM_APDU [06:07:58]CAPDU: 80 11 00 00 [06:07:58]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [06:07:58]Write i2c OK [06:07:58]MH_I2C_Read... [06:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:58]Read from MH i2c: E2 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 17 00 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [06:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:07:58]wFMCommunicate OK [06:07:58]requested_item fd.num is exist - process it [06:07:58]SAM_PROTO_GetFieldsCounters [06:07:58]wFMCommunicate request_size=4 [06:07:58]MH_SAM_APDU [06:07:58]CAPDU: 80 13 00 00 [06:07:58]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [06:07:58]Write i2c OK [06:07:58]MH_I2C_Read... [06:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:58]Read from MH i2c: E2 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 62 00 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 62 00 FA 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4B 42 01 00 0E 04 04 00 0F 02 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 40 [06:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4B 42 01 00 0E 04 04 00 0F 02 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 [06:07:58]wFMCommunicate OK [06:07:58]SAM_PROTO_GetFieldsCounters done [06:07:58]requested_item shift.num is exist - process it [06:07:58]requested_item shift.opened is exist - process it [06:07:58]req_shift_opened [06:07:58]FM_GetShiftState [06:07:58]SAM_PROTO_GetShiftState [06:07:58]wFMCommunicate request_size=4 [06:07:58]MH_SAM_APDU [06:07:58]CAPDU: 80 13 01 00 [06:07:58]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [06:07:58]Write i2c OK [06:07:58]MH_I2C_Read... [06:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:58]Read from MH i2c: E2 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 0E 00 [06:07:58]MH_I2C_Read... [06:07:58]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7A [06:07:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [06:07:58]wFMCommunicate OK [06:07:58]SAM_PROTO_GetShiftState done [06:07:58]FM_GetShiftState done [06:07:58]req_shift_opened done [06:07:58]requested_item shift.open_date is exist - process it [06:07:58]req_shift_open_date [06:07:58]req_shift_open_date done [06:07:58]produce_requested_data done [06:07:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82507,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [06:07:58]process_action_free close_receipt [06:07:58]json_value_free [06:07:58]json_value_free done [06:07:58]process_json_proto returns [06:07:58]Send response to host [06:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82507,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [06:07:58]free response buf [06:07:58]execute_script done [06:07:58]execute_script returns [06:07:58]free content buf [06:07:58]Sock 7.Close socket [06:07:58]Sock 7.Thread stoped [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:34]recv_with_timeout no data received [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:12]recv_with_timeout no data received [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]accept exits with 9 [07:33:46]New connection [07:33:46]New thread 3066494308 created [07:33:46]Thread 3066637668 joined [07:33:46]Waiting for new connection... [07:33:46] Sock 9.Parse request [07:33:46]Sock 9.Check first char [07:33:46]Sock 9.First char is OK [07:33:46]request: POST /json_proto HTTP/1.0 [07:33:46]Method: POST [07:33:46]URL: /json_proto [07:33:46]Method is POST - this is cgi request [07:33:46]url: /json_proto [07:33:46]query_string will be loaded in cgi processing [07:33:46]execute_cgi json_proto POST (null) [07:33:46]execute_cgi path=json_proto method=POST [07:33:46]POST find Content-Length [07:33:46]Host: 172.17.44.67:8080 [07:33:46]Content-Length: 816 [07:33:46]Content-Type: application/json [07:33:46] [07:33:46]POST finish read [07:33:46]Found Content-Length = 816 [07:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:46]execute_script... [07:33: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 : (1)918998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:46]POST & json_proto [07:33:46]process_json_proto [07:33:46]json parsed OK: [07:33:46]protocol is kg_v1.0 [07:33:46]action value=close_receipt [07:33:46]process_action close_receipt [07:33:46]cmd_close_receipt [07:33:46]MH_GetDate [07:33:46]Write to MH i2c: F0 00 00 FC 00 EB [07:33:46]Write i2c OK [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: F0 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: F0 09 00 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: F0 09 00 FC 00 00 DB 60 13 67 F1 C7 6B 64 30 [07:33:46]GetLastDocTimeStamp 1729318075 [07:33:46]current date 1729323227 [07:33:46]FM_GetShiftState [07:33:46]SAM_PROTO_GetShiftState [07:33:46]wFMCommunicate request_size=4 [07:33:46]MH_SAM_APDU [07:33:46]CAPDU: 80 13 01 00 [07:33:46]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [07:33:46]Write i2c OK [07:33:46]MH_I2C_Read... [07:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:46]Read from MH i2c: E2 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 0E 00 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7C [07:33:46]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:33:46]wFMCommunicate OK [07:33:46]SAM_PROTO_GetShiftState done [07:33:46]FM_GetShiftState done [07:33:46]opened in 1729298811 [07:33:46]opened+sec_in_day 1729385211 [07:33:46]quantity*price = 35055 [07:33:46]sum+1 = 35057 [07:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 5 19.10.2024 07:33 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871843 ФД: 82508 ФПД: 30067177037524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T073347&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82508&fm=30067177037524&tin=02508201610067®Number=0000000000091680&sum=35056 [07:33:47]StoreToDocumentArchive [07:33:47]shift 527 fd 82508 [07:33:47]save to /storage/0527/doc_00082508 [07:33:47]save last doc name /storage/0527/doc_00082508 to /storage/kkm_last_doc_name [07:33:47]save OK [07:33:47]Clear old archive folders... [07:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:47]tlvbuf is 01524360 [07:33:47]SAM_PROTO_ClearQueue [07:33:47]wFMCommunicate request_size=4 [07:33:47]MH_SAM_APDU [07:33:47]CAPDU: 80 09 00 00 [07:33:47]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [07:33:47]Write i2c OK [07:33:47]MH_I2C_Read... [07:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:47]Read from MH i2c: E2 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [07:33:47]RAPDU: 90 00 [07:33:47]wFMCommunicate OK [07:33:47]SAM_PROTO_ClearQueue done [07:33:47]KKMCreateOFDPacket [07:33:47]OFDProtocolAddRootSTLVToBuf [07:33:47]FM_MakeSignedData [07:33:47]FM_MakeSignedData [07:33:47]SAM_PROTO_SignData [07:33:47]wFMCommunicate request_size=4 [07:33:47]MH_SAM_APDU [07:33:47]CAPDU: 80 0D 01 02 [07:33:47]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [07:33:47]Write i2c OK [07:33:47]MH_I2C_Read... [07:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:47]Read from MH i2c: E2 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:33:47]RAPDU: 90 00 [07:33:47]wFMCommunicate OK [07:33:47]wFMCommunicate request_size=255 [07:33:47]MH_SAM_APDU [07:33:47]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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 60 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4C 42 01 00 35 04 06 00 1B [07:33:47]Write to MH i2c: E2 02 01 0C 01 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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 60 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4C 42 01 00 35 04 06 00 1B 00 00 01 [07:33:47]Write i2c OK [07:33:47]MH_I2C_Read... [07:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:47]Read from MH i2c: E2 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:33:47]RAPDU: 90 00 [07:33:47]wFMCommunicate OK [07:33:47]wFMCommunicate request_size=10 [07:33:47]MH_SAM_APDU [07:33:47]CAPDU: 80 0D 02 02 05 58 8F 68 1E D4 [07:33:47]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 58 8F 68 1E D4 00 00 D3 [07:33:47]Write i2c OK [07:33:47]MH_I2C_Read... [07:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:47]Read from MH i2c: E2 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [07:33:47]RAPDU: 90 00 [07:33:47]wFMCommunicate OK [07:33:47]wFMCommunicate request_size=4 [07:33:47]MH_SAM_APDU [07:33:47]CAPDU: 80 0D 03 02 [07:33:47]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [07:33:47]Write i2c OK [07:33:47]MH_I2C_Read... [07:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:48]Read from MH i2c: E2 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 0B 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 0B 00 0E 01 00 58 80 72 E8 17 67 04 18 90 00 57 [07:33:48]RAPDU: 58 80 72 E8 17 67 04 18 90 00 [07:33:48]wFMCommunicate OK [07:33:48]SAM_PROTO_SignData done [07:33:48]FM_MakeSignedData done [07:33:48]CreateOFDProtocolMessage [07:33:48]wFMCommunicate request_size=4 [07:33:48]MH_SAM_APDU [07:33:48]CAPDU: 80 11 00 00 [07:33:48]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:48]Read from MH i2c: E2 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 17 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [07:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:33:48]wFMCommunicate OK [07:33:48]CreateOFDProtocolMessage done [07:33:48]OFDSenderStorePacket 82508 [07:33:48]StoreOFDPacket docnum=82508 [07:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CA B3 07 01 14 B3 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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 60 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4C 42 01 00 35 04 06 00 1B 58 8F 68 1E D4 58 80 72 E8 17 67 04 18 [07:33:48]CheckFolder [07:33:48]dirname=/storage/ofd_packets [07:33:48]CheckFolder done [07:33:48]ProducePacketName [07:33:48]name=ofd_packets/00082508 [07:33:48]NVStorageSaveData ofd_packets/00082508 [07:33:48]File name is /storage/ofd_packets/00082508 [07:33:48]Write 301 bytes [07:33:48]NVStorageSaveData done [07:33:48]OFDSenderStorePacket done [07:33:48]KKMCreateOFDPacket done [07:33:48]NVStorageSaveData kkm_last_timestamp [07:33:48]File name is /storage/kkm_last_timestamp [07:33:48]Write 4 bytes [07:33:48]NVStorageSaveData done [07:33:48]ExternCall_PrintAddStr [07:33:48]wPrintStart [07:33:48]Write to MH i2c: 01 00 00 10 01 11 [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [07:33:48]RasterBufferAndPrint [07:33:48]line Счет N : (1)918998 [07:33:48]line ИНН: 02508201610067 [07:33:48]line Контрольно-Кассовый Чек [07:33:48]line ПРОДАЖА [07:33:48]line ТРК (МРК, ГНК) : 11 [07:33:48]line Товар: 2710124130 [07:33:48]line Аи-92-К-4 [07:33:48]line 5.240 * 66.90 [07:33:48]line = 350.56 [07:33:48]line НДС 12% НСП 1% [07:33:48]line > о реализуемом товаре [07:33:48]line ИТОГО: 350.56 [07:33:48]line НСП 1% : 3.10 [07:33:48]line НДС 12% : 37.23 [07:33:48]line Наличными: 0.00 [07:33:48]line Безнал.: 350.56 [07:33:48]line Место: АЗС № 114 "Партнер Нефть" [07:33:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:33:48]line СНО: Общий режим [07:33:48]line Чек 5 19.10.2024 07:33 [07:33:48]line Смена: 527 ФФД: 1.0 [07:33:48]line ЗНМ: 0300000086 [07:33:48]line РНМ: 0000000000091680 [07:33:48]line Версия ККМ: 001 [07:33:48]line Платежная система: Бакай Банк [07:33:48]line ФМ: 0000000000871843 [07:33:48]line ФД: 82508 [07:33:48]line ФПД: 30067177037524 [07:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T073347&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82508&fm=30067177037524&tin=02508201610067®Number=0000000000091680&sum=35056 [07:33:48]OFD Sender: Processing packet 82508 [packets to send 254, broken 253] [07:33:48]ProducePacketName [07:33:48]name=ofd_packets/00082508 [07:33:48]OFD Sender: To server: pG, [07:33:48]CommunicateWithHost lk.salyk.kg:30040 [07:33:48]ConnectInit lk.salyk.kg [07:33:48]written 0, free lines is 4095 [07:33:48]Write to MH i2c: 01 00 00 3A 01 3B [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 EC 0C 3A [07:33:48]RasterBufferAndPrint [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]line [07:33:48]written 0, free lines is 3314 [07:33:48]MH_Cut [07:33:48]Write to MH i2c: D1 01 00 41 01 01 14 [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: D1 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: D1 01 00 [07:33:48]MH_I2C_Read... [07:33:48]Read from MH i2c: D1 01 00 41 01 00 13 [07:33:48]Write to MH i2c: 01 00 00 42 01 43 [07:33:48]Write i2c OK [07:33:48]MH_I2C_Read... [07:33:49]Connected sock=10 [07:33:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CA B3 07 01 14 B3 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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 60 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4C 42 01 00 35 04 06 00 1B 58 8F 68 1E D4 58 80 72 E8 17 67 04 18 [07:33:49]*** Cut start [07:33:49]*** Partial cut [07:33:49]*** CUTSNS_PIN = 1 [07:33:49]*** CUTSNS_PIN = 0 [07:33:49]*** Brake cut motor [07:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 86 47 47 00 DB 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 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4C 42 01 00 F4 03 04 00 14 06 13 67 B6 04 01 00 00 52 4B 34 F3 B9 E3 EA C1 [07:33:50]CommunicateWithHost err = 0 [07:33:50]CheckOFDResponse [07:33:50]1017 (14) - 77093643461234 [07:33:50]1041 (16) - 0000000000871843 [07:33:50]1040 (4) - 82508 [07:33:50]1012 (4) - 19.10.2024 01:06 [07:33:50]1206 (1) - 0 [07:33:50]OFD Sender: Remove packet 82508 [07:33:50]ProducePacketName [07:33:50]name=ofd_packets/00082508 [07:33:50]NVStorageDeleteData [07:33:50]Read from MH i2c: 01 [07:33:50]MH_I2C_Read... [07:33:50]*** Stop cut motor [07:33:50]*** Cut end [07:33:50]Read from MH i2c: 01 07 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [07:33:50]process_action close_receipt done [07:33:50]requested_data is exist [07:33:50]produce_requested_data [07:33:50]requested_item fm.sn is exist - process it [07:33:50]wFMCommunicate request_size=4 [07:33:50]MH_SAM_APDU [07:33:50]CAPDU: 80 11 00 00 [07:33:50]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:50]Read from MH i2c: E2 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 17 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [07:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:33:50]wFMCommunicate OK [07:33:50]requested_item fd.num is exist - process it [07:33:50]SAM_PROTO_GetFieldsCounters [07:33:50]wFMCommunicate request_size=4 [07:33:50]MH_SAM_APDU [07:33:50]CAPDU: 80 13 00 00 [07:33:50]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:50]Read from MH i2c: E2 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 62 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 62 00 44 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4C 42 01 00 0E 04 04 00 0F 02 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 8F [07:33: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4C 42 01 00 0E 04 04 00 0F 02 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 [07:33:50]wFMCommunicate OK [07:33:50]SAM_PROTO_GetFieldsCounters done [07:33:50]requested_item shift.num is exist - process it [07:33:50]requested_item shift.opened is exist - process it [07:33:50]req_shift_opened [07:33:50]FM_GetShiftState [07:33:50]SAM_PROTO_GetShiftState [07:33:50]wFMCommunicate request_size=4 [07:33:50]MH_SAM_APDU [07:33:50]CAPDU: 80 13 01 00 [07:33:50]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:50]OFD Sender: No OFD packet to send [07:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:50]Read from MH i2c: E2 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 0E 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C5 [07:33:50]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:33:50]wFMCommunicate OK [07:33:50]SAM_PROTO_GetShiftState done [07:33:50]FM_GetShiftState done [07:33:50]req_shift_opened done [07:33:50]requested_item shift.open_date is exist - process it [07:33:50]req_shift_open_date [07:33:50]req_shift_open_date done [07:33:50]produce_requested_data done [07:33:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82508,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [07:33:50]process_action_free close_receipt [07:33:50]json_value_free [07:33:50]json_value_free done [07:33:50]process_json_proto returns [07:33:50]Send response to host [07:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82508,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [07:33:50]free response buf [07:33:50]execute_script done [07:33:50]execute_script returns [07:33:50]free content buf [07:33:50]Sock 9.Close socket [07:33:50]Sock 9.Thread stoped [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:03]recv_with_timeout no data received [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [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 [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:02]accept exits with 7 [07:50:02]New connection [07:50:02]New thread 3066637668 created [07:50:02]Thread 3066494308 joined [07:50:02]Waiting for new connection... [07:50:02] Sock 7.Parse request [07:50:02]Sock 7.Check first char [07:50:02]Sock 7.First char is OK [07:50:02]request: POST /json_proto HTTP/1.0 [07:50:02]Method: POST [07:50:02]URL: /json_proto [07:50:02]Method is POST - this is cgi request [07:50:02]url: /json_proto [07:50:02]query_string will be loaded in cgi processing [07:50:02]execute_cgi json_proto POST (null) [07:50:02]execute_cgi path=json_proto method=POST [07:50:02]POST find Content-Length [07:50:02]Host: 172.17.44.67:8080 [07:50:02]Content-Length: 803 [07:50:02]Content-Type: application/json [07:50:02] [07:50:02]POST finish read [07:50:02]Found Content-Length = 803 [07:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 59.830, "sum" : 4002.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4002.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:02]execute_script... [07:50: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 : (1)918999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 59.830, "sum" : 4002.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4002.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:02]POST & json_proto [07:50:02]process_json_proto [07:50:02]json parsed OK: [07:50:02]protocol is kg_v1.0 [07:50:02]action value=close_receipt [07:50:02]process_action close_receipt [07:50:02]cmd_close_receipt [07:50:02]MH_GetDate [07:50:02]Write to MH i2c: F0 00 00 46 01 36 [07:50:02]Write i2c OK [07:50:02]MH_I2C_Read... [07:50:02]Read from MH i2c: F0 [07:50:02]MH_I2C_Read... [07:50:02]Read from MH i2c: F0 09 00 [07:50:02]MH_I2C_Read... [07:50:02]Read from MH i2c: F0 09 00 46 01 00 AC 64 13 67 F1 C7 6B 64 50 [07:50:02]GetLastDocTimeStamp 1729323227 [07:50:02]current date 1729324204 [07:50:02]FM_GetShiftState [07:50:02]SAM_PROTO_GetShiftState [07:50:02]wFMCommunicate request_size=4 [07:50:02]MH_SAM_APDU [07:50:02]CAPDU: 80 13 01 00 [07:50:02]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [07:50:02]Write i2c OK [07:50:02]MH_I2C_Read... [07:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:02]Read from MH i2c: E2 [07:50:02]MH_I2C_Read... [07:50:02]Read from MH i2c: E2 0E 00 [07:50:02]MH_I2C_Read... [07:50:02]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C7 [07:50:02]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:50:02]wFMCommunicate OK [07:50:02]SAM_PROTO_GetShiftState done [07:50:02]FM_GetShiftState done [07:50:02]opened in 1729298811 [07:50:02]opened+sec_in_day 1729385211 [07:50:02]quantity*price = 400262 [07:50:02]sum+1 = 400264 [07:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре [07:56:51]line ИТОГО: 4002.63 [07:56:51]line НСП 1% : 35.42 [07:56:51]line НДС 12% : 425.06 [07:56:51]line Наличными: 0.00 [07:56:51]line Безнал.: 4002.63 [07:56:51]line Место: АЗС № 114 "Партнер Нефть" [07:56:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:56:51]line СНО: Общий режим [07:56:51]line Чек 6 19.10.2024 07:50 [07:56:51]line Смена: 527 ФФД: 1.0 [07:56:51]line ЗНМ: 0300000086 [07:56:51]line РНМ: 0000000000091680 [07:56:51]line Версия ККМ: 001 [07:56:51]line Платежная система: O! деньги [07:56:51]line ФМ: 0000000000871843 [07:56:51]line ФД: 82509 [07:56:51]line ФПД: 251749789551230 [07:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T075004&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82509&fm=251749789551230&tin=02508201610067®Number=0000000000091680&sum=400263 [07:56:51]written 0, free lines is 4095 [07:56:51]Write to MH i2c: 01 00 00 47 00 47 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 F5 0C 4F [07:56:51]RasterBufferAndPrint [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]written 0, free lines is 3336 [07:56:51]MH_Cut [07:56:51]Write to MH i2c: D1 01 00 4E 00 01 20 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 4E 00 00 1F [07:56:51]Write to MH i2c: 01 00 00 4F 00 4F [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:52]*** Cut start [07:56:52]*** Partial cut [07:56:52]*** CUTSNS_PIN = 1 [07:56:52]*** CUTSNS_PIN = 0 [07:56:52]*** Brake cut motor [07:56:52]Read from MH i2c: 01 [07:56:52]MH_I2C_Read... [07:56:52]*** Stop cut motor [07:56:52]*** Cut end [07:56:52]Read from MH i2c: 01 07 00 [07:56:52]MH_I2C_Read... [07:56:52]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [07:56:52]process_action print_doc done [07:56:52]requested_data is exist [07:56:52]produce_requested_data [07:56:52]produce_requested_data return (null) [07:56:52]process_action_free print_doc [07:56:52]json_value_free [07:56:52]json_value_free done [07:56:52]process_json_proto returns [07:56:52]Send response to host [07:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [07:56:52]free response buf [07:56:52]execute_script done [07:56:52]execute_script returns [07:56:52]free content buf [07:56:52]Sock 6.Close socket [07:56:52]Sock 6.Thread stoped [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:38]accept exits with 10 [07:58:38]New connection [07:58:38]New thread 3067137380 created [07:58:38]Thread 3067280740 joined [07:58:38]Waiting for new connection... [07:58:38] Sock 10.Parse request [07:58:38]Sock 10.Check first char [07:58:38]Sock 10.First char is OK [07:58:38]request: POST /json_proto HTTP/1.0 [07:58:38]Method: POST [07:58:38]URL: /json_proto [07:58:38]Method is POST - this is cgi request [07:58:38]url: /json_proto [07:58:38]query_string will be loaded in cgi processing [07:58:38]execute_cgi json_proto POST (null) [07:58:38]execute_cgi path=json_proto method=POST [07:58:38]POST find Content-Length [07:58:38]Host: 172.17.44.67:8080 [07:58:38]Content-Length: 677 [07:58:38]Content-Type: application/json [07:58:38] [07:58:38]POST finish read [07:58:38]Found Content-Length = 677 [07:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.230, "sum" : 149.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:38]execute_script... [07:58: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 : (1)919000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.230, "sum" : 149.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 149.00, "payments": [ { "type": 0, "sum" : 149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:38]POST & json_proto [07:58:38]process_json_proto [07:58:38]json parsed OK: [07:58:38]protocol is kg_v1.0 [07:58:38]action value=close_receipt [07:58:38]process_action close_receipt [07:58:38]cmd_close_receipt [07:58:38]MH_GetDate [07:58:38]Write to MH i2c: F0 00 00 50 00 3F [07:58:38]Write i2c OK [07:58:38]MH_I2C_Read... [07:58:38]Read from MH i2c: F0 [07:58:38]MH_I2C_Read... [07:58:38]Read from MH i2c: F0 09 00 [07:58:38]MH_I2C_Read... [07:58:38]Read from MH i2c: F0 09 00 50 00 00 AE 66 13 67 F1 C7 6B 64 5D [07:58:38]GetLastDocTimeStamp 1729324204 [07:58:38]current date 1729324718 [07:58:38]FM_GetShiftState [07:58:38]SAM_PROTO_GetShiftState [07:58:38]wFMCommunicate request_size=4 [07:58:38]MH_SAM_APDU [07:58:38]CAPDU: 80 13 01 00 [07:58:38]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [07:58:38]Write i2c OK [07:58:38]MH_I2C_Read... [07:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:38]Read from MH i2c: E2 [07:58:38]MH_I2C_Read... [07:58:38]Read from MH i2c: E2 0E 00 [07:58:38]MH_I2C_Read... [07:58:38]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D0 [07:58:38]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:58:38]wFMCommunicate OK [07:58:38]SAM_PROTO_GetShiftState done [07:58:38]FM_GetShiftState done [07:58:38]opened in 1729298811 [07:58:38]opened+sec_in_day 1729385211 [07:58:38]quantity*price = 14918 [07:58:38]sum+1 = 14920 [07:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 149.00 Внесено: 150.00 СДАЧА: 1.00 НСП 1% : 1.32 НДС 12% : 15.84 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 7 19.10.2024 07:58 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82510 ФПД: 244681297606051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T075838&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82510&fm=244681297606051&tin=02508201610067®Number=0000000000091680&sum=14900 [07:58:39]StoreToDocumentArchive [07:58:39]shift 527 fd 82510 [07:58:39]save to /storage/0527/doc_00082510 [07:58:39]save last doc name /storage/0527/doc_00082510 to /storage/kkm_last_doc_name [07:58:39]save OK [07:58:39]Clear old archive folders... [07:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:39]tlvbuf is 007078C0 [07:58:39]SAM_PROTO_ClearQueue [07:58:39]wFMCommunicate request_size=4 [07:58:39]MH_SAM_APDU [07:58:39]CAPDU: 80 09 00 00 [07:58:39]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:39]Read from MH i2c: E2 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: E2 03 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [07:58:39]RAPDU: 90 00 [07:58:39]wFMCommunicate OK [07:58:39]SAM_PROTO_ClearQueue done [07:58:39]KKMCreateOFDPacket [07:58:39]OFDProtocolAddRootSTLVToBuf [07:58:39]FM_MakeSignedData [07:58:39]FM_MakeSignedData [07:58:39]SAM_PROTO_SignData [07:58:39]wFMCommunicate request_size=4 [07:58:39]MH_SAM_APDU [07:58:39]CAPDU: 80 0D 01 02 [07:58:39]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:39]Read from MH i2c: E2 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: E2 03 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [07:58:39]RAPDU: 90 00 [07:58:39]wFMCommunicate OK [07:58:39]wFMCommunicate request_size=255 [07:58:39]MH_SAM_APDU [07:58:39]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 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 06 00 00 00 00 07 04 06 00 34 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 07 00 00 00 F4 03 04 00 AE 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 42 01 00 35 04 06 00 DE [07:58:39]Write to MH i2c: E2 02 01 60 00 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 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 06 00 00 00 00 07 04 06 00 34 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 07 00 00 00 F4 03 04 00 AE 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 42 01 00 35 04 06 00 DE 00 00 05 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 03 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [07:58:40]RAPDU: 90 00 [07:58:40]wFMCommunicate OK [07:58:40]wFMCommunicate request_size=10 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 0D 02 02 05 89 4D D3 B5 A3 [07:58:40]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 89 4D D3 B5 A3 00 00 E6 [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 03 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [07:58:40]RAPDU: 90 00 [07:58:40]wFMCommunicate OK [07:58:40]wFMCommunicate request_size=4 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 0D 03 02 [07:58:40]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 0B 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 0B 00 62 00 00 EF B1 89 7A A6 0E D3 FA 90 00 02 [07:58:40]RAPDU: EF B1 89 7A A6 0E D3 FA 90 00 [07:58:40]wFMCommunicate OK [07:58:40]SAM_PROTO_SignData done [07:58:40]FM_MakeSignedData done [07:58:40]CreateOFDProtocolMessage [07:58:40]wFMCommunicate request_size=4 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 11 00 00 [07:58:40]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 17 00 [07:58:40]MH_I2C_Read... [07:58:40]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 31 38 34 33 90 00 2F [07:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:58:40]wFMCommunicate OK [07:58:40]CreateOFDProtocolMessage done [07:58:40]OFDSenderStorePacket 82510 [07:58:40]StoreOFDPacket docnum=82510 [07:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F5 37 07 01 A4 2D 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 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 06 00 00 00 00 07 04 06 00 34 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 07 00 00 00 F4 03 04 00 AE 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 42 01 00 35 04 06 00 DE 89 4D D3 B5 A3 EF B1 89 7A A6 0E D3 FA [07:58:40]CheckFolder [07:58:40]dirname=/storage/ofd_packets [07:58:40]CheckFolder done [07:58:40]ProducePacketName [07:58:40]name=ofd_packets/00082510 [07:58:40]NVStorageSaveData ofd_packets/00082510 [07:58:40]File name is /storage/ofd_packets/00082510 [07:58:40]Write 301 bytes [07:58:40]NVStorageSaveData done [07:58:40]OFDSenderStorePacket done [07:58:40]KKMCreateOFDPacket done [07:58:40]NVStorageSaveData kkm_last_timestamp [07:58:40]File name is /storage/kkm_last_timestamp [07:58:40]Write 4 bytes [07:58:40]NVStorageSaveData done [07:58:40]ExternCall_PrintAddStr [07:58:40]wPrintStart [07:58:40]Write to MH i2c: 01 00 00 64 00 64 [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: 01 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: 01 07 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [07:58:40]RasterBufferAndPrint [07:58:40]line Счет N : (1)919000 [07:58:40]line ИНН: 02508201610067 [07:58:40]line Контрольно-Кассовый Чек [07:58:40]line ПРОДАЖА [07:58:40]line ТРК (МРК, ГНК) : 22 [07:58:40]line Товар: 2710124130 [07:58:40]line Аи-92-К-4 [07:58:40]line 2.230 * 66.90 [07:58:40]line = 149.19 [07:58:40]line НДС 12% НСП 1% [07:58:40]line > о реализуемом товаре [07:58:40]line ОКРУГЛЕНИЕ: -0.19 [07:58:40]line ИТОГО: 149.00 [07:58:40]line Внесено: 150.00 [07:58:40]line СДАЧА: 1.00 [07:58:40]line НСП 1% : 1.32 [07:58:40]line НДС 12% : 15.84 [07:58:40]line Наличными: 149.00 [07:58:40]line Безнал.: 0.00 [07:58:40]line Место: АЗС № 114 "Партнер Нефть" [07:58:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:58:40]line СНО: Общий режим [07:58:40]line Чек 7 19.10.2024 07:58 [07:58:40]line Смена: 527 ФФД: 1.0 [07:58:40]line ЗНМ: 0300000086 [07:58:40]line РНМ: 0000000000091680 [07:58:40]line Версия ККМ: 001 [07:58:40]line ФМ: 0000000000871843 [07:58:40]line ФД: 82510 [07:58:40]line ФПД: 244681297606051 [07:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T075838&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82510&fm=244681297606051&tin=02508201610067®Number=0000000000091680&sum=14900 [07:58:40]OFD Sender: Processing packet 82510 [packets to send 254, broken 253] [07:58:40]ProducePacketName [07:58:40]name=ofd_packets/00082510 [07:58:40]OFD Sender: To server: pG, [07:58:40]CommunicateWithHost lk.salyk.kg:30040 [07:58:40]ConnectInit lk.salyk.kg [07:58:40]written 0, free lines is 4095 [07:58:41]Write to MH i2c: 01 00 00 8F 00 8F [07:58:41]Write i2c OK [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: 01 [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: 01 07 00 [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 D8 0C 7A [07:58:41]RasterBufferAndPrint [07:58:41]line [07:58:41]line [07:58:41]line [07:58:41]line [07:58:41]line [07:58:41]written 0, free lines is 3292 [07:58:41]MH_Cut [07:58:41]Write to MH i2c: D1 01 00 96 00 01 68 [07:58:41]Write i2c OK [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: D1 [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: D1 01 00 [07:58:41]MH_I2C_Read... [07:58:41]Read from MH i2c: D1 01 00 96 00 00 67 [07:58:41]Write to MH i2c: 01 00 00 97 00 97 [07:58:41]Write i2c OK [07:58:41]MH_I2C_Read... [07:58:41]*** Cut start [07:58:41]*** Partial cut [07:58:41]*** CUTSNS_PIN = 1 [07:58:41]*** CUTSNS_PIN = 0 [07:58:42]*** Brake cut motor [07:58:42]Read from MH i2c: 01 [07:58:42]MH_I2C_Read... [07:58:42]*** Stop cut motor [07:58:42]*** Cut end [07:58:42]Read from MH i2c: 01 07 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [07:58:42]process_action close_receipt done [07:58:42]requested_data is exist [07:58:42]produce_requested_data [07:58:42]requested_item fm.sn is exist - process it [07:58:42]wFMCommunicate request_size=4 [07:58:42]MH_SAM_APDU [07:58:42]CAPDU: 80 11 00 00 [07:58:42]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [07:58:42]Write i2c OK [07:58:42]MH_I2C_Read... [07:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:42]Read from MH i2c: E2 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 17 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 64 [07:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:58:42]wFMCommunicate OK [07:58:42]requested_item fd.num is exist - process it [07:58:42]SAM_PROTO_GetFieldsCounters [07:58:42]wFMCommunicate request_size=4 [07:58:42]MH_SAM_APDU [07:58:42]CAPDU: 80 13 00 00 [07:58:42]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [07:58:42]Write i2c OK [07:58:42]MH_I2C_Read... [07:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:42]Read from MH i2c: E2 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 62 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 62 00 99 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4E 42 01 00 0E 04 04 00 0F 02 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 EB [07:58: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4E 42 01 00 0E 04 04 00 0F 02 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 [07:58:42]wFMCommunicate OK [07:58:42]SAM_PROTO_GetFieldsCounters done [07:58:42]requested_item shift.num is exist - process it [07:58:42]requested_item shift.opened is exist - process it [07:58:42]req_shift_opened [07:58:42]FM_GetShiftState [07:58:42]SAM_PROTO_GetShiftState [07:58:42]wFMCommunicate request_size=4 [07:58:42]MH_SAM_APDU [07:58:42]CAPDU: 80 13 01 00 [07:58:42]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [07:58:42]Write i2c OK [07:58:42]MH_I2C_Read... [07:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:42]Read from MH i2c: E2 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 0E 00 [07:58:42]MH_I2C_Read... [07:58:42]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 19 [07:58:42]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:58:42]wFMCommunicate OK [07:58:42]SAM_PROTO_GetShiftState done [07:58:42]FM_GetShiftState done [07:58:42]req_shift_opened done [07:58:42]requested_item shift.open_date is exist - process it [07:58:42]req_shift_open_date [07:58:42]req_shift_open_date done [07:58:42]produce_requested_data done [07:58:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82510,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [07:58:42]process_action_free close_receipt [07:58:42]json_value_free [07:58:42]json_value_free done [07:58:42]process_json_proto returns [07:58:42]Send response to host [07:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82510,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [07:58:42]free response buf [07:58:42]execute_script done [07:58:42]execute_script returns [07:58:42]free content buf [07:58:42]Sock 10.Close socket [07:58:42]Sock 10.Thread stoped [07:59:12]accept exits with 8 [07:59:12]New connection [07:59:12]New thread 3067280740 created [07:59:12]Thread 3067137380 joined [07:59:12]Waiting for new connection... [07:59:12] Sock 8.Parse request [07:59:12]Sock 8.Check first char [07:59:12]Sock 8.First char is OK [07:59:12]request: POST /json_proto HTTP/1.0 [07:59:12]Method: POST [07:59:12]URL: /json_proto [07:59:12]Method is POST - this is cgi request [07:59:12]url: /json_proto [07:59:12]query_string will be loaded in cgi processing [07:59:12]execute_cgi json_proto POST (null) [07:59:12]execute_cgi path=json_proto method=POST [07:59:12]POST find Content-Length [07:59:12]Host: 172.17.44.67:8080 [07:59:12]Content-Length: 753 [07:59:12]Content-Type: application/json [07:59:12] [07:59:12]POST finish read [07:59:12]Found Content-Length = 753 [07:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:12]execute_script... [07:59: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 : (1)919001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:12]POST & json_proto [07:59:12]process_json_proto [07:59:12]json parsed OK: [07:59:12]protocol is kg_v1.0 [07:59:12]action value=close_receipt [07:59:12]process_action close_receipt [07:59:12]cmd_close_receipt [07:59:12]MH_GetDate [07:59:12]Write to MH i2c: F0 00 00 9B 00 8A [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 09 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 09 00 9B 00 00 D0 66 13 67 F1 C7 6B 64 CA [07:59:12]GetLastDocTimeStamp 1729324718 [07:59:12]current date 1729324752 [07:59:12]FM_GetShiftState [07:59:12]SAM_PROTO_GetShiftState [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 01 00 [07:59:12]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 1B [07:59:12]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetShiftState done [07:59:12]FM_GetShiftState done [07:59:12]opened in 1729298811 [07:59:12]opened+sec_in_day 1729385211 [07:59:12]quantity*price = 0 [07:59:12]sum+1 = 1 [07:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 8 19.10.2024 07:59 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100517 ФМ: 0000000000871843 ФД: 82511 ФПД: 270018350759535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T075912&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82511&fm=270018350759535&tin=02508201610067®Number=0000000000091680&sum=0 [07:59:13]StoreToDocumentArchive [07:59:13]shift 527 fd 82511 [07:59:13]save to /storage/0527/doc_00082511 [07:59:13]save last doc name /storage/0527/doc_00082511 to /storage/kkm_last_doc_name [07:59:13]save OK [07:59:13]Clear old archive folders... [07:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:13]tlvbuf is 00719460 [07:59:13]SAM_PROTO_ClearQueue [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 09 00 00 [07:59:13]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [07:59:13]RAPDU: 90 00 [07:59:13]wFMCommunicate OK [07:59:13]SAM_PROTO_ClearQueue done [07:59:13]KKMCreateOFDPacket [07:59:13]OFDProtocolAddRootSTLVToBuf [07:59:13]FM_MakeSignedData [07:59:13]FM_MakeSignedData [07:59:13]SAM_PROTO_SignData [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 0D 01 02 [07:59:13]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [07:59:13]RAPDU: 90 00 [07:59:13]wFMCommunicate OK [07:59:13]wFMCommunicate request_size=255 [07:59:13]MH_SAM_APDU [07:59:13]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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D0 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 42 01 00 35 04 06 00 F5 [07:59:13]Write to MH i2c: E2 02 01 AB 00 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D0 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 42 01 00 35 04 06 00 F5 00 00 15 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [07:59:14]RAPDU: 90 00 [07:59:14]wFMCommunicate OK [07:59:14]wFMCommunicate request_size=10 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 0D 02 02 05 94 8B E1 3E 6F [07:59:14]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 94 8B E1 3E 6F 00 00 DD [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [07:59:14]RAPDU: 90 00 [07:59:14]wFMCommunicate OK [07:59:14]wFMCommunicate request_size=4 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 0D 03 02 [07:59:14]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 0B 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 0B 00 AD 00 00 48 D3 92 87 E4 F8 9E 3A 90 00 11 [07:59:14]RAPDU: 48 D3 92 87 E4 F8 9E 3A 90 00 [07:59:14]wFMCommunicate OK [07:59:14]SAM_PROTO_SignData done [07:59:14]FM_MakeSignedData done [07:59:14]CreateOFDProtocolMessage [07:59:14]wFMCommunicate request_size=4 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 11 00 00 [07:59:14]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 17 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [07:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:59:14]wFMCommunicate OK [07:59:14]CreateOFDProtocolMessage done [07:59:14]OFDSenderStorePacket 82511 [07:59:14]StoreOFDPacket docnum=82511 [07:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D5 3F 07 01 21 36 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D0 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 42 01 00 35 04 06 00 F5 94 8B E1 3E 6F 48 D3 92 87 E4 F8 9E 3A [07:59:14]CheckFolder [07:59:14]dirname=/storage/ofd_packets [07:59:14]CheckFolder done [07:59:14]ProducePacketName [07:59:14]name=ofd_packets/00082511 [07:59:14]NVStorageSaveData ofd_packets/00082511 [07:59:14]File name is /storage/ofd_packets/00082511 [07:59:14]Write 301 bytes [07:59:14]NVStorageSaveData done [07:59:14]OFDSenderStorePacket done [07:59:14]KKMCreateOFDPacket done [07:59:14]NVStorageSaveData kkm_last_timestamp [07:59:14]File name is /storage/kkm_last_timestamp [07:59:14]Write 4 bytes [07:59:14]NVStorageSaveData done [07:59:14]ExternCall_PrintAddStr [07:59:14]wPrintStart [07:59:14]Write to MH i2c: 01 00 00 AF 00 AF [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [07:59:14]RasterBufferAndPrint [07:59:14]line Счет N : (1)919001 [07:59:14]line ИНН: 02508201610067 [07:59:14]line Контрольно-Кассовый Чек [07:59:14]line ПРОДАЖА [07:59:14]line ТРК (МРК, ГНК) : 11 [07:59:14]line Товар: 2710124130 [07:59:14]line Аи-92-К-4 [07:59:14]line 5.000 * 0.00 [07:59:14]line = 0.00 [07:59:14]line НДС 12% НСП 1% [07:59:14]line > о реализуемом товаре [07:59:14]line ИТОГО: 0.00 [07:59:14]line НСП 1% : 0.00 [07:59:14]line НДС 12% : 0.00 [07:59:14]line Наличными: 0.00 [07:59:14]line Безнал.: 0.00 [07:59:14]line Место: АЗС № 114 "Партнер Нефть" [07:59:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:59:14]line СНО: Общий режим [07:59:14]line Чек 8 19.10.2024 07:59 [07:59:14]line Смена: 527 ФФД: 1.0 [07:59:14]line ЗНМ: 0300000086 [07:59:14]line РНМ: 0000000000091680 [07:59:14]line Версия ККМ: 001 [07:59:14]line Талоны: ТК ГПНА Online [07:59:14]line 30100517 [07:59:14]line ФМ: 0000000000871843 [07:59:14]line ФД: 82511 [07:59:14]line ФПД: 270018350759535 [07:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T075912&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82511&fm=270018350759535&tin=02508201610067®Number=0000000000091680&sum=0 [07:59:14]written 0, free lines is 4095 [07:59:15]Write to MH i2c: 01 00 00 D9 00 D9 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 DD 0C C9 [07:59:15]RasterBufferAndPrint [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]written 0, free lines is 3299 [07:59:15]MH_Cut [07:59:15]Write to MH i2c: D1 01 00 E0 00 01 B2 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 01 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 01 00 E0 00 00 B1 [07:59:15]Write to MH i2c: 01 00 00 E1 00 E1 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** Cut start [07:59:15]*** Partial cut [07:59:15]*** CUTSNS_PIN = 1 [07:59:15]*** CUTSNS_PIN = 0 [07:59:16]*** Brake cut motor [07:59:16]Read from MH i2c: 01 [07:59:16]MH_I2C_Read... [07:59:16]*** Stop cut motor [07:59:16]*** Cut end [07:59:16]Read from MH i2c: 01 07 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [07:59:16]process_action close_receipt done [07:59:16]requested_data is exist [07:59:16]produce_requested_data [07:59:16]requested_item fm.sn is exist - process it [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 11 00 00 [07:59:16]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 17 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [07:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:59:16]wFMCommunicate OK [07:59:16]requested_item fd.num is exist - process it [07:59:16]SAM_PROTO_GetFieldsCounters [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 13 00 00 [07:59:16]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 62 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 62 00 E3 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4F 42 01 00 0E 04 04 00 0F 02 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 39 [07:59: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4F 42 01 00 0E 04 04 00 0F 02 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 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_GetFieldsCounters done [07:59:16]requested_item shift.num is exist - process it [07:59:16]requested_item shift.opened is exist - process it [07:59:16]req_shift_opened [07:59:16]FM_GetShiftState [07:59:16]SAM_PROTO_GetShiftState [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 13 01 00 [07:59:16]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0E 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 63 [07:59:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_GetShiftState done [07:59:16]FM_GetShiftState done [07:59:16]req_shift_opened done [07:59:16]requested_item shift.open_date is exist - process it [07:59:16]req_shift_open_date [07:59:16]req_shift_open_date done [07:59:16]produce_requested_data done [07:59:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82511,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [07:59:16]process_action_free close_receipt [07:59:16]json_value_free [07:59:16]json_value_free done [07:59:16]process_json_proto returns [07:59:16]Send response to host [07:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82511,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [07:59:16]free response buf [07:59:16]execute_script done [07:59:16]execute_script returns [07:59:16]free content buf [07:59:16]Sock 8.Close socket [07:59:16]Sock 8.Thread stoped [07:59:21]recv_with_timeout no data received [08:00:51]ConnectInit Can't connect to host [08:00:51]CommunicateWithHost connect error [08:00:51]CommunicateWithHost err = -1 [08:00:51]OFD Sender: Server communicate error [08:00:51]OFD Sender: Processing packet 82510 [packets to send 255, broken 253] [08:00:51]ProducePacketName [08:00:51]name=ofd_packets/00082510 [08:00:51]OFD Sender: To server: pG, [08:00:51]CommunicateWithHost lk.salyk.kg:30040 [08:00:51]ConnectInit lk.salyk.kg [08:00:51]Connected sock=8 [08:00:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F5 37 07 01 A4 2D 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 34 FF 03 08 00 03 B6 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 06 00 00 00 00 07 04 06 00 34 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 07 00 00 00 F4 03 04 00 AE 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 42 01 00 35 04 06 00 DE 89 4D D3 B5 A3 EF B1 89 7A A6 0E D3 FA [08:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 50 9D 47 00 78 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 31 38 34 33 10 04 04 00 4E 42 01 00 F4 03 04 00 69 0C 13 67 B6 04 01 00 00 31 AF 56 E7 F5 82 55 B6 [08:00:52]CommunicateWithHost err = 0 [08:00:52]CheckOFDResponse [08:00:52]1017 (14) - 77093643461234 [08:00:52]1041 (16) - 0000000000871843 [08:00:52]1040 (4) - 82510 [08:00:52]1012 (4) - 19.10.2024 01:33 [08:00:52]1206 (1) - 0 [08:00:52]OFD Sender: Remove packet 82510 [08:00:52]ProducePacketName [08:00:52]name=ofd_packets/00082510 [08:00:52]NVStorageDeleteData [08:00:52]OFD Sender: Processing packet 82511 [packets to send 254, broken 253] [08:00:52]ProducePacketName [08:00:52]name=ofd_packets/00082511 [08:00:52]OFD Sender: To server: pG, [08:00:52]CommunicateWithHost lk.salyk.kg:30040 [08:00:52]ConnectInit lk.salyk.kg [08:00:53]Connected sock=8 [08:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D5 3F 07 01 21 36 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D0 66 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 42 01 00 35 04 06 00 F5 94 8B E1 3E 6F 48 D3 92 87 E4 F8 9E 3A [08:00:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 1A 47 00 67 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 31 38 34 33 10 04 04 00 4F 42 01 00 F4 03 04 00 6B 0C 13 67 B6 04 01 00 00 5E 08 4A 4D AA 45 8F BB [08:00:54]CommunicateWithHost err = 0 [08:00:54]CheckOFDResponse [08:00:54]1017 (14) - 77093643461234 [08:00:54]1041 (16) - 0000000000871843 [08:00:54]1040 (4) - 82511 [08:00:54]1012 (4) - 19.10.2024 01:33 [08:00:54]1206 (1) - 0 [08:00:54]OFD Sender: Remove packet 82511 [08:00:54]ProducePacketName [08:00:54]name=ofd_packets/00082511 [08:00:54]NVStorageDeleteData [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]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:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:07:55]accept exits with 10 [08:07:55]New connection [08:07:55]New thread 3067137380 created [08:07:55]Thread 3067280740 joined [08:07:55]Waiting for new connection... [08:07:55] Sock 10.Parse request [08:07:55]Sock 10.Check first char [08:07:55]Sock 10.First char is OK [08:07:55]request: POST /json_proto HTTP/1.0 [08:07:55]Method: POST [08:07:55]URL: /json_proto [08:07:55]Method is POST - this is cgi request [08:07:55]url: /json_proto [08:07:55]query_string will be loaded in cgi processing [08:07:55]execute_cgi json_proto POST (null) [08:07:55]execute_cgi path=json_proto method=POST [08:07:55]POST find Content-Length [08:07:55]Host: 172.17.44.67:8080 [08:07:55]Content-Length: 682 [08:07:55]Content-Type: application/json [08:07:55] [08:07:55]POST finish read [08:07:55]Found Content-Length = 682 [08:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:55]execute_script... [08:07: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 : (1)919002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:55]POST & json_proto [08:07:55]process_json_proto [08:07:55]json parsed OK: [08:07:55]protocol is kg_v1.0 [08:07:55]action value=close_receipt [08:07:55]process_action close_receipt [08:07:55]cmd_close_receipt [08:07:55]MH_GetDate [08:07:55]Write to MH i2c: F0 00 00 E5 00 D4 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 09 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 09 00 E5 00 00 DC 68 13 67 F1 C7 6B 64 22 [08:07:55]GetLastDocTimeStamp 1729324752 [08:07:55]current date 1729325276 [08:07:55]FM_GetShiftState [08:07:55]SAM_PROTO_GetShiftState [08:07:55]wFMCommunicate request_size=4 [08:07:55]MH_SAM_APDU [08:07:55]CAPDU: 80 13 01 00 [08:07:55]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:55]Read from MH i2c: E2 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 65 [08:07:55]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:07:55]wFMCommunicate OK [08:07:55]SAM_PROTO_GetShiftState done [08:07:55]FM_GetShiftState done [08:07:55]opened in 1729298811 [08:07:55]opened+sec_in_day 1729385211 [08:07:55]quantity*price = 100021 [08:07:55]sum+1 = 100023 [08:07:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 9 19.10.2024 08:07 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82512 ФПД: 113098131203450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T080756&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82512&fm=113098131203450&tin=02508201610067®Number=0000000000091680&sum=100000 [08:07:57]StoreToDocumentArchive [08:07:57]shift 527 fd 82512 [08:07:57]save to /storage/0527/doc_00082512 [08:07:57]save last doc name /storage/0527/doc_00082512 to /storage/kkm_last_doc_name [08:07:57]save OK [08:07:57]Clear old archive folders... [08:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:57]tlvbuf is 0071ADB0 [08:07:57]SAM_PROTO_ClearQueue [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 09 00 00 [08:07:57]Write to MH i2c: E2 08 00 F3 00 80 09 00 00 00 00 00 00 65 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]SAM_PROTO_ClearQueue done [08:07:57]KKMCreateOFDPacket [08:07:57]OFDProtocolAddRootSTLVToBuf [08:07:57]FM_MakeSignedData [08:07:57]FM_MakeSignedData [08:07:57]SAM_PROTO_SignData [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 0D 01 02 [08:07:57]Write to MH i2c: E2 08 00 F4 00 80 0D 01 02 00 00 00 00 6D [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]wFMCommunicate request_size=255 [08:07:57]MH_SAM_APDU [08:07:57]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 DC 68 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 42 01 00 35 04 06 00 66 [08:07:57]Write to MH i2c: E2 02 01 F5 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 DC 68 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 42 01 00 35 04 06 00 66 00 00 E8 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]wFMCommunicate request_size=10 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 0D 02 02 05 DC B5 EF 65 7A [08:07:57]Write to MH i2c: E2 0D 00 F6 00 80 0D 02 02 05 00 DC B5 EF 65 7A 00 00 D9 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [08:07:57]RAPDU: 90 00 [08:07:57]wFMCommunicate OK [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 0D 03 02 [08:07:57]Write to MH i2c: E2 08 00 F7 00 80 0D 03 02 00 00 00 00 72 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 0B 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 0B 00 F7 00 00 57 DA 05 D3 F2 D5 04 F0 90 00 37 [08:07:57]RAPDU: 57 DA 05 D3 F2 D5 04 F0 90 00 [08:07:57]wFMCommunicate OK [08:07:57]SAM_PROTO_SignData done [08:07:57]FM_MakeSignedData done [08:07:57]CreateOFDProtocolMessage [08:07:57]wFMCommunicate request_size=4 [08:07:57]MH_SAM_APDU [08:07:57]CAPDU: 80 11 00 00 [08:07:57]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:57]Read from MH i2c: E2 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 17 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [08:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:07:57]wFMCommunicate OK [08:07:57]CreateOFDProtocolMessage done [08:07:57]OFDSenderStorePacket 82512 [08:07:57]StoreOFDPacket docnum=82512 [08:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3B 99 07 01 7E 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 DC 68 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 42 01 00 35 04 06 00 66 DC B5 EF 65 7A 57 DA 05 D3 F2 D5 04 F0 [08:07:57]CheckFolder [08:07:57]dirname=/storage/ofd_packets [08:07:57]CheckFolder done [08:07:57]ProducePacketName [08:07:57]name=ofd_packets/00082512 [08:07:57]NVStorageSaveData ofd_packets/00082512 [08:07:57]File name is /storage/ofd_packets/00082512 [08:07:57]Write 301 bytes [08:07:57]NVStorageSaveData done [08:07:57]OFDSenderStorePacket done [08:07:57]KKMCreateOFDPacket done [08:07:57]NVStorageSaveData kkm_last_timestamp [08:07:57]File name is /storage/kkm_last_timestamp [08:07:57]Write 4 bytes [08:07:57]NVStorageSaveData done [08:07:57]OFD Sender: Processing packet 82512 [packets to send 254, broken 253] [08:07:57]ProducePacketName [08:07:57]name=ofd_packets/00082512 [08:07:57]OFD Sender: To server: pG, [08:07:57]CommunicateWithHost lk.salyk.kg:30040 [08:07:57]ConnectInit lk.salyk.kg [08:07:57]ExternCall_PrintAddStr [08:07:57]wPrintStart [08:07:57]Write to MH i2c: 01 00 00 F9 00 F9 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [08:07:57]RasterBufferAndPrint [08:07:57]line Счет N : (1)919002 [08:07:57]line ИНН: 02508201610067 [08:07:57]line Контрольно-Кассовый Чек [08:07:57]line ПРОДАЖА [08:07:57]line ТРК (МРК, ГНК) : 12 [08:07:57]line Товар: 2710124500 [08:07:57]line Аи-95-К-5 [08:07:57]line 13.480 * 74.20 [08:07:57]line = 1000.22 [08:07:57]line НДС 12% НСП 1% [08:07:57]line > о реализуемом товаре [08:07:57]line ОКРУГЛЕНИЕ: -0.22 [08:07:57]line ИТОГО: 1000.00 [08:07:57]line Внесено: 1000.00 [08:07:57]line СДАЧА: 0.00 [08:07:57]line НСП 1% : 8.85 [08:07:57]line НДС 12% : 106.22 [08:07:57]line Наличными: 1000.00 [08:07:57]line Безнал.: 0.00 [08:07:57]line Место: АЗС № 114 "Партнер Нефть" [08:07:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:07:57]line СНО: Общий режим [08:07:57]line Чек 9 19.10.2024 08:07 [08:07:57]line Смена: 527 ФФД: 1.0 [08:07:57]line ЗНМ: 0300000086 [08:07:57]line РНМ: 0000000000091680 [08:07:57]line Версия ККМ: 001 [08:07:57]line ФМ: 0000000000871843 [08:07:57]line ФД: 82512 [08:07:57]line ФПД: 113098131203450 [08:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T080756&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82512&fm=113098131203450&tin=02508201610067®Number=0000000000091680&sum=100000 [08:07:57]written 0, free lines is 4095 [08:07:58]Connected sock=11 [08:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3B 99 07 01 7E 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 DC 68 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 42 01 00 35 04 06 00 66 DC B5 EF 65 7A 57 DA 05 D3 F2 D5 04 F0 [08:07:58]Write to MH i2c: 01 00 00 24 01 25 [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 DA 0C 12 [08:07:58]RasterBufferAndPrint [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]line [08:07:58]written 0, free lines is 3297 [08:07:58]MH_Cut [08:07:58]Write to MH i2c: D1 01 00 2B 01 01 FE [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 01 00 [08:07:58]MH_I2C_Read... [08:07:58]Read from MH i2c: D1 01 00 2B 01 00 FD [08:07:58]Write to MH i2c: 01 00 00 2C 01 2D [08:07:58]Write i2c OK [08:07:58]MH_I2C_Read... [08:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BB 4A 47 00 3F 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 31 38 34 33 10 04 04 00 50 42 01 00 F4 03 04 00 13 0E 13 67 B6 04 01 00 00 9F 9D E0 78 6A FB FB A4 [08:07:58]CommunicateWithHost err = 0 [08:07:58]CheckOFDResponse [08:07:58]1017 (14) - 77093643461234 [08:07:58]1041 (16) - 0000000000871843 [08:07:58]1040 (4) - 82512 [08:07:58]1012 (4) - 19.10.2024 01:40 [08:07:58]1206 (1) - 0 [08:07:58]OFD Sender: Remove packet 82512 [08:07:58]ProducePacketName [08:07:58]name=ofd_packets/00082512 [08:07:58]NVStorageDeleteData [08:07:59]OFD Sender: No OFD packet to send [08:07:59]*** Cut start [08:07:59]*** Partial cut [08:07:59]*** CUTSNS_PIN = 1 [08:07:59]*** CUTSNS_PIN = 0 [08:07:59]*** Brake cut motor [08:07:59]Read from MH i2c: 01 [08:07:59]MH_I2C_Read... [08:07:59]*** Stop cut motor [08:07:59]*** Cut end [08:07:59]Read from MH i2c: 01 07 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [08:07:59]process_action close_receipt done [08:07:59]requested_data is exist [08:07:59]produce_requested_data [08:07:59]requested_item fm.sn is exist - process it [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 11 00 00 [08:07:59]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:59]Read from MH i2c: E2 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 17 00 [08:07:59]MH_I2C_Read... [08:07:59]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FA [08:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:07:59]wFMCommunicate OK [08:07:59]requested_item fd.num is exist - process it [08:07:59]SAM_PROTO_GetFieldsCounters [08:07:59]wFMCommunicate request_size=4 [08:07:59]MH_SAM_APDU [08:07:59]CAPDU: 80 13 00 00 [08:07:59]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [08:07:59]Write i2c OK [08:07:59]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 2E 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 50 42 01 00 0E 04 04 00 0F 02 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 89 [08:08: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 50 42 01 00 0E 04 04 00 0F 02 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 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetFieldsCounters done [08:08:00]requested_item shift.num is exist - process it [08:08:00]requested_item shift.opened is exist - process it [08:08:00]req_shift_opened [08:08:00]FM_GetShiftState [08:08:00]SAM_PROTO_GetShiftState [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 01 00 [08:08:00]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 AF [08:08:00]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetShiftState done [08:08:00]FM_GetShiftState done [08:08:00]req_shift_opened done [08:08:00]requested_item shift.open_date is exist - process it [08:08:00]req_shift_open_date [08:08:00]req_shift_open_date done [08:08:00]produce_requested_data done [08:08:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82512,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [08:08:00]process_action_free close_receipt [08:08:00]json_value_free [08:08:00]json_value_free done [08:08:00]process_json_proto returns [08:08:00]Send response to host [08:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82512,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [08:08:00]free response buf [08:08:00]execute_script done [08:08:00]execute_script returns [08:08:00]free content buf [08:08:00]Sock 10.Close socket [08:08:00]Sock 10.Thread stoped [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:17]recv_with_timeout no data received [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:20]recv_with_timeout no data received [08:16:24]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:16:56]recv_with_timeout no data received [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:13]recv_with_timeout no data received [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:21]recv_with_timeout no data received [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:45]recv_with_timeout no data received [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:21:58]recv_with_timeout no data received [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]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:19]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:29]recv_with_timeout no data received [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:11]recv_with_timeout no data received [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:34]recv_with_timeout no data received [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:21]recv_with_timeout no data received [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:39]recv_with_timeout no data received [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:18]recv_with_timeout no data received [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:38]recv_with_timeout no data received [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:02]recv_with_timeout no data received [08:33:06]OFD Sender: No OFD packet to send [08:33:08]accept exits with 9 [08:33:08]New connection [08:33:08]New thread 3067280740 created [08:33:08]Thread 3067137380 joined [08:33:08]Waiting for new connection... [08:33:08] Sock 9.Parse request [08:33:08]Sock 9.Check first char [08:33:08]Sock 9.First char is OK [08:33:08]request: POST /json_proto HTTP/1.0 [08:33:08]Method: POST [08:33:08]URL: /json_proto [08:33:08]Method is POST - this is cgi request [08:33:08]url: /json_proto [08:33:08]query_string will be loaded in cgi processing [08:33:08]execute_cgi json_proto POST (null) [08:33:08]execute_cgi path=json_proto method=POST [08:33:08]POST find Content-Length [08:33:08]Host: 172.17.44.67:8080 [08:33:08]Content-Length: 677 [08:33:08]Content-Type: application/json [08:33:08] [08:33:08]POST finish read [08:33:08]Found Content-Length = 677 [08:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]execute_script... [08:33: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 : (1)919003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]POST & json_proto [08:33:08]process_json_proto [08:33:08]json parsed OK: [08:33:08]protocol is kg_v1.0 [08:33:08]action value=close_receipt [08:33:08]process_action close_receipt [08:33:08]cmd_close_receipt [08:33:08]MH_GetDate [08:33:08]Write to MH i2c: F0 00 00 30 01 20 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 30 01 00 C5 6E 13 67 F1 C7 6B 64 5D [08:33:08]GetLastDocTimeStamp 1729325276 [08:33:08]current date 1729326789 [08:33:08]FM_GetShiftState [08:33:08]SAM_PROTO_GetShiftState [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 13 01 00 [08:33:08]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 B1 [08:33:08]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_GetShiftState done [08:33:08]FM_GetShiftState done [08:33:08]opened in 1729298811 [08:33:08]opened+sec_in_day 1729385211 [08:33:08]quantity*price = 20003 [08:33:08]sum+1 = 20004 [08:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 10 19.10.2024 08:33 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82513 ФПД: 274784757796754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T083309&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82513&fm=274784757796754&tin=02508201610067®Number=0000000000091680&sum=20000 [08:33:09]StoreToDocumentArchive [08:33:09]shift 527 fd 82513 [08:33:09]save to /storage/0527/doc_00082513 [08:33:09]save last doc name /storage/0527/doc_00082513 to /storage/kkm_last_doc_name [08:33:09]save OK [08:33:09]Clear old archive folders... [08:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:09]tlvbuf is 00705670 [08:33:09]SAM_PROTO_ClearQueue [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 09 00 00 [08:33:09]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_ClearQueue done [08:33:09]KKMCreateOFDPacket [08:33:09]OFDProtocolAddRootSTLVToBuf [08:33:09]FM_MakeSignedData [08:33:09]FM_MakeSignedData [08:33:09]SAM_PROTO_SignData [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 01 02 [08:33:09]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=255 [08:33:10]MH_SAM_APDU [08:33:10]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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 0A 00 00 00 F4 03 04 00 C5 6E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 42 01 00 35 04 06 00 F9 [08:33:10]Write to MH i2c: E2 02 01 40 01 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 0A 00 00 00 F4 03 04 00 C5 6E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 42 01 00 35 04 06 00 F9 00 00 5C [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=10 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 02 02 05 EA 4F E0 CF 92 [08:33:10]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 EA 4F E0 CF 92 00 00 40 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 03 02 [08:33:10]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 42 01 00 32 AC 74 FD 05 8C BA 88 90 00 E1 [08:33:10]RAPDU: 32 AC 74 FD 05 8C BA 88 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_SignData done [08:33:10]FM_MakeSignedData done [08:33:10]CreateOFDProtocolMessage [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 11 00 00 [08:33:10]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [08:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:33:10]wFMCommunicate OK [08:33:10]CreateOFDProtocolMessage done [08:33:10]OFDSenderStorePacket 82513 [08:33:10]StoreOFDPacket docnum=82513 [08:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B4 58 07 01 41 84 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 0A 00 00 00 F4 03 04 00 C5 6E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 42 01 00 35 04 06 00 F9 EA 4F E0 CF 92 32 AC 74 FD 05 8C BA 88 [08:33:10]CheckFolder [08:33:10]dirname=/storage/ofd_packets [08:33:10]CheckFolder done [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00082513 [08:33:10]NVStorageSaveData ofd_packets/00082513 [08:33:10]File name is /storage/ofd_packets/00082513 [08:33:10]Write 301 bytes [08:33:10]NVStorageSaveData done [08:33:10]OFDSenderStorePacket done [08:33:10]KKMCreateOFDPacket done [08:33:10]NVStorageSaveData kkm_last_timestamp [08:33:10]File name is /storage/kkm_last_timestamp [08:33:10]Write 4 bytes [08:33:10]NVStorageSaveData done [08:33:10]ExternCall_PrintAddStr [08:33:10]wPrintStart [08:33:10]Write to MH i2c: 01 00 00 44 01 45 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [08:33:10]RasterBufferAndPrint [08:33:10]line Счет N : (1)919003 [08:33:10]line ИНН: 02508201610067 [08:33:10]line Контрольно-Кассовый Чек [08:33:10]line ПРОДАЖА [08:33:10]line ТРК (МРК, ГНК) : 11 [08:33:10]line Товар: 2710124130 [08:33:10]line Аи-92-К-4 [08:33:10]line 2.990 * 66.90 [08:33:10]line = 200.03 [08:33:10]line НДС 12% НСП 1% [08:33:10]line > о реализуемом товаре [08:33:10]line ОКРУГЛЕНИЕ: -0.03 [08:33:10]line ИТОГО: 200.00 [08:33:10]line Внесено: 200.00 [08:33:10]line СДАЧА: 0.00 [08:33:10]line НСП 1% : 1.77 [08:33:10]line НДС 12% : 21.24 [08:33:10]line Наличными: 200.00 [08:33:10]line Безнал.: 0.00 [08:33:10]line Место: АЗС № 114 "Партнер Нефть" [08:33:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:33:10]line СНО: Общий режим [08:33:10]line Чек 10 19.10.2024 08:33 [08:33:10]line Смена: 527 ФФД: 1.0 [08:33:10]line ЗНМ: 0300000086 [08:33:10]line РНМ: 0000000000091680 [08:33:10]line Версия ККМ: 001 [08:33:10]line ФМ: 0000000000871843 [08:33:10]line ФД: 82513 [08:33:10]line ФПД: 274784757796754 [08:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T083309&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82513&fm=274784757796754&tin=02508201610067®Number=0000000000091680&sum=20000 [08:33:10]OFD Sender: Processing packet 82513 [packets to send 254, broken 253] [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00082513 [08:33:10]OFD Sender: To server: pG, [08:33:10]CommunicateWithHost lk.salyk.kg:30040 [08:33:10]ConnectInit lk.salyk.kg [08:33:10]written 0, free lines is 4095 [08:33:11]Write to MH i2c: 01 00 00 6F 01 70 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 CC 0C 4F [08:33:11]RasterBufferAndPrint [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]written 0, free lines is 3281 [08:33:11]MH_Cut [08:33:11]Write to MH i2c: D1 01 00 76 01 01 49 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 76 01 00 48 [08:33:11]Write to MH i2c: 01 00 00 77 01 78 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:12]*** Cut start [08:33:12]*** Partial cut [08:33:12]*** CUTSNS_PIN = 1 [08:33:12]*** CUTSNS_PIN = 0 [08:33:12]*** Brake cut motor [08:33:12]Read from MH i2c: 01 [08:33:12]MH_I2C_Read... [08:33:12]*** Stop cut motor [08:33:12]*** Cut end [08:33:12]Read from MH i2c: 01 07 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [08:33:12]process_action close_receipt done [08:33:12]requested_data is exist [08:33:12]produce_requested_data [08:33:12]requested_item fm.sn is exist - process it [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 11 00 00 [08:33:12]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [08:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:33:12]wFMCommunicate OK [08:33:12]requested_item fd.num is exist - process it [08:33:12]SAM_PROTO_GetFieldsCounters [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 00 00 [08:33:12]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 79 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 51 42 01 00 0E 04 04 00 0F 02 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 D8 [08:33: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 51 42 01 00 0E 04 04 00 0F 02 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 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetFieldsCounters done [08:33:12]requested_item shift.num is exist - process it [08:33:12]requested_item shift.opened is exist - process it [08:33:12]req_shift_opened [08:33:12]FM_GetShiftState [08:33:12]SAM_PROTO_GetShiftState [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 01 00 [08:33:12]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 FA [08:33:12]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetShiftState done [08:33:12]FM_GetShiftState done [08:33:12]req_shift_opened done [08:33:12]requested_item shift.open_date is exist - process it [08:33:12]req_shift_open_date [08:33:12]req_shift_open_date done [08:33:12]produce_requested_data done [08:33:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82513,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [08:33:12]process_action_free close_receipt [08:33:12]json_value_free [08:33:12]json_value_free done [08:33:12]process_json_proto returns [08:33:12]Send response to host [08:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82513,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [08:33:12]free response buf [08:33:12]execute_script done [08:33:12]execute_script returns [08:33:12]free content buf [08:33:12]Sock 9.Close socket [08:33:12]Sock 9.Thread stoped [08:33:15]Connected sock=11 [08:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B4 58 07 01 41 84 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 0A 00 00 00 F4 03 04 00 C5 6E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 42 01 00 35 04 06 00 F9 EA 4F E0 CF 92 32 AC 74 FD 05 8C BA 88 [08:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DB 9E 47 00 1F 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 31 38 34 33 10 04 04 00 51 42 01 00 F4 03 04 00 01 14 13 67 B6 04 01 00 00 1F 64 0D 33 29 7A 53 B6 [08:33:16]CommunicateWithHost err = 0 [08:33:16]CheckOFDResponse [08:33:16]1017 (14) - 77093643461234 [08:33:16]1041 (16) - 0000000000871843 [08:33:16]1040 (4) - 82513 [08:33:16]1012 (4) - 19.10.2024 02:05 [08:33:16]1206 (1) - 0 [08:33:16]OFD Sender: Remove packet 82513 [08:33:16]ProducePacketName [08:33:16]name=ofd_packets/00082513 [08:33:16]NVStorageDeleteData [08:33:17]OFD Sender: No OFD packet to send [08:33:17]recv_with_timeout no data received [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:28]recv_with_timeout no data received [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:39]recv_with_timeout no data received [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:20]recv_with_timeout no data received [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]recv_with_timeout no data received [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:21]recv_with_timeout no data received [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:46]recv_with_timeout no data received [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:26]recv_with_timeout no data received [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:05]recv_with_timeout no data received [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:50]recv_with_timeout no data received [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:52]recv_with_timeout no data received [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:00]accept exits with 10 [08:47:00]New connection [08:47:00]New thread 3067137380 created [08:47:00]Thread 3067280740 joined [08:47:00]Waiting for new connection... [08:47:00] Sock 10.Parse request [08:47:00]Sock 10.Check first char [08:47:00]Sock 10.First char is OK [08:47:00]request: POST /json_proto HTTP/1.0 [08:47:00]Method: POST [08:47:00]URL: /json_proto [08:47:00]Method is POST - this is cgi request [08:47:00]url: /json_proto [08:47:00]query_string will be loaded in cgi processing [08:47:00]execute_cgi json_proto POST (null) [08:47:00]execute_cgi path=json_proto method=POST [08:47:00]POST find Content-Length [08:47:00]Host: 172.17.44.67:8080 [08:47:00]Content-Length: 687 [08:47:00]Content-Type: application/json [08:47:00] [08:47:00]POST finish read [08:47:00]Found Content-Length = 687 [08:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:00]execute_script... [08:47: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 : (1)919004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:00]POST & json_proto [08:47:00]process_json_proto [08:47:00]json parsed OK: [08:47:00]protocol is kg_v1.0 [08:47:00]action value=close_receipt [08:47:00]process_action close_receipt [08:47:00]cmd_close_receipt [08:47:00]MH_GetDate [08:47:00]Write to MH i2c: F0 00 00 7B 01 6B [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: F0 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: F0 09 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: F0 09 00 7B 01 00 04 72 13 67 F1 C7 6B 64 EB [08:47:00]GetLastDocTimeStamp 1729326789 [08:47:00]current date 1729327620 [08:47:00]FM_GetShiftState [08:47:00]SAM_PROTO_GetShiftState [08:47:00]wFMCommunicate request_size=4 [08:47:00]MH_SAM_APDU [08:47:00]CAPDU: 80 13 01 00 [08:47:00]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 0E 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 FC [08:47:00]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:47:00]wFMCommunicate OK [08:47:00]SAM_PROTO_GetShiftState done [08:47:00]FM_GetShiftState done [08:47:00]opened in 1729298811 [08:47:00]opened+sec_in_day 1729385211 [08:47:00]quantity*price = 200025 [08:47:00]sum+1 = 200026 [08:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 11 19.10.2024 08:47 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82514 ФПД: 101907107993435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T084700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82514&fm=101907107993435&tin=02508201610067®Number=0000000000091680&sum=200000 [08:47:01]StoreToDocumentArchive [08:47:01]shift 527 fd 82514 [08:47:01]save to /storage/0527/doc_00082514 [08:47:01]save last doc name /storage/0527/doc_00082514 to /storage/kkm_last_doc_name [08:47:01]save OK [08:47:01]Clear old archive folders... [08:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:47:01]tlvbuf is 006B1C50 [08:47:01]SAM_PROTO_ClearQueue [08:47:01]wFMCommunicate request_size=4 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 09 00 00 [08:47:01]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [08:47:01]RAPDU: 90 00 [08:47:01]wFMCommunicate OK [08:47:01]SAM_PROTO_ClearQueue done [08:47:01]KKMCreateOFDPacket [08:47:01]OFDProtocolAddRootSTLVToBuf [08:47:01]FM_MakeSignedData [08:47:01]FM_MakeSignedData [08:47:01]SAM_PROTO_SignData [08:47:01]wFMCommunicate request_size=4 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 0D 01 02 [08:47:01]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [08:47:01]RAPDU: 90 00 [08:47:01]wFMCommunicate OK [08:47:01]wFMCommunicate request_size=255 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 04 72 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 42 01 00 35 04 06 00 [08:47:01]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 04 72 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 42 01 00 35 04 06 00 00 00 FE [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [08:47:01]RAPDU: 90 00 [08:47:01]wFMCommunicate OK [08:47:01]wFMCommunicate request_size=11 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 0D 02 02 06 5C AF 18 F8 D7 5B [08:47:01]Write to MH i2c: E2 0E 00 8C 01 80 0D 02 02 06 00 5C AF 18 F8 D7 5B 00 00 60 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [08:47:01]RAPDU: 90 00 [08:47:01]wFMCommunicate OK [08:47:01]wFMCommunicate request_size=4 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 0D 03 02 [08:47:01]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 0B 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 0B 00 8D 01 00 00 6A FD 2B C6 51 4E 11 90 00 12 [08:47:01]RAPDU: 00 6A FD 2B C6 51 4E 11 90 00 [08:47:01]wFMCommunicate OK [08:47:01]SAM_PROTO_SignData done [08:47:01]FM_MakeSignedData done [08:47:01]CreateOFDProtocolMessage [08:47:01]wFMCommunicate request_size=4 [08:47:01]MH_SAM_APDU [08:47:01]CAPDU: 80 11 00 00 [08:47:01]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:01]Read from MH i2c: E2 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 17 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5B [08:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:47:01]wFMCommunicate OK [08:47:01]CreateOFDProtocolMessage done [08:47:01]OFDSenderStorePacket 82514 [08:47:01]StoreOFDPacket docnum=82514 [08:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DB CF 08 01 29 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 04 72 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 42 01 00 35 04 06 00 5C AF 18 F8 D7 5B 00 6A FD 2B C6 51 4E 11 [08:47:01]CheckFolder [08:47:01]dirname=/storage/ofd_packets [08:47:01]CheckFolder done [08:47:01]ProducePacketName [08:47:01]name=ofd_packets/00082514 [08:47:01]NVStorageSaveData ofd_packets/00082514 [08:47:01]File name is /storage/ofd_packets/00082514 [08:47:01]Write 302 bytes [08:47:01]NVStorageSaveData done [08:47:01]OFDSenderStorePacket done [08:47:01]KKMCreateOFDPacket done [08:47:01]NVStorageSaveData kkm_last_timestamp [08:47:01]File name is /storage/kkm_last_timestamp [08:47:01]Write 4 bytes [08:47:01]NVStorageSaveData done [08:47:01]ExternCall_PrintAddStr [08:47:01]wPrintStart [08:47:01]Write to MH i2c: 01 00 00 8F 01 90 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 07 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [08:47:01]RasterBufferAndPrint [08:47:01]line Счет N : (1)919004 [08:47:01]line ИНН: 02508201610067 [08:47:01]line Контрольно-Кассовый Чек [08:47:01]line ПРОДАЖА [08:47:01]line ТРК (МРК, ГНК) : 31 [08:47:01]line Товар: 2710194210 [08:47:01]line ДТ(л)-К-5 [08:47:01]line 26.250 * 76.20 [08:47:01]line = 2000.25 [08:47:01]line НДС 12% НСП 1% [08:47:01]line > о реализуемом товаре [08:47:01]line ОКРУГЛЕНИЕ: -0.25 [08:47:01]line ИТОГО: 2000.00 [08:47:01]line Внесено: 2000.00 [08:47:01]line СДАЧА: 0.00 [08:47:01]line НСП 1% : 17.70 [08:47:01]line НДС 12% : 212.42 [08:47:01]line Наличными: 2000.00 [08:47:01]line Безнал.: 0.00 [08:47:01]line Место: АЗС № 114 "Партнер Нефть" [08:47:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:47:01]line СНО: Общий режим [08:47:01]line Чек 11 19.10.2024 08:47 [08:47:01]line Смена: 527 ФФД: 1.0 [08:47:01]line ЗНМ: 0300000086 [08:47:01]line РНМ: 0000000000091680 [08:47:01]line Версия ККМ: 001 [08:47:01]line ФМ: 0000000000871843 [08:47:01]line ФД: 82514 [08:47:01]line ФПД: 101907107993435 [08:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T084700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82514&fm=101907107993435&tin=02508201610067®Number=0000000000091680&sum=200000 [08:47:02]OFD Sender: Processing packet 82514 [packets to send 254, broken 253] [08:47:02]ProducePacketName [08:47:02]name=ofd_packets/00082514 [08:47:02]OFD Sender: To server: pG, [08:47:02]CommunicateWithHost lk.salyk.kg:30040 [08:47:02]ConnectInit lk.salyk.kg [08:47:02]written 0, free lines is 4095 [08:47:02]Write to MH i2c: 01 00 00 BA 01 BB [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: 01 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: 01 07 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 CD 0C 9B [08:47:02]RasterBufferAndPrint [08:47:02]line [08:47:02]line [08:47:02]line [08:47:02]line [08:47:02]line [08:47:02]written 0, free lines is 3283 [08:47:02]MH_Cut [08:47:02]Write to MH i2c: D1 01 00 C1 01 01 94 [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: D1 [08:47:02]MH_I2C_Read... [08:47:02]Connected sock=8 [08:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DB CF 08 01 29 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 04 72 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 42 01 00 35 04 06 00 5C AF 18 F8 D7 5B 00 6A FD 2B C6 51 4E 11 [08:47:02]Read from MH i2c: D1 01 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: D1 01 00 C1 01 00 93 [08:47:02]Write to MH i2c: 01 00 00 C2 01 C3 [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 23 F9 47 00 47 D0 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 31 38 34 33 10 04 04 00 52 42 01 00 F4 03 04 00 3C 17 13 67 B6 04 01 00 00 82 B2 B7 20 F5 2C 75 4A [08:47:03]CommunicateWithHost err = 0 [08:47:03]CheckOFDResponse [08:47:03]1017 (14) - 77093643461234 [08:47:03]1041 (16) - 0000000000871843 [08:47:03]1040 (4) - 82514 [08:47:03]1012 (4) - 19.10.2024 02:19 [08:47:03]1206 (1) - 0 [08:47:03]OFD Sender: Remove packet 82514 [08:47:03]ProducePacketName [08:47:03]name=ofd_packets/00082514 [08:47:03]NVStorageDeleteData [08:47:03]*** Cut start [08:47:03]*** Partial cut [08:47:03]*** CUTSNS_PIN = 1 [08:47:03]*** CUTSNS_PIN = 0 [08:47:03]OFD Sender: No OFD packet to send [08:47:03]*** Brake cut motor [08:47:03]Read from MH i2c: 01 [08:47:04]MH_I2C_Read... [08:47:04]*** Stop cut motor [08:47:04]*** Cut end [08:47:04]Read from MH i2c: 01 07 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [08:47:04]process_action close_receipt done [08:47:04]requested_data is exist [08:47:04]produce_requested_data [08:47:04]requested_item fm.sn is exist - process it [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 11 00 00 [08:47:04]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 17 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [08:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:47:04]wFMCommunicate OK [08:47:04]requested_item fd.num is exist - process it [08:47:04]SAM_PROTO_GetFieldsCounters [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 13 00 00 [08:47:04]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 62 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 62 00 C4 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 52 42 01 00 0E 04 04 00 0F 02 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 27 [08:47: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 52 42 01 00 0E 04 04 00 0F 02 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 [08:47:04]wFMCommunicate OK [08:47:04]SAM_PROTO_GetFieldsCounters done [08:47:04]requested_item shift.num is exist - process it [08:47:04]requested_item shift.opened is exist - process it [08:47:04]req_shift_opened [08:47:04]FM_GetShiftState [08:47:04]SAM_PROTO_GetShiftState [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 13 01 00 [08:47:04]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:04]Read from MH i2c: E2 0E 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 45 [08:47:04]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:47:04]wFMCommunicate OK [08:47:04]SAM_PROTO_GetShiftState done [08:47:04]FM_GetShiftState done [08:47:04]req_shift_opened done [08:47:04]requested_item shift.open_date is exist - process it [08:47:04]req_shift_open_date [08:47:04]req_shift_open_date done [08:47:04]produce_requested_data done [08:47:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82514,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [08:47:04]process_action_free close_receipt [08:47:04]json_value_free [08:47:04]json_value_free done [08:47:04]process_json_proto returns [08:47:04]Send response to host [08:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82514,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [08:47:04]free response buf [08:47:04]execute_script done [08:47:04]execute_script returns [08:47:04]free content buf [08:47:04]Sock 10.Close socket [08:47:04]Sock 10.Thread stoped [08:47:08]OFD Sender: No OFD packet to send [08:47:11]recv_with_timeout no data received [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:46]recv_with_timeout no data received [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:48]accept exits with 9 [08:59:48]New connection [08:59:48]New thread 3067280740 created [08:59:48]Thread 3067137380 joined [08:59:48]Waiting for new connection... [08:59:48] Sock 9.Parse request [08:59:48]Sock 9.Check first char [08:59:48]Sock 9.First char is OK [08:59:48]request: POST /json_proto HTTP/1.0 [08:59:48]Method: POST [08:59:48]URL: /json_proto [08:59:48]Method is POST - this is cgi request [08:59:48]url: /json_proto [08:59:48]query_string will be loaded in cgi processing [08:59:48]execute_cgi json_proto POST (null) [08:59:48]execute_cgi path=json_proto method=POST [08:59:48]POST find Content-Length [08:59:48]Host: 172.17.44.67:8080 [08:59:48]Content-Length: 804 [08:59:48]Content-Type: application/json [08:59:48] [08:59:48]POST finish read [08:59:48]Found Content-Length = 804 [08:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 0.640, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4755528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:48]execute_script... [08:59: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 : (1)919005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 0.640, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4755528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:48]POST & json_proto [08:59:48]process_json_proto [08:59:48]json parsed OK: [08:59:48]protocol is kg_v1.0 [08:59:48]action value=close_receipt [08:59:48]process_action close_receipt [08:59:48]cmd_close_receipt [08:59:48]MH_GetDate [08:59:48]Write to MH i2c: F0 00 00 C6 01 B6 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 09 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: F0 09 00 C6 01 00 05 75 13 67 F1 C7 6B 64 3A [08:59:48]GetLastDocTimeStamp 1729327620 [08:59:48]current date 1729328389 [08:59:48]FM_GetShiftState [08:59:48]SAM_PROTO_GetShiftState [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 13 01 00 [08:59:48]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 47 [08:59:48]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_GetShiftState done [08:59:48]FM_GetShiftState done [08:59:48]opened in 1729298811 [08:59:48]opened+sec_in_day 1729385211 [08:59:48]quantity*price = 0 [08:59:48]sum+1 = 1 [08:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 12 19.10.2024 08:59 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4755528 ФМ: 0000000000871843 ФД: 82515 ФПД: 9930935928073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T085949&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82515&fm=9930935928073&tin=02508201610067®Number=0000000000091680&sum=0 [08:59:49]StoreToDocumentArchive [08:59:49]shift 527 fd 82515 [08:59:49]save to /storage/0527/doc_00082515 [08:59:49]save last doc name /storage/0527/doc_00082515 to /storage/kkm_last_doc_name [08:59:49]save OK [08:59:49]Clear old archive folders... [08:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:59:49]tlvbuf is 006AC790 [08:59:49]SAM_PROTO_ClearQueue [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 09 00 00 [08:59:49]Write to MH i2c: E2 08 00 D4 01 80 09 00 00 00 00 00 00 47 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [08:59:50]RAPDU: 90 00 [08:59:50]wFMCommunicate OK [08:59:50]SAM_PROTO_ClearQueue done [08:59:50]KKMCreateOFDPacket [08:59:50]OFDProtocolAddRootSTLVToBuf [08:59:50]FM_MakeSignedData [08:59:50]FM_MakeSignedData [08:59:50]SAM_PROTO_SignData [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 0D 01 02 [08:59:50]Write to MH i2c: E2 08 00 D5 01 80 0D 01 02 00 00 00 00 4F [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [08:59:50]RAPDU: 90 00 [08:59:50]wFMCommunicate OK [08:59:50]wFMCommunicate request_size=255 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 02 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 05 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 42 01 00 35 04 06 00 [08:59:50]Write to MH i2c: E2 02 01 D6 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 02 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 05 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 42 01 00 35 04 06 00 00 00 BB [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [08:59:50]RAPDU: 90 00 [08:59:50]wFMCommunicate OK [08:59:50]wFMCommunicate request_size=11 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 0D 02 02 06 09 08 39 E8 85 09 [08:59:50]Write to MH i2c: E2 0E 00 D7 01 80 0D 02 02 06 00 09 08 39 E8 85 09 00 00 1E [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [08:59:50]RAPDU: 90 00 [08:59:50]wFMCommunicate OK [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 0D 03 02 [08:59:50]Write to MH i2c: E2 08 00 D8 01 80 0D 03 02 00 00 00 00 54 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0B 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 0B 00 D8 01 00 D5 49 39 92 66 C7 0A 79 90 00 EE [08:59:50]RAPDU: D5 49 39 92 66 C7 0A 79 90 00 [08:59:50]wFMCommunicate OK [08:59:50]SAM_PROTO_SignData done [08:59:50]FM_MakeSignedData done [08:59:50]CreateOFDProtocolMessage [08:59:50]wFMCommunicate request_size=4 [08:59:50]MH_SAM_APDU [08:59:50]CAPDU: 80 11 00 00 [08:59:50]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:50]Read from MH i2c: E2 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 17 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A6 [08:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:59:50]wFMCommunicate OK [08:59:50]CreateOFDProtocolMessage done [08:59:50]OFDSenderStorePacket 82515 [08:59:50]StoreOFDPacket docnum=82515 [08:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D3 4C 08 01 97 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 02 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 05 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 42 01 00 35 04 06 00 09 08 39 E8 85 09 D5 49 39 92 66 C7 0A 79 [08:59:50]CheckFolder [08:59:50]dirname=/storage/ofd_packets [08:59:50]CheckFolder done [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00082515 [08:59:50]NVStorageSaveData ofd_packets/00082515 [08:59:50]File name is /storage/ofd_packets/00082515 [08:59:50]Write 302 bytes [08:59:50]NVStorageSaveData done [08:59:50]OFDSenderStorePacket done [08:59:50]KKMCreateOFDPacket done [08:59:50]NVStorageSaveData kkm_last_timestamp [08:59:50]File name is /storage/kkm_last_timestamp [08:59:50]Write 4 bytes [08:59:50]NVStorageSaveData done [08:59:50]ExternCall_PrintAddStr [08:59:50]wPrintStart [08:59:50]Write to MH i2c: 01 00 00 DA 01 DB [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [08:59:50]RasterBufferAndPrint [08:59:50]line Счет N : (1)919005 [08:59:50]line ИНН: 02508201610067 [08:59:50]line Контрольно-Кассовый Чек [08:59:50]line ПРОДАЖА [08:59:50]line ТРК (МРК, ГНК) : 31 [08:59:50]line Товар: 2710194210 [08:59:50]line ДТ(л)-К-5 [08:59:50]line 0.640 * 0.00 [08:59:50]line = 0.00 [08:59:50]line НДС 12% НСП 1% [08:59:50]line > о реализуемом товаре [08:59:50]line ИТОГО: 0.00 [08:59:50]line НСП 1% : 0.00 [08:59:50]line НДС 12% : 0.00 [08:59:50]line Наличными: 0.00 [08:59:50]line Безнал.: 0.00 [08:59:50]line Место: АЗС № 114 "Партнер Нефть" [08:59:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:59:50]line СНО: Общий режим [08:59:50]line Чек 12 19.10.2024 08:59 [08:59:50]line Смена: 527 ФФД: 1.0 [08:59:50]line ЗНМ: 0300000086 [08:59:50]line РНМ: 0000000000091680 [08:59:50]line Версия ККМ: 001 [08:59:50]line Талоны: Топливные Талоны [08:59:50]line 4755528 [08:59:50]line ФМ: 0000000000871843 [08:59:50]line ФД: 82515 [08:59:50]line ФПД: 9930935928073 [08:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T085949&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82515&fm=9930935928073&tin=02508201610067®Number=0000000000091680&sum=0 [08:59:50]written 0, free lines is 4095 [08:59:50]OFD Sender: Processing packet 82515 [packets to send 254, broken 253] [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00082515 [08:59:50]OFD Sender: To server: pG, [08:59:50]CommunicateWithHost lk.salyk.kg:30040 [08:59:50]ConnectInit lk.salyk.kg [08:59:51]Write to MH i2c: 01 00 00 04 02 06 [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: 01 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: 01 07 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 DE 0C F7 [08:59:51]RasterBufferAndPrint [08:59:51]line [08:59:51]line [08:59:51]line [08:59:51]line [08:59:51]line [08:59:51]written 0, free lines is 3300 [08:59:51]MH_Cut [08:59:51]Write to MH i2c: D1 01 00 0B 02 01 DF [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: D1 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: D1 01 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: D1 01 00 0B 02 00 DE [08:59:51]Write to MH i2c: 01 00 00 0C 02 0E [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]Connected sock=8 [08:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D3 4C 08 01 97 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 02 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 05 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 42 01 00 35 04 06 00 09 08 39 E8 85 09 D5 49 39 92 66 C7 0A 79 [08:59:52]*** Cut start [08:59:52]*** Partial cut [08:59:52]*** CUTSNS_PIN = 1 [08:59:52]*** CUTSNS_PIN = 0 [08:59:52]*** Brake cut motor [08:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A6 AD 47 00 5A 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 31 38 34 33 10 04 04 00 53 42 01 00 F4 03 04 00 3D 1A 13 67 B6 04 01 00 00 04 CC 81 6D 0D 31 BC 5F [08:59:52]CommunicateWithHost err = 0 [08:59:52]CheckOFDResponse [08:59:52]1017 (14) - 77093643461234 [08:59:52]1041 (16) - 0000000000871843 [08:59:52]1040 (4) - 82515 [08:59:52]1012 (4) - 19.10.2024 02:32 [08:59:52]1206 (1) - 0 [08:59:52]OFD Sender: Remove packet 82515 [08:59:52]ProducePacketName [08:59:52]name=ofd_packets/00082515 [08:59:52]NVStorageDeleteData [08:59:52]Read from MH i2c: 01 [08:59:52]MH_I2C_Read... [08:59:52]*** Stop cut motor [08:59:52]*** Cut end [08:59:52]Read from MH i2c: 01 07 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [08:59:52]process_action close_receipt done [08:59:52]requested_data is exist [08:59:52]produce_requested_data [08:59:52]requested_item fm.sn is exist - process it [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 11 00 00 [08:59:52]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DB [08:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:59:52]wFMCommunicate OK [08:59:52]requested_item fd.num is exist - process it [08:59:52]SAM_PROTO_GetFieldsCounters [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 00 00 [08:59:52]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 62 00 0E 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 53 42 01 00 0E 04 04 00 0F 02 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 76 [08:59: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 53 42 01 00 0E 04 04 00 0F 02 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 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetFieldsCounters done [08:59:52]requested_item shift.num is exist - process it [08:59:52]requested_item shift.opened is exist - process it [08:59:52]req_shift_opened [08:59:52]FM_GetShiftState [08:59:52]SAM_PROTO_GetShiftState [08:59:52]wFMCommunicate request_size=4 [08:59:52]MH_SAM_APDU [08:59:52]CAPDU: 80 13 01 00 [08:59:52]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [08:59:52]Write i2c OK [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 [08:59:52]MH_I2C_Read... [08:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:52]Read from MH i2c: E2 0E 00 [08:59:52]MH_I2C_Read... [08:59:52]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 90 [08:59:52]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [08:59:52]wFMCommunicate OK [08:59:52]SAM_PROTO_GetShiftState done [08:59:52]FM_GetShiftState done [08:59:52]req_shift_opened done [08:59:52]requested_item shift.open_date is exist - process it [08:59:52]req_shift_open_date [08:59:52]req_shift_open_date done [08:59:52]produce_requested_data done [08:59:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82515,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [08:59:52]process_action_free close_receipt [08:59:52]json_value_free [08:59:52]json_value_free done [08:59:52]process_json_proto returns [08:59:52]Send response to host [08:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82515,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [08:59:52]free response buf [08:59:52]execute_script done [08:59:52]execute_script returns [08:59:52]free content buf [08:59:52]Sock 9.Close socket [08:59:52]Sock 9.Thread stoped [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [08:59:59]recv_with_timeout no data received [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:10]recv_with_timeout no data received [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:46]recv_with_timeout no data received [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:09]accept exits with 10 [09:02:09]New connection [09:02:09]New thread 3067137380 created [09:02:09]Thread 3067280740 joined [09:02:09]Waiting for new connection... [09:02:09] Sock 10.Parse request [09:02:09]Sock 10.Check first char [09:02:09]Sock 10.First char is OK [09:02:09]request: POST /json_proto HTTP/1.0 [09:02:09]Method: POST [09:02:09]URL: /json_proto [09:02:09]Method is POST - this is cgi request [09:02:09]url: /json_proto [09:02:09]query_string will be loaded in cgi processing [09:02:09]execute_cgi json_proto POST (null) [09:02:09]execute_cgi path=json_proto method=POST [09:02:09]POST find Content-Length [09:02:09]Host: 172.17.44.67:8080 [09:02:09]Content-Length: 677 [09:02:09]Content-Type: application/json [09:02:09] [09:02:09]POST finish read [09:02:09]Found Content-Length = 677 [09:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:02:09]execute_script... [09:02: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 : (1)919007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [09:02:09]POST & json_proto [09:02:09]process_json_proto [09:02:09]json parsed OK: [09:02:09]protocol is kg_v1.0 [09:02:09]action value=close_receipt [09:02:09]process_action close_receipt [09:02:09]cmd_close_receipt [09:02:09]MH_GetDate [09:02:09]Write to MH i2c: F0 00 00 10 02 01 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: F0 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: F0 09 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: F0 09 00 10 02 00 92 75 13 67 F1 C7 6B 64 12 [09:02:09]GetLastDocTimeStamp 1729328389 [09:02:09]current date 1729328530 [09:02:09]FM_GetShiftState [09:02:09]SAM_PROTO_GetShiftState [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 01 00 [09:02:09]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 92 [09:02:09]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetShiftState done [09:02:09]FM_GetShiftState done [09:02:09]opened in 1729298811 [09:02:09]opened+sec_in_day 1729385211 [09:02:09]quantity*price = 50041 [09:02:09]sum+1 = 50042 [09:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 13 19.10.2024 09:02 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82516 ФПД: 216859629537291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090210&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82516&fm=216859629537291&tin=02508201610067®Number=0000000000091680&sum=50000 [09:02:11]StoreToDocumentArchive [09:02:11]shift 527 fd 82516 [09:02:11]save to /storage/0527/doc_00082516 [09:02:11]save last doc name /storage/0527/doc_00082516 to /storage/kkm_last_doc_name [09:02:11]save OK [09:02:11]Clear old archive folders... [09:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:11]tlvbuf is 0070F710 [09:02:11]SAM_PROTO_ClearQueue [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 09 00 00 [09:02:11]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [09:02:11]RAPDU: 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_ClearQueue done [09:02:11]KKMCreateOFDPacket [09:02:11]OFDProtocolAddRootSTLVToBuf [09:02:11]FM_MakeSignedData [09:02:11]FM_MakeSignedData [09:02:11]SAM_PROTO_SignData [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 0D 01 02 [09:02:11]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [09:02:11]RAPDU: 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=255 [09:02:11]MH_SAM_APDU [09:02:11]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0D 00 00 00 F4 03 04 00 92 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 42 01 00 35 04 06 00 C5 [09:02:11]Write to MH i2c: E2 02 01 20 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0D 00 00 00 F4 03 04 00 92 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 42 01 00 35 04 06 00 C5 00 00 21 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [09:02:11]RAPDU: 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=10 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 0D 02 02 05 3B 91 2F 48 0B [09:02:11]Write to MH i2c: E2 0D 00 21 02 80 0D 02 02 05 00 3B 91 2F 48 0B 00 00 F5 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [09:02:11]RAPDU: 90 00 [09:02:11]wFMCommunicate OK [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 0D 03 02 [09:02:11]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0B 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0B 00 22 02 00 B8 52 F1 D2 F4 E3 61 07 90 00 AC [09:02:11]RAPDU: B8 52 F1 D2 F4 E3 61 07 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_SignData done [09:02:11]FM_MakeSignedData done [09:02:11]CreateOFDProtocolMessage [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 11 00 00 [09:02:11]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 17 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [09:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:02:11]wFMCommunicate OK [09:02:11]CreateOFDProtocolMessage done [09:02:11]OFDSenderStorePacket 82516 [09:02:11]StoreOFDPacket docnum=82516 [09:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9E 41 07 01 9B 90 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0D 00 00 00 F4 03 04 00 92 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 42 01 00 35 04 06 00 C5 3B 91 2F 48 0B B8 52 F1 D2 F4 E3 61 07 [09:02:11]CheckFolder [09:02:11]dirname=/storage/ofd_packets [09:02:11]CheckFolder done [09:02:11]ProducePacketName [09:02:11]name=ofd_packets/00082516 [09:02:11]NVStorageSaveData ofd_packets/00082516 [09:02:11]File name is /storage/ofd_packets/00082516 [09:02:11]Write 301 bytes [09:02:11]NVStorageSaveData done [09:02:11]OFDSenderStorePacket done [09:02:11]KKMCreateOFDPacket done [09:02:11]NVStorageSaveData kkm_last_timestamp [09:02:11]File name is /storage/kkm_last_timestamp [09:02:11]Write 4 bytes [09:02:11]NVStorageSaveData done [09:02:11]ExternCall_PrintAddStr [09:02:11]wPrintStart [09:02:11]Write to MH i2c: 01 00 00 24 02 26 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [09:02:11]RasterBufferAndPrint [09:02:11]line Счет N : (1)919007 [09:02:11]line ИНН: 02508201610067 [09:02:11]line Контрольно-Кассовый Чек [09:02:11]line ПРОДАЖА [09:02:11]line ТРК (МРК, ГНК) : 11 [09:02:11]line Товар: 2710124130 [09:02:11]line Аи-92-К-4 [09:02:11]line 7.480 * 66.90 [09:02:11]line = 500.41 [09:02:11]line НДС 12% НСП 1% [09:02:11]line > о реализуемом товаре [09:02:11]line ОКРУГЛЕНИЕ: -0.41 [09:02:11]line ИТОГО: 500.00 [09:02:11]line Внесено: 500.00 [09:02:11]line СДАЧА: 0.00 [09:02:11]line НСП 1% : 4.43 [09:02:11]line НДС 12% : 53.14 [09:02:11]line Наличными: 500.00 [09:02:11]line Безнал.: 0.00 [09:02:11]line Место: АЗС № 114 "Партнер Нефть" [09:02:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:02:11]line СНО: Общий режим [09:02:11]line Чек 13 19.10.2024 09:02 [09:02:11]line Смена: 527 ФФД: 1.0 [09:02:11]line ЗНМ: 0300000086 [09:02:11]line РНМ: 0000000000091680 [09:02:11]line Версия ККМ: 001 [09:02:11]line ФМ: 0000000000871843 [09:02:11]line ФД: 82516 [09:02:11]line ФПД: 216859629537291 [09:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090210&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82516&fm=216859629537291&tin=02508201610067®Number=0000000000091680&sum=50000 [09:02:11]OFD Sender: Processing packet 82516 [packets to send 254, broken 253] [09:02:11]ProducePacketName [09:02:11]name=ofd_packets/00082516 [09:02:11]OFD Sender: To server: pG, [09:02:11]CommunicateWithHost lk.salyk.kg:30040 [09:02:11]ConnectInit lk.salyk.kg [09:02:11]written 0, free lines is 4095 [09:02:12]Write to MH i2c: 01 00 00 4F 02 51 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 CD 0C 31 [09:02:12]RasterBufferAndPrint [09:02:12]line [09:02:12]line [09:02:12]line [09:02:12]line [09:02:12]line [09:02:12]written 0, free lines is 3280 [09:02:12]MH_Cut [09:02:12]Write to MH i2c: D1 01 00 56 02 01 2A [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: D1 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: D1 01 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: D1 01 00 56 02 00 29 [09:02:12]Write to MH i2c: 01 00 00 57 02 59 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:13]*** Cut start [09:02:13]*** Partial cut [09:02:13]*** CUTSNS_PIN = 1 [09:02:13]*** CUTSNS_PIN = 0 [09:02:13]*** Brake cut motor [09:02:13]Read from MH i2c: 01 [09:02:13]MH_I2C_Read... [09:02:13]*** Stop cut motor [09:02:13]*** Cut end [09:02:13]Read from MH i2c: 01 07 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [09:02:13]process_action close_receipt done [09:02:13]requested_data is exist [09:02:13]produce_requested_data [09:02:13]requested_item fm.sn is exist - process it [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 11 00 00 [09:02:13]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [09:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:02:13]wFMCommunicate OK [09:02:13]requested_item fd.num is exist - process it [09:02:13]SAM_PROTO_GetFieldsCounters [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 13 00 00 [09:02:13]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 62 00 [09:02:13]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 62 00 59 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 54 42 01 00 0E 04 04 00 0F 02 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 C5 [09:02: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 54 42 01 00 0E 04 04 00 0F 02 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 [09:02:14]wFMCommunicate OK [09:02:14]SAM_PROTO_GetFieldsCounters done [09:02:14]requested_item shift.num is exist - process it [09:02:14]requested_item shift.opened is exist - process it [09:02:14]req_shift_opened [09:02:14]FM_GetShiftState [09:02:14]SAM_PROTO_GetShiftState [09:02:14]wFMCommunicate request_size=4 [09:02:14]MH_SAM_APDU [09:02:14]CAPDU: 80 13 01 00 [09:02:14]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:14]Read from MH i2c: E2 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 DB [09:02:14]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:02:14]wFMCommunicate OK [09:02:14]SAM_PROTO_GetShiftState done [09:02:14]FM_GetShiftState done [09:02:14]req_shift_opened done [09:02:14]requested_item shift.open_date is exist - process it [09:02:14]req_shift_open_date [09:02:14]req_shift_open_date done [09:02:14]produce_requested_data done [09:02:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82516,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:02:14]process_action_free close_receipt [09:02:14]json_value_free [09:02:14]json_value_free done [09:02:14]process_json_proto returns [09:02:14]Send response to host [09:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82516,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:02:14]free response buf [09:02:14]execute_script done [09:02:14]execute_script returns [09:02:14]free content buf [09:02:14]Sock 10.Close socket [09:02:14]Sock 10.Thread stoped [09:02:15]Connected sock=11 [09:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9E 41 07 01 9B 90 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0D 00 00 00 F4 03 04 00 92 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 42 01 00 35 04 06 00 C5 3B 91 2F 48 0B B8 52 F1 D2 F4 E3 61 07 [09:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D9 C0 47 00 96 50 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 31 38 34 33 10 04 04 00 54 42 01 00 F4 03 04 00 CC 1A 13 67 B6 04 01 00 00 29 A8 2A D9 D7 7D 79 98 [09:02:16]CommunicateWithHost err = 0 [09:02:16]CheckOFDResponse [09:02:16]1017 (14) - 77093643461234 [09:02:16]1041 (16) - 0000000000871843 [09:02:16]1040 (4) - 82516 [09:02:16]1012 (4) - 19.10.2024 02:34 [09:02:16]1206 (1) - 0 [09:02:16]OFD Sender: Remove packet 82516 [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00082516 [09:02:16]NVStorageDeleteData [09:02:16]recv_with_timeout no data received [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:02:57]accept exits with 8 [09:02:57]New connection [09:02:57]New thread 3067280740 created [09:02:57]Thread 3067137380 joined [09:02:57]Waiting for new connection... [09:02:57] Sock 8.Parse request [09:02:57]Sock 8.Check first char [09:02:57]Sock 8.First char is OK [09:02:57]request: POST /json_proto HTTP/1.0 [09:02:57]Method: POST [09:02:57]URL: /json_proto [09:02:57]Method is POST - this is cgi request [09:02:57]url: /json_proto [09:02:57]query_string will be loaded in cgi processing [09:02:57]execute_cgi json_proto POST (null) [09:02:57]execute_cgi path=json_proto method=POST [09:02:57]POST find Content-Length [09:02:57]Host: 172.17.44.67:8080 [09:02:57]Content-Length: 758 [09:02:57]Content-Type: application/json [09:02:57] [09:02:57]POST finish read [09:02:57]Found Content-Length = 758 [09:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 49.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4755528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:57]execute_script... [09:02: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 : (1)919006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 49.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4755528", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:57]POST & json_proto [09:02:57]process_json_proto [09:02:57]json parsed OK: [09:02:57]protocol is kg_v1.0 [09:02:57]action value=close_receipt [09:02:57]process_action close_receipt [09:02:57]cmd_close_receipt [09:02:57]MH_GetDate [09:02:57]Write to MH i2c: F0 00 00 5B 02 4C [09:02:57]Write i2c OK [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 09 00 [09:02:57]MH_I2C_Read... [09:02:57]Read from MH i2c: F0 09 00 5B 02 00 C2 75 13 67 F1 C7 6B 64 8D [09:02:57]GetLastDocTimeStamp 1729328530 [09:02:57]current date 1729328578 [09:02:57]FM_GetShiftState [09:02:57]SAM_PROTO_GetShiftState [09:02:57]wFMCommunicate request_size=4 [09:02:57]MH_SAM_APDU [09:02:57]CAPDU: 80 13 01 00 [09:02:57]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [09:02:57]Write i2c OK [09:02:57]MH_I2C_Read... [09:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:58]Read from MH i2c: E2 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 0E 00 [09:02:58]MH_I2C_Read... [09:02:58]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 DD [09:02:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:02:58]wFMCommunicate OK [09:02:58]SAM_PROTO_GetShiftState done [09:02:58]FM_GetShiftState done [09:02:58]opened in 1729298811 [09:02:58]opened+sec_in_day 1729385211 [09:02:58]quantity*price = 0 [09:02:58]sum+1 = 1 [09:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 14 19.10.2024 09:02 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 4755528 ФМ: 0000000000871843 ФД: 82517 ФПД: 49275157416199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82517&fm=49275157416199&tin=02508201610067®Number=0000000000091680&sum=0 [09:02:59]StoreToDocumentArchive [09:02:59]shift 527 fd 82517 [09:02:59]save to /storage/0527/doc_00082517 [09:02:59]save last doc name /storage/0527/doc_00082517 to /storage/kkm_last_doc_name [09:02:59]save OK [09:02:59]Clear old archive folders... [09:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:02:59]tlvbuf is 007110A0 [09:02:59]SAM_PROTO_ClearQueue [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 09 00 00 [09:02:59]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]SAM_PROTO_ClearQueue done [09:02:59]KKMCreateOFDPacket [09:02:59]OFDProtocolAddRootSTLVToBuf [09:02:59]FM_MakeSignedData [09:02:59]FM_MakeSignedData [09:02:59]SAM_PROTO_SignData [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 01 02 [09:02:59]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=255 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 C0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 42 01 00 35 04 06 00 [09:02:59]Write to MH i2c: E2 02 01 6B 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 C0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 42 01 00 35 04 06 00 00 00 20 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=11 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 02 02 06 2C D0 C4 41 09 07 [09:02:59]Write to MH i2c: E2 0E 00 6C 02 80 0D 02 02 06 00 2C D0 C4 41 09 07 00 00 05 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [09:02:59]RAPDU: 90 00 [09:02:59]wFMCommunicate OK [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 0D 03 02 [09:02:59]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 0B 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 0B 00 6D 02 00 B0 80 1A 8D 79 9E FE 5D 90 00 34 [09:02:59]RAPDU: B0 80 1A 8D 79 9E FE 5D 90 00 [09:02:59]wFMCommunicate OK [09:02:59]SAM_PROTO_SignData done [09:02:59]FM_MakeSignedData done [09:02:59]CreateOFDProtocolMessage [09:02:59]wFMCommunicate request_size=4 [09:02:59]MH_SAM_APDU [09:02:59]CAPDU: 80 11 00 00 [09:02:59]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:59]Read from MH i2c: E2 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 17 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3C [09:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:02:59]wFMCommunicate OK [09:02:59]CreateOFDProtocolMessage done [09:02:59]OFDSenderStorePacket 82517 [09:02:59]StoreOFDPacket docnum=82517 [09:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 52 6D 08 01 AD BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 C0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 42 01 00 35 04 06 00 2C D0 C4 41 09 07 B0 80 1A 8D 79 9E FE 5D [09:02:59]CheckFolder [09:02:59]dirname=/storage/ofd_packets [09:02:59]CheckFolder done [09:02:59]ProducePacketName [09:02:59]name=ofd_packets/00082517 [09:02:59]NVStorageSaveData ofd_packets/00082517 [09:02:59]File name is /storage/ofd_packets/00082517 [09:02:59]Write 302 bytes [09:02:59]NVStorageSaveData done [09:02:59]OFDSenderStorePacket done [09:02:59]KKMCreateOFDPacket done [09:02:59]NVStorageSaveData kkm_last_timestamp [09:02:59]File name is /storage/kkm_last_timestamp [09:02:59]Write 4 bytes [09:02:59]NVStorageSaveData done [09:02:59]ExternCall_PrintAddStr [09:02:59]wPrintStart [09:02:59]Write to MH i2c: 01 00 00 6F 02 71 [09:02:59]Write i2c OK [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 07 00 [09:02:59]MH_I2C_Read... [09:02:59]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [09:02:59]RasterBufferAndPrint [09:02:59]line Счет N : (1)919006 [09:02:59]line ИНН: 02508201610067 [09:02:59]line Контрольно-Кассовый Чек [09:02:59]line ПРОДАЖА [09:02:59]line ТРК (МРК, ГНК) : 31 [09:02:59]line Товар: 2710194210 [09:02:59]line ДТ(л)-К-5 [09:02:59]line 49.360 * 0.00 [09:02:59]line = 0.00 [09:02:59]line НДС 12% НСП 1% [09:02:59]line > о реализуемом товаре [09:02:59]line ИТОГО: 0.00 [09:02:59]line НСП 1% : 0.00 [09:02:59]line НДС 12% : 0.00 [09:02:59]line Наличными: 0.00 [09:02:59]line Безнал.: 0.00 [09:02:59]line Место: АЗС № 114 "Партнер Нефть" [09:02:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:02:59]line СНО: Общий режим [09:02:59]line Чек 14 19.10.2024 09:02 [09:02:59]line Смена: 527 ФФД: 1.0 [09:02:59]line ЗНМ: 0300000086 [09:02:59]line РНМ: 0000000000091680 [09:02:59]line Версия ККМ: 001 [09:02:59]line Талоны: ТК ГПНА Online [09:02:59]line 4755528 [09:02:59]line ФМ: 0000000000871843 [09:02:59]line ФД: 82517 [09:02:59]line ФПД: 49275157416199 [09:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82517&fm=49275157416199&tin=02508201610067®Number=0000000000091680&sum=0 [09:02:59]written 0, free lines is 4095 [09:02:59]OFD Sender: Processing packet 82517 [packets to send 254, broken 253] [09:02:59]ProducePacketName [09:02:59]name=ofd_packets/00082517 [09:02:59]OFD Sender: To server: pG, [09:02:59]CommunicateWithHost lk.salyk.kg:30040 [09:02:59]ConnectInit lk.salyk.kg [09:03:00]Write to MH i2c: 01 00 00 99 02 9B [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 07 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 D5 0C 83 [09:03:00]RasterBufferAndPrint [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]line [09:03:00]written 0, free lines is 3291 [09:03:00]MH_Cut [09:03:00]Write to MH i2c: D1 01 00 A0 02 01 74 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 01 00 [09:03:00]MH_I2C_Read... [09:03:00]Read from MH i2c: D1 01 00 A0 02 00 73 [09:03:00]Write to MH i2c: 01 00 00 A1 02 A3 [09:03:00]Write i2c OK [09:03:00]MH_I2C_Read... [09:03:00]Connected sock=10 [09:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 52 6D 08 01 AD BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 C0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 75 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 42 01 00 35 04 06 00 2C D0 C4 41 09 07 B0 80 1A 8D 79 9E FE 5D [09:03:00]*** Cut start [09:03:00]*** Partial cut [09:03:00]*** CUTSNS_PIN = 1 [09:03:00]*** CUTSNS_PIN = 0 [09:03:01]*** Brake cut motor [09:03:01]Read from MH i2c: 01 [09:03:01]MH_I2C_Read... [09:03:01]*** Stop cut motor [09:03:01]*** Cut end [09:03:01]Read from MH i2c: 01 07 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [09:03:01]process_action close_receipt done [09:03:01]requested_data is exist [09:03:01]produce_requested_data [09:03:01]requested_item fm.sn is exist - process it [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 11 00 00 [09:03:01]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D3 EB 47 00 C2 E9 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 31 38 34 33 10 04 04 00 55 42 01 00 F4 03 04 00 FA 1A 13 67 B6 04 01 00 00 15 A5 BB 09 1F 2A F7 DA [09:03:01]CommunicateWithHost err = 0 [09:03:01]CheckOFDResponse [09:03:01]1017 (14) - 77093643461234 [09:03:01]1041 (16) - 0000000000871843 [09:03:01]1040 (4) - 82517 [09:03:01]1012 (4) - 19.10.2024 02:35 [09:03:01]1206 (1) - 0 [09:03:01]OFD Sender: Remove packet 82517 [09:03:01]ProducePacketName [09:03:01]name=ofd_packets/00082517 [09:03:01]NVStorageDeleteData [09:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 17 00 [09:03:01]MH_I2C_Read... [09:03:01]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 31 38 34 33 90 00 70 [09:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:03:01]wFMCommunicate OK [09:03:01]requested_item fd.num is exist - process it [09:03:01]SAM_PROTO_GetFieldsCounters [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 13 00 00 [09:03:01]Write to MH i2c: E2 08 00 A3 02 80 13 00 00 00 00 00 00 21 [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 62 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 62 00 A3 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 55 42 01 00 0E 04 04 00 0F 02 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 13 [09:03: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 55 42 01 00 0E 04 04 00 0F 02 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 [09:03:01]wFMCommunicate OK [09:03:01]SAM_PROTO_GetFieldsCounters done [09:03:01]requested_item shift.num is exist - process it [09:03:01]requested_item shift.opened is exist - process it [09:03:01]req_shift_opened [09:03:01]FM_GetShiftState [09:03:01]SAM_PROTO_GetShiftState [09:03:01]wFMCommunicate request_size=4 [09:03:01]MH_SAM_APDU [09:03:01]CAPDU: 80 13 01 00 [09:03:01]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [09:03:01]Write i2c OK [09:03:01]MH_I2C_Read... [09:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:01]Read from MH i2c: E2 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 0E 00 [09:03:01]MH_I2C_Read... [09:03:01]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 25 [09:03:01]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:03:01]wFMCommunicate OK [09:03:01]SAM_PROTO_GetShiftState done [09:03:01]FM_GetShiftState done [09:03:01]req_shift_opened done [09:03:01]requested_item shift.open_date is exist - process it [09:03:01]req_shift_open_date [09:03:01]req_shift_open_date done [09:03:01]produce_requested_data done [09:03:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82517,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:03:01]process_action_free close_receipt [09:03:01]json_value_free [09:03:01]json_value_free done [09:03:01]process_json_proto returns [09:03:01]Send response to host [09:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82517,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:03:01]free response buf [09:03:01]execute_script done [09:03:01]execute_script returns [09:03:01]free content buf [09:03:01]Sock 8.Close socket [09:03:01]Sock 8.Thread stoped [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:08]recv_with_timeout no data received [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:24]recv_with_timeout no data received [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:35]recv_with_timeout no data received [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:23]accept exits with 9 [09:04:23]New connection [09:04:23]New thread 3067137380 created [09:04:23]Thread 3067280740 joined [09:04:23]Waiting for new connection... [09:04:23] Sock 9.Parse request [09:04:23]Sock 9.Check first char [09:04:23]Sock 9.First char is OK [09:04:23]request: POST /json_proto HTTP/1.0 [09:04:23]Method: POST [09:04:23]URL: /json_proto [09:04:23]Method is POST - this is cgi request [09:04:23]url: /json_proto [09:04:23]query_string will be loaded in cgi processing [09:04:23]execute_cgi json_proto POST (null) [09:04:23]execute_cgi path=json_proto method=POST [09:04:23]POST find Content-Length [09:04:23]Host: 172.17.44.67:8080 [09:04:23]Content-Length: 759 [09:04:23]Content-Type: application/json [09:04:23] [09:04:23]POST finish read [09:04:23]Found Content-Length = 759 [09:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:23]execute_script... [09:04: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 : (1)919008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:23]POST & json_proto [09:04:23]process_json_proto [09:04:23]json parsed OK: [09:04:23]protocol is kg_v1.0 [09:04:23]action value=close_receipt [09:04:23]process_action close_receipt [09:04:23]cmd_close_receipt [09:04:23]MH_GetDate [09:04:23]Write to MH i2c: F0 00 00 A5 02 96 [09:04:23]Write i2c OK [09:04:23]MH_I2C_Read... [09:04:23]Read from MH i2c: F0 [09:04:23]MH_I2C_Read... [09:04:23]Read from MH i2c: F0 09 00 [09:04:23]MH_I2C_Read... [09:04:23]Read from MH i2c: F0 09 00 A5 02 00 17 76 13 67 F1 C7 6B 64 2D [09:04:23]GetLastDocTimeStamp 1729328578 [09:04:23]current date 1729328663 [09:04:23]FM_GetShiftState [09:04:23]SAM_PROTO_GetShiftState [09:04:23]wFMCommunicate request_size=4 [09:04:23]MH_SAM_APDU [09:04:23]CAPDU: 80 13 01 00 [09:04:23]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [09:04:23]Write i2c OK [09:04:23]MH_I2C_Read... [09:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:23]Read from MH i2c: E2 [09:04:23]MH_I2C_Read... [09:04:23]Read from MH i2c: E2 0E 00 [09:04:23]MH_I2C_Read... [09:04:23]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 27 [09:04:23]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:04:23]wFMCommunicate OK [09:04:23]SAM_PROTO_GetShiftState done [09:04:23]FM_GetShiftState done [09:04:23]opened in 1729298811 [09:04:23]opened+sec_in_day 1729385211 [09:04:23]quantity*price = 0 [09:04:23]sum+1 = 1 [09:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 15 19.10.2024 09:04 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82518 ФПД: 229416151283968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090423&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82518&fm=229416151283968&tin=02508201610067®Number=0000000000091680&sum=0 [09:04:24]StoreToDocumentArchive [09:04:24]shift 527 fd 82518 [09:04:24]save to /storage/0527/doc_00082518 [09:04:24]save last doc name /storage/0527/doc_00082518 to /storage/kkm_last_doc_name [09:04:24]save OK [09:04:24]Clear old archive folders... [09:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:04:24]tlvbuf is 00702FE0 [09:04:24]SAM_PROTO_ClearQueue [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 09 00 00 [09:04:24]Write to MH i2c: E2 08 00 B3 02 80 09 00 00 00 00 00 00 27 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [09:04:24]RAPDU: 90 00 [09:04:24]wFMCommunicate OK [09:04:24]SAM_PROTO_ClearQueue done [09:04:24]KKMCreateOFDPacket [09:04:24]OFDProtocolAddRootSTLVToBuf [09:04:24]FM_MakeSignedData [09:04:24]FM_MakeSignedData [09:04:24]SAM_PROTO_SignData [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 0D 01 02 [09:04:24]Write to MH i2c: E2 08 00 B4 02 80 0D 01 02 00 00 00 00 2F [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [09:04:24]RAPDU: 90 00 [09:04:24]wFMCommunicate OK [09:04:24]wFMCommunicate request_size=255 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 17 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 42 01 00 35 04 06 00 [09:04:24]Write to MH i2c: E2 02 01 B5 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 17 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 42 01 00 35 04 06 00 00 00 04 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [09:04:24]RAPDU: 90 00 [09:04:24]wFMCommunicate OK [09:04:24]wFMCommunicate request_size=11 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 0D 02 02 06 D0 A7 1C 33 F9 00 [09:04:24]Write to MH i2c: E2 0E 00 B6 02 80 0D 02 02 06 00 D0 A7 1C 33 F9 00 00 00 FD [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [09:04:24]RAPDU: 90 00 [09:04:24]wFMCommunicate OK [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 0D 03 02 [09:04:24]Write to MH i2c: E2 08 00 B7 02 80 0D 03 02 00 00 00 00 34 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 0B 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 0B 00 B7 02 00 3E 25 FB 15 8E B5 8A 24 90 00 99 [09:04:24]RAPDU: 3E 25 FB 15 8E B5 8A 24 90 00 [09:04:24]wFMCommunicate OK [09:04:24]SAM_PROTO_SignData done [09:04:24]FM_MakeSignedData done [09:04:24]CreateOFDProtocolMessage [09:04:24]wFMCommunicate request_size=4 [09:04:24]MH_SAM_APDU [09:04:24]CAPDU: 80 11 00 00 [09:04:24]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:24]Read from MH i2c: E2 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 17 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 86 [09:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:04:24]wFMCommunicate OK [09:04:24]CreateOFDProtocolMessage done [09:04:24]OFDSenderStorePacket 82518 [09:04:24]StoreOFDPacket docnum=82518 [09:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 4E AC 08 01 54 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 17 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 42 01 00 35 04 06 00 D0 A7 1C 33 F9 00 3E 25 FB 15 8E B5 8A 24 [09:04:24]CheckFolder [09:04:24]dirname=/storage/ofd_packets [09:04:24]CheckFolder done [09:04:24]ProducePacketName [09:04:24]name=ofd_packets/00082518 [09:04:24]NVStorageSaveData ofd_packets/00082518 [09:04:24]File name is /storage/ofd_packets/00082518 [09:04:24]Write 302 bytes [09:04:24]NVStorageSaveData done [09:04:24]OFDSenderStorePacket done [09:04:24]KKMCreateOFDPacket done [09:04:24]NVStorageSaveData kkm_last_timestamp [09:04:24]File name is /storage/kkm_last_timestamp [09:04:24]Write 4 bytes [09:04:24]NVStorageSaveData done [09:04:24]ExternCall_PrintAddStr [09:04:24]wPrintStart [09:04:24]Write to MH i2c: 01 00 00 B9 02 BB [09:04:24]Write i2c OK [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: 01 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: 01 07 00 [09:04:24]MH_I2C_Read... [09:04:24]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [09:04:24]RasterBufferAndPrint [09:04:24]line Счет N : (1)919008 [09:04:24]line ИНН: 02508201610067 [09:04:24]line Контрольно-Кассовый Чек [09:04:24]line ПРОДАЖА [09:04:24]line ТРК (МРК, ГНК) : 31 [09:04:24]line Товар: 2710194210 [09:04:24]line ДТ(л)-К-5 [09:04:24]line 15.000 * 0.00 [09:04:24]line = 0.00 [09:04:24]line НДС 12% НСП 1% [09:04:24]line > о реализуемом товаре [09:04:24]line ИТОГО: 0.00 [09:04:24]line НСП 1% : 0.00 [09:04:24]line НДС 12% : 0.00 [09:04:24]line Наличными: 0.00 [09:04:24]line Безнал.: 0.00 [09:04:24]line Место: АЗС № 114 "Партнер Нефть" [09:04:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:04:24]line СНО: Общий режим [09:04:24]line Чек 15 19.10.2024 09:04 [09:04:24]line Смена: 527 ФФД: 1.0 [09:04:24]line ЗНМ: 0300000086 [09:04:24]line РНМ: 0000000000091680 [09:04:24]line Версия ККМ: 001 [09:04:24]line Талоны: ТК ГПНА Online [09:04:24]line 30121604 [09:04:24]line ФМ: 0000000000871843 [09:04:24]line ФД: 82518 [09:04:24]line ФПД: 229416151283968 [09:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090423&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82518&fm=229416151283968&tin=02508201610067®Number=0000000000091680&sum=0 [09:04:25]written 0, free lines is 4095 [09:04:25]OFD Sender: Processing packet 82518 [packets to send 254, broken 253] [09:04:25]ProducePacketName [09:04:25]name=ofd_packets/00082518 [09:04:25]OFD Sender: To server: pG, [09:04:25]CommunicateWithHost lk.salyk.kg:30040 [09:04:25]ConnectInit lk.salyk.kg [09:04:25]Write to MH i2c: 01 00 00 E3 02 E5 [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: 01 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: 01 07 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 D3 0C CB [09:04:25]RasterBufferAndPrint [09:04:25]line [09:04:25]line [09:04:25]line [09:04:25]line [09:04:25]line [09:04:25]written 0, free lines is 3289 [09:04:25]MH_Cut [09:04:25]Write to MH i2c: D1 01 00 EA 02 01 BE [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: D1 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: D1 01 00 [09:04:25]MH_I2C_Read... [09:04:25]Read from MH i2c: D1 01 00 EA 02 00 BD [09:04:25]Write to MH i2c: 01 00 00 EB 02 ED [09:04:25]Write i2c OK [09:04:25]MH_I2C_Read... [09:04:26]Connected sock=10 [09:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 4E AC 08 01 54 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 17 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 42 01 00 35 04 06 00 D0 A7 1C 33 F9 00 3E 25 FB 15 8E B5 8A 24 [09:04:26]*** Cut start [09:04:26]*** Partial cut [09:04:26]*** CUTSNS_PIN = 1 [09:04:26]*** CUTSNS_PIN = 0 [09:04:26]*** Brake cut motor [09:04:27]Read from MH i2c: 01 [09:04:27]MH_I2C_Read... [09:04:27]*** Stop cut motor [09:04:27]*** Cut end [09:04:27]Read from MH i2c: 01 07 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [09:04:27]process_action close_receipt done [09:04:27]requested_data is exist [09:04:27]produce_requested_data [09:04:27]requested_item fm.sn is exist - process it [09:04:27]wFMCommunicate request_size=4 [09:04:27]MH_SAM_APDU [09:04:27]CAPDU: 80 11 00 00 [09:04:27]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:27]Read from MH i2c: E2 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 17 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BA [09:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:04:27]wFMCommunicate OK [09:04:27]requested_item fd.num is exist - process it [09:04:27]SAM_PROTO_GetFieldsCounters [09:04:27]wFMCommunicate request_size=4 [09:04:27]MH_SAM_APDU [09:04:27]CAPDU: 80 13 00 00 [09:04:27]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:27]Read from MH i2c: E2 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 62 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 62 00 ED 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 56 42 01 00 0E 04 04 00 0F 02 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 61 [09:04: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 56 42 01 00 0E 04 04 00 0F 02 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 [09:04:27]wFMCommunicate OK [09:04:27]SAM_PROTO_GetFieldsCounters done [09:04:27]requested_item shift.num is exist - process it [09:04:27]requested_item shift.opened is exist - process it [09:04:27]req_shift_opened [09:04:27]FM_GetShiftState [09:04:27]SAM_PROTO_GetShiftState [09:04:27]wFMCommunicate request_size=4 [09:04:27]MH_SAM_APDU [09:04:27]CAPDU: 80 13 01 00 [09:04:27]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [09:04:27]Write i2c OK [09:04:27]MH_I2C_Read... [09:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6F 6B 47 00 04 3D 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 31 38 34 33 10 04 04 00 56 42 01 00 F4 03 04 00 50 1B 13 67 B6 04 01 00 00 3C C9 95 BE E2 B1 E1 55 [09:04:27]CommunicateWithHost err = 0 [09:04:27]CheckOFDResponse [09:04:27]1017 (14) - 77093643461234 [09:04:27]1041 (16) - 0000000000871843 [09:04:27]1040 (4) - 82518 [09:04:27]1012 (4) - 19.10.2024 02:37 [09:04:27]1206 (1) - 0 [09:04:27]OFD Sender: Remove packet 82518 [09:04:27]ProducePacketName [09:04:27]name=ofd_packets/00082518 [09:04:27]NVStorageDeleteData [09:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:27]Read from MH i2c: E2 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 0E 00 [09:04:27]MH_I2C_Read... [09:04:27]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 6F [09:04:27]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:04:27]wFMCommunicate OK [09:04:27]SAM_PROTO_GetShiftState done [09:04:27]FM_GetShiftState done [09:04:27]req_shift_opened done [09:04:27]requested_item shift.open_date is exist - process it [09:04:27]req_shift_open_date [09:04:27]req_shift_open_date done [09:04:27]produce_requested_data done [09:04:27]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82518,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:04:27]process_action_free close_receipt [09:04:27]json_value_free [09:04:27]json_value_free done [09:04:27]process_json_proto returns [09:04:27]Send response to host [09:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82518,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:04:27]free response buf [09:04:27]execute_script done [09:04:27]execute_script returns [09:04:27]free content buf [09:04:27]Sock 9.Close socket [09:04:27]Sock 9.Thread stoped [09:04:27]OFD Sender: No OFD packet to send [09:04:31]recv_with_timeout no data received [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:45]recv_with_timeout no data received [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:56]recv_with_timeout no data received [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]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:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:33]accept exits with 8 [09:07:33]New connection [09:07:33]New thread 3067280740 created [09:07:33]Thread 3067137380 joined [09:07:33]Waiting for new connection... [09:07:33] Sock 8.Parse request [09:07:33]Sock 8.Check first char [09:07:33]Sock 8.First char is OK [09:07:33]request: POST /json_proto HTTP/1.0 [09:07:33]Method: POST [09:07:33]URL: /json_proto [09:07:33]Method is POST - this is cgi request [09:07:33]url: /json_proto [09:07:33]query_string will be loaded in cgi processing [09:07:33]execute_cgi json_proto POST (null) [09:07:33]execute_cgi path=json_proto method=POST [09:07:33]POST find Content-Length [09:07:33]Host: 172.17.44.67:8080 [09:07:33]Content-Length: 806 [09:07:33]Content-Type: application/json [09:07:33] [09:07:33]POST finish read [09:07:33]Found Content-Length = 806 [09:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:33]execute_script... [09:07: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 : (1)919009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:33]POST & json_proto [09:07:33]process_json_proto [09:07:33]json parsed OK: [09:07:33]protocol is kg_v1.0 [09:07:33]action value=close_receipt [09:07:33]process_action close_receipt [09:07:33]cmd_close_receipt [09:07:33]MH_GetDate [09:07:33]Write to MH i2c: F0 00 00 EF 02 E0 [09:07:33]Write i2c OK [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 09 00 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 09 00 EF 02 00 D6 76 13 67 F1 C7 6B 64 36 [09:07:33]GetLastDocTimeStamp 1729328663 [09:07:33]current date 1729328854 [09:07:33]FM_GetShiftState [09:07:33]SAM_PROTO_GetShiftState [09:07:33]wFMCommunicate request_size=4 [09:07:33]MH_SAM_APDU [09:07:33]CAPDU: 80 13 01 00 [09:07:33]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [09:07:33]Write i2c OK [09:07:33]MH_I2C_Read... [09:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:33]Read from MH i2c: E2 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: E2 0E 00 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 71 [09:07:33]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:07:33]wFMCommunicate OK [09:07:33]SAM_PROTO_GetShiftState done [09:07:33]FM_GetShiftState done [09:07:33]opened in 1729298811 [09:07:33]opened+sec_in_day 1729385211 [09:07:33]quantity*price = 0 [09:07:33]sum+1 = 1 [09:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 16 19.10.2024 09:07 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203046 ФМ: 0000000000871843 ФД: 82519 ФПД: 15901868286740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090734&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82519&fm=15901868286740&tin=02508201610067®Number=0000000000091680&sum=0 [09:07:35]StoreToDocumentArchive [09:07:35]shift 527 fd 82519 [09:07:35]save to /storage/0527/doc_00082519 [09:07:35]save last doc name /storage/0527/doc_00082519 to /storage/kkm_last_doc_name [09:07:35]save OK [09:07:35]Clear old archive folders... [09:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:07:35]tlvbuf is 006B3AD0 [09:07:35]SAM_PROTO_ClearQueue [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 09 00 00 [09:07:35]Write to MH i2c: E2 08 00 FD 02 80 09 00 00 00 00 00 00 71 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]SAM_PROTO_ClearQueue done [09:07:35]KKMCreateOFDPacket [09:07:35]OFDProtocolAddRootSTLVToBuf [09:07:35]FM_MakeSignedData [09:07:35]FM_MakeSignedData [09:07:35]SAM_PROTO_SignData [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 01 02 [09:07:35]Write to MH i2c: E2 08 00 FE 02 80 0D 01 02 00 00 00 00 79 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]wFMCommunicate request_size=255 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D6 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 42 01 [09:07:35]Write to MH i2c: E2 02 01 FF 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D6 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 42 01 00 00 66 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]wFMCommunicate request_size=16 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0E 76 71 35 E3 14 [09:07:35]Write to MH i2c: E2 13 00 00 03 80 0D 02 02 0B 00 00 35 04 06 00 0E 76 71 35 E3 14 00 00 F3 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 03 02 [09:07:35]Write to MH i2c: E2 08 00 01 03 80 0D 03 02 00 00 00 00 7F [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0B 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0B 00 01 03 00 5A 47 5D 1F F9 CB D8 C8 90 00 01 [09:07:35]RAPDU: 5A 47 5D 1F F9 CB D8 C8 90 00 [09:07:35]wFMCommunicate OK [09:07:35]SAM_PROTO_SignData done [09:07:35]FM_MakeSignedData done [09:07:35]CreateOFDProtocolMessage [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 11 00 00 [09:07:35]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 17 00 [09:07:35]MH_I2C_Read... [09:07:35]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 31 38 34 33 90 00 D1 [09:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:07:35]wFMCommunicate OK [09:07:35]CreateOFDProtocolMessage done [09:07:35]OFDSenderStorePacket 82519 [09:07:35]StoreOFDPacket docnum=82519 [09:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 1D 87 0D 01 0C F9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D6 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 42 01 00 35 04 06 00 0E 76 71 35 E3 14 5A 47 5D 1F F9 CB D8 C8 [09:07:35]CheckFolder [09:07:35]dirname=/storage/ofd_packets [09:07:35]CheckFolder done [09:07:35]ProducePacketName [09:07:35]name=ofd_packets/00082519 [09:07:35]NVStorageSaveData ofd_packets/00082519 [09:07:35]File name is /storage/ofd_packets/00082519 [09:07:35]Write 307 bytes [09:07:35]NVStorageSaveData done [09:07:35]OFDSenderStorePacket done [09:07:35]KKMCreateOFDPacket done [09:07:35]NVStorageSaveData kkm_last_timestamp [09:07:35]File name is /storage/kkm_last_timestamp [09:07:35]Write 4 bytes [09:07:35]NVStorageSaveData done [09:07:35]ExternCall_PrintAddStr [09:07:35]wPrintStart [09:07:35]Write to MH i2c: 01 00 00 03 03 06 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 07 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [09:07:35]RasterBufferAndPrint [09:07:35]line Счет N : (1)919009 [09:07:35]line ИНН: 02508201610067 [09:07:35]line Контрольно-Кассовый Чек [09:07:35]line ПРОДАЖА [09:07:35]line ТРК (МРК, ГНК) : 21 [09:07:35]line Товар: 2710194800 [09:07:35]line D-Energy ДТ-К-2 [09:07:35]line 10.000 * 0.00 [09:07:35]line = 0.00 [09:07:35]line НДС 12% НСП 1% [09:07:35]line > о реализуемом товаре [09:07:35]line ИТОГО: 0.00 [09:07:35]line НСП 1% : 0.00 [09:07:35]line НДС 12% : 0.00 [09:07:35]line Наличными: 0.00 [09:07:35]line Безнал.: 0.00 [09:07:35]line Место: АЗС № 114 "Партнер Нефть" [09:07:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:07:35]line СНО: Общий режим [09:07:35]line Чек 16 19.10.2024 09:07 [09:07:35]line Смена: 527 ФФД: 1.0 [09:07:35]line ЗНМ: 0300000086 [09:07:35]line РНМ: 0000000000091680 [09:07:35]line Версия ККМ: 001 [09:07:35]line Талоны: Топливные Талоны [09:07:35]line 2203046 [09:07:35]line ФМ: 0000000000871843 [09:07:35]line ФД: 82519 [09:07:35]line ФПД: 15901868286740 [09:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090734&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82519&fm=15901868286740&tin=02508201610067®Number=0000000000091680&sum=0 [09:07:35]OFD Sender: Processing packet 82519 [packets to send 254, broken 253] [09:07:35]ProducePacketName [09:07:35]name=ofd_packets/00082519 [09:07:35]OFD Sender: To server: pG, [09:07:35]CommunicateWithHost lk.salyk.kg:30040 [09:07:35]ConnectInit lk.salyk.kg [09:07:35]written 0, free lines is 4095 [09:07:36]Write to MH i2c: 01 00 00 2D 03 30 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 F1 0C 34 [09:07:36]RasterBufferAndPrint [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]written 0, free lines is 3318 [09:07:36]MH_Cut [09:07:36]Write to MH i2c: D1 01 00 34 03 01 09 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 01 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 01 00 34 03 00 08 [09:07:36]Write to MH i2c: 01 00 00 35 03 38 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:37]*** Cut start [09:07:37]*** Partial cut [09:07:37]*** CUTSNS_PIN = 1 [09:07:37]*** CUTSNS_PIN = 0 [09:07:37]Connected sock=11 [09:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 1D 87 0D 01 0C F9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D6 76 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 42 01 00 35 04 06 00 0E 76 71 35 E3 14 5A 47 5D 1F F9 CB D8 C8 [09:07:37]*** Brake cut motor [09:07:37]Read from MH i2c: 01 [09:07:37]MH_I2C_Read... [09:07:37]*** Stop cut motor [09:07:37]*** Cut end [09:07:37]Read from MH i2c: 01 07 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FF 0F 4D [09:07:37]process_action close_receipt done [09:07:37]requested_data is exist [09:07:37]produce_requested_data [09:07:37]requested_item fm.sn is exist - process it [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 11 00 00 [09:07:37]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 05 [09:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:07:37]wFMCommunicate OK [09:07:37]requested_item fd.num is exist - process it [09:07:37]SAM_PROTO_GetFieldsCounters [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 13 00 00 [09:07:37]Write to MH i2c: E2 08 00 37 03 80 13 00 00 00 00 00 00 B6 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3E 93 47 00 0C 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 31 38 34 33 10 04 04 00 57 42 01 00 F4 03 04 00 0F 1C 13 67 B6 04 01 00 00 5D B8 11 00 C6 2C C6 57 [09:07:37]CommunicateWithHost err = 0 [09:07:37]CheckOFDResponse [09:07:37]1017 (14) - 77093643461234 [09:07:37]1041 (16) - 0000000000871843 [09:07:37]1040 (4) - 82519 [09:07:37]1012 (4) - 19.10.2024 02:40 [09:07:37]1206 (1) - 0 [09:07:37]OFD Sender: Remove packet 82519 [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00082519 [09:07:37]NVStorageDeleteData [09:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 62 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 62 00 37 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 57 42 01 00 0E 04 04 00 0F 02 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 B0 [09:07: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 57 42 01 00 0E 04 04 00 0F 02 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 [09:07:37]wFMCommunicate OK [09:07:37]SAM_PROTO_GetFieldsCounters done [09:07:37]requested_item shift.num is exist - process it [09:07:37]requested_item shift.opened is exist - process it [09:07:37]req_shift_opened [09:07:37]FM_GetShiftState [09:07:37]SAM_PROTO_GetShiftState [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 13 01 00 [09:07:37]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 BA [09:07:38]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:07:38]wFMCommunicate OK [09:07:38]SAM_PROTO_GetShiftState done [09:07:38]FM_GetShiftState done [09:07:38]req_shift_opened done [09:07:38]requested_item shift.open_date is exist - process it [09:07:38]req_shift_open_date [09:07:38]req_shift_open_date done [09:07:38]produce_requested_data done [09:07:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82519,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:07:38]process_action_free close_receipt [09:07:38]json_value_free [09:07:38]json_value_free done [09:07:38]process_json_proto returns [09:07:38]Send response to host [09:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82519,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:07:38]free response buf [09:07:38]execute_script done [09:07:38]execute_script returns [09:07:38]free content buf [09:07:38]Sock 8.Close socket [09:07:38]Sock 8.Thread stoped [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:47]recv_with_timeout no data received [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]recv_with_timeout no data received [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:11]recv_with_timeout no data received [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]accept exits with 10 [09:09:28]New connection [09:09:28]New thread 3067137380 created [09:09:28]Thread 3067280740 joined [09:09:28]Waiting for new connection... [09:09:28] Sock 10.Parse request [09:09:28]Sock 10.Check first char [09:09:28]Sock 10.First char is OK [09:09:28]request: POST /json_proto HTTP/1.0 [09:09:28]Method: POST [09:09:28]URL: /json_proto [09:09:28]Method is POST - this is cgi request [09:09:28]url: /json_proto [09:09:28]query_string will be loaded in cgi processing [09:09:28]execute_cgi json_proto POST (null) [09:09:28]execute_cgi path=json_proto method=POST [09:09:28]POST find Content-Length [09:09:28]Host: 172.17.44.67:8080 [09:09:28]Content-Length: 806 [09:09:28]Content-Type: application/json [09:09:28] [09:09:28]POST finish read [09:09:28]Found Content-Length = 806 [09:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203012", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:28]execute_script... [09:09: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)919010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203012", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:28]POST & json_proto [09:09:28]process_json_proto [09:09:28]json parsed OK: [09:09:28]protocol is kg_v1.0 [09:09:28]action value=close_receipt [09:09:28]process_action close_receipt [09:09:28]cmd_close_receipt [09:09:28]MH_GetDate [09:09:28]Write to MH i2c: F0 00 00 39 03 2B [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 09 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 09 00 39 03 00 49 77 13 67 F1 C7 6B 64 F5 [09:09:28]GetLastDocTimeStamp 1729328854 [09:09:28]current date 1729328969 [09:09:28]FM_GetShiftState [09:09:28]SAM_PROTO_GetShiftState [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 13 01 00 [09:09:28]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 BC [09:09:28]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_GetShiftState done [09:09:28]FM_GetShiftState done [09:09:28]opened in 1729298811 [09:09:28]opened+sec_in_day 1729385211 [09:09:28]quantity*price = 0 [09:09:28]sum+1 = 1 [09:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 17 19.10.2024 09:09 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203012 ФМ: 0000000000871843 ФД: 82520 ФПД: 83288248201385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090929&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82520&fm=83288248201385&tin=02508201610067®Number=0000000000091680&sum=0 [09:09:29]StoreToDocumentArchive [09:09:29]shift 527 fd 82520 [09:09:29]save to /storage/0527/doc_00082520 [09:09:29]save last doc name /storage/0527/doc_00082520 to /storage/kkm_last_doc_name [09:09:29]save OK [09:09:29]Clear old archive folders... [09:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:09:29]tlvbuf is 00706FC0 [09:09:29]SAM_PROTO_ClearQueue [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 09 00 00 [09:09:29]Write to MH i2c: E2 08 00 47 03 80 09 00 00 00 00 00 00 BC [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 03 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [09:09:29]RAPDU: 90 00 [09:09:29]wFMCommunicate OK [09:09:29]SAM_PROTO_ClearQueue done [09:09:29]KKMCreateOFDPacket [09:09:29]OFDProtocolAddRootSTLVToBuf [09:09:29]FM_MakeSignedData [09:09:29]FM_MakeSignedData [09:09:29]SAM_PROTO_SignData [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 0D 01 02 [09:09:29]Write to MH i2c: E2 08 00 48 03 80 0D 01 02 00 00 00 00 C4 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 03 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [09:09:29]RAPDU: 90 00 [09:09:29]wFMCommunicate OK [09:09:29]wFMCommunicate request_size=255 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 49 77 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 42 01 [09:09:29]Write to MH i2c: E2 02 01 49 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 49 77 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 42 01 00 00 95 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=16 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4B C0 0E 72 B0 A9 [09:09:30]Write to MH i2c: E2 13 00 4A 03 80 0D 02 02 0B 00 00 35 04 06 00 4B C0 0E 72 B0 A9 00 00 00 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 03 02 [09:09:30]Write to MH i2c: E2 08 00 4B 03 80 0D 03 02 00 00 00 00 C9 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 4B 03 00 9B DD 68 BA 2A 51 B1 D3 90 00 63 [09:09:30]RAPDU: 9B DD 68 BA 2A 51 B1 D3 90 00 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_SignData done [09:09:30]FM_MakeSignedData done [09:09:30]CreateOFDProtocolMessage [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 11 00 00 [09:09:30]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 [09:09:30]MH_I2C_Read... [09:09:30]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 31 38 34 33 90 00 1B [09:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:30]wFMCommunicate OK [09:09:30]CreateOFDProtocolMessage done [09:09:30]OFDSenderStorePacket 82520 [09:09:30]StoreOFDPacket docnum=82520 [09:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 D0 DC 0D 01 11 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 49 77 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 42 01 00 35 04 06 00 4B C0 0E 72 B0 A9 9B DD 68 BA 2A 51 B1 D3 [09:09:30]CheckFolder [09:09:30]dirname=/storage/ofd_packets [09:09:30]CheckFolder done [09:09:30]ProducePacketName [09:09:30]name=ofd_packets/00082520 [09:09:30]NVStorageSaveData ofd_packets/00082520 [09:09:30]File name is /storage/ofd_packets/00082520 [09:09:30]Write 307 bytes [09:09:30]NVStorageSaveData done [09:09:30]OFDSenderStorePacket done [09:09:30]KKMCreateOFDPacket done [09:09:30]NVStorageSaveData kkm_last_timestamp [09:09:30]File name is /storage/kkm_last_timestamp [09:09:30]Write 4 bytes [09:09:30]NVStorageSaveData done [09:09:30]ExternCall_PrintAddStr [09:09:30]wPrintStart [09:09:30]Write to MH i2c: 01 00 00 4D 03 50 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [09:09:30]RasterBufferAndPrint [09:09:30]line Счет N : (1)919010 [09:09:30]line ИНН: 02508201610067 [09:09:30]line Контрольно-Кассовый Чек [09:09:30]line ПРОДАЖА [09:09:30]line ТРК (МРК, ГНК) : 21 [09:09:30]line Товар: 2710194800 [09:09:30]line D-Energy ДТ-К-2 [09:09:30]line 30.000 * 0.00 [09:09:30]line = 0.00 [09:09:30]line НДС 12% НСП 1% [09:09:30]line > о реализуемом товаре [09:09:30]line ИТОГО: 0.00 [09:09:30]line НСП 1% : 0.00 [09:09:30]line НДС 12% : 0.00 [09:09:30]line Наличными: 0.00 [09:09:30]line Безнал.: 0.00 [09:09:30]line Место: АЗС № 114 "Партнер Нефть" [09:09:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:09:30]line СНО: Общий режим [09:09:30]line Чек 17 19.10.2024 09:09 [09:09:30]line Смена: 527 ФФД: 1.0 [09:09:30]line ЗНМ: 0300000086 [09:09:30]line РНМ: 0000000000091680 [09:09:30]line Версия ККМ: 001 [09:09:30]line Талоны: Топливные Талоны [09:09:30]line 2203012 [09:09:30]line ФМ: 0000000000871843 [09:09:30]line ФД: 82520 [09:09:30]line ФПД: 83288248201385 [09:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T090929&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82520&fm=83288248201385&tin=02508201610067®Number=0000000000091680&sum=0 [09:09:30]OFD Sender: Processing packet 82520 [packets to send 254, broken 253] [09:09:30]ProducePacketName [09:09:30]name=ofd_packets/00082520 [09:09:30]OFD Sender: To server: pG, [09:09:30]CommunicateWithHost lk.salyk.kg:30040 [09:09:30]ConnectInit lk.salyk.kg [09:09:30]written 0, free lines is 4095 [09:09:31]Write to MH i2c: 01 00 00 77 03 7A [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 F0 0C 7D [09:09:31]RasterBufferAndPrint [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]written 0, free lines is 3318 [09:09:31]MH_Cut [09:09:31]Write to MH i2c: D1 01 00 7E 03 01 53 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 7E 03 00 52 [09:09:31]Write to MH i2c: 01 00 00 7F 03 82 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Connected sock=11 [09:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 D0 DC 0D 01 11 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 49 77 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 42 01 00 35 04 06 00 4B C0 0E 72 B0 A9 9B DD 68 BA 2A 51 B1 D3 [09:09:31]*** Cut start [09:09:31]*** Partial cut [09:09:31]*** CUTSNS_PIN = 1 [09:09:31]*** CUTSNS_PIN = 0 [09:09:32]*** Brake cut motor [09:09:32]Read from MH i2c: 01 [09:09:32]MH_I2C_Read... [09:09:32]*** Stop cut motor [09:09:32]*** Cut end [09:09:32]Read from MH i2c: 01 07 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [09:09:32]process_action close_receipt done [09:09:32]requested_data is exist [09:09:32]produce_requested_data [09:09:32]requested_item fm.sn is exist - process it [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 11 00 00 [09:09:32]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 17 00 [09:09:32]MH_I2C_Read... [09:09:32]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 31 38 34 33 90 00 4F [09:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:32]wFMCommunicate OK [09:09:32]requested_item fd.num is exist - process it [09:09:32]SAM_PROTO_GetFieldsCounters [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 13 00 00 [09:09:32]Write to MH i2c: E2 08 00 81 03 80 13 00 00 00 00 00 00 00 [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 62 00 [09:09:32]MH_I2C_Read... [09:09:32]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 58 42 01 00 0E 04 04 00 0F 02 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 FE [09:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 58 42 01 00 0E 04 04 00 0F 02 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 [09:09:32]wFMCommunicate OK [09:09:32]SAM_PROTO_GetFieldsCounters done [09:09:32]requested_item shift.num is exist - process it [09:09:32]requested_item shift.opened is exist - process it [09:09:32]req_shift_opened [09:09:32]FM_GetShiftState [09:09:32]SAM_PROTO_GetShiftState [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 13 01 00 [09:09:32]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 0E 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 04 [09:09:32]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:09:32]wFMCommunicate OK [09:09:32]SAM_PROTO_GetShiftState done [09:09:32]FM_GetShiftState done [09:09:32]req_shift_opened done [09:09:32]requested_item shift.open_date is exist - process it [09:09:32]req_shift_open_date [09:09:32]req_shift_open_date done [09:09:32]produce_requested_data done [09:09:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82520,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:09:32]process_action_free close_receipt [09:09:32]json_value_free [09:09:32]json_value_free done [09:09:32]process_json_proto returns [09:09:32]Send response to host [09:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82520,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:09:32]free response buf [09:09:32]execute_script done [09:09:32]execute_script returns [09:09:32]free content buf [09:09:32]Sock 10.Close socket [09:09:32]Sock 10.Thread stoped [09:09:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 70 27 47 00 28 4B 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 31 38 34 33 10 04 04 00 58 42 01 00 F4 03 04 00 81 1C 13 67 B6 04 01 00 00 AA 19 96 88 39 EC 4C 6B [09:09:33]CommunicateWithHost err = 0 [09:09:33]CheckOFDResponse [09:09:33]1017 (14) - 77093643461234 [09:09:33]1041 (16) - 0000000000871843 [09:09:33]1040 (4) - 82520 [09:09:33]1012 (4) - 19.10.2024 02:42 [09:09:33]1206 (1) - 0 [09:09:33]OFD Sender: Remove packet 82520 [09:09:33]ProducePacketName [09:09:33]name=ofd_packets/00082520 [09:09:33]NVStorageDeleteData [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:45]recv_with_timeout no data received [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:57]recv_with_timeout no data received [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]recv_with_timeout no data received [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]recv_with_timeout no data received [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:04]recv_with_timeout no data received [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:42]accept exits with 8 [09:13:42]New connection [09:13:42]New thread 3067280740 created [09:13:42]Thread 3067137380 joined [09:13:42]Waiting for new connection... [09:13:42] Sock 8.Parse request [09:13:42]Sock 8.Check first char [09:13:42]Sock 8.First char is OK [09:13:42]request: POST /json_proto HTTP/1.0 [09:13:42]Method: POST [09:13:42]URL: /json_proto [09:13:42]Method is POST - this is cgi request [09:13:42]url: /json_proto [09:13:42]query_string will be loaded in cgi processing [09:13:42]execute_cgi json_proto POST (null) [09:13:42]execute_cgi path=json_proto method=POST [09:13:42]POST find Content-Length [09:13:42]Host: 172.17.44.67:8080 [09:13:42]Content-Length: 754 [09:13:42]Content-Type: application/json [09:13:42] [09:13:42]POST finish read [09:13:42]Found Content-Length = 754 [09:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:42]execute_script... [09:13: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 : (1)919011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:42]POST & json_proto [09:13:42]process_json_proto [09:13:42]json parsed OK: [09:13:42]protocol is kg_v1.0 [09:13:42]action value=close_receipt [09:13:42]process_action close_receipt [09:13:42]cmd_close_receipt [09:13:42]MH_GetDate [09:13:42]Write to MH i2c: F0 00 00 83 03 75 [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: F0 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: F0 09 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: F0 09 00 83 03 00 47 78 13 67 F1 C7 6B 64 3E [09:13:42]GetLastDocTimeStamp 1729328969 [09:13:42]current date 1729329223 [09:13:42]FM_GetShiftState [09:13:42]SAM_PROTO_GetShiftState [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 13 01 00 [09:13:42]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0E 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 06 [09:13:42]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:13:42]wFMCommunicate OK [09:13:42]SAM_PROTO_GetShiftState done [09:13:42]FM_GetShiftState done [09:13:42]opened in 1729298811 [09:13:42]opened+sec_in_day 1729385211 [09:13:42]quantity*price = 0 [09:13:42]sum+1 = 1 [09:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 18 19.10.2024 09:13 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096582 ФМ: 0000000000871843 ФД: 82521 ФПД: 61117616779300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T091343&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82521&fm=61117616779300&tin=02508201610067®Number=0000000000091680&sum=0 [09:13:43]StoreToDocumentArchive [09:13:43]shift 527 fd 82521 [09:13:43]save to /storage/0527/doc_00082521 [09:13:43]save last doc name /storage/0527/doc_00082521 to /storage/kkm_last_doc_name [09:13:43]save OK [09:13:43]Clear old archive folders... [09:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:43]tlvbuf is 0070F930 [09:13:43]SAM_PROTO_ClearQueue [09:13:43]wFMCommunicate request_size=4 [09:13:43]MH_SAM_APDU [09:13:43]CAPDU: 80 09 00 00 [09:13:43]Write to MH i2c: E2 08 00 91 03 80 09 00 00 00 00 00 00 06 [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:43]Read from MH i2c: E2 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 03 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [09:13:43]RAPDU: 90 00 [09:13:43]wFMCommunicate OK [09:13:43]SAM_PROTO_ClearQueue done [09:13:43]KKMCreateOFDPacket [09:13:43]OFDProtocolAddRootSTLVToBuf [09:13:43]FM_MakeSignedData [09:13:43]FM_MakeSignedData [09:13:43]SAM_PROTO_SignData [09:13:43]wFMCommunicate request_size=4 [09:13:43]MH_SAM_APDU [09:13:43]CAPDU: 80 0D 01 02 [09:13:43]Write to MH i2c: E2 08 00 92 03 80 0D 01 02 00 00 00 00 0E [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:43]Read from MH i2c: E2 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 03 00 [09:13:43]MH_I2C_Read... [09:13:43]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [09:13:43]RAPDU: 90 00 [09:13:43]wFMCommunicate OK [09:13:43]wFMCommunicate request_size=255 [09:13:43]MH_SAM_APDU [09:13:43]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 78 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 42 01 00 35 04 06 00 37 [09:13:43]Write to MH i2c: E2 02 01 93 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 78 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 42 01 00 35 04 06 00 37 00 00 B7 [09:13:43]Write i2c OK [09:13:43]MH_I2C_Read... [09:13:44]OFD Sender: No OFD packet to send [09:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:44]Read from MH i2c: E2 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 03 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [09:13:44]RAPDU: 90 00 [09:13:44]wFMCommunicate OK [09:13:44]wFMCommunicate request_size=10 [09:13:44]MH_SAM_APDU [09:13:44]CAPDU: 80 0D 02 02 05 96 0D D6 70 24 [09:13:44]Write to MH i2c: E2 0D 00 94 03 80 0D 02 02 05 00 96 0D D6 70 24 00 00 28 [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:44]Read from MH i2c: E2 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 03 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [09:13:44]RAPDU: 90 00 [09:13:44]wFMCommunicate OK [09:13:44]wFMCommunicate request_size=4 [09:13:44]MH_SAM_APDU [09:13:44]CAPDU: 80 0D 03 02 [09:13:44]Write to MH i2c: E2 08 00 95 03 80 0D 03 02 00 00 00 00 13 [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:44]Read from MH i2c: E2 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 0B 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 0B 00 95 03 00 8D 72 98 8A 28 75 04 8E 90 00 64 [09:13:44]RAPDU: 8D 72 98 8A 28 75 04 8E 90 00 [09:13:44]wFMCommunicate OK [09:13:44]SAM_PROTO_SignData done [09:13:44]FM_MakeSignedData done [09:13:44]CreateOFDProtocolMessage [09:13:44]wFMCommunicate request_size=4 [09:13:44]MH_SAM_APDU [09:13:44]CAPDU: 80 11 00 00 [09:13:44]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:44]Read from MH i2c: E2 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 17 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [09:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:13:44]wFMCommunicate OK [09:13:44]CreateOFDProtocolMessage done [09:13:44]OFDSenderStorePacket 82521 [09:13:44]StoreOFDPacket docnum=82521 [09:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 47 07 01 D6 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 78 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 42 01 00 35 04 06 00 37 96 0D D6 70 24 8D 72 98 8A 28 75 04 8E [09:13:44]CheckFolder [09:13:44]dirname=/storage/ofd_packets [09:13:44]CheckFolder done [09:13:44]ProducePacketName [09:13:44]name=ofd_packets/00082521 [09:13:44]NVStorageSaveData ofd_packets/00082521 [09:13:44]File name is /storage/ofd_packets/00082521 [09:13:44]Write 301 bytes [09:13:44]NVStorageSaveData done [09:13:44]OFDSenderStorePacket done [09:13:44]KKMCreateOFDPacket done [09:13:44]NVStorageSaveData kkm_last_timestamp [09:13:44]File name is /storage/kkm_last_timestamp [09:13:44]Write 4 bytes [09:13:44]NVStorageSaveData done [09:13:44]ExternCall_PrintAddStr [09:13:44]wPrintStart [09:13:44]Write to MH i2c: 01 00 00 97 03 9A [09:13:44]Write i2c OK [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: 01 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: 01 07 00 [09:13:44]MH_I2C_Read... [09:13:44]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [09:13:44]RasterBufferAndPrint [09:13:44]line Счет N : (1)919011 [09:13:44]line ИНН: 02508201610067 [09:13:44]line Контрольно-Кассовый Чек [09:13:44]line ПРОДАЖА [09:13:44]line ТРК (МРК, ГНК) : 12 [09:13:44]line Товар: 2710124500 [09:13:44]line Аи-95-К-5 [09:13:44]line 20.000 * 0.00 [09:13:44]line = 0.00 [09:13:44]line НДС 12% НСП 1% [09:13:44]line > о реализуемом товаре [09:13:44]line ИТОГО: 0.00 [09:13:44]line НСП 1% : 0.00 [09:13:44]line НДС 12% : 0.00 [09:13:44]line Наличными: 0.00 [09:13:44]line Безнал.: 0.00 [09:13:44]line Место: АЗС № 114 "Партнер Нефть" [09:13:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:13:44]line СНО: Общий режим [09:13:44]line Чек 18 19.10.2024 09:13 [09:13:44]line Смена: 527 ФФД: 1.0 [09:13:44]line ЗНМ: 0300000086 [09:13:44]line РНМ: 0000000000091680 [09:13:44]line Версия ККМ: 001 [09:13:44]line Талоны: ТК ГПНА Online [09:13:44]line 30096582 [09:13:44]line ФМ: 0000000000871843 [09:13:44]line ФД: 82521 [09:13:44]line ФПД: 61117616779300 [09:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T091343&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82521&fm=61117616779300&tin=02508201610067®Number=0000000000091680&sum=0 [09:13:44]OFD Sender: Processing packet 82521 [packets to send 254, broken 253] [09:13:44]ProducePacketName [09:13:44]name=ofd_packets/00082521 [09:13:44]OFD Sender: To server: pG, [09:13:44]CommunicateWithHost lk.salyk.kg:30040 [09:13:44]ConnectInit lk.salyk.kg [09:13:44]written 0, free lines is 4095 [09:13:45]Write to MH i2c: 01 00 00 C1 03 C4 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: 01 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: 01 07 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 D9 0C B0 [09:13:45]RasterBufferAndPrint [09:13:45]line [09:13:45]line [09:13:45]line [09:13:45]line [09:13:45]line [09:13:45]written 0, free lines is 3293 [09:13:45]MH_Cut [09:13:45]Write to MH i2c: D1 01 00 C8 03 01 9D [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: D1 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: D1 01 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: D1 01 00 C8 03 00 9C [09:13:45]Write to MH i2c: 01 00 00 C9 03 CC [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** Cut start [09:13:45]*** Partial cut [09:13:45]*** CUTSNS_PIN = 1 [09:13:45]*** CUTSNS_PIN = 0 [09:13:46]*** Brake cut motor [09:13:46]Read from MH i2c: 01 [09:13:46]MH_I2C_Read... [09:13:46]*** Stop cut motor [09:13:46]*** Cut end [09:13:46]Read from MH i2c: 01 07 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [09:13:46]process_action close_receipt done [09:13:46]requested_data is exist [09:13:46]produce_requested_data [09:13:46]requested_item fm.sn is exist - process it [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 11 00 00 [09:13:46]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 17 00 [09:13:46]MH_I2C_Read... [09:13:46]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 31 38 34 33 90 00 99 [09:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:13:46]wFMCommunicate OK [09:13:46]requested_item fd.num is exist - process it [09:13:46]SAM_PROTO_GetFieldsCounters [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 13 00 00 [09:13:46]Write to MH i2c: E2 08 00 CB 03 80 13 00 00 00 00 00 00 4A [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 62 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 62 00 CB 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 59 42 01 00 0E 04 04 00 0F 02 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 4C [09:13: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 59 42 01 00 0E 04 04 00 0F 02 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 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_GetFieldsCounters done [09:13:46]requested_item shift.num is exist - process it [09:13:46]requested_item shift.opened is exist - process it [09:13:46]req_shift_opened [09:13:46]FM_GetShiftState [09:13:46]SAM_PROTO_GetShiftState [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 13 01 00 [09:13:46]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0E 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 4E [09:13:46]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_GetShiftState done [09:13:46]FM_GetShiftState done [09:13:46]req_shift_opened done [09:13:46]requested_item shift.open_date is exist - process it [09:13:46]req_shift_open_date [09:13:46]req_shift_open_date done [09:13:46]produce_requested_data done [09:13:46]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82521,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:13:46]process_action_free close_receipt [09:13:46]json_value_free [09:13:46]json_value_free done [09:13:46]process_json_proto returns [09:13:46]Send response to host [09:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82521,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:13:46]free response buf [09:13:46]execute_script done [09:13:46]execute_script returns [09:13:46]free content buf [09:13:46]Sock 8.Close socket [09:13:46]Sock 8.Thread stoped [09:13:50]recv_with_timeout no data received [09:14:03]recv_with_timeout no data received [09:14:16]recv_with_timeout no data received [09:14:30]recv_with_timeout no data received [09:15:56]ConnectInit Can't connect to host [09:15:56]CommunicateWithHost connect error [09:15:56]CommunicateWithHost err = -1 [09:15:56]OFD Sender: Server communicate error [09:16:01]OFD Sender: Processing packet 82521 [packets to send 254, broken 253] [09:16:01]ProducePacketName [09:16:01]name=ofd_packets/00082521 [09:16:01]OFD Sender: To server: pG, [09:16:01]CommunicateWithHost lk.salyk.kg:30040 [09:16:01]ConnectInit lk.salyk.kg [09:16:02]Connected sock=10 [09:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 47 07 01 D6 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 78 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 42 01 00 35 04 06 00 37 96 0D D6 70 24 8D 72 98 8A 28 75 04 8E [09:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7F 09 47 00 E9 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 31 38 34 33 10 04 04 00 59 42 01 00 F4 03 04 00 08 1E 13 67 B6 04 01 00 00 3F 10 DE 62 A8 D7 F7 9D [09:16:03]CommunicateWithHost err = 0 [09:16:03]CheckOFDResponse [09:16:03]1017 (14) - 77093643461234 [09:16:03]1041 (16) - 0000000000871843 [09:16:03]1040 (4) - 82521 [09:16:03]1012 (4) - 19.10.2024 02:48 [09:16:03]1206 (1) - 0 [09:16:03]OFD Sender: Remove packet 82521 [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00082521 [09:16:03]NVStorageDeleteData [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:20]accept exits with 9 [09:22:20]New connection [09:22:20]New thread 3067137380 created [09:22:20]Thread 3067280740 joined [09:22:20]Waiting for new connection... [09:22:20] Sock 9.Parse request [09:22:20]Sock 9.Check first char [09:22:20]Sock 9.First char is OK [09:22:20]request: POST /json_proto HTTP/1.0 [09:22:20]Method: POST [09:22:20]URL: /json_proto [09:22:20]Method is POST - this is cgi request [09:22:20]url: /json_proto [09:22:20]query_string will be loaded in cgi processing [09:22:20]execute_cgi json_proto POST (null) [09:22:20]execute_cgi path=json_proto method=POST [09:22:20]POST find Content-Length [09:22:20]Host: 172.17.44.67:8080 [09:22:20]Content-Length: 682 [09:22:20]Content-Type: application/json [09:22:20] [09:22:20]POST finish read [09:22:20]Found Content-Length = 682 [09:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:20]execute_script... [09:22: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 : (1)919012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:20]POST & json_proto [09:22:20]process_json_proto [09:22:20]json parsed OK: [09:22:20]protocol is kg_v1.0 [09:22:20]action value=close_receipt [09:22:20]process_action close_receipt [09:22:20]cmd_close_receipt [09:22:20]MH_GetDate [09:22:20]Write to MH i2c: F0 00 00 CD 03 BF [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: F0 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: F0 09 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: F0 09 00 CD 03 00 4D 7A 13 67 F1 C7 6B 64 90 [09:22:20]GetLastDocTimeStamp 1729329223 [09:22:20]current date 1729329741 [09:22:20]FM_GetShiftState [09:22:20]SAM_PROTO_GetShiftState [09:22:20]wFMCommunicate request_size=4 [09:22:20]MH_SAM_APDU [09:22:20]CAPDU: 80 13 01 00 [09:22:20]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [09:22:20]Write i2c OK [09:22:20]MH_I2C_Read... [09:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:20]Read from MH i2c: E2 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: E2 0E 00 [09:22:20]MH_I2C_Read... [09:22:20]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 50 [09:22:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:22:20]wFMCommunicate OK [09:22:20]SAM_PROTO_GetShiftState done [09:22:20]FM_GetShiftState done [09:22:20]opened in 1729298811 [09:22:20]opened+sec_in_day 1729385211 [09:22:20]quantity*price = 100015 [09:22:20]sum+1 = 100017 [09:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 19 19.10.2024 09:22 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82522 ФПД: 109130854818804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092221&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82522&fm=109130854818804&tin=02508201610067®Number=0000000000091680&sum=100000 [09:22:22]StoreToDocumentArchive [09:22:22]shift 527 fd 82522 [09:22:22]save to /storage/0527/doc_00082522 [09:22:22]save last doc name /storage/0527/doc_00082522 to /storage/kkm_last_doc_name [09:22:22]save OK [09:22:22]Clear old archive folders... [09:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:22]tlvbuf is 00710160 [09:22:22]SAM_PROTO_ClearQueue [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 09 00 00 [09:22:22]Write to MH i2c: E2 08 00 DB 03 80 09 00 00 00 00 00 00 50 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_ClearQueue done [09:22:22]KKMCreateOFDPacket [09:22:22]OFDProtocolAddRootSTLVToBuf [09:22:22]FM_MakeSignedData [09:22:22]FM_MakeSignedData [09:22:22]SAM_PROTO_SignData [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 01 02 [09:22:22]Write to MH i2c: E2 08 00 DC 03 80 0D 01 02 00 00 00 00 58 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=255 [09:22:22]MH_SAM_APDU [09:22:22]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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4D 7A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 42 01 00 35 04 06 00 63 [09:22:22]Write to MH i2c: E2 02 01 DD 03 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4D 7A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 42 01 00 35 04 06 00 63 00 00 43 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=10 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 02 02 05 41 01 D5 E3 F4 [09:22:22]Write to MH i2c: E2 0D 00 DE 03 80 0D 02 02 05 00 41 01 D5 E3 F4 00 00 53 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [09:22:22]RAPDU: 90 00 [09:22:22]wFMCommunicate OK [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 0D 03 02 [09:22:22]Write to MH i2c: E2 08 00 DF 03 80 0D 03 02 00 00 00 00 5D [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0B 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0B 00 DF 03 00 CF 7E 24 2A 53 89 13 CD 90 00 B5 [09:22:22]RAPDU: CF 7E 24 2A 53 89 13 CD 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_SignData done [09:22:22]FM_MakeSignedData done [09:22:22]CreateOFDProtocolMessage [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 11 00 00 [09:22:22]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 17 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AF [09:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:22]wFMCommunicate OK [09:22:22]CreateOFDProtocolMessage done [09:22:22]OFDSenderStorePacket 82522 [09:22:22]StoreOFDPacket docnum=82522 [09:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3C 86 07 01 28 BD 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4D 7A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 42 01 00 35 04 06 00 63 41 01 D5 E3 F4 CF 7E 24 2A 53 89 13 CD [09:22:22]CheckFolder [09:22:22]dirname=/storage/ofd_packets [09:22:22]CheckFolder done [09:22:22]ProducePacketName [09:22:22]name=ofd_packets/00082522 [09:22:22]NVStorageSaveData ofd_packets/00082522 [09:22:22]File name is /storage/ofd_packets/00082522 [09:22:22]Write 301 bytes [09:22:22]NVStorageSaveData done [09:22:22]OFDSenderStorePacket done [09:22:22]KKMCreateOFDPacket done [09:22:22]NVStorageSaveData kkm_last_timestamp [09:22:22]File name is /storage/kkm_last_timestamp [09:22:22]Write 4 bytes [09:22:22]NVStorageSaveData done [09:22:22]ExternCall_PrintAddStr [09:22:22]wPrintStart [09:22:22]Write to MH i2c: 01 00 00 E1 03 E4 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: 01 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: 01 07 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [09:22:22]RasterBufferAndPrint [09:22:22]line Счет N : (1)919012 [09:22:22]line ИНН: 02508201610067 [09:22:22]line Контрольно-Кассовый Чек [09:22:22]line ПРОДАЖА [09:22:22]line ТРК (МРК, ГНК) : 22 [09:22:22]line Товар: 2710124130 [09:22:22]line Аи-92-К-4 [09:22:22]line 14.950 * 66.90 [09:22:22]line = 1000.16 [09:22:22]line НДС 12% НСП 1% [09:22:22]line > о реализуемом товаре [09:22:22]line ОКРУГЛЕНИЕ: -0.16 [09:22:22]line ИТОГО: 1000.00 [09:22:22]line Внесено: 1000.00 [09:22:22]line СДАЧА: 0.00 [09:22:22]line НСП 1% : 8.85 [09:22:22]line НДС 12% : 106.21 [09:22:22]line Наличными: 1000.00 [09:22:22]line Безнал.: 0.00 [09:22:22]line Место: АЗС № 114 "Партнер Нефть" [09:22:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:22:22]line СНО: Общий режим [09:22:22]line Чек 19 19.10.2024 09:22 [09:22:22]line Смена: 527 ФФД: 1.0 [09:22:22]line ЗНМ: 0300000086 [09:22:22]line РНМ: 0000000000091680 [09:22:22]line Версия ККМ: 001 [09:22:22]line ФМ: 0000000000871843 [09:22:22]line ФД: 82522 [09:22:22]line ФПД: 109130854818804 [09:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092221&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82522&fm=109130854818804&tin=02508201610067®Number=0000000000091680&sum=100000 [09:22:22]OFD Sender: Processing packet 82522 [packets to send 254, broken 253] [09:22:22]ProducePacketName [09:22:22]name=ofd_packets/00082522 [09:22:22]OFD Sender: To server: pG, [09:22:22]CommunicateWithHost lk.salyk.kg:30040 [09:22:22]ConnectInit lk.salyk.kg [09:22:22]written 0, free lines is 4095 [09:22:23]Write to MH i2c: 01 00 00 0C 04 10 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 D3 0C F6 [09:22:23]RasterBufferAndPrint [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]line [09:22:23]written 0, free lines is 3289 [09:22:23]MH_Cut [09:22:23]Write to MH i2c: D1 01 00 13 04 01 E9 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 01 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: D1 01 00 13 04 00 E8 [09:22:23]Write to MH i2c: 01 00 00 14 04 18 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]Connected sock=10 [09: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 31 38 34 33 0F 01 00 00 3C 86 07 01 28 BD 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 4D 7A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 42 01 00 35 04 06 00 63 41 01 D5 E3 F4 CF 7E 24 2A 53 89 13 CD [09:22:24]*** Cut start [09:22:24]*** Partial cut [09:22:24]*** CUTSNS_PIN = 1 [09:22:24]*** CUTSNS_PIN = 0 [09:22:24]*** Brake cut motor [09:22:24]Read from MH i2c: 01 [09:22:24]MH_I2C_Read... [09:22:24]*** Stop cut motor [09:22:24]*** Cut end [09:22:24]Read from MH i2c: 01 07 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 FF 0F 2D [09:22:24]process_action close_receipt done [09:22:24]requested_data is exist [09:22:24]produce_requested_data [09:22:24]requested_item fm.sn is exist - process it [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 11 00 00 [09:22:24]Write to MH i2c: E2 08 00 15 04 80 11 00 00 00 00 00 00 93 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 15 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E5 [09:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:24]wFMCommunicate OK [09:22:24]requested_item fd.num is exist - process it [09:22:24]SAM_PROTO_GetFieldsCounters [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 13 00 00 [09:22:24]Write to MH i2c: E2 08 00 16 04 80 13 00 00 00 00 00 00 96 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 62 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 62 00 16 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5A 42 01 00 0E 04 04 00 0F 02 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 9C [09: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5A 42 01 00 0E 04 04 00 0F 02 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 [09:22:24]wFMCommunicate OK [09:22:24]SAM_PROTO_GetFieldsCounters done [09:22:24]requested_item shift.num is exist - process it [09:22:24]requested_item shift.opened is exist - process it [09:22:24]req_shift_opened [09:22:24]FM_GetShiftState [09:22:24]SAM_PROTO_GetShiftState [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 13 01 00 [09:22:24]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 91 C3 47 00 0D 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 31 38 34 33 10 04 04 00 5A 42 01 00 F4 03 04 00 86 1F 13 67 B6 04 01 00 00 2E 7E 2C 34 88 66 2D 69 [09:22:25]CommunicateWithHost err = 0 [09:22:25]CheckOFDResponse [09:22:25]1017 (14) - 77093643461234 [09:22:25]1041 (16) - 0000000000871843 [09:22:25]1040 (4) - 82522 [09:22:25]1012 (4) - 19.10.2024 02:55 [09:22:25]1206 (1) - 0 [09:22:25]OFD Sender: Remove packet 82522 [09:22:25]ProducePacketName [09:22:25]name=ofd_packets/00082522 [09:22:25]NVStorageDeleteData [09:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 0E 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 9A [09:22:25]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:22:25]wFMCommunicate OK [09:22:25]SAM_PROTO_GetShiftState done [09:22:25]FM_GetShiftState done [09:22:25]req_shift_opened done [09:22:25]requested_item shift.open_date is exist - process it [09:22:25]req_shift_open_date [09:22:25]req_shift_open_date done [09:22:25]produce_requested_data done [09:22:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82522,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:22:25]process_action_free close_receipt [09:22:25]json_value_free [09:22:25]json_value_free done [09:22:25]process_json_proto returns [09:22:25]Send response to host [09:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82522,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:22:25]free response buf [09:22:25]execute_script done [09:22:25]execute_script returns [09:22:25]free content buf [09:22:25]Sock 9.Close socket [09:22:25]Sock 9.Thread stoped [09:22:25]OFD Sender: No OFD packet to send [09:22:29]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]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:17]accept exits with 8 [09:28:17]New connection [09:28:17]New thread 3067280740 created [09:28:17]Thread 3067137380 joined [09:28:17]Waiting for new connection... [09:28:17] Sock 8.Parse request [09:28:17]Sock 8.Check first char [09:28:17]Sock 8.First char is OK [09:28:17]request: POST /json_proto HTTP/1.0 [09:28:17]Method: POST [09:28:17]URL: /json_proto [09:28:17]Method is POST - this is cgi request [09:28:17]url: /json_proto [09:28:17]query_string will be loaded in cgi processing [09:28:17]execute_cgi json_proto POST (null) [09:28:17]execute_cgi path=json_proto method=POST [09:28:17]POST find Content-Length [09:28:17]Host: 172.17.44.67:8080 [09:28:17]Content-Length: 806 [09:28:17]Content-Type: application/json [09:28:17] [09:28:17]POST finish read [09:28:17]Found Content-Length = 806 [09:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:17]execute_script... [09:28: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 : (1)919013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203025", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:17]POST & json_proto [09:28:17]process_json_proto [09:28:17]json parsed OK: [09:28:17]protocol is kg_v1.0 [09:28:17]action value=close_receipt [09:28:17]process_action close_receipt [09:28:17]cmd_close_receipt [09:28:17]MH_GetDate [09:28:17]Write to MH i2c: F0 00 00 18 04 0B [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: F0 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: F0 09 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: F0 09 00 18 04 00 B2 7B 13 67 F1 C7 6B 64 42 [09:28:17]GetLastDocTimeStamp 1729329741 [09:28:17]current date 1729330098 [09:28:17]FM_GetShiftState [09:28:17]SAM_PROTO_GetShiftState [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 13 01 00 [09:28:17]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 9C [09:28:17]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_GetShiftState done [09:28:17]FM_GetShiftState done [09:28:17]opened in 1729298811 [09:28:17]opened+sec_in_day 1729385211 [09:28:17]quantity*price = 0 [09:28:17]sum+1 = 1 [09:28:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 20 19.10.2024 09:28 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203025 ФМ: 0000000000871843 ФД: 82523 ФПД: 228503916268022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092818&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82523&fm=228503916268022&tin=02508201610067®Number=0000000000091680&sum=0 [09:28:18]StoreToDocumentArchive [09:28:18]shift 527 fd 82523 [09:28:18]save to /storage/0527/doc_00082523 [09:28:18]save last doc name /storage/0527/doc_00082523 to /storage/kkm_last_doc_name [09:28:18]save OK [09:28:18]Clear old archive folders... [09:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:28:18]tlvbuf is 0070B0D0 [09:28:18]SAM_PROTO_ClearQueue [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 09 00 00 [09:28:18]Write to MH i2c: E2 08 00 26 04 80 09 00 00 00 00 00 00 9C [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]SAM_PROTO_ClearQueue done [09:28:19]KKMCreateOFDPacket [09:28:19]OFDProtocolAddRootSTLVToBuf [09:28:19]FM_MakeSignedData [09:28:19]FM_MakeSignedData [09:28:19]SAM_PROTO_SignData [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 01 02 [09:28:19]Write to MH i2c: E2 08 00 27 04 80 0D 01 02 00 00 00 00 A4 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=255 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 B2 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 42 01 [09:28:19]Write to MH i2c: E2 02 01 28 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 B2 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 42 01 00 00 1F [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=16 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF D2 B6 C2 49 F6 [09:28:19]Write to MH i2c: E2 13 00 29 04 80 0D 02 02 0B 00 00 35 04 06 00 CF D2 B6 C2 49 F6 00 00 54 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [09:28:19]RAPDU: 90 00 [09:28:19]wFMCommunicate OK [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 0D 03 02 [09:28:19]Write to MH i2c: E2 08 00 2A 04 80 0D 03 02 00 00 00 00 A9 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 0B 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 0B 00 2A 04 00 89 70 AB 47 70 D4 D8 D1 90 00 82 [09:28:19]RAPDU: 89 70 AB 47 70 D4 D8 D1 90 00 [09:28:19]wFMCommunicate OK [09:28:19]SAM_PROTO_SignData done [09:28:19]FM_MakeSignedData done [09:28:19]CreateOFDProtocolMessage [09:28:19]wFMCommunicate request_size=4 [09:28:19]MH_SAM_APDU [09:28:19]CAPDU: 80 11 00 00 [09:28:19]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:19]Read from MH i2c: E2 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 17 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FB [09:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:28:19]wFMCommunicate OK [09:28:19]CreateOFDProtocolMessage done [09:28:19]OFDSenderStorePacket 82523 [09:28:19]StoreOFDPacket docnum=82523 [09:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 C8 4C 0D 01 21 F7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 B2 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 42 01 00 35 04 06 00 CF D2 B6 C2 49 F6 89 70 AB 47 70 D4 D8 D1 [09:28:19]CheckFolder [09:28:19]dirname=/storage/ofd_packets [09:28:19]CheckFolder done [09:28:19]ProducePacketName [09:28:19]name=ofd_packets/00082523 [09:28:19]NVStorageSaveData ofd_packets/00082523 [09:28:19]File name is /storage/ofd_packets/00082523 [09:28:19]Write 307 bytes [09:28:19]NVStorageSaveData done [09:28:19]OFDSenderStorePacket done [09:28:19]KKMCreateOFDPacket done [09:28:19]NVStorageSaveData kkm_last_timestamp [09:28:19]File name is /storage/kkm_last_timestamp [09:28:19]Write 4 bytes [09:28:19]NVStorageSaveData done [09:28:19]ExternCall_PrintAddStr [09:28:19]wPrintStart [09:28:19]Write to MH i2c: 01 00 00 2C 04 30 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [09:28:19]RasterBufferAndPrint [09:28:19]line Счет N : (1)919013 [09:28:19]line ИНН: 02508201610067 [09:28:19]line Контрольно-Кассовый Чек [09:28:19]line ПРОДАЖА [09:28:19]line ТРК (МРК, ГНК) : 21 [09:28:19]line Товар: 2710194800 [09:28:19]line D-Energy ДТ-К-2 [09:28:19]line 40.000 * 0.00 [09:28:19]line = 0.00 [09:28:19]line НДС 12% НСП 1% [09:28:19]line > о реализуемом товаре [09:28:19]line ИТОГО: 0.00 [09:28:19]line НСП 1% : 0.00 [09:28:19]line НДС 12% : 0.00 [09:28:19]line Наличными: 0.00 [09:28:19]line Безнал.: 0.00 [09:28:19]line Место: АЗС № 114 "Партнер Нефть" [09:28:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:28:19]line СНО: Общий режим [09:28:19]line Чек 20 19.10.2024 09:28 [09:28:19]line Смена: 527 ФФД: 1.0 [09:28:19]line ЗНМ: 0300000086 [09:28:19]line РНМ: 0000000000091680 [09:28:19]line Версия ККМ: 001 [09:28:19]line Талоны: Топливные Талоны [09:28:19]line 2203025 [09:28:19]line ФМ: 0000000000871843 [09:28:19]line ФД: 82523 [09:28:19]line ФПД: 228503916268022 [09:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092818&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82523&fm=228503916268022&tin=02508201610067®Number=0000000000091680&sum=0 [09:28:19]OFD Sender: Processing packet 82523 [packets to send 254, broken 253] [09:28:19]ProducePacketName [09:28:19]name=ofd_packets/00082523 [09:28:19]OFD Sender: To server: pG, [09:28:19]CommunicateWithHost lk.salyk.kg:30040 [09:28:19]ConnectInit lk.salyk.kg [09:28:19]written 0, free lines is 4095 [09:28:20]Write to MH i2c: 01 00 00 56 04 5A [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 F6 0C 63 [09:28:20]RasterBufferAndPrint [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]line [09:28:20]written 0, free lines is 3324 [09:28:20]MH_Cut [09:28:20]Write to MH i2c: D1 01 00 5D 04 01 33 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 01 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: D1 01 00 5D 04 00 32 [09:28:20]Write to MH i2c: 01 00 00 5E 04 62 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]Connected sock=10 [09:28:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 C8 4C 0D 01 21 F7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 B2 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 42 01 00 35 04 06 00 CF D2 B6 C2 49 F6 89 70 AB 47 70 D4 D8 D1 [09:28:21]*** Cut start [09:28:21]*** Partial cut [09:28:21]*** CUTSNS_PIN = 1 [09:28:21]*** CUTSNS_PIN = 0 [09:28:21]*** Brake cut motor [09:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 05 49 47 00 8F 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 31 38 34 33 10 04 04 00 5B 42 01 00 F4 03 04 00 EA 20 13 67 B6 04 01 00 00 D7 EC 7C 50 89 2A E1 E7 [09:28:21]CommunicateWithHost err = 0 [09:28:21]CheckOFDResponse [09:28:21]1017 (14) - 77093643461234 [09:28:21]1041 (16) - 0000000000871843 [09:28:21]1040 (4) - 82523 [09:28:21]1012 (4) - 19.10.2024 03:00 [09:28:21]1206 (1) - 0 [09:28:21]OFD Sender: Remove packet 82523 [09:28:21]ProducePacketName [09:28:21]name=ofd_packets/00082523 [09:28:21]NVStorageDeleteData [09:28:21]Read from MH i2c: 01 [09:28:21]MH_I2C_Read... [09:28:21]*** Stop cut motor [09:28:21]*** Cut end [09:28:21]Read from MH i2c: 01 07 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [09:28:21]process_action close_receipt done [09:28:21]requested_data is exist [09:28:21]produce_requested_data [09:28:21]requested_item fm.sn is exist - process it [09:28:21]wFMCommunicate request_size=4 [09:28:21]MH_SAM_APDU [09:28:21]CAPDU: 80 11 00 00 [09:28:21]Write to MH i2c: E2 08 00 5F 04 80 11 00 00 00 00 00 00 DD [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:21]Read from MH i2c: E2 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 17 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 17 00 5F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [09:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:28:21]wFMCommunicate OK [09:28:21]requested_item fd.num is exist - process it [09:28:21]SAM_PROTO_GetFieldsCounters [09:28:21]wFMCommunicate request_size=4 [09:28:21]MH_SAM_APDU [09:28:21]CAPDU: 80 13 00 00 [09:28:21]Write to MH i2c: E2 08 00 60 04 80 13 00 00 00 00 00 00 E0 [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:21]Read from MH i2c: E2 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 62 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 62 00 60 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5B 42 01 00 0E 04 04 00 0F 02 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 EA [09:28: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5B 42 01 00 0E 04 04 00 0F 02 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 [09:28:21]wFMCommunicate OK [09:28:21]SAM_PROTO_GetFieldsCounters done [09:28:21]requested_item shift.num is exist - process it [09:28:21]requested_item shift.opened is exist - process it [09:28:21]req_shift_opened [09:28:21]FM_GetShiftState [09:28:21]SAM_PROTO_GetShiftState [09:28:21]wFMCommunicate request_size=4 [09:28:21]MH_SAM_APDU [09:28:21]CAPDU: 80 13 01 00 [09:28:21]Write to MH i2c: E2 08 00 61 04 80 13 01 00 00 00 00 00 E2 [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:21]Read from MH i2c: E2 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 61 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E4 [09:28:21]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:28:21]wFMCommunicate OK [09:28:21]SAM_PROTO_GetShiftState done [09:28:21]FM_GetShiftState done [09:28:21]req_shift_opened done [09:28:21]requested_item shift.open_date is exist - process it [09:28:21]req_shift_open_date [09:28:21]req_shift_open_date done [09:28:21]produce_requested_data done [09:28:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82523,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:28:21]process_action_free close_receipt [09:28:21]json_value_free [09:28:21]json_value_free done [09:28:21]process_json_proto returns [09:28:21]Send response to host [09:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82523,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:28:21]free response buf [09:28:21]execute_script done [09:28:21]execute_script returns [09:28:21]free content buf [09:28:21]Sock 8.Close socket [09:28:21]Sock 8.Thread stoped [09:28:21]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:16]accept exits with 9 [09:29:16]New connection [09:29:16]New thread 3067137380 created [09:29:16]Thread 3067280740 joined [09:29:16]Waiting for new connection... [09:29:16] Sock 9.Parse request [09:29:16]Sock 9.Check first char [09:29:16]Sock 9.First char is OK [09:29:16]request: POST /json_proto HTTP/1.0 [09:29:16]Method: POST [09:29:16]URL: /json_proto [09:29:16]Method is POST - this is cgi request [09:29:16]url: /json_proto [09:29:16]query_string will be loaded in cgi processing [09:29:16]execute_cgi json_proto POST (null) [09:29:16]execute_cgi path=json_proto method=POST [09:29:16]POST find Content-Length [09:29:16]Host: 172.17.44.67:8080 [09:29:16]Content-Length: 682 [09:29:16]Content-Type: application/json [09:29:16] [09:29:16]POST finish read [09:29:16]Found Content-Length = 682 [09:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:16]execute_script... [09:29: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 : (1)919014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:16]POST & json_proto [09:29:16]process_json_proto [09:29:16]json parsed OK: [09:29:16]protocol is kg_v1.0 [09:29:16]action value=close_receipt [09:29:16]process_action close_receipt [09:29:16]cmd_close_receipt [09:29:16]MH_GetDate [09:29:16]Write to MH i2c: F0 00 00 62 04 55 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 09 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: F0 09 00 62 04 00 EC 7B 13 67 F1 C7 6B 64 C6 [09:29:16]GetLastDocTimeStamp 1729330098 [09:29:16]current date 1729330156 [09:29:16]FM_GetShiftState [09:29:16]SAM_PROTO_GetShiftState [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 13 01 00 [09:29:16]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E6 [09:29:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:29:16]wFMCommunicate OK [09:29:16]SAM_PROTO_GetShiftState done [09:29:16]FM_GetShiftState done [09:29:16]opened in 1729298811 [09:29:16]opened+sec_in_day 1729385211 [09:29:16]quantity*price = 200043 [09:29:16]sum+1 = 200044 [09:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 21 19.10.2024 09:29 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82524 ФПД: 220648699036550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82524&fm=220648699036550&tin=02508201610067®Number=0000000000091680&sum=200000 [09:29:17]StoreToDocumentArchive [09:29:17]shift 527 fd 82524 [09:29:17]save to /storage/0527/doc_00082524 [09:29:17]save last doc name /storage/0527/doc_00082524 to /storage/kkm_last_doc_name [09:29:17]save OK [09:29:17]Clear old archive folders... [09:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:17]tlvbuf is 0070CA30 [09:29:17]SAM_PROTO_ClearQueue [09:29:17]wFMCommunicate request_size=4 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 09 00 00 [09:29:17]Write to MH i2c: E2 08 00 70 04 80 09 00 00 00 00 00 00 E6 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:17]Read from MH i2c: E2 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [09:29:17]RAPDU: 90 00 [09:29:17]wFMCommunicate OK [09:29:17]SAM_PROTO_ClearQueue done [09:29:17]KKMCreateOFDPacket [09:29:17]OFDProtocolAddRootSTLVToBuf [09:29:17]FM_MakeSignedData [09:29:17]FM_MakeSignedData [09:29:17]SAM_PROTO_SignData [09:29:17]wFMCommunicate request_size=4 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 0D 01 02 [09:29:17]Write to MH i2c: E2 08 00 71 04 80 0D 01 02 00 00 00 00 EE [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:17]Read from MH i2c: E2 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [09:29:17]RAPDU: 90 00 [09:29:17]wFMCommunicate OK [09:29:17]wFMCommunicate request_size=255 [09:29:17]MH_SAM_APDU [09:29:17]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 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 ED 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 42 01 00 35 04 06 00 C8 [09:29:17]Write to MH i2c: E2 02 01 72 04 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 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 ED 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 42 01 00 35 04 06 00 C8 00 00 92 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:17]Read from MH i2c: E2 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [09:29:17]RAPDU: 90 00 [09:29:17]wFMCommunicate OK [09:29:17]wFMCommunicate request_size=10 [09:29:17]MH_SAM_APDU [09:29:17]CAPDU: 80 0D 02 02 05 AD C7 53 83 86 [09:29:17]Write to MH i2c: E2 0D 00 73 04 80 0D 02 02 05 00 AD C7 53 83 86 00 00 CB [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [09:29:18]RAPDU: 90 00 [09:29:18]wFMCommunicate OK [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 0D 03 02 [09:29:18]Write to MH i2c: E2 08 00 74 04 80 0D 03 02 00 00 00 00 F3 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0B 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0B 00 74 04 00 B8 50 37 5B 73 04 C2 D8 90 00 9F [09:29:18]RAPDU: B8 50 37 5B 73 04 C2 D8 90 00 [09:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_SignData done [09:29:18]FM_MakeSignedData done [09:29:18]CreateOFDProtocolMessage [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 11 00 00 [09:29:18]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [09:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:29:18]wFMCommunicate OK [09:29:18]CreateOFDProtocolMessage done [09:29:18]OFDSenderStorePacket 82524 [09:29:18]StoreOFDPacket docnum=82524 [09:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7A 18 07 01 48 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 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 ED 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 42 01 00 35 04 06 00 C8 AD C7 53 83 86 B8 50 37 5B 73 04 C2 D8 [09:29:18]CheckFolder [09:29:18]dirname=/storage/ofd_packets [09:29:18]CheckFolder done [09:29:18]ProducePacketName [09:29:18]name=ofd_packets/00082524 [09:29:18]NVStorageSaveData ofd_packets/00082524 [09:29:18]File name is /storage/ofd_packets/00082524 [09:29:18]Write 301 bytes [09:29:18]NVStorageSaveData done [09:29:18]OFDSenderStorePacket done [09:29:18]KKMCreateOFDPacket done [09:29:18]NVStorageSaveData kkm_last_timestamp [09:29:18]File name is /storage/kkm_last_timestamp [09:29:18]Write 4 bytes [09:29:18]NVStorageSaveData done [09:29:18]ExternCall_PrintAddStr [09:29:18]wPrintStart [09:29:18]Write to MH i2c: 01 00 00 76 04 7A [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [09:29:18]RasterBufferAndPrint [09:29:18]line Счет N : (1)919014 [09:29:18]line ИНН: 02508201610067 [09:29:18]line Контрольно-Кассовый Чек [09:29:18]line ПРОДАЖА [09:29:18]line ТРК (МРК, ГНК) : 12 [09:29:18]line Товар: 2710124500 [09:29:18]line Аи-95-К-5 [09:29:18]line 26.960 * 74.20 [09:29:18]line = 2000.43 [09:29:18]line НДС 12% НСП 1% [09:29:18]line > о реализуемом товаре [09:29:18]line ОКРУГЛЕНИЕ: -0.43 [09:29:18]line ИТОГО: 2000.00 [09:29:18]line Внесено: 2000.00 [09:29:18]line СДАЧА: 0.00 [09:29:18]line НСП 1% : 17.70 [09:29:18]line НДС 12% : 212.43 [09:29:18]line Наличными: 2000.00 [09:29:18]line Безнал.: 0.00 [09:29:18]line Место: АЗС № 114 "Партнер Нефть" [09:29:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:29:18]line СНО: Общий режим [09:29:18]line Чек 21 19.10.2024 09:29 [09:29:18]line Смена: 527 ФФД: 1.0 [09:29:18]line ЗНМ: 0300000086 [09:29:18]line РНМ: 0000000000091680 [09:29:18]line Версия ККМ: 001 [09:29:18]line ФМ: 0000000000871843 [09:29:18]line ФД: 82524 [09:29:18]line ФПД: 220648699036550 [09:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T092917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82524&fm=220648699036550&tin=02508201610067®Number=0000000000091680&sum=200000 [09:29:18]OFD Sender: Processing packet 82524 [packets to send 254, broken 253] [09:29:18]ProducePacketName [09:29:18]name=ofd_packets/00082524 [09:29:18]OFD Sender: To server: pG, [09:29:18]CommunicateWithHost lk.salyk.kg:30040 [09:29:18]ConnectInit lk.salyk.kg [09:29:18]written 0, free lines is 4095 [09:29:18]Write to MH i2c: 01 00 00 A1 04 A5 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 D2 0C 8A [09:29:18]RasterBufferAndPrint [09:29:18]line [09:29:18]line [09:29:18]line [09:29:18]line [09:29:18]line [09:29:18]written 0, free lines is 3286 [09:29:18]MH_Cut [09:29:18]Write to MH i2c: D1 01 00 A8 04 01 7E [09:29:18]Connected sock=11 [09:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7A 18 07 01 48 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 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 ED 7B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 42 01 00 35 04 06 00 C8 AD C7 53 83 86 B8 50 37 5B 73 04 C2 D8 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: D1 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: D1 01 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: D1 01 00 A8 04 00 7D [09:29:18]Write to MH i2c: 01 00 00 A9 04 AD [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DA 9C 47 00 9D 3B 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 31 38 34 33 10 04 04 00 5C 42 01 00 F4 03 04 00 24 21 13 67 B6 04 01 00 00 5E 0B 0E A2 5E 74 23 12 [09:29:19]CommunicateWithHost err = 0 [09:29:19]CheckOFDResponse [09:29:19]1017 (14) - 77093643461234 [09:29:19]1041 (16) - 0000000000871843 [09:29:19]1040 (4) - 82524 [09:29:19]1012 (4) - 19.10.2024 03:01 [09:29:19]1206 (1) - 0 [09:29:19]OFD Sender: Remove packet 82524 [09:29:19]ProducePacketName [09:29:19]name=ofd_packets/00082524 [09:29:19]NVStorageDeleteData [09:29:19]*** Cut start [09:29:19]*** Partial cut [09:29:19]*** CUTSNS_PIN = 1 [09:29:19]*** CUTSNS_PIN = 0 [09:29:19]OFD Sender: No OFD packet to send [09:29:19]*** Brake cut motor [09:29:20]Read from MH i2c: 01 [09:29:20]MH_I2C_Read... [09:29:20]*** Stop cut motor [09:29:20]*** Cut end [09:29:20]Read from MH i2c: 01 07 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: 01 07 00 A9 04 00 00 00 00 00 FF 0F C2 [09:29:20]process_action close_receipt done [09:29:20]requested_data is exist [09:29:20]produce_requested_data [09:29:20]requested_item fm.sn is exist - process it [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 11 00 00 [09:29:20]Write to MH i2c: E2 08 00 AA 04 80 11 00 00 00 00 00 00 28 [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 17 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 17 00 AA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [09:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:29:20]wFMCommunicate OK [09:29:20]requested_item fd.num is exist - process it [09:29:20]SAM_PROTO_GetFieldsCounters [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 13 00 00 [09:29:20]Write to MH i2c: E2 08 00 AB 04 80 13 00 00 00 00 00 00 2B [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 62 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 62 00 AB 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5C 42 01 00 0E 04 04 00 0F 02 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 39 [09:29: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5C 42 01 00 0E 04 04 00 0F 02 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 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetFieldsCounters done [09:29:20]requested_item shift.num is exist - process it [09:29:20]requested_item shift.opened is exist - process it [09:29:20]req_shift_opened [09:29:20]FM_GetShiftState [09:29:20]SAM_PROTO_GetShiftState [09:29:20]wFMCommunicate request_size=4 [09:29:20]MH_SAM_APDU [09:29:20]CAPDU: 80 13 01 00 [09:29:20]Write to MH i2c: E2 08 00 AC 04 80 13 01 00 00 00 00 00 2D [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:20]Read from MH i2c: E2 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: E2 0E 00 AC 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 2F [09:29:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:29:20]wFMCommunicate OK [09:29:20]SAM_PROTO_GetShiftState done [09:29:20]FM_GetShiftState done [09:29:20]req_shift_opened done [09:29:20]requested_item shift.open_date is exist - process it [09:29:20]req_shift_open_date [09:29:20]req_shift_open_date done [09:29:20]produce_requested_data done [09:29:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82524,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:29:20]process_action_free close_receipt [09:29:20]json_value_free [09:29:20]json_value_free done [09:29:20]process_json_proto returns [09:29:20]Send response to host [09:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82524,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:29:20]free response buf [09:29:20]execute_script done [09:29:20]execute_script returns [09:29:20]free content buf [09:29:20]Sock 9.Close socket [09:29:20]Sock 9.Thread stoped [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:12]recv_with_timeout no data received [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [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:31]accept exits with 8 [09:38:31]New connection [09:38:31]New thread 3067280740 created [09:38:31]Thread 3067137380 joined [09:38:31]Waiting for new connection... [09:38:31] Sock 8.Parse request [09:38:31]Sock 8.Check first char [09:38:31]Sock 8.First char is OK [09:38:31]request: POST /json_proto HTTP/1.0 [09:38:31]Method: POST [09:38:31]URL: /json_proto [09:38:31]Method is POST - this is cgi request [09:38:31]url: /json_proto [09:38:31]query_string will be loaded in cgi processing [09:38:31]execute_cgi json_proto POST (null) [09:38:31]execute_cgi path=json_proto method=POST [09:38:31]POST find Content-Length [09:38:31]Host: 172.17.44.67:8080 [09:38:31]Content-Length: 754 [09:38:31]Content-Type: application/json [09:38:31] [09:38:31]POST finish read [09:38:31]Found Content-Length = 754 [09:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:31]execute_script... [09:38: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 : (1)919015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:31]POST & json_proto [09:38:31]process_json_proto [09:38:31]json parsed OK: [09:38:31]protocol is kg_v1.0 [09:38:31]action value=close_receipt [09:38:31]process_action close_receipt [09:38:31]cmd_close_receipt [09:38:31]MH_GetDate [09:38:31]Write to MH i2c: F0 00 00 AD 04 A0 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 09 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 09 00 AD 04 00 18 7E 13 67 F1 C7 6B 64 40 [09:38:31]GetLastDocTimeStamp 1729330157 [09:38:31]current date 1729330712 [09:38:31]FM_GetShiftState [09:38:31]SAM_PROTO_GetShiftState [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 13 01 00 [09:38:31]Write to MH i2c: E2 08 00 AE 04 80 13 01 00 00 00 00 00 2F [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 AE 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 31 [09:38:31]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_GetShiftState done [09:38:31]FM_GetShiftState done [09:38:31]opened in 1729298811 [09:38:31]opened+sec_in_day 1729385211 [09:38:31]quantity*price = 0 [09:38:31]sum+1 = 1 [09:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 22 19.10.2024 09:38 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100780 ФМ: 0000000000871843 ФД: 82525 ФПД: 146552200175545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T093832&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82525&fm=146552200175545&tin=02508201610067®Number=0000000000091680&sum=0 [09:38:32]StoreToDocumentArchive [09:38:32]shift 527 fd 82525 [09:38:32]save to /storage/0527/doc_00082525 [09:38:32]save last doc name /storage/0527/doc_00082525 to /storage/kkm_last_doc_name [09:38:32]save OK [09:38:32]Clear old archive folders... [09:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:32]tlvbuf is 00710990 [09:38:32]SAM_PROTO_ClearQueue [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 09 00 00 [09:38:32]Write to MH i2c: E2 08 00 BB 04 80 09 00 00 00 00 00 00 31 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_ClearQueue done [09:38:33]KKMCreateOFDPacket [09:38:33]OFDProtocolAddRootSTLVToBuf [09:38:33]FM_MakeSignedData [09:38:33]FM_MakeSignedData [09:38:33]SAM_PROTO_SignData [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 0D 01 02 [09:38:33]Write to MH i2c: E2 08 00 BC 04 80 0D 01 02 00 00 00 00 39 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=255 [09:38:33]MH_SAM_APDU [09:38:33]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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 18 7E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 42 01 00 35 04 06 00 85 [09:38:33]Write to MH i2c: E2 02 01 BD 04 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 18 7E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 42 01 00 35 04 06 00 85 00 00 A5 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=10 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 0D 02 02 05 49 D7 D5 1F B9 [09:38:33]Write to MH i2c: E2 0D 00 BE 04 80 0D 02 02 05 00 49 D7 D5 1F B9 00 00 13 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 0D 03 02 [09:38:33]Write to MH i2c: E2 08 00 BF 04 80 0D 03 02 00 00 00 00 3E [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0B 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0B 00 BF 04 00 29 C9 07 2A B7 36 DB 78 90 00 A2 [09:38:33]RAPDU: 29 C9 07 2A B7 36 DB 78 90 00 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_SignData done [09:38:33]FM_MakeSignedData done [09:38:33]CreateOFDProtocolMessage [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 11 00 00 [09:38:33]Write to MH i2c: E2 08 00 C0 04 80 11 00 00 00 00 00 00 3E [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 C0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [09:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:38:33]wFMCommunicate OK [09:38:33]CreateOFDProtocolMessage done [09:38:33]OFDSenderStorePacket 82525 [09:38:33]StoreOFDPacket docnum=82525 [09:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 1D 07 01 8F 34 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 18 7E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 42 01 00 35 04 06 00 85 49 D7 D5 1F B9 29 C9 07 2A B7 36 DB 78 [09:38:33]CheckFolder [09:38:33]dirname=/storage/ofd_packets [09:38:33]CheckFolder done [09:38:33]ProducePacketName [09:38:33]name=ofd_packets/00082525 [09:38:33]NVStorageSaveData ofd_packets/00082525 [09:38:33]File name is /storage/ofd_packets/00082525 [09:38:33]Write 301 bytes [09:38:33]NVStorageSaveData done [09:38:33]OFDSenderStorePacket done [09:38:33]KKMCreateOFDPacket done [09:38:33]NVStorageSaveData kkm_last_timestamp [09:38:33]File name is /storage/kkm_last_timestamp [09:38:33]Write 4 bytes [09:38:33]NVStorageSaveData done [09:38:33]ExternCall_PrintAddStr [09:38:33]wPrintStart [09:38:33]Write to MH i2c: 01 00 00 C1 04 C5 [09:38:33]OFD Sender: Processing packet 82525 [packets to send 254, broken 253] [09:38:33]ProducePacketName [09:38:33]name=ofd_packets/00082525 [09:38:33]OFD Sender: To server: pG, [09:38:33]CommunicateWithHost lk.salyk.kg:30040 [09:38:33]ConnectInit lk.salyk.kg [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [09:38:33]RasterBufferAndPrint [09:38:33]line Счет N : (1)919015 [09:38:33]line ИНН: 02508201610067 [09:38:33]line Контрольно-Кассовый Чек [09:38:33]line ПРОДАЖА [09:38:33]line ТРК (МРК, ГНК) : 11 [09:38:33]line Товар: 2710124130 [09:38:33]line Аи-92-К-4 [09:38:33]line 25.000 * 0.00 [09:38:33]line = 0.00 [09:38:33]line НДС 12% НСП 1% [09:38:33]line > о реализуемом товаре [09:38:33]line ИТОГО: 0.00 [09:38:33]line НСП 1% : 0.00 [09:38:33]line НДС 12% : 0.00 [09:38:33]line Наличными: 0.00 [09:38:33]line Безнал.: 0.00 [09:38:33]line Место: АЗС № 114 "Партнер Нефть" [09:38:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:38:33]line СНО: Общий режим [09:38:33]line Чек 22 19.10.2024 09:38 [09:38:33]line Смена: 527 ФФД: 1.0 [09:38:33]line ЗНМ: 0300000086 [09:38:33]line РНМ: 0000000000091680 [09:38:33]line Версия ККМ: 001 [09:38:33]line Талоны: ТК ГПНА Online [09:38:33]line 30100780 [09:38:33]line ФМ: 0000000000871843 [09:38:33]line ФД: 82525 [09:38:33]line ФПД: 146552200175545 [09:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T093832&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82525&fm=146552200175545&tin=02508201610067®Number=0000000000091680&sum=0 [09:38:33]written 0, free lines is 4095 [09:38:33]Write to MH i2c: 01 00 00 EB 04 EF [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 E6 0C E8 [09:38:33]RasterBufferAndPrint [09:38:33]line [09:38:33]line [09:38:33]line [09:38:33]line [09:38:33]line [09:38:33]written 0, free lines is 3309 [09:38:33]MH_Cut [09:38:33]Write to MH i2c: D1 01 00 F2 04 01 C8 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: D1 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: D1 01 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: D1 01 00 F2 04 00 C7 [09:38:33]Write to MH i2c: 01 00 00 F3 04 F7 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:34]*** Cut start [09:38:34]*** Partial cut [09:38:34]*** CUTSNS_PIN = 1 [09:38:34]*** CUTSNS_PIN = 0 [09:38:35]Connected sock=10 [09:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 1D 07 01 8F 34 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 18 7E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 42 01 00 35 04 06 00 85 49 D7 D5 1F B9 29 C9 07 2A B7 36 DB 78 [09:38:35]*** Brake cut motor [09:38:35]Read from MH i2c: 01 [09:38:35]MH_I2C_Read... [09:38:35]*** Stop cut motor [09:38:35]*** Cut end [09:38:35]Read from MH i2c: 01 07 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 FF 0F 0C [09:38:35]process_action close_receipt done [09:38:35]requested_data is exist [09:38:35]produce_requested_data [09:38:35]requested_item fm.sn is exist - process it [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 11 00 00 [09:38:35]Write to MH i2c: E2 08 00 F4 04 80 11 00 00 00 00 00 00 72 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 F4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [09:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:38:35]wFMCommunicate OK [09:38:35]requested_item fd.num is exist - process it [09:38:35]SAM_PROTO_GetFieldsCounters [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 13 00 00 [09:38:35]Write to MH i2c: E2 08 00 F5 04 80 13 00 00 00 00 00 00 75 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 62 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 62 00 F5 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5D 42 01 00 0E 04 04 00 0F 02 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 87 [09:38: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5D 42 01 00 0E 04 04 00 0F 02 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 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_GetFieldsCounters done [09:38:35]requested_item shift.num is exist - process it [09:38:35]requested_item shift.opened is exist - process it [09:38:35]req_shift_opened [09:38:35]FM_GetShiftState [09:38:35]SAM_PROTO_GetShiftState [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 13 01 00 [09:38:35]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0E 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 79 [09:38:35]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_GetShiftState done [09:38:35]FM_GetShiftState done [09:38:35]req_shift_opened done [09:38:35]requested_item shift.open_date is exist - process it [09:38:35]req_shift_open_date [09:38:35]req_shift_open_date done [09:38:35]produce_requested_data done [09:38:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82525,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:38:35]process_action_free close_receipt [09:38:35]json_value_free [09:38:35]json_value_free done [09:38:35]process_json_proto returns [09:38:35]Send response to host [09:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82525,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:38:35]free response buf [09:38:35]execute_script done [09:38:35]execute_script returns [09:38:35]free content buf [09:38:35]Sock 8.Close socket [09:38:35]Sock 8.Thread stoped [09:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6C 4F 47 00 84 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 31 38 34 33 10 04 04 00 5D 42 01 00 F4 03 04 00 51 23 13 67 B6 04 01 00 00 64 B1 29 27 5C 9A 0B B2 [09:38:36]CommunicateWithHost err = 0 [09:38:36]CheckOFDResponse [09:38:36]1017 (14) - 77093643461234 [09:38:36]1041 (16) - 0000000000871843 [09:38:36]1040 (4) - 82525 [09:38:36]1012 (4) - 19.10.2024 03:11 [09:38:36]1206 (1) - 0 [09:38:36]OFD Sender: Remove packet 82525 [09:38:36]ProducePacketName [09:38:36]name=ofd_packets/00082525 [09:38:36]NVStorageDeleteData [09:38:36]OFD Sender: No OFD packet to send [09:38:41]recv_with_timeout no data received [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:53]recv_with_timeout no data received [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:07]recv_with_timeout no data received [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:55]accept exits with 9 [09:43:55]New connection [09:43:55]New thread 3067137380 created [09:43:55]Thread 3067280740 joined [09:43:55]Waiting for new connection... [09:43:55] Sock 9.Parse request [09:43:55]Sock 9.Check first char [09:43:55]Sock 9.First char is OK [09:43:55]request: POST /json_proto HTTP/1.0 [09:43:55]Method: POST [09:43:55]URL: /json_proto [09:43:55]Method is POST - this is cgi request [09:43:55]url: /json_proto [09:43:55]query_string will be loaded in cgi processing [09:43:55]execute_cgi json_proto POST (null) [09:43:55]execute_cgi path=json_proto method=POST [09:43:55]POST find Content-Length [09:43:55]Host: 172.17.44.67:8080 [09:43:55]Content-Length: 806 [09:43:55]Content-Type: application/json [09:43:55] [09:43:55]POST finish read [09:43:55]Found Content-Length = 806 [09:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203007", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:55]execute_script... [09:43: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 : (1)919016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203007", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:55]POST & json_proto [09:43:55]process_json_proto [09:43:55]json parsed OK: [09:43:55]protocol is kg_v1.0 [09:43:55]action value=close_receipt [09:43:55]process_action close_receipt [09:43:55]cmd_close_receipt [09:43:55]MH_GetDate [09:43:55]Write to MH i2c: F0 00 00 F7 04 EA [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: F0 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: F0 09 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: F0 09 00 F7 04 00 5C 7F 13 67 F1 C7 6B 64 CF [09:43:55]GetLastDocTimeStamp 1729330712 [09:43:55]current date 1729331036 [09:43:55]FM_GetShiftState [09:43:55]SAM_PROTO_GetShiftState [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 01 00 [09:43:55]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7B [09:43:55]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetShiftState done [09:43:55]FM_GetShiftState done [09:43:55]opened in 1729298811 [09:43:55]opened+sec_in_day 1729385211 [09:43:55]quantity*price = 0 [09:43:55]sum+1 = 1 [09:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 23 19.10.2024 09:43 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203007 ФМ: 0000000000871843 ФД: 82526 ФПД: 211270938479797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T094356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82526&fm=211270938479797&tin=02508201610067®Number=0000000000091680&sum=0 [09:43:56]StoreToDocumentArchive [09:43:56]shift 527 fd 82526 [09:43:56]save to /storage/0527/doc_00082526 [09:43:56]save last doc name /storage/0527/doc_00082526 to /storage/kkm_last_doc_name [09:43:56]save OK [09:43:56]Clear old archive folders... [09:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:43:56]tlvbuf is 00703FD0 [09:43:56]SAM_PROTO_ClearQueue [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 09 00 00 [09:43:56]Write to MH i2c: E2 08 00 05 05 80 09 00 00 00 00 00 00 7C [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]SAM_PROTO_ClearQueue done [09:43:57]KKMCreateOFDPacket [09:43:57]OFDProtocolAddRootSTLVToBuf [09:43:57]FM_MakeSignedData [09:43:57]FM_MakeSignedData [09:43:57]SAM_PROTO_SignData [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 01 02 [09:43:57]Write to MH i2c: E2 08 00 06 05 80 0D 01 02 00 00 00 00 84 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=255 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C 7F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 42 01 [09:43:57]Write to MH i2c: E2 02 01 07 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C 7F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 42 01 00 00 45 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]OFD Sender: No OFD packet to send [09:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=16 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C0 26 59 3D 4C B5 [09:43:57]Write to MH i2c: E2 13 00 08 05 80 0D 02 02 0B 00 00 35 04 06 00 C0 26 59 3D 4C B5 00 00 59 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [09:43:57]RAPDU: 90 00 [09:43:57]wFMCommunicate OK [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 0D 03 02 [09:43:57]Write to MH i2c: E2 08 00 09 05 80 0D 03 02 00 00 00 00 89 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 0B 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 0B 00 09 05 00 D1 36 CC 71 E5 A7 90 D9 90 00 C3 [09:43:57]RAPDU: D1 36 CC 71 E5 A7 90 D9 90 00 [09:43:57]wFMCommunicate OK [09:43:57]SAM_PROTO_SignData done [09:43:57]FM_MakeSignedData done [09:43:57]CreateOFDProtocolMessage [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 11 00 00 [09:43:57]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 17 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DB [09:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:43:57]wFMCommunicate OK [09:43:57]CreateOFDProtocolMessage done [09:43:57]OFDSenderStorePacket 82526 [09:43:57]StoreOFDPacket docnum=82526 [09:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 D1 35 0D 01 D5 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C 7F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 42 01 00 35 04 06 00 C0 26 59 3D 4C B5 D1 36 CC 71 E5 A7 90 D9 [09:43:57]CheckFolder [09:43:57]dirname=/storage/ofd_packets [09:43:57]CheckFolder done [09:43:57]ProducePacketName [09:43:57]name=ofd_packets/00082526 [09:43:57]NVStorageSaveData ofd_packets/00082526 [09:43:57]File name is /storage/ofd_packets/00082526 [09:43:57]Write 307 bytes [09:43:57]NVStorageSaveData done [09:43:57]OFDSenderStorePacket done [09:43:57]KKMCreateOFDPacket done [09:43:57]NVStorageSaveData kkm_last_timestamp [09:43:57]File name is /storage/kkm_last_timestamp [09:43:57]Write 4 bytes [09:43:57]NVStorageSaveData done [09:43:57]ExternCall_PrintAddStr [09:43:57]wPrintStart [09:43:57]Write to MH i2c: 01 00 00 0B 05 10 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: 01 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: 01 07 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [09:43:57]RasterBufferAndPrint [09:43:57]line Счет N : (1)919016 [09:43:57]line ИНН: 02508201610067 [09:43:57]line Контрольно-Кассовый Чек [09:43:57]line ПРОДАЖА [09:43:57]line ТРК (МРК, ГНК) : 21 [09:43:57]line Товар: 2710194800 [09:43:57]line D-Energy ДТ-К-2 [09:43:57]line 20.000 * 0.00 [09:43:57]line = 0.00 [09:43:57]line НДС 12% НСП 1% [09:43:57]line > о реализуемом товаре [09:43:57]line ИТОГО: 0.00 [09:43:57]line НСП 1% : 0.00 [09:43:57]line НДС 12% : 0.00 [09:43:57]line Наличными: 0.00 [09:43:57]line Безнал.: 0.00 [09:43:57]line Место: АЗС № 114 "Партнер Нефть" [09:43:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:43:57]line СНО: Общий режим [09:43:57]line Чек 23 19.10.2024 09:43 [09:43:57]line Смена: 527 ФФД: 1.0 [09:43:57]line ЗНМ: 0300000086 [09:43:57]line РНМ: 0000000000091680 [09:43:57]line Версия ККМ: 001 [09:43:57]line Талоны: Топливные Талоны [09:43:57]line 2203007 [09:43:57]line ФМ: 0000000000871843 [09:43:57]line ФД: 82526 [09:43:57]line ФПД: 211270938479797 [09:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T094356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82526&fm=211270938479797&tin=02508201610067®Number=0000000000091680&sum=0 [09:43:57]OFD Sender: Processing packet 82526 [packets to send 254, broken 253] [09:43:57]ProducePacketName [09:43:57]name=ofd_packets/00082526 [09:43:57]OFD Sender: To server: pG, [09:43:57]CommunicateWithHost lk.salyk.kg:30040 [09:43:57]ConnectInit lk.salyk.kg [09:43:57]written 0, free lines is 4095 [09:43:58]Write to MH i2c: 01 00 00 35 05 3A [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 F7 0C 44 [09:43:58]RasterBufferAndPrint [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]line [09:43:58]written 0, free lines is 3326 [09:43:58]MH_Cut [09:43:58]Write to MH i2c: D1 01 00 3C 05 01 13 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 01 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: D1 01 00 3C 05 00 12 [09:43:58]Write to MH i2c: 01 00 00 3D 05 42 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Connected sock=10 [09:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 D1 35 0D 01 D5 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5C 7F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 42 01 00 35 04 06 00 C0 26 59 3D 4C B5 D1 36 CC 71 E5 A7 90 D9 [09:43:59]*** Cut start [09:43:59]*** Partial cut [09:43:59]*** CUTSNS_PIN = 1 [09:43:59]*** CUTSNS_PIN = 0 [09:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 89 5A 47 00 E7 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 31 38 34 33 10 04 04 00 5E 42 01 00 F4 03 04 00 94 24 13 67 B6 04 01 00 00 0E 3F 8C D8 87 7E 79 7D [09:43:59]CommunicateWithHost err = 0 [09:43:59]CheckOFDResponse [09:43:59]1017 (14) - 77093643461234 [09:43:59]1041 (16) - 0000000000871843 [09:43:59]1040 (4) - 82526 [09:43:59]1012 (4) - 19.10.2024 03:16 [09:43:59]1206 (1) - 0 [09:43:59]OFD Sender: Remove packet 82526 [09:43:59]ProducePacketName [09:43:59]name=ofd_packets/00082526 [09:43:59]NVStorageDeleteData [09:43:59]*** Brake cut motor [09:43:59]OFD Sender: No OFD packet to send [09:43:59]Read from MH i2c: 01 [09:43:59]MH_I2C_Read... [09:43:59]*** Stop cut motor [09:43:59]*** Cut end [09:43:59]Read from MH i2c: 01 07 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [09:43:59]process_action close_receipt done [09:43:59]requested_data is exist [09:43:59]produce_requested_data [09:43:59]requested_item fm.sn is exist - process it [09:43:59]wFMCommunicate request_size=4 [09:43:59]MH_SAM_APDU [09:43:59]CAPDU: 80 11 00 00 [09:43:59]Write to MH i2c: E2 08 00 3E 05 80 11 00 00 00 00 00 00 BD [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:59]Read from MH i2c: E2 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 17 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 17 00 3E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [09:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:43:59]wFMCommunicate OK [09:43:59]requested_item fd.num is exist - process it [09:43:59]SAM_PROTO_GetFieldsCounters [09:43:59]wFMCommunicate request_size=4 [09:43:59]MH_SAM_APDU [09:43:59]CAPDU: 80 13 00 00 [09:43:59]Write to MH i2c: E2 08 00 3F 05 80 13 00 00 00 00 00 00 C0 [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:59]Read from MH i2c: E2 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 62 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 62 00 3F 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5E 42 01 00 0E 04 04 00 0F 02 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 D6 [09:43: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5E 42 01 00 0E 04 04 00 0F 02 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 [09:43:59]wFMCommunicate OK [09:43:59]SAM_PROTO_GetFieldsCounters done [09:43:59]requested_item shift.num is exist - process it [09:43:59]requested_item shift.opened is exist - process it [09:43:59]req_shift_opened [09:43:59]FM_GetShiftState [09:43:59]SAM_PROTO_GetShiftState [09:43:59]wFMCommunicate request_size=4 [09:43:59]MH_SAM_APDU [09:43:59]CAPDU: 80 13 01 00 [09:43:59]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:59]Read from MH i2c: E2 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 0E 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C4 [09:43:59]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:43:59]wFMCommunicate OK [09:43:59]SAM_PROTO_GetShiftState done [09:43:59]FM_GetShiftState done [09:43:59]req_shift_opened done [09:43:59]requested_item shift.open_date is exist - process it [09:43:59]req_shift_open_date [09:43:59]req_shift_open_date done [09:43:59]produce_requested_data done [09:43:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82526,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:43:59]process_action_free close_receipt [09:43:59]json_value_free [09:43:59]json_value_free done [09:43:59]process_json_proto returns [09:43:59]Send response to host [09:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82526,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:43:59]free response buf [09:43:59]execute_script done [09:43:59]execute_script returns [09:43:59]free content buf [09:43:59]Sock 9.Close socket [09:43:59]Sock 9.Thread stoped [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:52]accept exits with 8 [09:55:52]New connection [09:55:52]New thread 3067280740 created [09:55:52]Thread 3067137380 joined [09:55:52]Waiting for new connection... [09:55:52] Sock 8.Parse request [09:55:52]Sock 8.Check first char [09:55:52]Sock 8.First char is OK [09:55:52]request: POST /json_proto HTTP/1.0 [09:55:52]Method: POST [09:55:52]URL: /json_proto [09:55:52]Method is POST - this is cgi request [09:55:52]url: /json_proto [09:55:52]query_string will be loaded in cgi processing [09:55:52]execute_cgi json_proto POST (null) [09:55:52]execute_cgi path=json_proto method=POST [09:55:52]POST find Content-Length [09:55:52]Host: 172.17.44.67:8080 [09:55:52]Content-Length: 678 [09:55:52]Content-Type: application/json [09:55:52] [09:55:52]POST finish read [09:55:52]Found Content-Length = 678 [09:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:52]execute_script... [09:55: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 : (1)919017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:52]POST & json_proto [09:55:52]process_json_proto [09:55:52]json parsed OK: [09:55:52]protocol is kg_v1.0 [09:55:52]action value=close_receipt [09:55:52]process_action close_receipt [09:55:52]cmd_close_receipt [09:55:52]MH_GetDate [09:55:52]Write to MH i2c: F0 00 00 41 05 35 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 09 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: F0 09 00 41 05 00 28 82 13 67 F1 C7 6B 64 E9 [09:55:52]GetLastDocTimeStamp 1729331036 [09:55:52]current date 1729331752 [09:55:52]FM_GetShiftState [09:55:52]SAM_PROTO_GetShiftState [09:55:52]wFMCommunicate request_size=4 [09:55:52]MH_SAM_APDU [09:55:52]CAPDU: 80 13 01 00 [09:55:52]Write to MH i2c: E2 08 00 42 05 80 13 01 00 00 00 00 00 C4 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:52]Read from MH i2c: E2 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0E 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: E2 0E 00 42 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C6 [09:55:52]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:55:52]wFMCommunicate OK [09:55:52]SAM_PROTO_GetShiftState done [09:55:52]FM_GetShiftState done [09:55:52]opened in 1729298811 [09:55:52]opened+sec_in_day 1729385211 [09:55:52]quantity*price = 70044 [09:55:52]sum+1 = 70045 [09:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 24 19.10.2024 09:55 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82527 ФПД: 205365109899681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T095552&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82527&fm=205365109899681&tin=02508201610067®Number=0000000000091680&sum=70000 [09:55:53]StoreToDocumentArchive [09:55:53]shift 527 fd 82527 [09:55:53]save to /storage/0527/doc_00082527 [09:55:53]save last doc name /storage/0527/doc_00082527 to /storage/kkm_last_doc_name [09:55:53]save OK [09:55:53]Clear old archive folders... [09:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:53]tlvbuf is 006AA1A0 [09:55:53]SAM_PROTO_ClearQueue [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 09 00 00 [09:55:53]Write to MH i2c: E2 08 00 4F 05 80 09 00 00 00 00 00 00 C6 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_ClearQueue done [09:55:53]KKMCreateOFDPacket [09:55:53]OFDProtocolAddRootSTLVToBuf [09:55:53]FM_MakeSignedData [09:55:53]FM_MakeSignedData [09:55:53]SAM_PROTO_SignData [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 01 02 [09:55:53]Write to MH i2c: E2 08 00 50 05 80 0D 01 02 00 00 00 00 CE [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=255 [09:55:53]MH_SAM_APDU [09:55:53]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 18 00 00 00 F4 03 04 00 28 82 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 42 01 00 35 04 06 00 BA [09:55:53]Write to MH i2c: E2 02 01 51 05 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 18 00 00 00 F4 03 04 00 28 82 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 42 01 00 35 04 06 00 BA 00 00 13 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=10 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 02 02 05 C7 4A 6C C1 A1 [09:55:53]Write to MH i2c: E2 0D 00 52 05 80 0D 02 02 05 00 C7 4A 6C C1 A1 00 00 BA [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [09:55:53]RAPDU: 90 00 [09:55:53]wFMCommunicate OK [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 0D 03 02 [09:55:53]Write to MH i2c: E2 08 00 53 05 80 0D 03 02 00 00 00 00 D3 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0B 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0B 00 53 05 00 60 89 D2 67 BA 16 A4 2A 90 00 94 [09:55:53]RAPDU: 60 89 D2 67 BA 16 A4 2A 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_SignData done [09:55:53]FM_MakeSignedData done [09:55:53]CreateOFDProtocolMessage [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 11 00 00 [09:55:53]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 25 [09:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:55:53]wFMCommunicate OK [09:55:53]CreateOFDProtocolMessage done [09:55:53]OFDSenderStorePacket 82527 [09:55:53]StoreOFDPacket docnum=82527 [09:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 49 69 07 01 63 D4 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 18 00 00 00 F4 03 04 00 28 82 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 42 01 00 35 04 06 00 BA C7 4A 6C C1 A1 60 89 D2 67 BA 16 A4 2A [09:55:53]CheckFolder [09:55:53]dirname=/storage/ofd_packets [09:55:53]CheckFolder done [09:55:53]ProducePacketName [09:55:53]name=ofd_packets/00082527 [09:55:53]NVStorageSaveData ofd_packets/00082527 [09:55:53]File name is /storage/ofd_packets/00082527 [09:55:53]Write 301 bytes [09:55:53]NVStorageSaveData done [09:55:53]OFDSenderStorePacket done [09:55:53]KKMCreateOFDPacket done [09:55:53]NVStorageSaveData kkm_last_timestamp [09:55:53]File name is /storage/kkm_last_timestamp [09:55:53]Write 4 bytes [09:55:53]NVStorageSaveData done [09:55:53]OFD Sender: Processing packet 82527 [packets to send 254, broken 253] [09:55:53]ProducePacketName [09:55:53]name=ofd_packets/00082527 [09:55:53]OFD Sender: To server: pG, [09:55:53]CommunicateWithHost lk.salyk.kg:30040 [09:55:53]ConnectInit lk.salyk.kg [09:55:53]ExternCall_PrintAddStr [09:55:53]wPrintStart [09:55:53]Write to MH i2c: 01 00 00 55 05 5A [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 07 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [09:55:53]RasterBufferAndPrint [09:55:53]line Счет N : (1)919017 [09:55:53]line ИНН: 02508201610067 [09:55:53]line Контрольно-Кассовый Чек [09:55:53]line ПРОДАЖА [09:55:53]line ТРК (МРК, ГНК) : 22 [09:55:53]line Товар: 2710124130 [09:55:53]line Аи-92-К-4 [09:55:53]line 10.470 * 66.90 [09:55:53]line = 700.44 [09:55:53]line НДС 12% НСП 1% [09:55:53]line > о реализуемом товаре [09:55:53]line ОКРУГЛЕНИЕ: -0.44 [09:55:53]line ИТОГО: 700.00 [09:55:53]line Внесено: 700.00 [09:55:53]line СДАЧА: 0.00 [09:55:53]line НСП 1% : 6.20 [09:55:53]line НДС 12% : 74.38 [09:55:53]line Наличными: 700.00 [09:55:53]line Безнал.: 0.00 [09:55:53]line Место: АЗС № 114 "Партнер Нефть" [09:55:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:55:53]line СНО: Общий режим [09:55:53]line Чек 24 19.10.2024 09:55 [09:55:53]line Смена: 527 ФФД: 1.0 [09:55:53]line ЗНМ: 0300000086 [09:55:53]line РНМ: 0000000000091680 [09:55:53]line Версия ККМ: 001 [09:55:53]line ФМ: 0000000000871843 [09:55:53]line ФД: 82527 [09:55:53]line ФПД: 205365109899681 [09:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T095552&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82527&fm=205365109899681&tin=02508201610067®Number=0000000000091680&sum=70000 [09:55:54]written 0, free lines is 4095 [09:55:54]Write to MH i2c: 01 00 00 80 05 85 [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 07 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 D4 0C 6C [09:55:54]RasterBufferAndPrint [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]line [09:55:54]written 0, free lines is 3292 [09:55:54]MH_Cut [09:55:54]Write to MH i2c: D1 01 00 87 05 01 5E [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 01 00 [09:55:54]MH_I2C_Read... [09:55:54]Read from MH i2c: D1 01 00 87 05 00 5D [09:55:54]Write to MH i2c: 01 00 00 88 05 8D [09:55:54]Write i2c OK [09:55:54]MH_I2C_Read... [09:55:54]Connected sock=12 [09:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 49 69 07 01 63 D4 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 18 00 00 00 F4 03 04 00 28 82 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 42 01 00 35 04 06 00 BA C7 4A 6C C1 A1 60 89 D2 67 BA 16 A4 2A [09:55:55]*** Cut start [09:55:55]*** Partial cut [09:55:55]*** CUTSNS_PIN = 1 [09:55:55]*** CUTSNS_PIN = 0 [09:55:55]*** Brake cut motor [09:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 84 62 47 00 2D 36 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 31 38 34 33 10 04 04 00 5F 42 01 00 F4 03 04 00 60 27 13 67 B6 04 01 00 00 44 FC A5 EF E5 B3 4E 1A [09:55:55]CommunicateWithHost err = 0 [09:55:55]CheckOFDResponse [09:55:55]1017 (14) - 77093643461234 [09:55:55]1041 (16) - 0000000000871843 [09:55:55]1040 (4) - 82527 [09:55:55]1012 (4) - 19.10.2024 03:28 [09:55:55]1206 (1) - 0 [09:55:55]OFD Sender: Remove packet 82527 [09:55:55]ProducePacketName [09:55:55]name=ofd_packets/00082527 [09:55:55]NVStorageDeleteData [09:55:55]Read from MH i2c: 01 [09:55:55]MH_I2C_Read... [09:55:55]*** Stop cut motor [09:55:55]*** Cut end [09:55:55]Read from MH i2c: 01 07 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [09:55:55]process_action close_receipt done [09:55:55]requested_data is exist [09:55:55]produce_requested_data [09:55:55]requested_item fm.sn is exist - process it [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 11 00 00 [09:55:55]Write to MH i2c: E2 08 00 89 05 80 11 00 00 00 00 00 00 08 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 89 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5A [09:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:55:56]wFMCommunicate OK [09:55:56]requested_item fd.num is exist - process it [09:55:56]SAM_PROTO_GetFieldsCounters [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 13 00 00 [09:55:56]Write to MH i2c: E2 08 00 8A 05 80 13 00 00 00 00 00 00 0B [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]OFD Sender: No OFD packet to send [09:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 62 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 62 00 8A 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5F 42 01 00 0E 04 04 00 0F 02 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 25 [09:55: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5F 42 01 00 0E 04 04 00 0F 02 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 [09:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_GetFieldsCounters done [09:55:56]requested_item shift.num is exist - process it [09:55:56]requested_item shift.opened is exist - process it [09:55:56]req_shift_opened [09:55:56]FM_GetShiftState [09:55:56]SAM_PROTO_GetShiftState [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 13 01 00 [09:55:56]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0E 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 0F [09:55:56]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [09:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_GetShiftState done [09:55:56]FM_GetShiftState done [09:55:56]req_shift_opened done [09:55:56]requested_item shift.open_date is exist - process it [09:55:56]req_shift_open_date [09:55:56]req_shift_open_date done [09:55:56]produce_requested_data done [09:55:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82527,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [09:55:56]process_action_free close_receipt [09:55:56]json_value_free [09:55:56]json_value_free done [09:55:56]process_json_proto returns [09:55:56]Send response to host [09:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82527,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [09:55:56]free response buf [09:55:56]execute_script done [09:55:56]execute_script returns [09:55:56]free content buf [09:55:56]Sock 8.Close socket [09:55:56]Sock 8.Thread stoped [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:23]accept exits with 9 [10:00:23]New connection [10:00:23]New thread 3067137380 created [10:00:23]Thread 3067280740 joined [10:00:23]Waiting for new connection... [10:00:23] Sock 9.Parse request [10:00:23]Sock 9.Check first char [10:00:23]Sock 9.First char is OK [10:00:23]request: POST /json_proto HTTP/1.0 [10:00:23]Method: POST [10:00:23]URL: /json_proto [10:00:23]Method is POST - this is cgi request [10:00:23]url: /json_proto [10:00:23]query_string will be loaded in cgi processing [10:00:23]execute_cgi json_proto POST (null) [10:00:23]execute_cgi path=json_proto method=POST [10:00:23]POST find Content-Length [10:00:23]Host: 172.17.44.67:8080 [10:00:23]Content-Length: 678 [10:00:23]Content-Type: application/json [10:00:23] [10:00:23]POST finish read [10:00:23]Found Content-Length = 678 [10:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:23]execute_script... [10:00: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 : (1)919018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:23]POST & json_proto [10:00:23]process_json_proto [10:00:23]json parsed OK: [10:00:23]protocol is kg_v1.0 [10:00:23]action value=close_receipt [10:00:23]process_action close_receipt [10:00:23]cmd_close_receipt [10:00:23]MH_GetDate [10:00:23]Write to MH i2c: F0 00 00 8C 05 80 [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 09 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: F0 09 00 8C 05 00 37 83 13 67 F1 C7 6B 64 44 [10:00:23]GetLastDocTimeStamp 1729331752 [10:00:23]current date 1729332023 [10:00:23]FM_GetShiftState [10:00:23]SAM_PROTO_GetShiftState [10:00:23]wFMCommunicate request_size=4 [10:00:23]MH_SAM_APDU [10:00:23]CAPDU: 80 13 01 00 [10:00:23]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [10:00:23]Write i2c OK [10:00:23]MH_I2C_Read... [10:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:23]Read from MH i2c: E2 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0E 00 [10:00:23]MH_I2C_Read... [10:00:23]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 11 [10:00:23]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:00:23]wFMCommunicate OK [10:00:23]SAM_PROTO_GetShiftState done [10:00:23]FM_GetShiftState done [10:00:23]opened in 1729298811 [10:00:23]opened+sec_in_day 1729385211 [10:00:23]quantity*price = 70044 [10:00:23]sum+1 = 70045 [10:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 25 19.10.2024 10:00 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82528 ФПД: 128789940277786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100023&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82528&fm=128789940277786&tin=02508201610067®Number=0000000000091680&sum=70000 [10:00:24]StoreToDocumentArchive [10:00:24]shift 527 fd 82528 [10:00:24]save to /storage/0527/doc_00082528 [10:00:24]save last doc name /storage/0527/doc_00082528 to /storage/kkm_last_doc_name [10:00:24]save OK [10:00:24]Clear old archive folders... [10:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:24]tlvbuf is 0071B470 [10:00:24]SAM_PROTO_ClearQueue [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 09 00 00 [10:00:24]Write to MH i2c: E2 08 00 9A 05 80 09 00 00 00 00 00 00 11 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_ClearQueue done [10:00:24]KKMCreateOFDPacket [10:00:24]OFDProtocolAddRootSTLVToBuf [10:00:24]FM_MakeSignedData [10:00:24]FM_MakeSignedData [10:00:24]SAM_PROTO_SignData [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 0D 01 02 [10:00:24]Write to MH i2c: E2 08 00 9B 05 80 0D 01 02 00 00 00 00 19 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]wFMCommunicate request_size=255 [10:00:24]MH_SAM_APDU [10:00:24]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 19 00 00 00 F4 03 04 00 37 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 42 01 00 35 04 06 00 75 [10:00:24]Write to MH i2c: E2 02 01 9C 05 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 19 00 00 00 F4 03 04 00 37 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 42 01 00 35 04 06 00 75 00 00 2B [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]wFMCommunicate request_size=10 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 0D 02 02 05 22 3E A4 12 1A [10:00:24]Write to MH i2c: E2 0D 00 9D 05 80 0D 02 02 05 00 22 3E A4 12 1A 00 00 56 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [10:00:24]RAPDU: 90 00 [10:00:24]wFMCommunicate OK [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 0D 03 02 [10:00:24]Write to MH i2c: E2 08 00 9E 05 80 0D 03 02 00 00 00 00 1E [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0B 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 0B 00 9E 05 00 0A 77 EA A4 6B 0E BE 91 90 00 F6 [10:00:24]RAPDU: 0A 77 EA A4 6B 0E BE 91 90 00 [10:00:24]wFMCommunicate OK [10:00:24]SAM_PROTO_SignData done [10:00:24]FM_MakeSignedData done [10:00:24]CreateOFDProtocolMessage [10:00:24]wFMCommunicate request_size=4 [10:00:24]MH_SAM_APDU [10:00:24]CAPDU: 80 11 00 00 [10:00:24]Write to MH i2c: E2 08 00 9F 05 80 11 00 00 00 00 00 00 1E [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:24]Read from MH i2c: E2 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 17 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: E2 17 00 9F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 70 [10:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:00:24]wFMCommunicate OK [10:00:24]CreateOFDProtocolMessage done [10:00:24]OFDSenderStorePacket 82528 [10:00:24]StoreOFDPacket docnum=82528 [10:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 0B 07 01 B3 D1 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 19 00 00 00 F4 03 04 00 37 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 42 01 00 35 04 06 00 75 22 3E A4 12 1A 0A 77 EA A4 6B 0E BE 91 [10:00:24]CheckFolder [10:00:24]dirname=/storage/ofd_packets [10:00:24]CheckFolder done [10:00:24]ProducePacketName [10:00:24]name=ofd_packets/00082528 [10:00:24]NVStorageSaveData ofd_packets/00082528 [10:00:24]File name is /storage/ofd_packets/00082528 [10:00:24]Write 301 bytes [10:00:24]NVStorageSaveData done [10:00:24]OFDSenderStorePacket done [10:00:24]KKMCreateOFDPacket done [10:00:24]NVStorageSaveData kkm_last_timestamp [10:00:24]File name is /storage/kkm_last_timestamp [10:00:24]Write 4 bytes [10:00:24]NVStorageSaveData done [10:00:24]ExternCall_PrintAddStr [10:00:24]wPrintStart [10:00:24]Write to MH i2c: 01 00 00 A0 05 A5 [10:00:24]Write i2c OK [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 07 00 [10:00:24]MH_I2C_Read... [10:00:24]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [10:00:24]RasterBufferAndPrint [10:00:24]line Счет N : (1)919018 [10:00:24]line ИНН: 02508201610067 [10:00:24]line Контрольно-Кассовый Чек [10:00:24]line ПРОДАЖА [10:00:24]line ТРК (МРК, ГНК) : 22 [10:00:24]line Товар: 2710124130 [10:00:24]line Аи-92-К-4 [10:00:24]line 10.470 * 66.90 [10:00:24]line = 700.44 [10:00:24]line НДС 12% НСП 1% [10:00:24]line > о реализуемом товаре [10:00:24]line ОКРУГЛЕНИЕ: -0.44 [10:00:24]line ИТОГО: 700.00 [10:00:24]line Внесено: 700.00 [10:00:24]line СДАЧА: 0.00 [10:00:24]line НСП 1% : 6.20 [10:00:24]line НДС 12% : 74.38 [10:00:24]line Наличными: 700.00 [10:00:24]line Безнал.: 0.00 [10:00:24]line Место: АЗС № 114 "Партнер Нефть" [10:00:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:00:24]line СНО: Общий режим [10:00:24]line Чек 25 19.10.2024 10:00 [10:00:24]line Смена: 527 ФФД: 1.0 [10:00:24]line ЗНМ: 0300000086 [10:00:24]line РНМ: 0000000000091680 [10:00:24]line Версия ККМ: 001 [10:00:24]line ФМ: 0000000000871843 [10:00:24]line ФД: 82528 [10:00:24]line ФПД: 128789940277786 [10:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100023&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82528&fm=128789940277786&tin=02508201610067®Number=0000000000091680&sum=70000 [10:00:25]OFD Sender: Processing packet 82528 [packets to send 254, broken 253] [10:00:25]ProducePacketName [10:00:25]name=ofd_packets/00082528 [10:00:25]OFD Sender: To server: pG, [10:00:25]CommunicateWithHost lk.salyk.kg:30040 [10:00:25]ConnectInit lk.salyk.kg [10:00:25]written 0, free lines is 4095 [10:00:25]Write to MH i2c: 01 00 00 CB 05 D0 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: 01 07 00 CB 05 00 00 00 00 00 E4 0C C7 [10:00:25]RasterBufferAndPrint [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]line [10:00:25]written 0, free lines is 3306 [10:00:25]MH_Cut [10:00:25]Write to MH i2c: D1 01 00 D2 05 01 A9 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 01 00 [10:00:25]MH_I2C_Read... [10:00:25]Read from MH i2c: D1 01 00 D2 05 00 A8 [10:00:25]Write to MH i2c: 01 00 00 D3 05 D8 [10:00:25]Write i2c OK [10:00:25]MH_I2C_Read... [10:00:26]*** Cut start [10:00:26]*** Partial cut [10:00:26]*** CUTSNS_PIN = 1 [10:00:26]*** CUTSNS_PIN = 0 [10:00:26]*** Brake cut motor [10:00:27]Read from MH i2c: 01 [10:00:27]MH_I2C_Read... [10:00:27]*** Stop cut motor [10:00:27]*** Cut end [10:00:27]Read from MH i2c: 01 07 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 FF 0F ED [10:00:27]process_action close_receipt done [10:00:27]requested_data is exist [10:00:27]produce_requested_data [10:00:27]requested_item fm.sn is exist - process it [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 11 00 00 [10:00:27]Write to MH i2c: E2 08 00 D4 05 80 11 00 00 00 00 00 00 53 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 17 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 17 00 D4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [10:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:00:27]wFMCommunicate OK [10:00:27]requested_item fd.num is exist - process it [10:00:27]SAM_PROTO_GetFieldsCounters [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 13 00 00 [10:00:27]Write to MH i2c: E2 08 00 D5 05 80 13 00 00 00 00 00 00 56 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 62 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 62 00 D5 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 60 42 01 00 0E 04 04 00 0F 02 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 74 [10:00: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 60 42 01 00 0E 04 04 00 0F 02 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 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetFieldsCounters done [10:00:27]requested_item shift.num is exist - process it [10:00:27]requested_item shift.opened is exist - process it [10:00:27]req_shift_opened [10:00:27]FM_GetShiftState [10:00:27]SAM_PROTO_GetShiftState [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 13 01 00 [10:00:27]Write to MH i2c: E2 08 00 D6 05 80 13 01 00 00 00 00 00 58 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 0E 00 D6 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 5A [10:00:27]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_GetShiftState done [10:00:27]FM_GetShiftState done [10:00:27]req_shift_opened done [10:00:27]requested_item shift.open_date is exist - process it [10:00:27]req_shift_open_date [10:00:27]req_shift_open_date done [10:00:27]produce_requested_data done [10:00:27]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82528,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:00:27]process_action_free close_receipt [10:00:27]json_value_free [10:00:27]json_value_free done [10:00:27]process_json_proto returns [10:00:27]Send response to host [10:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82528,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:00:27]free response buf [10:00:27]execute_script done [10:00:27]execute_script returns [10:00:27]free content buf [10:00:27]Sock 9.Close socket [10:00:27]Sock 9.Thread stoped [10:00:30]recv_with_timeout no data received [10:02:37]ConnectInit Can't connect to host [10:02:37]CommunicateWithHost connect error [10:02:37]CommunicateWithHost err = -1 [10:02:37]OFD Sender: Server communicate error [10:02:42]OFD Sender: Processing packet 82528 [packets to send 254, broken 253] [10:02:42]ProducePacketName [10:02:42]name=ofd_packets/00082528 [10:02:42]OFD Sender: To server: pG, [10:02:42]CommunicateWithHost lk.salyk.kg:30040 [10:02:42]ConnectInit lk.salyk.kg [10:02:43]Connected sock=10 [10:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 0B 07 01 B3 D1 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 19 00 00 00 F4 03 04 00 37 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 42 01 00 35 04 06 00 75 22 3E A4 12 1A 0A 77 EA A4 6B 0E BE 91 [10:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 07 B1 47 00 86 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 31 38 34 33 10 04 04 00 60 42 01 00 F4 03 04 00 F8 28 13 67 B6 04 01 00 00 18 81 37 07 A6 7B 9B C5 [10:02:43]CommunicateWithHost err = 0 [10:02:43]CheckOFDResponse [10:02:43]1017 (14) - 77093643461234 [10:02:43]1041 (16) - 0000000000871843 [10:02:43]1040 (4) - 82528 [10:02:43]1012 (4) - 19.10.2024 03:35 [10:02:43]1206 (1) - 0 [10:02:43]OFD Sender: Remove packet 82528 [10:02:43]ProducePacketName [10:02:43]name=ofd_packets/00082528 [10:02:43]NVStorageDeleteData [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:31]accept exits with 8 [10:03:31]New connection [10:03:31]New thread 3067280740 created [10:03:31]Thread 3067137380 joined [10:03:31]Waiting for new connection... [10:03:31] Sock 8.Parse request [10:03:31]Sock 8.Check first char [10:03:31]Sock 8.First char is OK [10:03:31]request: POST /json_proto HTTP/1.0 [10:03:31]Method: POST [10:03:31]URL: /json_proto [10:03:31]Method is POST - this is cgi request [10:03:31]url: /json_proto [10:03:31]query_string will be loaded in cgi processing [10:03:31]execute_cgi json_proto POST (null) [10:03:31]execute_cgi path=json_proto method=POST [10:03:31]POST find Content-Length [10:03:31]Host: 172.17.44.67:8080 [10:03:31]Content-Length: 677 [10:03:31]Content-Type: application/json [10:03:31] [10:03:31]POST finish read [10:03:31]Found Content-Length = 677 [10:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:03:31]execute_script... [10:03: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 : (1)919019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:03:31]POST & json_proto [10:03:31]process_json_proto [10:03:31]json parsed OK: [10:03:31]protocol is kg_v1.0 [10:03:31]action value=close_receipt [10:03:31]process_action close_receipt [10:03:31]cmd_close_receipt [10:03:31]MH_GetDate [10:03:31]Write to MH i2c: F0 00 00 D7 05 CB [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: F0 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: F0 09 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: F0 09 00 D7 05 00 F3 83 13 67 F1 C7 6B 64 4B [10:03:31]GetLastDocTimeStamp 1729332023 [10:03:31]current date 1729332211 [10:03:31]FM_GetShiftState [10:03:31]SAM_PROTO_GetShiftState [10:03:31]wFMCommunicate request_size=4 [10:03:31]MH_SAM_APDU [10:03:31]CAPDU: 80 13 01 00 [10:03:31]Write to MH i2c: E2 08 00 D8 05 80 13 01 00 00 00 00 00 5A [10:03:31]Write i2c OK [10:03:31]MH_I2C_Read... [10:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:31]Read from MH i2c: E2 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 0E 00 [10:03:31]MH_I2C_Read... [10:03:31]Read from MH i2c: E2 0E 00 D8 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 5C [10:03:31]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:03:31]wFMCommunicate OK [10:03:31]SAM_PROTO_GetShiftState done [10:03:31]FM_GetShiftState done [10:03:31]opened in 1729298811 [10:03:31]opened+sec_in_day 1729385211 [10:03:31]quantity*price = 50041 [10:03:31]sum+1 = 50042 [10:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 26 19.10.2024 10:03 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82529 ФПД: 67290068217929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82529&fm=67290068217929&tin=02508201610067®Number=0000000000091680&sum=50000 [10:03:32]StoreToDocumentArchive [10:03:32]shift 527 fd 82529 [10:03:32]save to /storage/0527/doc_00082529 [10:03:32]save last doc name /storage/0527/doc_00082529 to /storage/kkm_last_doc_name [10:03:32]save OK [10:03:32]Clear old archive folders... [10:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:32]tlvbuf is 0071E620 [10:03:32]SAM_PROTO_ClearQueue [10:03:32]wFMCommunicate request_size=4 [10:03:32]MH_SAM_APDU [10:03:32]CAPDU: 80 09 00 00 [10:03:32]Write to MH i2c: E2 08 00 E5 05 80 09 00 00 00 00 00 00 5C [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [10:03:32]RAPDU: 90 00 [10:03:32]wFMCommunicate OK [10:03:32]SAM_PROTO_ClearQueue done [10:03:32]KKMCreateOFDPacket [10:03:32]OFDProtocolAddRootSTLVToBuf [10:03:32]FM_MakeSignedData [10:03:32]FM_MakeSignedData [10:03:32]SAM_PROTO_SignData [10:03:32]wFMCommunicate request_size=4 [10:03:32]MH_SAM_APDU [10:03:32]CAPDU: 80 0D 01 02 [10:03:32]Write to MH i2c: E2 08 00 E6 05 80 0D 01 02 00 00 00 00 64 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [10:03:32]RAPDU: 90 00 [10:03:32]wFMCommunicate OK [10:03:32]wFMCommunicate request_size=255 [10:03:32]MH_SAM_APDU [10:03:32]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1A 00 00 00 F4 03 04 00 F4 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 42 01 00 35 04 06 00 3D [10:03:32]Write to MH i2c: E2 02 01 E7 05 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1A 00 00 00 F4 03 04 00 F4 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 42 01 00 35 04 06 00 3D 00 00 ED [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [10:03:32]RAPDU: 90 00 [10:03:32]wFMCommunicate OK [10:03:32]wFMCommunicate request_size=10 [10:03:32]MH_SAM_APDU [10:03:32]CAPDU: 80 0D 02 02 05 33 30 9C F0 49 [10:03:32]Write to MH i2c: E2 0D 00 E8 05 80 0D 02 02 05 00 33 30 9C F0 49 00 00 A9 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [10:03:32]RAPDU: 90 00 [10:03:32]wFMCommunicate OK [10:03:32]wFMCommunicate request_size=4 [10:03:32]MH_SAM_APDU [10:03:32]CAPDU: 80 0D 03 02 [10:03:32]Write to MH i2c: E2 08 00 E9 05 80 0D 03 02 00 00 00 00 69 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 0B 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 0B 00 E9 05 00 A7 22 22 2A 1D 7C E9 00 90 00 01 [10:03:32]RAPDU: A7 22 22 2A 1D 7C E9 00 90 00 [10:03:32]wFMCommunicate OK [10:03:32]SAM_PROTO_SignData done [10:03:32]FM_MakeSignedData done [10:03:32]CreateOFDProtocolMessage [10:03:32]wFMCommunicate request_size=4 [10:03:32]MH_SAM_APDU [10:03:32]CAPDU: 80 11 00 00 [10:03:32]Write to MH i2c: E2 08 00 EA 05 80 11 00 00 00 00 00 00 69 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:32]Read from MH i2c: E2 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 17 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: E2 17 00 EA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BB [10:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:03:32]wFMCommunicate OK [10:03:32]CreateOFDProtocolMessage done [10:03:32]OFDSenderStorePacket 82529 [10:03:32]StoreOFDPacket docnum=82529 [10:03:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 6B 07 01 D7 E0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1A 00 00 00 F4 03 04 00 F4 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 42 01 00 35 04 06 00 3D 33 30 9C F0 49 A7 22 22 2A 1D 7C E9 00 [10:03:32]CheckFolder [10:03:32]dirname=/storage/ofd_packets [10:03:32]CheckFolder done [10:03:32]ProducePacketName [10:03:32]name=ofd_packets/00082529 [10:03:32]NVStorageSaveData ofd_packets/00082529 [10:03:32]File name is /storage/ofd_packets/00082529 [10:03:32]Write 301 bytes [10:03:32]NVStorageSaveData done [10:03:32]OFDSenderStorePacket done [10:03:32]KKMCreateOFDPacket done [10:03:32]NVStorageSaveData kkm_last_timestamp [10:03:32]File name is /storage/kkm_last_timestamp [10:03:32]Write 4 bytes [10:03:32]NVStorageSaveData done [10:03:32]ExternCall_PrintAddStr [10:03:32]wPrintStart [10:03:32]Write to MH i2c: 01 00 00 EB 05 F0 [10:03:32]Write i2c OK [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 07 00 [10:03:32]MH_I2C_Read... [10:03:32]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [10:03:32]RasterBufferAndPrint [10:03:32]line Счет N : (1)919019 [10:03:32]line ИНН: 02508201610067 [10:03:32]line Контрольно-Кассовый Чек [10:03:32]line ПРОДАЖА [10:03:32]line ТРК (МРК, ГНК) : 22 [10:03:32]line Товар: 2710124130 [10:03:32]line Аи-92-К-4 [10:03:32]line 7.480 * 66.90 [10:03:32]line = 500.41 [10:03:32]line НДС 12% НСП 1% [10:03:32]line > о реализуемом товаре [10:03:32]line ОКРУГЛЕНИЕ: -0.41 [10:03:32]line ИТОГО: 500.00 [10:03:32]line Внесено: 500.00 [10:03:32]line СДАЧА: 0.00 [10:03:32]line НСП 1% : 4.43 [10:03:32]line НДС 12% : 53.14 [10:03:32]line Наличными: 500.00 [10:03:32]line Безнал.: 0.00 [10:03:32]line Место: АЗС № 114 "Партнер Нефть" [10:03:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:03:32]line СНО: Общий режим [10:03:32]line Чек 26 19.10.2024 10:03 [10:03:32]line Смена: 527 ФФД: 1.0 [10:03:32]line ЗНМ: 0300000086 [10:03:32]line РНМ: 0000000000091680 [10:03:32]line Версия ККМ: 001 [10:03:32]line ФМ: 0000000000871843 [10:03:32]line ФД: 82529 [10:03:32]line ФПД: 67290068217929 [10:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82529&fm=67290068217929&tin=02508201610067®Number=0000000000091680&sum=50000 [10:03:33]OFD Sender: Processing packet 82529 [packets to send 254, broken 253] [10:03:33]ProducePacketName [10:03:33]name=ofd_packets/00082529 [10:03:33]OFD Sender: To server: pG, [10:03:33]CommunicateWithHost lk.salyk.kg:30040 [10:03:33]ConnectInit lk.salyk.kg [10:03:33]written 0, free lines is 4095 [10:03:33]Write to MH i2c: 01 00 00 16 06 1C [10:03:33]Write i2c OK [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: 01 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: 01 07 00 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 D7 0C 06 [10:03:33]RasterBufferAndPrint [10:03:33]line [10:03:33]line [10:03:33]line [10:03:33]line [10:03:33]line [10:03:33]written 0, free lines is 3290 [10:03:33]MH_Cut [10:03:33]Write to MH i2c: D1 01 00 1D 06 01 F5 [10:03:33]Write i2c OK [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: D1 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: D1 01 00 [10:03:33]MH_I2C_Read... [10:03:33]Read from MH i2c: D1 01 00 1D 06 00 F4 [10:03:33]Write to MH i2c: 01 00 00 1E 06 24 [10:03:33]Write i2c OK [10:03:33]MH_I2C_Read... [10:03:34]Connected sock=11 [10:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 6B 07 01 D7 E0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1A 00 00 00 F4 03 04 00 F4 83 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 42 01 00 35 04 06 00 3D 33 30 9C F0 49 A7 22 22 2A 1D 7C E9 00 [10:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9B 65 47 00 12 87 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 31 38 34 33 10 04 04 00 61 42 01 00 F4 03 04 00 2B 29 13 67 B6 04 01 00 00 B5 05 CC 66 D5 BA 85 50 [10:03:34]CommunicateWithHost err = 0 [10:03:34]CheckOFDResponse [10:03:34]1017 (14) - 77093643461234 [10:03:34]1041 (16) - 0000000000871843 [10:03:34]1040 (4) - 82529 [10:03:34]1012 (4) - 19.10.2024 03:36 [10:03:34]1206 (1) - 0 [10:03:34]OFD Sender: Remove packet 82529 [10:03:34]ProducePacketName [10:03:34]name=ofd_packets/00082529 [10:03:34]NVStorageDeleteData [10:03:34]*** Cut start [10:03:34]*** Partial cut [10:03:34]*** CUTSNS_PIN = 1 [10:03:34]*** CUTSNS_PIN = 0 [10:03:34]*** Brake cut motor [10:03:34]OFD Sender: No OFD packet to send [10:03:35]Read from MH i2c: 01 [10:03:35]MH_I2C_Read... [10:03:35]*** Stop cut motor [10:03:35]*** Cut end [10:03:35]Read from MH i2c: 01 07 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: 01 07 00 1E 06 00 00 00 00 00 FF 0F 39 [10:03:35]process_action close_receipt done [10:03:35]requested_data is exist [10:03:35]produce_requested_data [10:03:35]requested_item fm.sn is exist - process it [10:03:35]wFMCommunicate request_size=4 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 11 00 00 [10:03:35]Write to MH i2c: E2 08 00 1F 06 80 11 00 00 00 00 00 00 9F [10:03:35]Write i2c OK [10:03:35]MH_I2C_Read... [10:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:35]Read from MH i2c: E2 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 17 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 17 00 1F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [10:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:03:35]wFMCommunicate OK [10:03:35]requested_item fd.num is exist - process it [10:03:35]SAM_PROTO_GetFieldsCounters [10:03:35]wFMCommunicate request_size=4 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 13 00 00 [10:03:35]Write to MH i2c: E2 08 00 20 06 80 13 00 00 00 00 00 00 A2 [10:03:35]Write i2c OK [10:03:35]MH_I2C_Read... [10:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:35]Read from MH i2c: E2 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 62 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 62 00 20 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 61 42 01 00 0E 04 04 00 0F 02 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 C4 [10:03: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 61 42 01 00 0E 04 04 00 0F 02 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 [10:03:35]wFMCommunicate OK [10:03:35]SAM_PROTO_GetFieldsCounters done [10:03:35]requested_item shift.num is exist - process it [10:03:35]requested_item shift.opened is exist - process it [10:03:35]req_shift_opened [10:03:35]FM_GetShiftState [10:03:35]SAM_PROTO_GetShiftState [10:03:35]wFMCommunicate request_size=4 [10:03:35]MH_SAM_APDU [10:03:35]CAPDU: 80 13 01 00 [10:03:35]Write to MH i2c: E2 08 00 21 06 80 13 01 00 00 00 00 00 A4 [10:03:35]Write i2c OK [10:03:35]MH_I2C_Read... [10:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:35]Read from MH i2c: E2 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 0E 00 [10:03:35]MH_I2C_Read... [10:03:35]Read from MH i2c: E2 0E 00 21 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 A6 [10:03:35]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:03:35]wFMCommunicate OK [10:03:35]SAM_PROTO_GetShiftState done [10:03:35]FM_GetShiftState done [10:03:35]req_shift_opened done [10:03:35]requested_item shift.open_date is exist - process it [10:03:35]req_shift_open_date [10:03:35]req_shift_open_date done [10:03:35]produce_requested_data done [10:03:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82529,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:03:35]process_action_free close_receipt [10:03:35]json_value_free [10:03:35]json_value_free done [10:03:35]process_json_proto returns [10:03:35]Send response to host [10:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82529,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:03:35]free response buf [10:03:35]execute_script done [10:03:35]execute_script returns [10:03:35]free content buf [10:03:35]Sock 8.Close socket [10:03:35]Sock 8.Thread stoped [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:19]accept exits with 9 [10:06:19]New connection [10:06:19]New thread 3067137380 created [10:06:19]Thread 3067280740 joined [10:06:19]Waiting for new connection... [10:06:19] Sock 9.Parse request [10:06:19]Sock 9.Check first char [10:06:19]Sock 9.First char is OK [10:06:19]request: POST /json_proto HTTP/1.0 [10:06:19]Method: POST [10:06:19]URL: /json_proto [10:06:19]Method is POST - this is cgi request [10:06:19]url: /json_proto [10:06:19]query_string will be loaded in cgi processing [10:06:19]execute_cgi json_proto POST (null) [10:06:19]execute_cgi path=json_proto method=POST [10:06:19]POST find Content-Length [10:06:19]Host: 172.17.44.67:8080 [10:06:19]Content-Length: 677 [10:06:19]Content-Type: application/json [10:06:19] [10:06:19]POST finish read [10:06:19]Found Content-Length = 677 [10:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:19]execute_script... [10:06: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 : (1)919020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:19]POST & json_proto [10:06:19]process_json_proto [10:06:19]json parsed OK: [10:06:19]protocol is kg_v1.0 [10:06:19]action value=close_receipt [10:06:19]process_action close_receipt [10:06:19]cmd_close_receipt [10:06:19]MH_GetDate [10:06:19]Write to MH i2c: F0 00 00 22 06 17 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 09 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: F0 09 00 22 06 00 9C 84 13 67 F1 C7 6B 64 41 [10:06:19]GetLastDocTimeStamp 1729332212 [10:06:19]current date 1729332380 [10:06:19]FM_GetShiftState [10:06:19]SAM_PROTO_GetShiftState [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 13 01 00 [10:06:19]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 A8 [10:06:19]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:06:19]wFMCommunicate OK [10:06:19]SAM_PROTO_GetShiftState done [10:06:19]FM_GetShiftState done [10:06:19]opened in 1729298811 [10:06:19]opened+sec_in_day 1729385211 [10:06:19]quantity*price = 60009 [10:06:19]sum+1 = 60010 [10:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 27 19.10.2024 10:06 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82530 ФПД: 235781321624616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100620&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82530&fm=235781321624616&tin=02508201610067®Number=0000000000091680&sum=60000 [10:06:20]StoreToDocumentArchive [10:06:20]shift 527 fd 82530 [10:06:20]save to /storage/0527/doc_00082530 [10:06:20]save last doc name /storage/0527/doc_00082530 to /storage/kkm_last_doc_name [10:06:20]save OK [10:06:20]Clear old archive folders... [10:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:20]tlvbuf is 007128A0 [10:06:20]SAM_PROTO_ClearQueue [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 09 00 00 [10:06:20]Write to MH i2c: E2 08 00 30 06 80 09 00 00 00 00 00 00 A8 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]SAM_PROTO_ClearQueue done [10:06:20]KKMCreateOFDPacket [10:06:20]OFDProtocolAddRootSTLVToBuf [10:06:20]FM_MakeSignedData [10:06:20]FM_MakeSignedData [10:06:20]SAM_PROTO_SignData [10:06:20]wFMCommunicate request_size=4 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 01 02 [10:06:20]Write to MH i2c: E2 08 00 31 06 80 0D 01 02 00 00 00 00 B0 [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=255 [10:06:20]MH_SAM_APDU [10:06:20]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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 9C 84 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 62 42 01 00 35 04 06 00 D6 [10:06:20]Write to MH i2c: E2 02 01 32 06 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 9C 84 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 62 42 01 00 35 04 06 00 D6 00 00 5A [10:06:20]Write i2c OK [10:06:20]MH_I2C_Read... [10:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:20]Read from MH i2c: E2 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 [10:06:20]MH_I2C_Read... [10:06:20]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [10:06:20]RAPDU: 90 00 [10:06:20]wFMCommunicate OK [10:06:20]wFMCommunicate request_size=10 [10:06:20]MH_SAM_APDU [10:06:20]CAPDU: 80 0D 02 02 05 71 1D EB 8C 28 [10:06:20]Write to MH i2c: E2 0D 00 33 06 80 0D 02 02 05 00 71 1D EB 8C 28 00 00 EA [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:21]Read from MH i2c: E2 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 03 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [10:06:21]RAPDU: 90 00 [10:06:21]wFMCommunicate OK [10:06:21]wFMCommunicate request_size=4 [10:06:21]MH_SAM_APDU [10:06:21]CAPDU: 80 0D 03 02 [10:06:21]Write to MH i2c: E2 08 00 34 06 80 0D 03 02 00 00 00 00 B5 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:21]Read from MH i2c: E2 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 0B 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 0B 00 34 06 00 AB 81 9F F5 15 94 BB B1 90 00 8B [10:06:21]RAPDU: AB 81 9F F5 15 94 BB B1 90 00 [10:06:21]wFMCommunicate OK [10:06:21]SAM_PROTO_SignData done [10:06:21]FM_MakeSignedData done [10:06:21]CreateOFDProtocolMessage [10:06:21]wFMCommunicate request_size=4 [10:06:21]MH_SAM_APDU [10:06:21]CAPDU: 80 11 00 00 [10:06:21]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:21]Read from MH i2c: E2 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 17 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [10:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:06:21]wFMCommunicate OK [10:06:21]CreateOFDProtocolMessage done [10:06:21]OFDSenderStorePacket 82530 [10:06:21]StoreOFDPacket docnum=82530 [10:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 E6 07 01 7E A3 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 9C 84 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 62 42 01 00 35 04 06 00 D6 71 1D EB 8C 28 AB 81 9F F5 15 94 BB B1 [10:06:21]CheckFolder [10:06:21]dirname=/storage/ofd_packets [10:06:21]CheckFolder done [10:06:21]ProducePacketName [10:06:21]name=ofd_packets/00082530 [10:06:21]NVStorageSaveData ofd_packets/00082530 [10:06:21]File name is /storage/ofd_packets/00082530 [10:06:21]Write 301 bytes [10:06:21]NVStorageSaveData done [10:06:21]OFDSenderStorePacket done [10:06:21]KKMCreateOFDPacket done [10:06:21]NVStorageSaveData kkm_last_timestamp [10:06:21]File name is /storage/kkm_last_timestamp [10:06:21]Write 4 bytes [10:06:21]NVStorageSaveData done [10:06:21]ExternCall_PrintAddStr [10:06:21]wPrintStart [10:06:21]Write to MH i2c: 01 00 00 36 06 3C [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [10:06:21]RasterBufferAndPrint [10:06:21]line Счет N : (1)919020 [10:06:21]line ИНН: 02508201610067 [10:06:21]line Контрольно-Кассовый Чек [10:06:21]line ПРОДАЖА [10:06:21]line ТРК (МРК, ГНК) : 22 [10:06:21]line Товар: 2710124130 [10:06:21]line Аи-92-К-4 [10:06:21]line 8.970 * 66.90 [10:06:21]line = 600.09 [10:06:21]line НДС 12% НСП 1% [10:06:21]line > о реализуемом товаре [10:06:21]line ОКРУГЛЕНИЕ: -0.09 [10:06:21]line ИТОГО: 600.00 [10:06:21]line Внесено: 600.00 [10:06:21]line СДАЧА: 0.00 [10:06:21]line НСП 1% : 5.31 [10:06:21]line НДС 12% : 63.73 [10:06:21]line Наличными: 600.00 [10:06:21]line Безнал.: 0.00 [10:06:21]line Место: АЗС № 114 "Партнер Нефть" [10:06:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:06:21]line СНО: Общий режим [10:06:21]line Чек 27 19.10.2024 10:06 [10:06:21]line Смена: 527 ФФД: 1.0 [10:06:21]line ЗНМ: 0300000086 [10:06:21]line РНМ: 0000000000091680 [10:06:21]line Версия ККМ: 001 [10:06:21]line ФМ: 0000000000871843 [10:06:21]line ФД: 82530 [10:06:21]line ФПД: 235781321624616 [10:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100620&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82530&fm=235781321624616&tin=02508201610067®Number=0000000000091680&sum=60000 [10:06:21]OFD Sender: Processing packet 82530 [packets to send 254, broken 253] [10:06:21]ProducePacketName [10:06:21]name=ofd_packets/00082530 [10:06:21]OFD Sender: To server: pG, [10:06:21]CommunicateWithHost lk.salyk.kg:30040 [10:06:21]ConnectInit lk.salyk.kg [10:06:21]written 0, free lines is 4095 [10:06:21]Write to MH i2c: 01 00 00 61 06 67 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 DE 0C 58 [10:06:21]RasterBufferAndPrint [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]line [10:06:21]written 0, free lines is 3300 [10:06:21]MH_Cut [10:06:21]Write to MH i2c: D1 01 00 68 06 01 40 [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 [10:06:21]MH_I2C_Read... [10:06:21]Read from MH i2c: D1 01 00 68 06 00 3F [10:06:21]Write to MH i2c: 01 00 00 69 06 6F [10:06:21]Write i2c OK [10:06:21]MH_I2C_Read... [10:06:22]Connected sock=10 [10:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 E6 07 01 7E A3 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 1B 00 00 00 F4 03 04 00 9C 84 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 62 42 01 00 35 04 06 00 D6 71 1D EB 8C 28 AB 81 9F F5 15 94 BB B1 [10:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 58 CF 47 00 10 C4 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 31 38 34 33 10 04 04 00 62 42 01 00 F4 03 04 00 D4 29 13 67 B6 04 01 00 00 69 0B 5C DA 0E CE 09 DD [10:06:22]CommunicateWithHost err = 0 [10:06:22]CheckOFDResponse [10:06:22]1017 (14) - 77093643461234 [10:06:22]1041 (16) - 0000000000871843 [10:06:22]1040 (4) - 82530 [10:06:22]1012 (4) - 19.10.2024 03:39 [10:06:22]1206 (1) - 0 [10:06:22]OFD Sender: Remove packet 82530 [10:06:22]ProducePacketName [10:06:22]name=ofd_packets/00082530 [10:06:22]NVStorageDeleteData [10:06:22]*** Cut start [10:06:22]*** Partial cut [10:06:22]*** CUTSNS_PIN = 1 [10:06:22]*** CUTSNS_PIN = 0 [10:06:23]*** Brake cut motor [10:06:23]OFD Sender: No OFD packet to send [10:06:23]Read from MH i2c: 01 [10:06:23]MH_I2C_Read... [10:06:23]*** Stop cut motor [10:06:23]*** Cut end [10:06:23]Read from MH i2c: 01 07 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 FF 0F 84 [10:06:23]process_action close_receipt done [10:06:23]requested_data is exist [10:06:23]produce_requested_data [10:06:23]requested_item fm.sn is exist - process it [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 11 00 00 [10:06:23]Write to MH i2c: E2 08 00 6A 06 80 11 00 00 00 00 00 00 EA [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 17 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 17 00 6A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3C [10:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:06:23]wFMCommunicate OK [10:06:23]requested_item fd.num is exist - process it [10:06:23]SAM_PROTO_GetFieldsCounters [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 13 00 00 [10:06:23]Write to MH i2c: E2 08 00 6B 06 80 13 00 00 00 00 00 00 ED [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 62 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 62 00 6B 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 62 42 01 00 0E 04 04 00 0F 02 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 13 [10:06: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 62 42 01 00 0E 04 04 00 0F 02 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 [10:06:23]wFMCommunicate OK [10:06:23]SAM_PROTO_GetFieldsCounters done [10:06:23]requested_item shift.num is exist - process it [10:06:23]requested_item shift.opened is exist - process it [10:06:23]req_shift_opened [10:06:23]FM_GetShiftState [10:06:23]SAM_PROTO_GetShiftState [10:06:23]wFMCommunicate request_size=4 [10:06:23]MH_SAM_APDU [10:06:23]CAPDU: 80 13 01 00 [10:06:23]Write to MH i2c: E2 08 00 6C 06 80 13 01 00 00 00 00 00 EF [10:06:23]Write i2c OK [10:06:23]MH_I2C_Read... [10:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:23]Read from MH i2c: E2 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 0E 00 [10:06:23]MH_I2C_Read... [10:06:23]Read from MH i2c: E2 0E 00 6C 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F1 [10:06:23]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:06:23]wFMCommunicate OK [10:06:23]SAM_PROTO_GetShiftState done [10:06:23]FM_GetShiftState done [10:06:23]req_shift_opened done [10:06:23]requested_item shift.open_date is exist - process it [10:06:23]req_shift_open_date [10:06:23]req_shift_open_date done [10:06:23]produce_requested_data done [10:06:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82530,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:06:23]process_action_free close_receipt [10:06:23]json_value_free [10:06:23]json_value_free done [10:06:23]process_json_proto returns [10:06:23]Send response to host [10:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82530,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:06:23]free response buf [10:06:23]execute_script done [10:06:23]execute_script returns [10:06:23]free content buf [10:06:23]Sock 9.Close socket [10:06:23]Sock 9.Thread stoped [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:46]recv_with_timeout no data received [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]accept exits with 8 [10:09:58]New connection [10:09:58]New thread 3067280740 created [10:09:58]Thread 3067137380 joined [10:09:58]Waiting for new connection... [10:09:58] Sock 8.Parse request [10:09:58]Sock 8.Check first char [10:09:58]Sock 8.First char is OK [10:09:58]request: POST /json_proto HTTP/1.0 [10:09:58]Method: POST [10:09:58]URL: /json_proto [10:09:58]Method is POST - this is cgi request [10:09:58]url: /json_proto [10:09:58]query_string will be loaded in cgi processing [10:09:58]execute_cgi json_proto POST (null) [10:09:58]execute_cgi path=json_proto method=POST [10:09:58]POST find Content-Length [10:09:58]Host: 172.17.44.67:8080 [10:09:58]Content-Length: 677 [10:09:58]Content-Type: application/json [10:09:58] [10:09:58]POST finish read [10:09:58]Found Content-Length = 677 [10:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:09:58]execute_script... [10:09: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 : (1)919021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:09:58]POST & json_proto [10:09:58]process_json_proto [10:09:58]json parsed OK: [10:09:58]protocol is kg_v1.0 [10:09:58]action value=close_receipt [10:09:58]process_action close_receipt [10:09:58]cmd_close_receipt [10:09:58]MH_GetDate [10:09:58]Write to MH i2c: F0 00 00 6D 06 62 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: F0 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: F0 09 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: F0 09 00 6D 06 00 76 85 13 67 F1 C7 6B 64 67 [10:09:58]GetLastDocTimeStamp 1729332380 [10:09:58]current date 1729332598 [10:09:58]FM_GetShiftState [10:09:58]SAM_PROTO_GetShiftState [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 13 01 00 [10:09:58]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0E 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F3 [10:09:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_GetShiftState done [10:09:58]FM_GetShiftState done [10:09:58]opened in 1729298811 [10:09:58]opened+sec_in_day 1729385211 [10:09:58]quantity*price = 50041 [10:09:58]sum+1 = 50042 [10:09:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 28 19.10.2024 10:09 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82531 ФПД: 157877758402556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100959&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82531&fm=157877758402556&tin=02508201610067®Number=0000000000091680&sum=50000 [10:09:59]StoreToDocumentArchive [10:09:59]shift 527 fd 82531 [10:09:59]save to /storage/0527/doc_00082531 [10:09:59]save last doc name /storage/0527/doc_00082531 to /storage/kkm_last_doc_name [10:09:59]save OK [10:09:59]Clear old archive folders... [10:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:59]tlvbuf is 006BF7D0 [10:09:59]SAM_PROTO_ClearQueue [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 09 00 00 [10:09:59]Write to MH i2c: E2 08 00 7B 06 80 09 00 00 00 00 00 00 F3 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [10:09:59]RAPDU: 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_ClearQueue done [10:09:59]KKMCreateOFDPacket [10:09:59]OFDProtocolAddRootSTLVToBuf [10:09:59]FM_MakeSignedData [10:09:59]FM_MakeSignedData [10:09:59]SAM_PROTO_SignData [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 0D 01 02 [10:09:59]Write to MH i2c: E2 08 00 7C 06 80 0D 01 02 00 00 00 00 FB [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [10:09:59]RAPDU: 90 00 [10:09:59]wFMCommunicate OK [10:09:59]wFMCommunicate request_size=255 [10:09:59]MH_SAM_APDU [10:09:59]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1C 00 00 00 F4 03 04 00 77 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 63 42 01 00 35 04 06 00 8F [10:09:59]Write to MH i2c: E2 02 01 7D 06 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1C 00 00 00 F4 03 04 00 77 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 63 42 01 00 35 04 06 00 8F 00 00 5F [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [10:09:59]RAPDU: 90 00 [10:09:59]wFMCommunicate OK [10:09:59]wFMCommunicate request_size=10 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 0D 02 02 05 96 C7 B5 1F FC [10:09:59]Write to MH i2c: E2 0D 00 7E 06 80 0D 02 02 05 00 96 C7 B5 1F FC 00 00 35 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [10:09:59]RAPDU: 90 00 [10:09:59]wFMCommunicate OK [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 0D 03 02 [10:09:59]Write to MH i2c: E2 08 00 7F 06 80 0D 03 02 00 00 00 00 00 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0B 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0B 00 7F 06 00 B4 F7 A2 06 33 E7 28 C7 90 00 5D [10:09:59]RAPDU: B4 F7 A2 06 33 E7 28 C7 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_SignData done [10:09:59]FM_MakeSignedData done [10:09:59]CreateOFDProtocolMessage [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 11 00 00 [10:09:59]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 17 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 52 [10:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:09:59]wFMCommunicate OK [10:09:59]CreateOFDProtocolMessage done [10:09:59]OFDSenderStorePacket 82531 [10:09:59]StoreOFDPacket docnum=82531 [10:09:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BE 26 07 01 9C 4B 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1C 00 00 00 F4 03 04 00 77 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 63 42 01 00 35 04 06 00 8F 96 C7 B5 1F FC B4 F7 A2 06 33 E7 28 C7 [10:09:59]CheckFolder [10:09:59]dirname=/storage/ofd_packets [10:09:59]CheckFolder done [10:09:59]ProducePacketName [10:09:59]name=ofd_packets/00082531 [10:09:59]NVStorageSaveData ofd_packets/00082531 [10:09:59]File name is /storage/ofd_packets/00082531 [10:09:59]Write 301 bytes [10:09:59]NVStorageSaveData done [10:09:59]OFDSenderStorePacket done [10:09:59]KKMCreateOFDPacket done [10:09:59]NVStorageSaveData kkm_last_timestamp [10:09:59]File name is /storage/kkm_last_timestamp [10:09:59]Write 4 bytes [10:09:59]NVStorageSaveData done [10:09:59]ExternCall_PrintAddStr [10:09:59]wPrintStart [10:09:59]Write to MH i2c: 01 00 00 81 06 87 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0F 9C [10:09:59]RasterBufferAndPrint [10:09:59]line Счет N : (1)919021 [10:09:59]line ИНН: 02508201610067 [10:09:59]line Контрольно-Кассовый Чек [10:09:59]line ПРОДАЖА [10:09:59]line ТРК (МРК, ГНК) : 11 [10:09:59]line Товар: 2710124130 [10:09:59]line Аи-92-К-4 [10:09:59]line 7.480 * 66.90 [10:09:59]line = 500.41 [10:09:59]line НДС 12% НСП 1% [10:09:59]line > о реализуемом товаре [10:09:59]line ОКРУГЛЕНИЕ: -0.41 [10:09:59]line ИТОГО: 500.00 [10:09:59]line Внесено: 500.00 [10:09:59]line СДАЧА: 0.00 [10:09:59]line НСП 1% : 4.43 [10:09:59]line НДС 12% : 53.14 [10:09:59]line Наличными: 500.00 [10:09:59]line Безнал.: 0.00 [10:09:59]line Место: АЗС № 114 "Партнер Нефть" [10:09:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:09:59]line СНО: Общий режим [10:09:59]line Чек 28 19.10.2024 10:09 [10:09:59]line Смена: 527 ФФД: 1.0 [10:09:59]line ЗНМ: 0300000086 [10:09:59]line РНМ: 0000000000091680 [10:09:59]line Версия ККМ: 001 [10:09:59]line ФМ: 0000000000871843 [10:09:59]line ФД: 82531 [10:09:59]line ФПД: 157877758402556 [10:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T100959&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82531&fm=157877758402556&tin=02508201610067®Number=0000000000091680&sum=50000 [10:10:00]OFD Sender: Processing packet 82531 [packets to send 254, broken 253] [10:10:00]ProducePacketName [10:10:00]name=ofd_packets/00082531 [10:10:00]OFD Sender: To server: pG, [10:10:00]CommunicateWithHost lk.salyk.kg:30040 [10:10:00]ConnectInit lk.salyk.kg [10:10:00]written 0, free lines is 4095 [10:10:00]Connected sock=9 [10:10:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BE 26 07 01 9C 4B 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 1C 00 00 00 F4 03 04 00 77 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 63 42 01 00 35 04 06 00 8F 96 C7 B5 1F FC B4 F7 A2 06 33 E7 28 C7 [10:10:00]Write to MH i2c: 01 00 00 AC 06 B2 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 EA 0C AF [10:10:00]RasterBufferAndPrint [10:10:00]line [10:10:00]line [10:10:00]line [10:10:00]line [10:10:00]line [10:10:00]written 0, free lines is 3313 [10:10:00]MH_Cut [10:10:00]Write to MH i2c: D1 01 00 B3 06 01 8B [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: D1 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: D1 01 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: D1 01 00 B3 06 00 8A [10:10:00]Write to MH i2c: 01 00 00 B4 06 BA [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 04 18 47 00 6E 1B 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 31 38 34 33 10 04 04 00 63 42 01 00 F4 03 04 00 AE 2A 13 67 B6 04 01 00 00 D5 10 B0 26 3E 4C A9 10 [10:10:01]CommunicateWithHost err = 0 [10:10:01]CheckOFDResponse [10:10:01]1017 (14) - 77093643461234 [10:10:01]1041 (16) - 0000000000871843 [10:10:01]1040 (4) - 82531 [10:10:01]1012 (4) - 19.10.2024 03:42 [10:10:01]1206 (1) - 0 [10:10:01]OFD Sender: Remove packet 82531 [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00082531 [10:10:01]NVStorageDeleteData [10:10:01]OFD Sender: No OFD packet to send [10:10:01]*** Cut start [10:10:01]*** Partial cut [10:10:01]*** CUTSNS_PIN = 1 [10:10:01]*** CUTSNS_PIN = 0 [10:10:01]*** Brake cut motor [10:10:02]Read from MH i2c: 01 [10:10:02]MH_I2C_Read... [10:10:02]*** Stop cut motor [10:10:02]*** Cut end [10:10:02]Read from MH i2c: 01 07 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [10:10:02]process_action close_receipt done [10:10:02]requested_data is exist [10:10:02]produce_requested_data [10:10:02]requested_item fm.sn is exist - process it [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 11 00 00 [10:10:02]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 87 [10:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:10:02]wFMCommunicate OK [10:10:02]requested_item fd.num is exist - process it [10:10:02]SAM_PROTO_GetFieldsCounters [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 13 00 00 [10:10:02]Write to MH i2c: E2 08 00 B6 06 80 13 00 00 00 00 00 00 38 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 62 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 62 00 B6 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 63 42 01 00 0E 04 04 00 0F 02 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 62 [10:10: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 63 42 01 00 0E 04 04 00 0F 02 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 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_GetFieldsCounters done [10:10:02]requested_item shift.num is exist - process it [10:10:02]requested_item shift.opened is exist - process it [10:10:02]req_shift_opened [10:10:02]FM_GetShiftState [10:10:02]SAM_PROTO_GetShiftState [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 13 01 00 [10:10:02]Write to MH i2c: E2 08 00 B7 06 80 13 01 00 00 00 00 00 3A [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 0E 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 0E 00 B7 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 3C [10:10:02]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_GetShiftState done [10:10:02]FM_GetShiftState done [10:10:02]req_shift_opened done [10:10:02]requested_item shift.open_date is exist - process it [10:10:02]req_shift_open_date [10:10:02]req_shift_open_date done [10:10:02]produce_requested_data done [10:10:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82531,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:10:02]process_action_free close_receipt [10:10:02]json_value_free [10:10:02]json_value_free done [10:10:02]process_json_proto returns [10:10:02]Send response to host [10:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82531,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:10:02]free response buf [10:10:02]execute_script done [10:10:02]execute_script returns [10:10:02]free content buf [10:10:02]Sock 8.Close socket [10:10:02]Sock 8.Thread stoped [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:16]accept exits with 10 [10:11:16]New connection [10:11:16]New thread 3067137380 created [10:11:16]Thread 3067280740 joined [10:11:16]Waiting for new connection... [10:11:16] Sock 10.Parse request [10:11:16]Sock 10.Check first char [10:11:16]Sock 10.First char is OK [10:11:16]request: POST /json_proto HTTP/1.0 [10:11:16]Method: POST [10:11:16]URL: /json_proto [10:11:16]Method is POST - this is cgi request [10:11:16]url: /json_proto [10:11:16]query_string will be loaded in cgi processing [10:11:16]execute_cgi json_proto POST (null) [10:11:16]execute_cgi path=json_proto method=POST [10:11:16]POST find Content-Length [10:11:16]Host: 172.17.44.67:8080 [10:11:16]Content-Length: 800 [10:11:16]Content-Type: application/json [10:11:16] [10:11:16]POST finish read [10:11:16]Found Content-Length = 800 [10:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946384", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:16]execute_script... [10:11: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 : (1)919022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946384", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:16]POST & json_proto [10:11:16]process_json_proto [10:11:16]json parsed OK: [10:11:16]protocol is kg_v1.0 [10:11:16]action value=close_receipt [10:11:16]process_action close_receipt [10:11:16]cmd_close_receipt [10:11:16]MH_GetDate [10:11:16]Write to MH i2c: F0 00 00 B8 06 AD [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: F0 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: F0 09 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: F0 09 00 B8 06 00 C5 85 13 67 F1 C7 6B 64 01 [10:11:16]GetLastDocTimeStamp 1729332599 [10:11:16]current date 1729332677 [10:11:16]FM_GetShiftState [10:11:16]SAM_PROTO_GetShiftState [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 13 01 00 [10:11:16]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0E 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 3E [10:11:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_GetShiftState done [10:11:16]FM_GetShiftState done [10:11:16]opened in 1729298811 [10:11:16]opened+sec_in_day 1729385211 [10:11:16]quantity*price = 0 [10:11:16]sum+1 = 1 [10:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 29 19.10.2024 10:11 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 3946384 ФМ: 0000000000871843 ФД: 82532 ФПД: 28987591565176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82532&fm=28987591565176&tin=02508201610067®Number=0000000000091680&sum=0 [10:11:17]StoreToDocumentArchive [10:11:17]shift 527 fd 82532 [10:11:17]save to /storage/0527/doc_00082532 [10:11:17]save last doc name /storage/0527/doc_00082532 to /storage/kkm_last_doc_name [10:11:17]save OK [10:11:17]Clear old archive folders... [10:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:17]tlvbuf is 0070AB70 [10:11:17]SAM_PROTO_ClearQueue [10:11:17]wFMCommunicate request_size=4 [10:11:17]MH_SAM_APDU [10:11:17]CAPDU: 80 09 00 00 [10:11:17]Write to MH i2c: E2 08 00 C6 06 80 09 00 00 00 00 00 00 3E [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:17]Read from MH i2c: E2 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [10:11:17]RAPDU: 90 00 [10:11:17]wFMCommunicate OK [10:11:17]SAM_PROTO_ClearQueue done [10:11:17]KKMCreateOFDPacket [10:11:17]OFDProtocolAddRootSTLVToBuf [10:11:17]FM_MakeSignedData [10:11:17]FM_MakeSignedData [10:11:17]SAM_PROTO_SignData [10:11:17]wFMCommunicate request_size=4 [10:11:17]MH_SAM_APDU [10:11:17]CAPDU: 80 0D 01 02 [10:11:17]Write to MH i2c: E2 08 00 C7 06 80 0D 01 02 00 00 00 00 46 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [10:11:18]RAPDU: 90 00 [10:11:18]wFMCommunicate OK [10:11:18]wFMCommunicate request_size=255 [10:11:18]MH_SAM_APDU [10:11:18]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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C5 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 64 42 01 00 35 04 06 00 1A [10:11:18]Write to MH i2c: E2 02 01 C8 06 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C5 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 64 42 01 00 35 04 06 00 1A 00 00 6E [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [10:11:18]RAPDU: 90 00 [10:11:18]wFMCommunicate OK [10:11:18]wFMCommunicate request_size=10 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 0D 02 02 05 5D 33 19 1F 78 [10:11:18]Write to MH i2c: E2 0D 00 C9 06 80 0D 02 02 05 00 5D 33 19 1F 78 00 00 93 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [10:11:18]RAPDU: 90 00 [10:11:18]wFMCommunicate OK [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 0D 03 02 [10:11:18]Write to MH i2c: E2 08 00 CA 06 80 0D 03 02 00 00 00 00 4B [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0B 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0B 00 CA 06 00 79 D7 D6 AA A6 66 BF D9 90 00 C0 [10:11:18]RAPDU: 79 D7 D6 AA A6 66 BF D9 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_SignData done [10:11:18]FM_MakeSignedData done [10:11:18]CreateOFDProtocolMessage [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 11 00 00 [10:11:18]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9D [10:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:11:18]wFMCommunicate OK [10:11:18]CreateOFDProtocolMessage done [10:11:18]OFDSenderStorePacket 82532 [10:11:18]StoreOFDPacket docnum=82532 [10:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 28 07 01 D3 DB 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C5 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 64 42 01 00 35 04 06 00 1A 5D 33 19 1F 78 79 D7 D6 AA A6 66 BF D9 [10:11:18]CheckFolder [10:11:18]dirname=/storage/ofd_packets [10:11:18]CheckFolder done [10:11:18]ProducePacketName [10:11:18]name=ofd_packets/00082532 [10:11:18]NVStorageSaveData ofd_packets/00082532 [10:11:18]File name is /storage/ofd_packets/00082532 [10:11:18]Write 301 bytes [10:11:18]NVStorageSaveData done [10:11:18]OFDSenderStorePacket done [10:11:18]KKMCreateOFDPacket done [10:11:18]NVStorageSaveData kkm_last_timestamp [10:11:18]File name is /storage/kkm_last_timestamp [10:11:18]Write 4 bytes [10:11:18]NVStorageSaveData done [10:11:18]ExternCall_PrintAddStr [10:11:18]wPrintStart [10:11:18]Write to MH i2c: 01 00 00 CC 06 D2 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [10:11:18]RasterBufferAndPrint [10:11:18]line Счет N : (1)919022 [10:11:18]line ИНН: 02508201610067 [10:11:18]line Контрольно-Кассовый Чек [10:11:18]line ПРОДАЖА [10:11:18]line ТРК (МРК, ГНК) : 22 [10:11:18]line Товар: 2710124130 [10:11:18]line Аи-92-К-4 [10:11:18]line 20.000 * 0.00 [10:11:18]line = 0.00 [10:11:18]line НДС 12% НСП 1% [10:11:18]line > о реализуемом товаре [10:11:18]line ИТОГО: 0.00 [10:11:18]line НСП 1% : 0.00 [10:11:18]line НДС 12% : 0.00 [10:11:18]line Наличными: 0.00 [10:11:18]line Безнал.: 0.00 [10:11:18]line Место: АЗС № 114 "Партнер Нефть" [10:11:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:11:18]line СНО: Общий режим [10:11:18]line Чек 29 19.10.2024 10:11 [10:11:18]line Смена: 527 ФФД: 1.0 [10:11:18]line ЗНМ: 0300000086 [10:11:18]line РНМ: 0000000000091680 [10:11:18]line Версия ККМ: 001 [10:11:18]line Талоны: Топливные Талоны [10:11:18]line 3946384 [10:11:18]line ФМ: 0000000000871843 [10:11:18]line ФД: 82532 [10:11:18]line ФПД: 28987591565176 [10:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82532&fm=28987591565176&tin=02508201610067®Number=0000000000091680&sum=0 [10:11:18]written 0, free lines is 4095 [10:11:18]OFD Sender: Processing packet 82532 [packets to send 254, broken 253] [10:11:18]ProducePacketName [10:11:18]name=ofd_packets/00082532 [10:11:18]OFD Sender: To server: pG, [10:11:18]CommunicateWithHost lk.salyk.kg:30040 [10:11:18]ConnectInit lk.salyk.kg [10:11:19]Write to MH i2c: 01 00 00 F6 06 FC [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 07 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 E8 0C F7 [10:11:19]RasterBufferAndPrint [10:11:19]line [10:11:19]line [10:11:19]line [10:11:19]line [10:11:19]line [10:11:19]written 0, free lines is 3309 [10:11:19]MH_Cut [10:11:19]Write to MH i2c: D1 01 00 FD 06 01 D5 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: D1 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: D1 01 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: D1 01 00 FD 06 00 D4 [10:11:19]Write to MH i2c: 01 00 00 FE 06 04 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]Connected sock=11 [10:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 28 07 01 D3 DB 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C5 85 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 64 42 01 00 35 04 06 00 1A 5D 33 19 1F 78 79 D7 D6 AA A6 66 BF D9 [10:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5B C0 47 00 5B 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 31 38 34 33 10 04 04 00 64 42 01 00 F4 03 04 00 FD 2A 13 67 B6 04 01 00 00 94 E6 45 EA 3B A8 B9 F2 [10:11:19]CommunicateWithHost err = 0 [10:11:19]CheckOFDResponse [10:11:19]1017 (14) - 77093643461234 [10:11:19]1041 (16) - 0000000000871843 [10:11:19]1040 (4) - 82532 [10:11:19]1012 (4) - 19.10.2024 03:43 [10:11:19]1206 (1) - 0 [10:11:19]OFD Sender: Remove packet 82532 [10:11:19]ProducePacketName [10:11:19]name=ofd_packets/00082532 [10:11:19]NVStorageDeleteData [10:11:20]*** Cut start [10:11:20]*** Partial cut [10:11:20]*** CUTSNS_PIN = 1 [10:11:20]*** CUTSNS_PIN = 0 [10:11:20]*** Brake cut motor [10:11:20]OFD Sender: No OFD packet to send [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]*** Stop cut motor [10:11:20]*** Cut end [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [10:11:20]process_action close_receipt done [10:11:20]requested_data is exist [10:11:20]produce_requested_data [10:11:20]requested_item fm.sn is exist - process it [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 11 00 00 [10:11:20]Write to MH i2c: E2 08 00 FF 06 80 11 00 00 00 00 00 00 7F [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 FF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D1 [10:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:11:20]wFMCommunicate OK [10:11:20]requested_item fd.num is exist - process it [10:11:20]SAM_PROTO_GetFieldsCounters [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 13 00 00 [10:11:20]Write to MH i2c: E2 08 00 00 07 80 13 00 00 00 00 00 00 83 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 62 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 62 00 00 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 64 42 01 00 0E 04 04 00 0F 02 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 B1 [10:11: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 64 42 01 00 0E 04 04 00 0F 02 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 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_GetFieldsCounters done [10:11:20]requested_item shift.num is exist - process it [10:11:20]requested_item shift.opened is exist - process it [10:11:20]req_shift_opened [10:11:20]FM_GetShiftState [10:11:20]SAM_PROTO_GetShiftState [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 13 01 00 [10:11:20]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0E 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 87 [10:11:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_GetShiftState done [10:11:20]FM_GetShiftState done [10:11:20]req_shift_opened done [10:11:20]requested_item shift.open_date is exist - process it [10:11:20]req_shift_open_date [10:11:20]req_shift_open_date done [10:11:20]produce_requested_data done [10:11:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82532,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:11:20]process_action_free close_receipt [10:11:20]json_value_free [10:11:20]json_value_free done [10:11:20]process_json_proto returns [10:11:20]Send response to host [10:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82532,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:11:20]free response buf [10:11:20]execute_script done [10:11:20]execute_script returns [10:11:20]free content buf [10:11:20]Sock 10.Close socket [10:11:20]Sock 10.Thread stoped [10:11:22]recv_with_timeout no data received [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:33]recv_with_timeout no data received [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:03]accept exits with 8 [10:17:03]New connection [10:17:03]New thread 3067280740 created [10:17:03]Thread 3067137380 joined [10:17:03]Waiting for new connection... [10:17:03] Sock 8.Parse request [10:17:03]Sock 8.Check first char [10:17:03]Sock 8.First char is OK [10:17:03]request: POST /json_proto HTTP/1.0 [10:17:03]Method: POST [10:17:03]URL: /json_proto [10:17:03]Method is POST - this is cgi request [10:17:03]url: /json_proto [10:17:03]query_string will be loaded in cgi processing [10:17:03]execute_cgi json_proto POST (null) [10:17:03]execute_cgi path=json_proto method=POST [10:17:03]POST find Content-Length [10:17:03]Host: 172.17.44.67:8080 [10:17:03]Content-Length: 753 [10:17:03]Content-Type: application/json [10:17:03] [10:17:03]POST finish read [10:17:03]Found Content-Length = 753 [10:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 4.050, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]execute_script... [10:17: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 : (1)919023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 4.050, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]POST & json_proto [10:17:03]process_json_proto [10:17:03]json parsed OK: [10:17:03]protocol is kg_v1.0 [10:17:03]action value=close_receipt [10:17:03]process_action close_receipt [10:17:03]cmd_close_receipt [10:17:03]MH_GetDate [10:17:03]Write to MH i2c: F0 00 00 02 07 F8 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 02 07 00 20 87 13 67 F1 C7 6B 64 A9 [10:17:03]GetLastDocTimeStamp 1729332677 [10:17:03]current date 1729333024 [10:17:03]FM_GetShiftState [10:17:03]SAM_PROTO_GetShiftState [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 13 01 00 [10:17:03]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 89 [10:17:03]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:17:03]wFMCommunicate OK [10:17:03]SAM_PROTO_GetShiftState done [10:17:03]FM_GetShiftState done [10:17:03]opened in 1729298811 [10:17:03]opened+sec_in_day 1729385211 [10:17:03]quantity*price = 0 [10:17:03]sum+1 = 1 [10:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 30 19.10.2024 10:17 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096582 ФМ: 0000000000871843 ФД: 82533 ФПД: 279086976777691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101704&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82533&fm=279086976777691&tin=02508201610067®Number=0000000000091680&sum=0 [10:17:05]StoreToDocumentArchive [10:17:05]shift 527 fd 82533 [10:17:05]save to /storage/0527/doc_00082533 [10:17:05]save last doc name /storage/0527/doc_00082533 to /storage/kkm_last_doc_name [10:17:05]save OK [10:17:05]Clear old archive folders... [10:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:05]tlvbuf is 00711810 [10:17:05]SAM_PROTO_ClearQueue [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 09 00 00 [10:17:05]Write to MH i2c: E2 08 00 10 07 80 09 00 00 00 00 00 00 89 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_ClearQueue done [10:17:05]KKMCreateOFDPacket [10:17:05]OFDProtocolAddRootSTLVToBuf [10:17:05]FM_MakeSignedData [10:17:05]FM_MakeSignedData [10:17:05]SAM_PROTO_SignData [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 01 02 [10:17:05]Write to MH i2c: E2 08 00 11 07 80 0D 01 02 00 00 00 00 91 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=255 [10:17:05]MH_SAM_APDU [10:17:05]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 42 01 00 35 04 06 00 FD [10:17:05]Write to MH i2c: E2 02 01 12 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 42 01 00 35 04 06 00 FD 00 00 73 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=10 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 02 02 05 D4 00 1C BD DB [10:17:05]Write to MH i2c: E2 0D 00 13 07 80 0D 02 02 05 00 D4 00 1C BD DB 00 00 26 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 03 02 [10:17:05]Write to MH i2c: E2 08 00 14 07 80 0D 03 02 00 00 00 00 96 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 14 07 00 BE 8B EA A6 F0 AE F0 A4 90 00 A2 [10:17:05]RAPDU: BE 8B EA A6 F0 AE F0 A4 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_SignData done [10:17:05]FM_MakeSignedData done [10:17:05]CreateOFDProtocolMessage [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 11 00 00 [10:17:05]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E8 [10:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:17:05]wFMCommunicate OK [10:17:05]CreateOFDProtocolMessage done [10:17:05]OFDSenderStorePacket 82533 [10:17:05]StoreOFDPacket docnum=82533 [10:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5B D8 07 01 33 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 42 01 00 35 04 06 00 FD D4 00 1C BD DB BE 8B EA A6 F0 AE F0 A4 [10:17:05]CheckFolder [10:17:05]dirname=/storage/ofd_packets [10:17:05]CheckFolder done [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00082533 [10:17:05]NVStorageSaveData ofd_packets/00082533 [10:17:05]File name is /storage/ofd_packets/00082533 [10:17:05]Write 301 bytes [10:17:05]NVStorageSaveData done [10:17:05]OFDSenderStorePacket done [10:17:05]KKMCreateOFDPacket done [10:17:05]NVStorageSaveData kkm_last_timestamp [10:17:05]File name is /storage/kkm_last_timestamp [10:17:05]Write 4 bytes [10:17:05]NVStorageSaveData done [10:17:05]ExternCall_PrintAddStr [10:17:05]wPrintStart [10:17:05]Write to MH i2c: 01 00 00 16 07 1D [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [10:17:05]RasterBufferAndPrint [10:17:05]line Счет N : (1)919023 [10:17:05]line ИНН: 02508201610067 [10:17:05]line Контрольно-Кассовый Чек [10:17:05]line ПРОДАЖА [10:17:05]line ТРК (МРК, ГНК) : 12 [10:17:05]line Товар: 2710124500 [10:17:05]line Аи-95-К-5 [10:17:05]line 4.050 * 0.00 [10:17:05]line = 0.00 [10:17:05]line НДС 12% НСП 1% [10:17:05]line > о реализуемом товаре [10:17:05]line ИТОГО: 0.00 [10:17:05]line НСП 1% : 0.00 [10:17:05]line НДС 12% : 0.00 [10:17:05]line Наличными: 0.00 [10:17:05]line Безнал.: 0.00 [10:17:05]line Место: АЗС № 114 "Партнер Нефть" [10:17:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:17:05]line СНО: Общий режим [10:17:05]line Чек 30 19.10.2024 10:17 [10:17:05]line Смена: 527 ФФД: 1.0 [10:17:05]line ЗНМ: 0300000086 [10:17:05]line РНМ: 0000000000091680 [10:17:05]line Версия ККМ: 001 [10:17:05]line Талоны: ТК ГПНА Online [10:17:05]line 30096582 [10:17:05]line ФМ: 0000000000871843 [10:17:05]line ФД: 82533 [10:17:05]line ФПД: 279086976777691 [10:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101704&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82533&fm=279086976777691&tin=02508201610067®Number=0000000000091680&sum=0 [10:17:05]written 0, free lines is 4095 [10:17:05]OFD Sender: Processing packet 82533 [packets to send 254, broken 253] [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00082533 [10:17:05]OFD Sender: To server: pG, [10:17:05]CommunicateWithHost lk.salyk.kg:30040 [10:17:05]ConnectInit lk.salyk.kg [10:17:06]Connected sock=9 [10:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5B D8 07 01 33 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 20 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 42 01 00 35 04 06 00 FD D4 00 1C BD DB BE 8B EA A6 F0 AE F0 A4 [10:17:06]Write to MH i2c: 01 00 00 40 07 47 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 07 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 E6 0C 40 [10:17:06]RasterBufferAndPrint [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]written 0, free lines is 3309 [10:17:06]MH_Cut [10:17:06]Write to MH i2c: D1 01 00 47 07 01 20 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 01 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 01 00 47 07 00 1F [10:17:06]Write to MH i2c: 01 00 00 48 07 4F [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0A E5 47 00 AC 8B 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 31 38 34 33 10 04 04 00 65 42 01 00 F4 03 04 00 58 2C 13 67 B6 04 01 00 00 13 16 EE AE E1 D7 B1 19 [10:17:06]CommunicateWithHost err = 0 [10:17:06]CheckOFDResponse [10:17:06]1017 (14) - 77093643461234 [10:17:06]1041 (16) - 0000000000871843 [10:17:06]1040 (4) - 82533 [10:17:06]1012 (4) - 19.10.2024 03:49 [10:17:06]1206 (1) - 0 [10:17:06]OFD Sender: Remove packet 82533 [10:17:06]ProducePacketName [10:17:06]name=ofd_packets/00082533 [10:17:06]NVStorageDeleteData [10:17:07]*** Cut start [10:17:07]*** Partial cut [10:17:07]*** CUTSNS_PIN = 1 [10:17:07]*** CUTSNS_PIN = 0 [10:17:07]OFD Sender: No OFD packet to send [10:17:07]*** Brake cut motor [10:17:07]Read from MH i2c: 01 [10:17:07]MH_I2C_Read... [10:17:07]*** Stop cut motor [10:17:07]*** Cut end [10:17:07]Read from MH i2c: 01 07 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [10:17:07]process_action close_receipt done [10:17:07]requested_data is exist [10:17:07]produce_requested_data [10:17:07]requested_item fm.sn is exist - process it [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 11 00 00 [10:17:07]Write to MH i2c: E2 08 00 49 07 80 11 00 00 00 00 00 00 CA [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 49 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1C [10:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:17:07]wFMCommunicate OK [10:17:07]requested_item fd.num is exist - process it [10:17:07]SAM_PROTO_GetFieldsCounters [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 00 00 [10:17:07]Write to MH i2c: E2 08 00 4A 07 80 13 00 00 00 00 00 00 CD [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 4A 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 65 42 01 00 0E 04 04 00 0F 02 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 FF [10:17: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 65 42 01 00 0E 04 04 00 0F 02 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 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetFieldsCounters done [10:17:07]requested_item shift.num is exist - process it [10:17:07]requested_item shift.opened is exist - process it [10:17:07]req_shift_opened [10:17:07]FM_GetShiftState [10:17:07]SAM_PROTO_GetShiftState [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 01 00 [10:17:07]Write to MH i2c: E2 08 00 4B 07 80 13 01 00 00 00 00 00 CF [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:07]Read from MH i2c: E2 0E 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0E 00 4B 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D1 [10:17:07]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetShiftState done [10:17:07]FM_GetShiftState done [10:17:07]req_shift_opened done [10:17:07]requested_item shift.open_date is exist - process it [10:17:07]req_shift_open_date [10:17:07]req_shift_open_date done [10:17:07]produce_requested_data done [10:17:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82533,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:17:07]process_action_free close_receipt [10:17:07]json_value_free [10:17:07]json_value_free done [10:17:07]process_json_proto returns [10:17:07]Send response to host [10:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82533,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:17:07]free response buf [10:17:07]execute_script done [10:17:07]execute_script returns [10:17:07]free content buf [10:17:07]Sock 8.Close socket [10:17:07]Sock 8.Thread stoped [10:17:12]OFD Sender: No OFD packet to send [10:17:15]recv_with_timeout no data received [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:26]recv_with_timeout no data received [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:48]accept exits with 10 [10:18:48]New connection [10:18:48]New thread 3067137380 created [10:18:48]Thread 3067280740 joined [10:18:48]Waiting for new connection... [10:18:48] Sock 10.Parse request [10:18:48]Sock 10.Check first char [10:18:48]Sock 10.First char is OK [10:18:48]request: POST /json_proto HTTP/1.0 [10:18:48]Method: POST [10:18:48]URL: /json_proto [10:18:48]Method is POST - this is cgi request [10:18:48]url: /json_proto [10:18:48]query_string will be loaded in cgi processing [10:18:48]execute_cgi json_proto POST (null) [10:18:48]execute_cgi path=json_proto method=POST [10:18:48]POST find Content-Length [10:18:48]Host: 172.17.44.67:8080 [10:18:48]Content-Length: 620 [10:18:48]Content-Type: application/json [10:18:48] [10:18:48]POST finish read [10:18:48]Found Content-Length = 620 [10:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10599", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:48]execute_script... [10:18: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)10599", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:48]POST & json_proto [10:18:48]process_json_proto [10:18:48]json parsed OK: [10:18:48]protocol is kg_v1.0 [10:18:48]action value=close_receipt [10:18:48]process_action close_receipt [10:18:48]cmd_close_receipt [10:18:48]MH_GetDate [10:18:48]Write to MH i2c: F0 00 00 4C 07 42 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: F0 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: F0 09 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: F0 09 00 4C 07 00 88 87 13 67 F1 C7 6B 64 5B [10:18:48]GetLastDocTimeStamp 1729333024 [10:18:48]current date 1729333128 [10:18:48]FM_GetShiftState [10:18:48]SAM_PROTO_GetShiftState [10:18:48]wFMCommunicate request_size=4 [10:18:48]MH_SAM_APDU [10:18:48]CAPDU: 80 13 01 00 [10:18:48]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:48]Read from MH i2c: E2 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 0E 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D3 [10:18:48]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:18:48]wFMCommunicate OK [10:18:48]SAM_PROTO_GetShiftState done [10:18:48]FM_GetShiftState done [10:18:48]opened in 1729298811 [10:18:48]opened+sec_in_day 1729385211 [10:18:48]quantity*price = 13500 [10:18:48]sum+1 = 13501 [10:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 31 19.10.2024 10:18 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82534 ФПД: 242165564436523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82534&fm=242165564436523&tin=02508201610067®Number=0000000000091680&sum=13500 0 [10:18:49]StoreToDocumentArchive [10:18:49]shift 527 fd 82534 [10:18:49]save to /storage/0527/doc_00082534 [10:18:49]save last doc name /storage/0527/doc_00082534 to /storage/kkm_last_doc_name [10:18:49]save OK [10:18:49]Clear old archive folders... [10:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:18:49]tlvbuf is 006BAFA0 [10:18:49]SAM_PROTO_ClearQueue [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 09 00 00 [10:18:49]Write to MH i2c: E2 08 00 5A 07 80 09 00 00 00 00 00 00 D3 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]SAM_PROTO_ClearQueue done [10:18:49]KKMCreateOFDPacket [10:18:49]OFDProtocolAddRootSTLVToBuf [10:18:49]FM_MakeSignedData [10:18:49]FM_MakeSignedData [10:18:49]SAM_PROTO_SignData [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 01 02 [10:18:49]Write to MH i2c: E2 08 00 5B 07 80 0D 01 02 00 00 00 00 DB [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=255 [10:18:49]MH_SAM_APDU [10:18: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 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 88 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [10:18:49]Write to MH i2c: E2 02 01 5C 07 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 88 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 76 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=32 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 34 33 10 04 04 00 66 42 01 00 35 04 06 00 DC 3F 90 71 F0 2B [10:18:49]Write to MH i2c: E2 23 00 5D 07 80 0D 02 02 1B 00 30 30 30 38 37 31 38 34 33 10 04 04 00 66 42 01 00 35 04 06 00 DC 3F 90 71 F0 2B 00 00 1A [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 03 02 [10:18:49]Write to MH i2c: E2 08 00 5E 07 80 0D 03 02 00 00 00 00 E0 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0B 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0B 00 5E 07 00 B6 C0 1A 3B B0 0E 4E F7 90 00 AF [10:18:49]RAPDU: B6 C0 1A 3B B0 0E 4E F7 90 00 [10:18:49]wFMCommunicate OK [10:18:49]SAM_PROTO_SignData done [10:18:49]FM_MakeSignedData done [10:18:49]CreateOFDProtocolMessage [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 11 00 00 [10:18:49]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 17 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 32 [10:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:49]wFMCommunicate OK [10:18:49]CreateOFDProtocolMessage done [10:18:49]OFDSenderStorePacket 82534 [10:18:49]StoreOFDPacket docnum=82534 [10:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 25 01 00 00 2F 0D 1D 01 52 B1 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 88 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 42 01 00 35 04 06 00 DC 3F 90 71 F0 2B B6 C0 1A 3B B0 0E 4E F7 [10:18:49]CheckFolder [10:18:49]dirname=/storage/ofd_packets [10:18:49]CheckFolder done [10:18:49]ProducePacketName [10:18:49]name=ofd_packets/00082534 [10:18:49]NVStorageSaveData ofd_packets/00082534 [10:18:49]File name is /storage/ofd_packets/00082534 [10:18:49]Write 323 bytes [10:18:49]NVStorageSaveData done [10:18:49]OFDSenderStorePacket done [10:18:49]KKMCreateOFDPacket done [10:18:49]NVStorageSaveData kkm_last_timestamp [10:18:49]File name is /storage/kkm_last_timestamp [10:18:49]Write 4 bytes [10:18:49]NVStorageSaveData done [10:18:49]ExternCall_PrintAddStr [10:18:49]wPrintStart [10:18:49]Write to MH i2c: 01 00 00 60 07 67 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [10:18:49]RasterBufferAndPrint [10:18:49]line Счет N : (3)10599 [10:18:49]line ИНН: 02508201610067 [10:18:49]line Контрольно-Кассовый Чек [10:18:49]line ПРОДАЖА [10:18:49]line Товар: 48743570 [10:18:49]line Сигареты Winston XStyle Blue [10:18:49]line 1.000 * 135.00 [10:18:49]line = 135.00 [10:18:49]line НДС 12% НСП 1% [10:18:49]line > о реализуемом товаре [10:18:49]line ИТОГО: 135.00 [10:18:49]line НСП 1% : 1.19 [10:18:49]line НДС 12% : 14.34 [10:18:49]line Наличными: 135.00 [10:18:49]line Безнал.: 0.00 [10:18:49]line Место: АЗС № 114 "Партнер Нефть" [10:18:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:18:49]line СНО: Общий режим [10:18:49]line Чек 31 19.10.2024 10:18 [10:18:49]line Смена: 527 ФФД: 1.0 [10:18:49]line ЗНМ: 0300000086 [10:18:49]line РНМ: 0000000000091680 [10:18:49]line Версия ККМ: 001 [10:18:49]line ФМ: 0000000000871843 [10:18:49]line ФД: 82534 [10:18:49]line ФПД: 242165564436523 [10:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T101848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82534&fm=242165564436523&tin=02508201610067®Number=0000000000091680&sum=13500 [10:18:49]line 0 [10:18:49]written 0, free lines is 4095 [10:18:49]OFD Sender: Processing packet 82534 [packets to send 254, broken 253] [10:18:49]ProducePacketName [10:18:49]name=ofd_packets/00082534 [10:18:49]OFD Sender: To server: pG, [10:18:49]CommunicateWithHost lk.salyk.kg:30040 [10:18:49]ConnectInit lk.salyk.kg [10:18:50]Write to MH i2c: 01 00 00 88 07 8F [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: 01 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: 01 07 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 EE 0C 90 [10:18:50]RasterBufferAndPrint [10:18:50]line [10:18:50]line [10:18:50]line [10:18:50]line [10:18:50]line [10:18:50]written 0, free lines is 3316 [10:18:50]MH_Cut [10:18:50]Write to MH i2c: D1 01 00 8F 07 01 68 [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 01 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 01 00 8F 07 00 67 [10:18:50]Write to MH i2c: 01 00 00 90 07 97 [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]*** Cut start [10:18:50]*** Partial cut [10:18:50]*** CUTSNS_PIN = 1 [10:18:50]*** CUTSNS_PIN = 0 [10:18:51]*** Brake cut motor [10:18:51]Read from MH i2c: 01 [10:18:51]MH_I2C_Read... [10:18:51]*** Stop cut motor [10:18:51]*** Cut end [10:18:51]Read from MH i2c: 01 07 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 FF 0F AC [10:18:51]process_action close_receipt done [10:18:51]requested_data is exist [10:18:51]produce_requested_data [10:18:51]requested_item fm.sn is exist - process it [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 11 00 00 [10:18:51]Write to MH i2c: E2 08 00 91 07 80 11 00 00 00 00 00 00 12 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 17 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 17 00 91 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 64 [10:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:51]wFMCommunicate OK [10:18:51]requested_item fd.num is exist - process it [10:18:51]SAM_PROTO_GetFieldsCounters [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 00 00 [10:18:51]Write to MH i2c: E2 08 00 92 07 80 13 00 00 00 00 00 00 15 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 62 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 62 00 92 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 66 42 01 00 0E 04 04 00 0F 02 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 4B [10:18: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 66 42 01 00 0E 04 04 00 0F 02 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 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetFieldsCounters done [10:18:51]requested_item shift.num is exist - process it [10:18:51]requested_item shift.opened is exist - process it [10:18:51]req_shift_opened [10:18:51]FM_GetShiftState [10:18:51]SAM_PROTO_GetShiftState [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 01 00 [10:18:51]Write to MH i2c: E2 08 00 93 07 80 13 01 00 00 00 00 00 17 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 93 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 19 [10:18:51]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetShiftState done [10:18:51]FM_GetShiftState done [10:18:51]req_shift_opened done [10:18:51]requested_item shift.open_date is exist - process it [10:18:51]req_shift_open_date [10:18:51]req_shift_open_date done [10:18:51]produce_requested_data done [10:18:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82534,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:18:51]process_action_free close_receipt [10:18:51]json_value_free [10:18:51]json_value_free done [10:18:51]process_json_proto returns [10:18:51]Send response to host [10:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82534,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:18:51]free response buf [10:18:51]execute_script done [10:18:51]execute_script returns [10:18:51]free content buf [10:18:51]Sock 10.Close socket [10:18:51]Sock 10.Thread stoped [10:21:03]ConnectInit Can't connect to host [10:21:03]CommunicateWithHost connect error [10:21:03]CommunicateWithHost err = -1 [10:21:03]OFD Sender: Server communicate error [10:21:08]OFD Sender: Processing packet 82534 [packets to send 254, broken 253] [10:21:08]ProducePacketName [10:21:08]name=ofd_packets/00082534 [10:21:08]OFD Sender: To server: pG, [10:21:08]CommunicateWithHost lk.salyk.kg:30040 [10:21:08]ConnectInit lk.salyk.kg [10:21:08]Connected sock=10 [10:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 25 01 00 00 2F 0D 1D 01 52 B1 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 88 87 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 42 01 00 35 04 06 00 DC 3F 90 71 F0 2B B6 C0 1A 3B B0 0E 4E F7 [10:21:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 49 C3 47 00 FA 98 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 31 38 34 33 10 04 04 00 66 42 01 00 F4 03 04 00 4B 2D 13 67 B6 04 01 00 00 D9 43 F3 50 60 8F AA 3C [10:21:09]CommunicateWithHost err = 0 [10:21:09]CheckOFDResponse [10:21:09]1017 (14) - 77093643461234 [10:21:09]1041 (16) - 0000000000871843 [10:21:09]1040 (4) - 82534 [10:21:09]1012 (4) - 19.10.2024 03:53 [10:21:09]1206 (1) - 0 [10:21:09]OFD Sender: Remove packet 82534 [10:21:09]ProducePacketName [10:21:09]name=ofd_packets/00082534 [10:21:09]NVStorageDeleteData [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]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:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:26]accept exits with 8 [10:31:26]New connection [10:31:26]New thread 3067280740 created [10:31:26]Thread 3067137380 joined [10:31:26]Waiting for new connection... [10:31:26] Sock 8.Parse request [10:31:26]Sock 8.Check first char [10:31:26]Sock 8.First char is OK [10:31:26]request: POST /json_proto HTTP/1.0 [10:31:26]Method: POST [10:31:26]URL: /json_proto [10:31:26]Method is POST - this is cgi request [10:31:26]url: /json_proto [10:31:26]query_string will be loaded in cgi processing [10:31:26]execute_cgi json_proto POST (null) [10:31:26]execute_cgi path=json_proto method=POST [10:31:26]POST find Content-Length [10:31:26]Host: 172.17.44.67:8080 [10:31:26]Content-Length: 792 [10:31:26]Content-Type: application/json [10:31:26] [10:31:26]POST finish read [10:31:26]Found Content-Length = 792 [10:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]execute_script... [10:31: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 : (1)919024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]POST & json_proto [10:31:26]process_json_proto [10:31:26]json parsed OK: [10:31:26]protocol is kg_v1.0 [10:31:26]action value=close_receipt [10:31:26]process_action close_receipt [10:31:26]cmd_close_receipt [10:31:26]MH_GetDate [10:31:26]Write to MH i2c: F0 00 00 94 07 8A [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 94 07 00 7F 8A 13 67 F1 C7 6B 64 9D [10:31:26]GetLastDocTimeStamp 1729333128 [10:31:26]current date 1729333887 [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 95 07 80 13 01 00 00 00 00 00 19 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 95 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 1B [10:31:26]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]opened in 1729298811 [10:31:26]opened+sec_in_day 1729385211 [10:31:26]quantity*price = 0 [10:31:26]sum+1 = 1 [10:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 32 19.10.2024 10:31 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 03044 ФМ: 0000000000871843 ФД: 82535 ФПД: 144159372395143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103127&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82535&fm=144159372395143&tin=02508201610067®Number=0000000000091680&sum=0 [10:31:28]StoreToDocumentArchive [10:31:28]shift 527 fd 82535 [10:31:28]save to /storage/0527/doc_00082535 [10:31:28]save last doc name /storage/0527/doc_00082535 to /storage/kkm_last_doc_name [10:31:28]save OK [10:31:28]Clear old archive folders... [10:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:28]tlvbuf is 006BB8C0 [10:31:28]SAM_PROTO_ClearQueue [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 09 00 00 [10:31:28]Write to MH i2c: E2 08 00 A2 07 80 09 00 00 00 00 00 00 1B [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_ClearQueue done [10:31:28]KKMCreateOFDPacket [10:31:28]OFDProtocolAddRootSTLVToBuf [10:31:28]FM_MakeSignedData [10:31:28]FM_MakeSignedData [10:31:28]SAM_PROTO_SignData [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 01 02 [10:31:28]Write to MH i2c: E2 08 00 A3 07 80 0D 01 02 00 00 00 00 23 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=255 [10:31:28]MH_SAM_APDU [10:31:28]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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7F 8A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 42 01 00 35 04 06 00 83 [10:31:28]Write to MH i2c: E2 02 01 A4 07 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7F 8A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 42 01 00 35 04 06 00 83 00 00 DD [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=10 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 02 02 05 1C B8 2E C2 87 [10:31:28]Write to MH i2c: E2 0D 00 A5 07 80 0D 02 02 05 00 1C B8 2E C2 87 00 00 7B [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 03 02 [10:31:28]Write to MH i2c: E2 08 00 A6 07 80 0D 03 02 00 00 00 00 28 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0B 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0B 00 A6 07 00 A9 97 5A 47 10 1B 72 C6 90 00 6D [10:31:28]RAPDU: A9 97 5A 47 10 1B 72 C6 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_SignData done [10:31:28]FM_MakeSignedData done [10:31:28]CreateOFDProtocolMessage [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 11 00 00 [10:31:28]Write to MH i2c: E2 08 00 A7 07 80 11 00 00 00 00 00 00 28 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 A7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [10:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:31:28]wFMCommunicate OK [10:31:28]CreateOFDProtocolMessage done [10:31:28]OFDSenderStorePacket 82535 [10:31:28]StoreOFDPacket docnum=82535 [10:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B7 C8 07 01 35 14 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7F 8A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 42 01 00 35 04 06 00 83 1C B8 2E C2 87 A9 97 5A 47 10 1B 72 C6 [10:31:28]CheckFolder [10:31:28]dirname=/storage/ofd_packets [10:31:28]CheckFolder done [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00082535 [10:31:28]NVStorageSaveData ofd_packets/00082535 [10:31:28]File name is /storage/ofd_packets/00082535 [10:31:28]Write 301 bytes [10:31:28]NVStorageSaveData done [10:31:28]OFDSenderStorePacket done [10:31:28]KKMCreateOFDPacket done [10:31:28]NVStorageSaveData kkm_last_timestamp [10:31:28]File name is /storage/kkm_last_timestamp [10:31:28]Write 4 bytes [10:31:28]NVStorageSaveData done [10:31:28]ExternCall_PrintAddStr [10:31:28]wPrintStart [10:31:28]Write to MH i2c: 01 00 00 A8 07 AF [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 FF 0F C4 [10:31:28]RasterBufferAndPrint [10:31:28]line Счет N : (1)919024 [10:31:28]line ИНН: 02508201610067 [10:31:28]line Контрольно-Кассовый Чек [10:31:28]line ПРОДАЖА [10:31:28]line ТРК (МРК, ГНК) : 11 [10:31:28]line Товар: 2710124130 [10:31:28]line Аи-92-К-4 [10:31:28]line 15.000 * 0.00 [10:31:28]line = 0.00 [10:31:28]line НДС 12% НСП 1% [10:31:28]line > о реализуемом товаре [10:31:28]line ИТОГО: 0.00 [10:31:28]line НСП 1% : 0.00 [10:31:28]line НДС 12% : 0.00 [10:31:28]line Наличными: 0.00 [10:31:28]line Безнал.: 0.00 [10:31:28]line Место: АЗС № 114 "Партнер Нефть" [10:31:28]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:31:28]line СНО: Общий режим [10:31:28]line Чек 32 19.10.2024 10:31 [10:31:28]line Смена: 527 ФФД: 1.0 [10:31:28]line ЗНМ: 0300000086 [10:31:28]line РНМ: 0000000000091680 [10:31:28]line Версия ККМ: 001 [10:31:28]line Талоны: Топливная Карта [10:31:28]line 03044 [10:31:28]line ФМ: 0000000000871843 [10:31:28]line ФД: 82535 [10:31:28]line ФПД: 144159372395143 [10:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103127&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82535&fm=144159372395143&tin=02508201610067®Number=0000000000091680&sum=0 [10:31:28]written 0, free lines is 4095 [10:31:28]OFD Sender: Processing packet 82535 [packets to send 254, broken 253] [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00082535 [10:31:28]OFD Sender: To server: pG, [10:31:28]CommunicateWithHost lk.salyk.kg:30040 [10:31:28]ConnectInit lk.salyk.kg [10:31:29]Write to MH i2c: 01 00 00 D2 07 D9 [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 07 00 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 07 00 D2 07 00 00 00 00 00 EA 0C D6 [10:31:29]RasterBufferAndPrint [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]written 0, free lines is 3310 [10:31:29]MH_Cut [10:31:29]Write to MH i2c: D1 01 00 D9 07 01 B2 [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 01 00 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 01 00 D9 07 00 B1 [10:31:29]Write to MH i2c: 01 00 00 DA 07 E1 [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:30]*** Cut start [10:31:30]*** Partial cut [10:31:30]*** CUTSNS_PIN = 1 [10:31:30]*** CUTSNS_PIN = 0 [10:31:30]*** Brake cut motor [10:31:30]Read from MH i2c: 01 [10:31:30]MH_I2C_Read... [10:31:30]*** Stop cut motor [10:31:30]*** Cut end [10:31:30]Read from MH i2c: 01 07 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 07 00 DA 07 00 00 00 00 00 FF 0F F6 [10:31:30]process_action close_receipt done [10:31:30]requested_data is exist [10:31:30]produce_requested_data [10:31:30]requested_item fm.sn is exist - process it [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 11 00 00 [10:31:30]Write to MH i2c: E2 08 00 DB 07 80 11 00 00 00 00 00 00 5C [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 DB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [10:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:31:30]wFMCommunicate OK [10:31:30]requested_item fd.num is exist - process it [10:31:30]SAM_PROTO_GetFieldsCounters [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 00 00 [10:31:30]Write to MH i2c: E2 08 00 DC 07 80 13 00 00 00 00 00 00 5F [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 DC 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 67 42 01 00 0E 04 04 00 0F 02 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 99 [10:31: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 67 42 01 00 0E 04 04 00 0F 02 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 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetFieldsCounters done [10:31:30]requested_item shift.num is exist - process it [10:31:30]requested_item shift.opened is exist - process it [10:31:30]req_shift_opened [10:31:30]FM_GetShiftState [10:31:30]SAM_PROTO_GetShiftState [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 01 00 [10:31:30]Write to MH i2c: E2 08 00 DD 07 80 13 01 00 00 00 00 00 61 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:31]Read from MH i2c: E2 [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 0E 00 [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 0E 00 DD 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 63 [10:31:31]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:31:31]wFMCommunicate OK [10:31:31]SAM_PROTO_GetShiftState done [10:31:31]FM_GetShiftState done [10:31:31]req_shift_opened done [10:31:31]requested_item shift.open_date is exist - process it [10:31:31]req_shift_open_date [10:31:31]req_shift_open_date done [10:31:31]produce_requested_data done [10:31:31]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82535,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:31:31]process_action_free close_receipt [10:31:31]json_value_free [10:31:31]json_value_free done [10:31:31]process_json_proto returns [10:31:31]Send response to host [10:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82535,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:31:31]free response buf [10:31:31]execute_script done [10:31:31]execute_script returns [10:31:31]free content buf [10:31:31]Sock 8.Close socket [10:31:31]Sock 8.Thread stoped [10:31:31]Connected sock=11 [10:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B7 C8 07 01 35 14 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7F 8A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 42 01 00 35 04 06 00 83 1C B8 2E C2 87 A9 97 5A 47 10 1B 72 C6 [10:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 85 3F 47 00 F4 15 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 31 38 34 33 10 04 04 00 67 42 01 00 F4 03 04 00 B8 2F 13 67 B6 04 01 00 00 26 AE C3 2D 2D 35 09 B1 [10:31:31]CommunicateWithHost err = 0 [10:31:31]CheckOFDResponse [10:31:31]1017 (14) - 77093643461234 [10:31:31]1041 (16) - 0000000000871843 [10:31:31]1040 (4) - 82535 [10:31:31]1012 (4) - 19.10.2024 04:04 [10:31:31]1206 (1) - 0 [10:31:31]OFD Sender: Remove packet 82535 [10:31:31]ProducePacketName [10:31:31]name=ofd_packets/00082535 [10:31:31]NVStorageDeleteData [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:43]recv_with_timeout no data received [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:11]accept exits with 9 [10:35:11]New connection [10:35:11]New thread 3067137380 created [10:35:11]Thread 3067280740 joined [10:35:11]Waiting for new connection... [10:35:11] Sock 9.Parse request [10:35:11]Sock 9.Check first char [10:35:11]Sock 9.First char is OK [10:35:11]request: POST /json_proto HTTP/1.0 [10:35:11]Method: POST [10:35:11]URL: /json_proto [10:35:11]Method is POST - this is cgi request [10:35:11]url: /json_proto [10:35:11]query_string will be loaded in cgi processing [10:35:11]execute_cgi json_proto POST (null) [10:35:11]execute_cgi path=json_proto method=POST [10:35:11]POST find Content-Length [10:35:11]Host: 172.17.44.67:8080 [10:35:11]Content-Length: 766 [10:35:11]Content-Type: application/json [10:35:11] [10:35:11]POST finish read [10:35:11]Found Content-Length = 766 [10:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:11]execute_script... [10:35: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 : (1)919026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:11]POST & json_proto [10:35:11]process_json_proto [10:35:11]json parsed OK: [10:35:11]protocol is kg_v1.0 [10:35:11]action value=close_receipt [10:35:11]process_action close_receipt [10:35:11]cmd_close_receipt [10:35:11]MH_GetDate [10:35:11]Write to MH i2c: F0 00 00 DE 07 D4 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 09 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 09 00 DE 07 00 60 8B 13 67 F1 C7 6B 64 C9 [10:35:11]GetLastDocTimeStamp 1729333887 [10:35:11]current date 1729334112 [10:35:11]FM_GetShiftState [10:35:11]SAM_PROTO_GetShiftState [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 01 00 [10:35:11]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 65 [10:35:12]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetShiftState done [10:35:12]FM_GetShiftState done [10:35:12]opened in 1729298811 [10:35:12]opened+sec_in_day 1729385211 [10:35:12]quantity*price = 50010 [10:35:12]sum+1 = 50012 [10:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 33 19.10.2024 10:35 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82536 ФПД: 184983524943010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82536&fm=184983524943010&tin=02508201610067®Number=0000000000091680&sum=50011 [10:35:13]StoreToDocumentArchive [10:35:13]shift 527 fd 82536 [10:35:13]save to /storage/0527/doc_00082536 [10:35:13]save last doc name /storage/0527/doc_00082536 to /storage/kkm_last_doc_name [10:35:13]save OK [10:35:13]Clear old archive folders... [10:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:13]tlvbuf is 0070ADC0 [10:35:13]SAM_PROTO_ClearQueue [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 09 00 00 [10:35:13]Write to MH i2c: E2 08 00 EC 07 80 09 00 00 00 00 00 00 65 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]SAM_PROTO_ClearQueue done [10:35:13]KKMCreateOFDPacket [10:35:13]OFDProtocolAddRootSTLVToBuf [10:35:13]FM_MakeSignedData [10:35:13]FM_MakeSignedData [10:35:13]SAM_PROTO_SignData [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 0D 01 02 [10:35:13]Write to MH i2c: E2 08 00 ED 07 80 0D 01 02 00 00 00 00 6D [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]wFMCommunicate request_size=255 [10:35:13]MH_SAM_APDU [10:35:13]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 42 01 00 35 04 06 00 A8 [10:35:13]Write to MH i2c: E2 02 01 EE 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 42 01 00 35 04 06 00 A8 00 00 D2 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]wFMCommunicate request_size=10 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 0D 02 02 05 3D D5 4B 24 A2 [10:35:13]Write to MH i2c: E2 0D 00 EF 07 80 0D 02 02 05 00 3D D5 4B 24 A2 00 00 9D [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 0D 03 02 [10:35:13]Write to MH i2c: E2 08 00 F0 07 80 0D 03 02 00 00 00 00 72 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0B 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0B 00 F0 07 00 78 B6 FC C6 FA 32 55 23 90 00 07 [10:35:13]RAPDU: 78 B6 FC C6 FA 32 55 23 90 00 [10:35:13]wFMCommunicate OK [10:35:13]SAM_PROTO_SignData done [10:35:13]FM_MakeSignedData done [10:35:13]CreateOFDProtocolMessage [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 11 00 00 [10:35:13]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 17 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [10:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:35:13]wFMCommunicate OK [10:35:13]CreateOFDProtocolMessage done [10:35:13]OFDSenderStorePacket 82536 [10:35:13]StoreOFDPacket docnum=82536 [10:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 50 C4 07 01 85 E7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 42 01 00 35 04 06 00 A8 3D D5 4B 24 A2 78 B6 FC C6 FA 32 55 23 [10:35:13]CheckFolder [10:35:13]dirname=/storage/ofd_packets [10:35:13]CheckFolder done [10:35:13]ProducePacketName [10:35:13]name=ofd_packets/00082536 [10:35:13]NVStorageSaveData ofd_packets/00082536 [10:35:13]File name is /storage/ofd_packets/00082536 [10:35:13]Write 301 bytes [10:35:13]NVStorageSaveData done [10:35:13]OFDSenderStorePacket done [10:35:13]KKMCreateOFDPacket done [10:35:13]NVStorageSaveData kkm_last_timestamp [10:35:13]File name is /storage/kkm_last_timestamp [10:35:13]Write 4 bytes [10:35:13]NVStorageSaveData done [10:35:13]ExternCall_PrintAddStr [10:35:13]wPrintStart [10:35:13]Write to MH i2c: 01 00 00 F2 07 F9 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: 01 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: 01 07 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 FF 0F 0E [10:35:13]RasterBufferAndPrint [10:35:13]line Счет N : (1)919026 [10:35:13]line ИНН: 02508201610067 [10:35:13]line Контрольно-Кассовый Чек [10:35:13]line ПРОДАЖА [10:35:13]line ТРК (МРК, ГНК) : 12 [10:35:13]line Товар: 2710124500 [10:35:13]line Аи-95-К-5 [10:35:13]line 6.740 * 74.20 [10:35:13]line = 500.11 [10:35:13]line НДС 12% НСП 1% [10:35:13]line > о реализуемом товаре [10:35:13]line ИТОГО: 500.11 [10:35:13]line НСП 1% : 4.43 [10:35:13]line НДС 12% : 53.11 [10:35:13]line Наличными: 0.00 [10:35:13]line Безнал.: 500.11 [10:35:13]line Место: АЗС № 114 "Партнер Нефть" [10:35:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:35:13]line СНО: Общий режим [10:35:13]line Чек 33 19.10.2024 10:35 [10:35:13]line Смена: 527 ФФД: 1.0 [10:35:13]line ЗНМ: 0300000086 [10:35:13]line РНМ: 0000000000091680 [10:35:13]line Версия ККМ: 001 [10:35:13]line Платежная система: Mbank [10:35:13]line ФМ: 0000000000871843 [10:35:13]line ФД: 82536 [10:35:13]line ФПД: 184983524943010 [10:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82536&fm=184983524943010&tin=02508201610067®Number=0000000000091680&sum=50011 [10:35:14]written 0, free lines is 4095 [10:35:14]OFD Sender: Processing packet 82536 [packets to send 254, broken 253] [10:35:14]ProducePacketName [10:35:14]name=ofd_packets/00082536 [10:35:14]OFD Sender: To server: pG, [10:35:14]CommunicateWithHost lk.salyk.kg:30040 [10:35:14]ConnectInit lk.salyk.kg [10:35:14]Write to MH i2c: 01 00 00 1B 08 23 [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 07 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 00 0D 37 [10:35:14]RasterBufferAndPrint [10:35:14]line [10:35:14]line [10:35:14]line [10:35:14]line [10:35:14]line [10:35:14]written 0, free lines is 3334 [10:35:14]MH_Cut [10:35:14]Write to MH i2c: D1 01 00 22 08 01 FC [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: D1 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: D1 01 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: D1 01 00 22 08 00 FB [10:35:14]Write to MH i2c: 01 00 00 23 08 2B [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]Connected sock=10 [10:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 50 C4 07 01 85 E7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 42 01 00 35 04 06 00 A8 3D D5 4B 24 A2 78 B6 FC C6 FA 32 55 23 [10:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 76 6A 47 00 FE 3D 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 31 38 34 33 10 04 04 00 68 42 01 00 F4 03 04 00 98 30 13 67 B6 04 01 00 00 74 CB 49 D6 B5 97 32 DB [10:35:14]CommunicateWithHost err = 0 [10:35:14]CheckOFDResponse [10:35:14]1017 (14) - 77093643461234 [10:35:14]1041 (16) - 0000000000871843 [10:35:14]1040 (4) - 82536 [10:35:14]1012 (4) - 19.10.2024 04:07 [10:35:14]1206 (1) - 0 [10:35:14]OFD Sender: Remove packet 82536 [10:35:14]ProducePacketName [10:35:14]name=ofd_packets/00082536 [10:35:14]NVStorageDeleteData [10:35:15]*** Cut start [10:35:15]*** Partial cut [10:35:15]*** CUTSNS_PIN = 1 [10:35:15]*** CUTSNS_PIN = 0 [10:35:15]OFD Sender: No OFD packet to send [10:35:15]*** Brake cut motor [10:35:15]Read from MH i2c: 01 [10:35:15]MH_I2C_Read... [10:35:15]*** Stop cut motor [10:35:15]*** Cut end [10:35:15]Read from MH i2c: 01 07 00 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [10:35:15]process_action close_receipt done [10:35:15]requested_data is exist [10:35:15]produce_requested_data [10:35:15]requested_item fm.sn is exist - process it [10:35:15]wFMCommunicate request_size=4 [10:35:15]MH_SAM_APDU [10:35:15]CAPDU: 80 11 00 00 [10:35:15]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:15]Read from MH i2c: E2 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: E2 17 00 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F8 [10:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:35:15]wFMCommunicate OK [10:35:15]requested_item fd.num is exist - process it [10:35:15]SAM_PROTO_GetFieldsCounters [10:35:15]wFMCommunicate request_size=4 [10:35:15]MH_SAM_APDU [10:35:15]CAPDU: 80 13 00 00 [10:35:15]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 62 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 62 00 25 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 68 42 01 00 0E 04 04 00 0F 02 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 [10:35: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 68 42 01 00 0E 04 04 00 0F 02 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 [10:35:16]wFMCommunicate OK [10:35:16]SAM_PROTO_GetFieldsCounters done [10:35:16]requested_item shift.num is exist - process it [10:35:16]requested_item shift.opened is exist - process it [10:35:16]req_shift_opened [10:35:16]FM_GetShiftState [10:35:16]SAM_PROTO_GetShiftState [10:35:16]wFMCommunicate request_size=4 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 13 01 00 [10:35:16]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 0E 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 AD [10:35:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:35:16]wFMCommunicate OK [10:35:16]SAM_PROTO_GetShiftState done [10:35:16]FM_GetShiftState done [10:35:16]req_shift_opened done [10:35:16]requested_item shift.open_date is exist - process it [10:35:16]req_shift_open_date [10:35:16]req_shift_open_date done [10:35:16]produce_requested_data done [10:35:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82536,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:35:16]process_action_free close_receipt [10:35:16]json_value_free [10:35:16]json_value_free done [10:35:16]process_json_proto returns [10:35:16]Send response to host [10:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82536,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:35:16]free response buf [10:35:16]execute_script done [10:35:16]execute_script returns [10:35:16]free content buf [10:35:16]Sock 9.Close socket [10:35:16]Sock 9.Thread stoped [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:48]accept exits with 8 [10:35:48]New connection [10:35:48]New thread 3067280740 created [10:35:48]Thread 3067137380 joined [10:35:48]Waiting for new connection... [10:35:48] Sock 8.Parse request [10:35:48]Sock 8.Check first char [10:35:48]Sock 8.First char is OK [10:35:48]request: POST /json_proto HTTP/1.0 [10:35:48]Method: POST [10:35:48]URL: /json_proto [10:35:48]Method is POST - this is cgi request [10:35:48]url: /json_proto [10:35:48]query_string will be loaded in cgi processing [10:35:48]execute_cgi json_proto POST (null) [10:35:48]execute_cgi path=json_proto method=POST [10:35:48]POST find Content-Length [10:35:48]Host: 172.17.44.67:8080 [10:35:48]Content-Length: 759 [10:35:48]Content-Type: application/json [10:35:48] [10:35:48]POST finish read [10:35:48]Found Content-Length = 759 [10:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:48]execute_script... [10:35: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 : (1)919025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:48]POST & json_proto [10:35:48]process_json_proto [10:35:48]json parsed OK: [10:35:48]protocol is kg_v1.0 [10:35:48]action value=close_receipt [10:35:48]process_action close_receipt [10:35:48]cmd_close_receipt [10:35:48]MH_GetDate [10:35:48]Write to MH i2c: F0 00 00 27 08 1E [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: F0 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: F0 09 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: F0 09 00 27 08 00 85 8B 13 67 F1 C7 6B 64 38 [10:35:48]GetLastDocTimeStamp 1729334112 [10:35:48]current date 1729334149 [10:35:48]FM_GetShiftState [10:35:48]SAM_PROTO_GetShiftState [10:35:48]wFMCommunicate request_size=4 [10:35:48]MH_SAM_APDU [10:35:48]CAPDU: 80 13 01 00 [10:35:48]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:48]Read from MH i2c: E2 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 0E 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 AF [10:35:48]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:35:48]wFMCommunicate OK [10:35:48]SAM_PROTO_GetShiftState done [10:35:48]FM_GetShiftState done [10:35:48]opened in 1729298811 [10:35:48]opened+sec_in_day 1729385211 [10:35:48]quantity*price = 0 [10:35:48]sum+1 = 1 [10:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 34 19.10.2024 10:35 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82537 ФПД: 54361983843919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103549&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82537&fm=54361983843919&tin=02508201610067®Number=0000000000091680&sum=0 [10:35:49]StoreToDocumentArchive [10:35:49]shift 527 fd 82537 [10:35:49]save to /storage/0527/doc_00082537 [10:35:49]save last doc name /storage/0527/doc_00082537 to /storage/kkm_last_doc_name [10:35:49]save OK [10:35:49]Clear old archive folders... [10:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:35:49]tlvbuf is 0071AE60 [10:35:49]SAM_PROTO_ClearQueue [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 09 00 00 [10:35:49]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 03 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [10:35:49]RAPDU: 90 00 [10:35:49]wFMCommunicate OK [10:35:49]SAM_PROTO_ClearQueue done [10:35:49]KKMCreateOFDPacket [10:35:49]OFDProtocolAddRootSTLVToBuf [10:35:49]FM_MakeSignedData [10:35:49]FM_MakeSignedData [10:35:49]SAM_PROTO_SignData [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 0D 01 02 [10:35:49]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 03 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [10:35:49]RAPDU: 90 00 [10:35:49]wFMCommunicate OK [10:35:49]wFMCommunicate request_size=255 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 85 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 42 01 00 35 04 06 00 [10:35:49]Write to MH i2c: E2 02 01 37 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 85 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 42 01 00 35 04 06 00 00 00 53 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 03 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [10:35:50]RAPDU: 90 00 [10:35:50]wFMCommunicate OK [10:35:50]wFMCommunicate request_size=11 [10:35:50]MH_SAM_APDU [10:35:50]CAPDU: 80 0D 02 02 06 31 71 22 BC 7E 4F [10:35:50]Write to MH i2c: E2 0E 00 38 08 80 0D 02 02 06 00 31 71 22 BC 7E 4F 00 00 13 [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 03 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [10:35:50]RAPDU: 90 00 [10:35:50]wFMCommunicate OK [10:35:50]wFMCommunicate request_size=4 [10:35:50]MH_SAM_APDU [10:35:50]CAPDU: 80 0D 03 02 [10:35:50]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0B 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0B 00 39 08 00 1A 40 5D 96 9B E5 39 7D 90 00 40 [10:35:50]RAPDU: 1A 40 5D 96 9B E5 39 7D 90 00 [10:35:50]wFMCommunicate OK [10:35:50]SAM_PROTO_SignData done [10:35:50]FM_MakeSignedData done [10:35:50]CreateOFDProtocolMessage [10:35:50]wFMCommunicate request_size=4 [10:35:50]MH_SAM_APDU [10:35:50]CAPDU: 80 11 00 00 [10:35:50]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 17 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0E [10:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:35:50]wFMCommunicate OK [10:35:50]CreateOFDProtocolMessage done [10:35:50]OFDSenderStorePacket 82537 [10:35:50]StoreOFDPacket docnum=82537 [10:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 76 19 08 01 0F F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 85 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 42 01 00 35 04 06 00 31 71 22 BC 7E 4F 1A 40 5D 96 9B E5 39 7D [10:35:50]CheckFolder [10:35:50]dirname=/storage/ofd_packets [10:35:50]CheckFolder done [10:35:50]ProducePacketName [10:35:50]name=ofd_packets/00082537 [10:35:50]NVStorageSaveData ofd_packets/00082537 [10:35:50]File name is /storage/ofd_packets/00082537 [10:35:50]Write 302 bytes [10:35:50]NVStorageSaveData done [10:35:50]OFDSenderStorePacket done [10:35:50]KKMCreateOFDPacket done [10:35:50]NVStorageSaveData kkm_last_timestamp [10:35:50]File name is /storage/kkm_last_timestamp [10:35:50]Write 4 bytes [10:35:50]OFD Sender: Processing packet 82537 [packets to send 254, broken 253] [10:35:50]ProducePacketName [10:35:50]name=ofd_packets/00082537 [10:35:50]OFD Sender: To server: pG, [10:35:50]CommunicateWithHost lk.salyk.kg:30040 [10:35:50]ConnectInit lk.salyk.kg [10:35:50]NVStorageSaveData done [10:35:50]ExternCall_PrintAddStr [10:35:50]wPrintStart [10:35:50]Write to MH i2c: 01 00 00 3B 08 43 [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: 01 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: 01 07 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [10:35:50]RasterBufferAndPrint [10:35:50]line Счет N : (1)919025 [10:35:50]line ИНН: 02508201610067 [10:35:50]line Контрольно-Кассовый Чек [10:35:50]line ПРОДАЖА [10:35:50]line ТРК (МРК, ГНК) : 31 [10:35:50]line Товар: 2710194210 [10:35:50]line ДТ(л)-К-5 [10:35:50]line 26.250 * 0.00 [10:35:50]line = 0.00 [10:35:50]line НДС 12% НСП 1% [10:35:50]line > о реализуемом товаре [10:35:50]line ИТОГО: 0.00 [10:35:50]line НСП 1% : 0.00 [10:35:50]line НДС 12% : 0.00 [10:35:50]line Наличными: 0.00 [10:35:50]line Безнал.: 0.00 [10:35:50]line Место: АЗС № 114 "Партнер Нефть" [10:35:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:35:50]line СНО: Общий режим [10:35:50]line Чек 34 19.10.2024 10:35 [10:35:50]line Смена: 527 ФФД: 1.0 [10:35:50]line ЗНМ: 0300000086 [10:35:50]line РНМ: 0000000000091680 [10:35:50]line Версия ККМ: 001 [10:35:50]line Талоны: ТК ГПНА Online [10:35:50]line 30121604 [10:35:50]line ФМ: 0000000000871843 [10:35:50]line ФД: 82537 [10:35:50]line ФПД: 54361983843919 [10:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103549&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82537&fm=54361983843919&tin=02508201610067®Number=0000000000091680&sum=0 [10:35:50]written 0, free lines is 4095 [10:35:50]Connected sock=11 [10:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 76 19 08 01 0F F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 85 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 42 01 00 35 04 06 00 31 71 22 BC 7E 4F 1A 40 5D 96 9B E5 39 7D [10:35:51]Write to MH i2c: 01 00 00 65 08 6D [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 F7 0C 77 [10:35:51]RasterBufferAndPrint [10:35:51]line [10:35:51]line [10:35:51]line [10:35:51]line [10:35:51]line [10:35:51]written 0, free lines is 3326 [10:35:51]MH_Cut [10:35:51]Write to MH i2c: D1 01 00 6C 08 01 46 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: D1 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: D1 01 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: D1 01 00 6C 08 00 45 [10:35:51]Write to MH i2c: 01 00 00 6D 08 75 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CB FF 47 00 06 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 31 38 34 33 10 04 04 00 69 42 01 00 F4 03 04 00 BC 30 13 67 B6 04 01 00 00 10 D1 9D C7 E7 6E AB 6B [10:35:51]CommunicateWithHost err = 0 [10:35:51]CheckOFDResponse [10:35:51]1017 (14) - 77093643461234 [10:35:51]1041 (16) - 0000000000871843 [10:35:51]1040 (4) - 82537 [10:35:51]1012 (4) - 19.10.2024 04:08 [10:35:51]1206 (1) - 0 [10:35:51]OFD Sender: Remove packet 82537 [10:35:51]ProducePacketName [10:35:51]name=ofd_packets/00082537 [10:35:51]NVStorageDeleteData [10:35:51]*** Cut start [10:35:51]*** Partial cut [10:35:51]*** CUTSNS_PIN = 1 [10:35:51]*** CUTSNS_PIN = 0 [10:35:51]OFD Sender: No OFD packet to send [10:35:52]*** Brake cut motor [10:35:52]Read from MH i2c: 01 [10:35:52]MH_I2C_Read... [10:35:52]*** Stop cut motor [10:35:52]*** Cut end [10:35:52]Read from MH i2c: 01 07 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [10:35:52]process_action close_receipt done [10:35:52]requested_data is exist [10:35:52]produce_requested_data [10:35:52]requested_item fm.sn is exist - process it [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 11 00 00 [10:35:52]Write to MH i2c: E2 08 00 6E 08 80 11 00 00 00 00 00 00 F0 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 17 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 17 00 6E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [10:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:35:52]wFMCommunicate OK [10:35:52]requested_item fd.num is exist - process it [10:35:52]SAM_PROTO_GetFieldsCounters [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 13 00 00 [10:35:52]Write to MH i2c: E2 08 00 6F 08 80 13 00 00 00 00 00 00 F3 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 62 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 62 00 6F 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 69 42 01 00 0E 04 04 00 0F 02 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 35 [10:35: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 69 42 01 00 0E 04 04 00 0F 02 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 [10:35:52]wFMCommunicate OK [10:35:52]SAM_PROTO_GetFieldsCounters done [10:35:52]requested_item shift.num is exist - process it [10:35:52]requested_item shift.opened is exist - process it [10:35:52]req_shift_opened [10:35:52]FM_GetShiftState [10:35:52]SAM_PROTO_GetShiftState [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 13 01 00 [10:35:52]Write to MH i2c: E2 08 00 70 08 80 13 01 00 00 00 00 00 F5 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0E 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0E 00 70 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F7 [10:35:52]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:35:52]wFMCommunicate OK [10:35:52]SAM_PROTO_GetShiftState done [10:35:52]FM_GetShiftState done [10:35:52]req_shift_opened done [10:35:52]requested_item shift.open_date is exist - process it [10:35:52]req_shift_open_date [10:35:52]req_shift_open_date done [10:35:52]produce_requested_data done [10:35:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82537,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:35:52]process_action_free close_receipt [10:35:52]json_value_free [10:35:52]json_value_free done [10:35:52]process_json_proto returns [10:35:52]Send response to host [10:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82537,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:35:52]free response buf [10:35:52]execute_script done [10:35:52]execute_script returns [10:35:52]free content buf [10:35:52]Sock 8.Close socket [10:35:52]Sock 8.Thread stoped [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:15]recv_with_timeout no data received [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:36:57]accept exits with 10 [10:36:57]New connection [10:36:57]New thread 3067137380 created [10:36:57]Thread 3067280740 joined [10:36:57]Waiting for new connection... [10:36:57] Sock 10.Parse request [10:36:57]Sock 10.Check first char [10:36:57]Sock 10.First char is OK [10:36:57]request: POST /json_proto HTTP/1.0 [10:36:57]Method: POST [10:36:57]URL: /json_proto [10:36:57]Method is POST - this is cgi request [10:36:57]url: /json_proto [10:36:57]query_string will be loaded in cgi processing [10:36:57]execute_cgi json_proto POST (null) [10:36:57]execute_cgi path=json_proto method=POST [10:36:57]POST find Content-Length [10:36:57]Host: 172.17.44.67:8080 [10:36:57]Content-Length: 753 [10:36:57]Content-Type: application/json [10:36:57] [10:36:57]POST finish read [10:36:57]Found Content-Length = 753 [10:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 5.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:57]execute_script... [10:36: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 : (1)919027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 5.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096582", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:57]POST & json_proto [10:36:57]process_json_proto [10:36:57]json parsed OK: [10:36:57]protocol is kg_v1.0 [10:36:57]action value=close_receipt [10:36:57]process_action close_receipt [10:36:57]cmd_close_receipt [10:36:57]MH_GetDate [10:36:57]Write to MH i2c: F0 00 00 71 08 68 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: F0 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: F0 09 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: F0 09 00 71 08 00 CA 8B 13 67 F1 C7 6B 64 C7 [10:36:57]GetLastDocTimeStamp 1729334149 [10:36:57]current date 1729334218 [10:36:57]FM_GetShiftState [10:36:57]SAM_PROTO_GetShiftState [10:36:57]wFMCommunicate request_size=4 [10:36:57]MH_SAM_APDU [10:36:57]CAPDU: 80 13 01 00 [10:36:57]Write to MH i2c: E2 08 00 72 08 80 13 01 00 00 00 00 00 F7 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:57]Read from MH i2c: E2 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 0E 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 0E 00 72 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F9 [10:36:57]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:36:57]wFMCommunicate OK [10:36:57]SAM_PROTO_GetShiftState done [10:36:57]FM_GetShiftState done [10:36:57]opened in 1729298811 [10:36:57]opened+sec_in_day 1729385211 [10:36:57]quantity*price = 0 [10:36:57]sum+1 = 1 [10:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 35 19.10.2024 10:36 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096582 ФМ: 0000000000871843 ФД: 82538 ФПД: 243009824991169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103658&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82538&fm=243009824991169&tin=02508201610067®Number=0000000000091680&sum=0 [10:36:58]StoreToDocumentArchive [10:36:58]shift 527 fd 82538 [10:36:58]save to /storage/0527/doc_00082538 [10:36:58]save last doc name /storage/0527/doc_00082538 to /storage/kkm_last_doc_name [10:36:58]save OK [10:36:58]Clear old archive folders... [10:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:58]tlvbuf is 006B0F20 [10:36:58]SAM_PROTO_ClearQueue [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 09 00 00 [10:36:58]Write to MH i2c: E2 08 00 7F 08 80 09 00 00 00 00 00 00 F9 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [10:36:58]RAPDU: 90 00 [10:36:58]wFMCommunicate OK [10:36:58]SAM_PROTO_ClearQueue done [10:36:58]KKMCreateOFDPacket [10:36:58]OFDProtocolAddRootSTLVToBuf [10:36:58]FM_MakeSignedData [10:36:58]FM_MakeSignedData [10:36:58]SAM_PROTO_SignData [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 0D 01 02 [10:36:58]Write to MH i2c: E2 08 00 80 08 80 0D 01 02 00 00 00 00 01 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [10:36:58]RAPDU: 90 00 [10:36:58]wFMCommunicate OK [10:36:58]wFMCommunicate request_size=255 [10:36:58]MH_SAM_APDU [10:36:58]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CA 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 42 01 00 35 04 06 00 DD [10:36:58]Write to MH i2c: E2 02 01 81 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CA 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 42 01 00 35 04 06 00 DD 00 00 EF [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [10:36:58]RAPDU: 90 00 [10:36:58]wFMCommunicate OK [10:36:58]wFMCommunicate request_size=10 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 0D 02 02 05 04 22 4B A7 C1 [10:36:58]Write to MH i2c: E2 0D 00 82 08 80 0D 02 02 05 00 04 22 4B A7 C1 00 00 E7 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [10:36:58]RAPDU: 90 00 [10:36:58]wFMCommunicate OK [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 0D 03 02 [10:36:58]Write to MH i2c: E2 08 00 83 08 80 0D 03 02 00 00 00 00 06 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0B 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0B 00 83 08 00 14 0C 6B E8 EF 68 58 CA 90 00 F3 [10:36:58]RAPDU: 14 0C 6B E8 EF 68 58 CA 90 00 [10:36:58]wFMCommunicate OK [10:36:58]SAM_PROTO_SignData done [10:36:58]FM_MakeSignedData done [10:36:58]CreateOFDProtocolMessage [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 11 00 00 [10:36:58]Write to MH i2c: E2 08 00 84 08 80 11 00 00 00 00 00 00 06 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 84 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 58 [10:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:36:58]wFMCommunicate OK [10:36:58]CreateOFDProtocolMessage done [10:36:58]OFDSenderStorePacket 82538 [10:36:58]StoreOFDPacket docnum=82538 [10:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EE 37 07 01 AD A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CA 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 42 01 00 35 04 06 00 DD 04 22 4B A7 C1 14 0C 6B E8 EF 68 58 CA [10:36:58]CheckFolder [10:36:58]dirname=/storage/ofd_packets [10:36:58]CheckFolder done [10:36:58]ProducePacketName [10:36:58]name=ofd_packets/00082538 [10:36:58]NVStorageSaveData ofd_packets/00082538 [10:36:58]File name is /storage/ofd_packets/00082538 [10:36:58]Write 301 bytes [10:36:58]NVStorageSaveData done [10:36:58]OFDSenderStorePacket done [10:36:58]KKMCreateOFDPacket done [10:36:58]NVStorageSaveData kkm_last_timestamp [10:36:58]File name is /storage/kkm_last_timestamp [10:36:58]Write 4 bytes [10:36:58]NVStorageSaveData done [10:36:58]ExternCall_PrintAddStr [10:36:58]wPrintStart [10:36:58]Write to MH i2c: 01 00 00 85 08 8D [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 07 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 07 00 85 08 00 00 00 00 00 FF 0F A2 [10:36:58]RasterBufferAndPrint [10:36:58]line Счет N : (1)919027 [10:36:58]line ИНН: 02508201610067 [10:36:58]line Контрольно-Кассовый Чек [10:36:58]line ПРОДАЖА [10:36:58]line ТРК (МРК, ГНК) : 12 [10:36:58]line Товар: 2710124500 [10:36:58]line Аи-95-К-5 [10:36:58]line 5.950 * 0.00 [10:36:58]line = 0.00 [10:36:58]line НДС 12% НСП 1% [10:36:58]line > о реализуемом товаре [10:36:58]line ИТОГО: 0.00 [10:36:58]line НСП 1% : 0.00 [10:36:58]line НДС 12% : 0.00 [10:36:58]line Наличными: 0.00 [10:36:58]line Безнал.: 0.00 [10:36:58]line Место: АЗС № 114 "Партнер Нефть" [10:36:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:36:58]line СНО: Общий режим [10:36:58]line Чек 35 19.10.2024 10:36 [10:36:58]line Смена: 527 ФФД: 1.0 [10:36:58]line ЗНМ: 0300000086 [10:36:58]line РНМ: 0000000000091680 [10:36:58]line Версия ККМ: 001 [10:36:58]line Талоны: ТК ГПНА Online [10:36:58]line 30096582 [10:36:58]line ФМ: 0000000000871843 [10:36:58]line ФД: 82538 [10:36:58]line ФПД: 243009824991169 [10:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T103658&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82538&fm=243009824991169&tin=02508201610067®Number=0000000000091680&sum=0 [10:36:59]written 0, free lines is 4095 [10:36:59]OFD Sender: Processing packet 82538 [packets to send 254, broken 253] [10:36:59]ProducePacketName [10:36:59]name=ofd_packets/00082538 [10:36:59]OFD Sender: To server: pG, [10:36:59]CommunicateWithHost lk.salyk.kg:30040 [10:36:59]ConnectInit lk.salyk.kg [10:36:59]Write to MH i2c: 01 00 00 AF 08 B7 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 07 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 EE 0C B8 [10:36:59]RasterBufferAndPrint [10:36:59]line [10:36:59]line [10:36:59]line [10:36:59]line [10:36:59]line [10:36:59]written 0, free lines is 3313 [10:36:59]MH_Cut [10:36:59]Write to MH i2c: D1 01 00 B6 08 01 90 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: D1 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: D1 01 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: D1 01 00 B6 08 00 8F [10:36:59]Write to MH i2c: 01 00 00 B7 08 BF [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:37:00]*** Cut start [10:37:00]*** Partial cut [10:37:00]*** CUTSNS_PIN = 1 [10:37:00]*** CUTSNS_PIN = 0 [10:37:00]*** Brake cut motor [10:37:00]Connected sock=11 [10:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EE 37 07 01 AD A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CA 8B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 42 01 00 35 04 06 00 DD 04 22 4B A7 C1 14 0C 6B E8 EF 68 58 CA [10:37:01]Read from MH i2c: 01 [10:37:01]MH_I2C_Read... [10:37:01]*** Stop cut motor [10:37:01]*** Cut end [10:37:01]Read from MH i2c: 01 07 00 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [10:37:01]process_action close_receipt done [10:37:01]requested_data is exist [10:37:01]produce_requested_data [10:37:01]requested_item fm.sn is exist - process it [10:37:01]wFMCommunicate request_size=4 [10:37:01]MH_SAM_APDU [10:37:01]CAPDU: 80 11 00 00 [10:37:01]Write to MH i2c: E2 08 00 B8 08 80 11 00 00 00 00 00 00 3A [10:37:01]Write i2c OK [10:37:01]MH_I2C_Read... [10:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:01]Read from MH i2c: E2 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 17 00 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 17 00 B8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8C [10:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:37:01]wFMCommunicate OK [10:37:01]requested_item fd.num is exist - process it [10:37:01]SAM_PROTO_GetFieldsCounters [10:37:01]wFMCommunicate request_size=4 [10:37:01]MH_SAM_APDU [10:37:01]CAPDU: 80 13 00 00 [10:37:01]Write to MH i2c: E2 08 00 B9 08 80 13 00 00 00 00 00 00 3D [10:37:01]Write i2c OK [10:37:01]MH_I2C_Read... [10:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:01]Read from MH i2c: E2 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 62 00 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 62 00 B9 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6A 42 01 00 0E 04 04 00 0F 02 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 83 [10:37: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6A 42 01 00 0E 04 04 00 0F 02 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 [10:37:01]wFMCommunicate OK [10:37:01]SAM_PROTO_GetFieldsCounters done [10:37:01]requested_item shift.num is exist - process it [10:37:01]requested_item shift.opened is exist - process it [10:37:01]req_shift_opened [10:37:01]FM_GetShiftState [10:37:01]SAM_PROTO_GetShiftState [10:37:01]wFMCommunicate request_size=4 [10:37:01]MH_SAM_APDU [10:37:01]CAPDU: 80 13 01 00 [10:37:01]Write to MH i2c: E2 08 00 BA 08 80 13 01 00 00 00 00 00 3F [10:37:01]Write i2c OK [10:37:01]MH_I2C_Read... [10:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:01]Read from MH i2c: E2 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 0E 00 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: E2 0E 00 BA 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 41 [10:37:01]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:37:01]wFMCommunicate OK [10:37:01]SAM_PROTO_GetShiftState done [10:37:01]FM_GetShiftState done [10:37:01]req_shift_opened done [10:37:01]requested_item shift.open_date is exist - process it [10:37:01]req_shift_open_date [10:37:01]req_shift_open_date done [10:37:01]produce_requested_data done [10:37:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82538,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:37:01]process_action_free close_receipt [10:37:01]json_value_free [10:37:01]json_value_free done [10:37:01]process_json_proto returns [10:37:01]Send response to host [10:37:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82538,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:37:01]free response buf [10:37:01]execute_script done [10:37:01]execute_script returns [10:37:01]free content buf [10:37:01]Sock 10.Close socket [10:37:01]Sock 10.Thread stoped [10:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3A 4A 47 00 33 5D 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 31 38 34 33 10 04 04 00 6A 42 01 00 F4 03 04 00 02 31 13 67 B6 04 01 00 00 04 8A 0F AB 32 D3 48 A6 [10:37:01]CommunicateWithHost err = 0 [10:37:01]CheckOFDResponse [10:37:01]1017 (14) - 77093643461234 [10:37:01]1041 (16) - 0000000000871843 [10:37:01]1040 (4) - 82538 [10:37:01]1012 (4) - 19.10.2024 04:09 [10:37:01]1206 (1) - 0 [10:37:01]OFD Sender: Remove packet 82538 [10:37:01]ProducePacketName [10:37:01]name=ofd_packets/00082538 [10:37:01]NVStorageDeleteData [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [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:09]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:53]recv_with_timeout no data received [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:39]recv_with_timeout no data received [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:07]accept exits with 8 [10:49:07]New connection [10:49:07]New thread 3067280740 created [10:49:07]Thread 3067137380 joined [10:49:07]Waiting for new connection... [10:49:07] Sock 8.Parse request [10:49:07]Sock 8.Check first char [10:49:07]Sock 8.First char is OK [10:49:07]request: POST /json_proto HTTP/1.0 [10:49:07]Method: POST [10:49:07]URL: /json_proto [10:49:07]Method is POST - this is cgi request [10:49:07]url: /json_proto [10:49:07]query_string will be loaded in cgi processing [10:49:07]execute_cgi json_proto POST (null) [10:49:07]execute_cgi path=json_proto method=POST [10:49:07]POST find Content-Length [10:49:07]Host: 172.17.44.67:8080 [10:49:07]Content-Length: 754 [10:49:07]Content-Type: application/json [10:49:07] [10:49:07]POST finish read [10:49:07]Found Content-Length = 754 [10:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:07]execute_script... [10: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 : (1)919028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:07]POST & json_proto [10:49:07]process_json_proto [10:49:07]json parsed OK: [10:49:07]protocol is kg_v1.0 [10:49:07]action value=close_receipt [10:49:07]process_action close_receipt [10:49:07]cmd_close_receipt [10:49:07]MH_GetDate [10:49:07]Write to MH i2c: F0 00 00 BB 08 B2 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: F0 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: F0 09 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: F0 09 00 BB 08 00 A4 8E 13 67 F1 C7 6B 64 EE [10:49:07]GetLastDocTimeStamp 1729334218 [10:49:07]current date 1729334948 [10:49:07]FM_GetShiftState [10:49:07]SAM_PROTO_GetShiftState [10:49:07]wFMCommunicate request_size=4 [10:49:07]MH_SAM_APDU [10:49:07]CAPDU: 80 13 01 00 [10:49:07]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [10:49:07]Write i2c OK [10:49:07]MH_I2C_Read... [10:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:07]Read from MH i2c: E2 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 0E 00 [10:49:07]MH_I2C_Read... [10:49:07]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 43 [10:49:07]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:49:07]wFMCommunicate OK [10:49:07]SAM_PROTO_GetShiftState done [10:49:07]FM_GetShiftState done [10:49:07]opened in 1729298811 [10:49:07]opened+sec_in_day 1729385211 [10:49:07]quantity*price = 0 [10:49:07]sum+1 = 1 [10:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 36 19.10.2024 10:49 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30128203 ФМ: 0000000000871843 ФД: 82539 ФПД: 79133314775458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T104908&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82539&fm=79133314775458&tin=02508201610067®Number=0000000000091680&sum=0 [10:49:09]StoreToDocumentArchive [10:49:09]shift 527 fd 82539 [10:49:09]save to /storage/0527/doc_00082539 [10:49:09]save last doc name /storage/0527/doc_00082539 to /storage/kkm_last_doc_name [10:49:09]save OK [10:49:09]Clear old archive folders... [10:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:09]tlvbuf is 00703570 [10:49:09]SAM_PROTO_ClearQueue [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 09 00 00 [10:49:09]Write to MH i2c: E2 08 00 C9 08 80 09 00 00 00 00 00 00 43 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [10:49:09]RAPDU: 90 00 [10:49:09]wFMCommunicate OK [10:49:09]SAM_PROTO_ClearQueue done [10:49:09]KKMCreateOFDPacket [10:49:09]OFDProtocolAddRootSTLVToBuf [10:49:09]FM_MakeSignedData [10:49:09]FM_MakeSignedData [10:49:09]SAM_PROTO_SignData [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 0D 01 02 [10:49:09]Write to MH i2c: E2 08 00 CA 08 80 0D 01 02 00 00 00 00 4B [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [10:49:09]RAPDU: 90 00 [10:49:09]wFMCommunicate OK [10:49:09]wFMCommunicate request_size=255 [10:49:09]MH_SAM_APDU [10:49:09]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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 42 01 00 35 04 06 00 47 [10:49:09]Write to MH i2c: E2 02 01 CB 08 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 42 01 00 35 04 06 00 47 00 00 CD [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [10:49:09]RAPDU: 90 00 [10:49:09]wFMCommunicate OK [10:49:09]wFMCommunicate request_size=10 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 0D 02 02 05 F8 A9 1D F9 A2 [10:49:09]Write to MH i2c: E2 0D 00 CC 08 80 0D 02 02 05 00 F8 A9 1D F9 A2 00 00 B1 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 03 00 CC 08 00 90 00 48 [10:49:09]RAPDU: 90 00 [10:49:09]wFMCommunicate OK [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 0D 03 02 [10:49:09]Write to MH i2c: E2 08 00 CD 08 80 0D 03 02 00 00 00 00 50 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0B 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0B 00 CD 08 00 6F 96 96 88 98 64 4B E1 90 00 9C [10:49:09]RAPDU: 6F 96 96 88 98 64 4B E1 90 00 [10:49:09]wFMCommunicate OK [10:49:09]SAM_PROTO_SignData done [10:49:09]FM_MakeSignedData done [10:49:09]CreateOFDProtocolMessage [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 11 00 00 [10:49:09]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 17 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A2 [10:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:09]wFMCommunicate OK [10:49:09]CreateOFDProtocolMessage done [10:49:09]OFDSenderStorePacket 82539 [10:49:09]StoreOFDPacket docnum=82539 [10:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D8 98 07 01 24 38 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 42 01 00 35 04 06 00 47 F8 A9 1D F9 A2 6F 96 96 88 98 64 4B E1 [10:49:09]CheckFolder [10:49:09]dirname=/storage/ofd_packets [10:49:09]CheckFolder done [10:49:09]ProducePacketName [10:49:09]name=ofd_packets/00082539 [10:49:09]NVStorageSaveData ofd_packets/00082539 [10:49:09]File name is /storage/ofd_packets/00082539 [10:49:09]Write 301 bytes [10:49:09]NVStorageSaveData done [10:49:09]OFDSenderStorePacket done [10:49:09]KKMCreateOFDPacket done [10:49:09]NVStorageSaveData kkm_last_timestamp [10:49:09]File name is /storage/kkm_last_timestamp [10:49:09]Write 4 bytes [10:49:09]NVStorageSaveData done [10:49:09]ExternCall_PrintAddStr [10:49:09]wPrintStart [10:49:09]Write to MH i2c: 01 00 00 CF 08 D7 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: 01 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: 01 07 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [10:49:09]RasterBufferAndPrint [10:49:09]line Счет N : (1)919028 [10:49:09]line ИНН: 02508201610067 [10:49:09]line Контрольно-Кассовый Чек [10:49:09]line ПРОДАЖА [10:49:09]line ТРК (МРК, ГНК) : 11 [10:49:09]line Товар: 2710124130 [10:49:09]line Аи-92-К-4 [10:49:09]line 30.000 * 0.00 [10:49:09]line = 0.00 [10:49:09]line НДС 12% НСП 1% [10:49:09]line > о реализуемом товаре [10:49:09]line ИТОГО: 0.00 [10:49:09]line НСП 1% : 0.00 [10:49:09]line НДС 12% : 0.00 [10:49:09]line Наличными: 0.00 [10:49:09]line Безнал.: 0.00 [10:49:09]line Место: АЗС № 114 "Партнер Нефть" [10:49:09]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:49:09]line СНО: Общий режим [10:49:09]line Чек 36 19.10.2024 10:49 [10:49:09]line Смена: 527 ФФД: 1.0 [10:49:09]line ЗНМ: 0300000086 [10:49:09]line РНМ: 0000000000091680 [10:49:09]line Версия ККМ: 001 [10:49:09]line Талоны: ТК ГПНА Online [10:49:09]line 30128203 [10:49:09]line ФМ: 0000000000871843 [10:49:09]line ФД: 82539 [10:49:09]line ФПД: 79133314775458 [10:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T104908&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82539&fm=79133314775458&tin=02508201610067®Number=0000000000091680&sum=0 [10:49:09]written 0, free lines is 4095 [10:49:09]OFD Sender: Processing packet 82539 [packets to send 254, broken 253] [10:49:09]ProducePacketName [10:49:09]name=ofd_packets/00082539 [10:49:09]OFD Sender: To server: pG, [10:49:09]CommunicateWithHost lk.salyk.kg:30040 [10:49:09]ConnectInit lk.salyk.kg [10:49:10]Write to MH i2c: 01 00 00 F9 08 01 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 07 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 E4 0C F8 [10:49:10]RasterBufferAndPrint [10:49:10]line [10:49:10]line [10:49:10]line [10:49:10]line [10:49:10]line [10:49:10]written 0, free lines is 3306 [10:49:10]MH_Cut [10:49:10]Write to MH i2c: D1 01 00 00 09 01 DB [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: D1 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: D1 01 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: D1 01 00 00 09 00 DA [10:49:10]Write to MH i2c: 01 00 00 01 09 0A [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** Cut start [10:49:10]*** Partial cut [10:49:10]*** CUTSNS_PIN = 1 [10:49:10]*** CUTSNS_PIN = 0 [10:49:11]Connected sock=10 [10:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D8 98 07 01 24 38 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 A4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 42 01 00 35 04 06 00 47 F8 A9 1D F9 A2 6F 96 96 88 98 64 4B E1 [10:49:11]*** Brake cut motor [10:49:11]Read from MH i2c: 01 [10:49:11]MH_I2C_Read... [10:49:11]*** Stop cut motor [10:49:11]*** Cut end [10:49:11]Read from MH i2c: 01 07 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 FF 0F 1F [10:49:11]process_action close_receipt done [10:49:11]requested_data is exist [10:49:11]produce_requested_data [10:49:11]requested_item fm.sn is exist - process it [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 11 00 00 [10:49:11]Write to MH i2c: E2 08 00 02 09 80 11 00 00 00 00 00 00 85 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 02 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D7 [10:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:11]wFMCommunicate OK [10:49:11]requested_item fd.num is exist - process it [10:49:11]SAM_PROTO_GetFieldsCounters [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 13 00 00 [10:49:11]Write to MH i2c: E2 08 00 03 09 80 13 00 00 00 00 00 00 88 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 62 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 62 00 03 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6B 42 01 00 0E 04 04 00 0F 02 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 D2 [10:49: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6B 42 01 00 0E 04 04 00 0F 02 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 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_GetFieldsCounters done [10:49:11]requested_item shift.num is exist - process it [10:49:11]requested_item shift.opened is exist - process it [10:49:11]req_shift_opened [10:49:11]FM_GetShiftState [10:49:11]SAM_PROTO_GetShiftState [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 13 01 00 [10:49:11]Write to MH i2c: E2 08 00 04 09 80 13 01 00 00 00 00 00 8A [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0E 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0E 00 04 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 8C [10:49:11]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_GetShiftState done [10:49:11]FM_GetShiftState done [10:49:11]req_shift_opened done [10:49:11]requested_item shift.open_date is exist - process it [10:49:11]req_shift_open_date [10:49:11]req_shift_open_date done [10:49:11]produce_requested_data done [10:49:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82539,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:49:11]process_action_free close_receipt [10:49:11]json_value_free [10:49:11]json_value_free done [10:49:11]process_json_proto returns [10:49:11]Send response to host [10:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82539,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:49:11]free response buf [10:49:11]execute_script done [10:49:11]execute_script returns [10:49:11]free content buf [10:49:11]Sock 8.Close socket [10:49:11]Sock 8.Thread stoped [10:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 62 47 47 00 E3 C6 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 31 38 34 33 10 04 04 00 6B 42 01 00 F4 03 04 00 DD 33 13 67 B6 04 01 00 00 FC 65 29 83 91 22 55 5D [10:49:12]CommunicateWithHost err = 0 [10:49:12]CheckOFDResponse [10:49:12]1017 (14) - 77093643461234 [10:49:12]1041 (16) - 0000000000871843 [10:49:12]1040 (4) - 82539 [10:49:12]1012 (4) - 19.10.2024 04:21 [10:49:12]1206 (1) - 0 [10:49:12]OFD Sender: Remove packet 82539 [10:49:12]ProducePacketName [10:49:12]name=ofd_packets/00082539 [10:49:12]NVStorageDeleteData [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:19]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:55]accept exits with 9 [10:49:55]New connection [10:49:55]New thread 3067137380 created [10:49:55]Thread 3067280740 joined [10:49:55]Waiting for new connection... [10:49:55] Sock 9.Parse request [10:49:55]Sock 9.Check first char [10:49:55]Sock 9.First char is OK [10:49:55]request: POST /json_proto HTTP/1.0 [10:49:55]Method: POST [10:49:55]URL: /json_proto [10:49:55]Method is POST - this is cgi request [10:49:55]url: /json_proto [10:49:55]query_string will be loaded in cgi processing [10:49:55]execute_cgi json_proto POST (null) [10:49:55]execute_cgi path=json_proto method=POST [10:49:55]POST find Content-Length [10:49:55]Host: 172.17.44.67:8080 [10:49:55]Content-Length: 677 [10:49:55]Content-Type: application/json [10:49:55] [10:49:55]POST finish read [10:49:55]Found Content-Length = 677 [10:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:55]execute_script... [10:49: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 : (1)919029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:55]POST & json_proto [10:49:55]process_json_proto [10:49:55]json parsed OK: [10:49:55]protocol is kg_v1.0 [10:49:55]action value=close_receipt [10:49:55]process_action close_receipt [10:49:55]cmd_close_receipt [10:49:55]MH_GetDate [10:49:55]Write to MH i2c: F0 00 00 05 09 FD [10:49:55]Write i2c OK [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: F0 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: F0 09 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: F0 09 00 05 09 00 D4 8E 13 67 F1 C7 6B 64 69 [10:49:55]GetLastDocTimeStamp 1729334948 [10:49:55]current date 1729334996 [10:49:55]FM_GetShiftState [10:49:55]SAM_PROTO_GetShiftState [10:49:55]wFMCommunicate request_size=4 [10:49:55]MH_SAM_APDU [10:49:55]CAPDU: 80 13 01 00 [10:49:55]Write to MH i2c: E2 08 00 06 09 80 13 01 00 00 00 00 00 8C [10:49:55]Write i2c OK [10:49:55]MH_I2C_Read... [10:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:55]Read from MH i2c: E2 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 06 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 8E [10:49:55]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:49:55]wFMCommunicate OK [10:49:55]SAM_PROTO_GetShiftState done [10:49:55]FM_GetShiftState done [10:49:55]opened in 1729298811 [10:49:55]opened+sec_in_day 1729385211 [10:49:55]quantity*price = 40006 [10:49:55]sum+1 = 40007 [10:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 37 19.10.2024 10:49 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82540 ФПД: 192684522451325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T104956&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82540&fm=192684522451325&tin=02508201610067®Number=0000000000091680&sum=40000 [10:49:56]StoreToDocumentArchive [10:49:56]shift 527 fd 82540 [10:49:56]save to /storage/0527/doc_00082540 [10:49:56]save last doc name /storage/0527/doc_00082540 to /storage/kkm_last_doc_name [10:49:56]save OK [10:49:56]Clear old archive folders... [10:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:56]tlvbuf is 006D6A30 [10:49:56]SAM_PROTO_ClearQueue [10:49:56]wFMCommunicate request_size=4 [10:49:56]MH_SAM_APDU [10:49:56]CAPDU: 80 09 00 00 [10:49:56]Write to MH i2c: E2 08 00 13 09 80 09 00 00 00 00 00 00 8E [10:49:56]Write i2c OK [10:49:56]MH_I2C_Read... [10:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:56]Read from MH i2c: E2 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 03 00 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [10:49:56]RAPDU: 90 00 [10:49:56]wFMCommunicate OK [10:49:56]SAM_PROTO_ClearQueue done [10:49:56]KKMCreateOFDPacket [10:49:56]OFDProtocolAddRootSTLVToBuf [10:49:56]FM_MakeSignedData [10:49:56]FM_MakeSignedData [10:49:56]SAM_PROTO_SignData [10:49:56]wFMCommunicate request_size=4 [10:49:56]MH_SAM_APDU [10:49:56]CAPDU: 80 0D 01 02 [10:49:56]Write to MH i2c: E2 08 00 14 09 80 0D 01 02 00 00 00 00 96 [10:49:56]Write i2c OK [10:49:56]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 14 09 00 90 00 91 [10:49:57]RAPDU: 90 00 [10:49:57]wFMCommunicate OK [10:49:57]wFMCommunicate request_size=255 [10:49:57]MH_SAM_APDU [10:49:57]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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 D4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 42 01 00 35 04 06 00 AF [10:49:57]Write to MH i2c: E2 02 01 15 09 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 D4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 42 01 00 35 04 06 00 AF 00 00 61 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 15 09 00 90 00 92 [10:49:57]RAPDU: 90 00 [10:49:57]wFMCommunicate OK [10:49:57]wFMCommunicate request_size=10 [10:49:57]MH_SAM_APDU [10:49:57]CAPDU: 80 0D 02 02 05 3E DC 83 B1 7D [10:49:57]Write to MH i2c: E2 0D 00 16 09 80 0D 02 02 05 00 3E DC 83 B1 7D 00 00 6E [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [10:49:57]RAPDU: 90 00 [10:49:57]wFMCommunicate OK [10:49:57]wFMCommunicate request_size=4 [10:49:57]MH_SAM_APDU [10:49:57]CAPDU: 80 0D 03 02 [10:49:57]Write to MH i2c: E2 08 00 17 09 80 0D 03 02 00 00 00 00 9B [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 0B 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 0B 00 17 09 00 3A D8 3F A3 FF EE A9 C5 90 00 EB [10:49:57]RAPDU: 3A D8 3F A3 FF EE A9 C5 90 00 [10:49:57]wFMCommunicate OK [10:49:57]SAM_PROTO_SignData done [10:49:57]FM_MakeSignedData done [10:49:57]CreateOFDProtocolMessage [10:49:57]wFMCommunicate request_size=4 [10:49:57]MH_SAM_APDU [10:49:57]CAPDU: 80 11 00 00 [10:49:57]Write to MH i2c: E2 08 00 18 09 80 11 00 00 00 00 00 00 9B [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 17 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 17 00 18 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 ED [10:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:57]wFMCommunicate OK [10:49:57]CreateOFDProtocolMessage done [10:49:57]OFDSenderStorePacket 82540 [10:49:57]StoreOFDPacket docnum=82540 [10:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 08 05 07 01 98 1F 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 D4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 42 01 00 35 04 06 00 AF 3E DC 83 B1 7D 3A D8 3F A3 FF EE A9 C5 [10:49:57]CheckFolder [10:49:57]dirname=/storage/ofd_packets [10:49:57]CheckFolder done [10:49:57]ProducePacketName [10:49:57]name=ofd_packets/00082540 [10:49:57]NVStorageSaveData ofd_packets/00082540 [10:49:57]File name is /storage/ofd_packets/00082540 [10:49:57]Write 301 bytes [10:49:57]NVStorageSaveData done [10:49:57]OFDSenderStorePacket done [10:49:57]KKMCreateOFDPacket done [10:49:57]NVStorageSaveData kkm_last_timestamp [10:49:57]File name is /storage/kkm_last_timestamp [10:49:57]Write 4 bytes [10:49:57]NVStorageSaveData done [10:49:57]ExternCall_PrintAddStr [10:49:57]wPrintStart [10:49:57]Write to MH i2c: 01 00 00 19 09 22 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 07 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [10:49:57]RasterBufferAndPrint [10:49:57]line Счет N : (1)919029 [10:49:57]line ИНН: 02508201610067 [10:49:57]line Контрольно-Кассовый Чек [10:49:57]line ПРОДАЖА [10:49:57]line ТРК (МРК, ГНК) : 22 [10:49:57]line Товар: 2710124130 [10:49:57]line Аи-92-К-4 [10:49:57]line 5.980 * 66.90 [10:49:57]line = 400.06 [10:49:57]line НДС 12% НСП 1% [10:49:57]line > о реализуемом товаре [10:49:57]line ОКРУГЛЕНИЕ: -0.06 [10:49:57]line ИТОГО: 400.00 [10:49:57]line Внесено: 400.00 [10:49:57]line СДАЧА: 0.00 [10:49:57]line НСП 1% : 3.54 [10:49:57]line НДС 12% : 42.48 [10:49:57]line Наличными: 400.00 [10:49:57]line Безнал.: 0.00 [10:49:57]line Место: АЗС № 114 "Партнер Нефть" [10:49:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:49:57]line СНО: Общий режим [10:49:57]line Чек 37 19.10.2024 10:49 [10:49:57]line Смена: 527 ФФД: 1.0 [10:49:57]line ЗНМ: 0300000086 [10:49:57]line РНМ: 0000000000091680 [10:49:57]line Версия ККМ: 001 [10:49:57]line ФМ: 0000000000871843 [10:49:57]line ФД: 82540 [10:49:57]line ФПД: 192684522451325 [10:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T104956&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82540&fm=192684522451325&tin=02508201610067®Number=0000000000091680&sum=40000 [10:49:57]written 0, free lines is 4095 [10:49:57]OFD Sender: Processing packet 82540 [packets to send 254, broken 253] [10:49:57]ProducePacketName [10:49:57]name=ofd_packets/00082540 [10:49:57]OFD Sender: To server: pG, [10:49:57]CommunicateWithHost lk.salyk.kg:30040 [10:49:57]ConnectInit lk.salyk.kg [10:49:57]Write to MH i2c: 01 00 00 44 09 4D [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 07 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 E1 0C 41 [10:49:57]RasterBufferAndPrint [10:49:57]line [10:49:57]line [10:49:57]line [10:49:57]line [10:49:57]line [10:49:57]written 0, free lines is 3303 [10:49:57]MH_Cut [10:49:57]Write to MH i2c: D1 01 00 4B 09 01 26 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: D1 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: D1 01 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: D1 01 00 4B 09 00 25 [10:49:57]Write to MH i2c: 01 00 00 4C 09 55 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:58]*** Cut start [10:49:58]*** Partial cut [10:49:58]*** CUTSNS_PIN = 1 [10:49:58]*** CUTSNS_PIN = 0 [10:49:59]*** Brake cut motor [10:49:59]Connected sock=11 [10:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 08 05 07 01 98 1F 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 D4 8E 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 42 01 00 35 04 06 00 AF 3E DC 83 B1 7D 3A D8 3F A3 FF EE A9 C5 [10:49:59]Read from MH i2c: 01 [10:49:59]MH_I2C_Read... [10:49:59]*** Stop cut motor [10:49:59]*** Cut end [10:49:59]Read from MH i2c: 01 07 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 FF 0F 6A [10:49:59]process_action close_receipt done [10:49:59]requested_data is exist [10:49:59]produce_requested_data [10:49:59]requested_item fm.sn is exist - process it [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 11 00 00 [10:49:59]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 17 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 22 [10:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:59]wFMCommunicate OK [10:49:59]requested_item fd.num is exist - process it [10:49:59]SAM_PROTO_GetFieldsCounters [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 13 00 00 [10:49:59]Write to MH i2c: E2 08 00 4E 09 80 13 00 00 00 00 00 00 D3 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 62 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 62 00 4E 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6C 42 01 00 0E 04 04 00 0F 02 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 21 [10:49: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6C 42 01 00 0E 04 04 00 0F 02 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 [10:49:59]wFMCommunicate OK [10:49:59]SAM_PROTO_GetFieldsCounters done [10:49:59]requested_item shift.num is exist - process it [10:49:59]requested_item shift.opened is exist - process it [10:49:59]req_shift_opened [10:49:59]FM_GetShiftState [10:49:59]SAM_PROTO_GetShiftState [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 13 01 00 [10:49:59]Write to MH i2c: E2 08 00 4F 09 80 13 01 00 00 00 00 00 D5 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 4F 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D7 [10:49:59]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:49:59]wFMCommunicate OK [10:49:59]SAM_PROTO_GetShiftState done [10:49:59]FM_GetShiftState done [10:49:59]req_shift_opened done [10:49:59]requested_item shift.open_date is exist - process it [10:49:59]req_shift_open_date [10:49:59]req_shift_open_date done [10:49:59]produce_requested_data done [10:49:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82540,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:49:59]process_action_free close_receipt [10:49:59]json_value_free [10:49:59]json_value_free done [10:49:59]process_json_proto returns [10:49:59]Send response to host [10:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82540,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:49:59]free response buf [10:49:59]execute_script done [10:49:59]execute_script returns [10:49:59]free content buf [10:49:59]Sock 9.Close socket [10:49:59]Sock 9.Thread stoped [10:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 60 FB 47 00 16 49 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 31 38 34 33 10 04 04 00 6C 42 01 00 F4 03 04 00 0D 34 13 67 B6 04 01 00 00 DD BF 00 E7 E9 02 6B 30 [10:49:59]CommunicateWithHost err = 0 [10:49:59]CheckOFDResponse [10:49:59]1017 (14) - 77093643461234 [10:49:59]1041 (16) - 0000000000871843 [10:49:59]1040 (4) - 82540 [10:49:59]1012 (4) - 19.10.2024 04:22 [10:49:59]1206 (1) - 0 [10:49:59]OFD Sender: Remove packet 82540 [10:49:59]ProducePacketName [10:49:59]name=ofd_packets/00082540 [10:49:59]NVStorageDeleteData [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:20]recv_with_timeout no data received [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:11]accept exits with 8 [10:53:11]New connection [10:53:11]New thread 3067280740 created [10:53:11]Thread 3067137380 joined [10:53:11]Waiting for new connection... [10:53:11] Sock 8.Parse request [10:53:11]Sock 8.Check first char [10:53:11]Sock 8.First char is OK [10:53:11]request: POST /json_proto HTTP/1.0 [10:53:11]Method: POST [10:53:11]URL: /json_proto [10:53:11]Method is POST - this is cgi request [10:53:11]url: /json_proto [10:53:11]query_string will be loaded in cgi processing [10:53:11]execute_cgi json_proto POST (null) [10:53:11]execute_cgi path=json_proto method=POST [10:53:11]POST find Content-Length [10:53:11]Host: 172.17.44.67:8080 [10:53:11]Content-Length: 805 [10:53:11]Content-Type: application/json [10:53:11] [10:53:11]POST finish read [10:53:11]Found Content-Length = 805 [10:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4755529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:11]execute_script... [10:53: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 : (1)919030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4755529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:11]POST & json_proto [10:53:11]process_json_proto [10:53:11]json parsed OK: [10:53:11]protocol is kg_v1.0 [10:53:11]action value=close_receipt [10:53:11]process_action close_receipt [10:53:11]cmd_close_receipt [10:53:11]MH_GetDate [10:53:11]Write to MH i2c: F0 00 00 50 09 48 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: F0 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: F0 09 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: F0 09 00 50 09 00 98 8F 13 67 F1 C7 6B 64 79 [10:53:11]GetLastDocTimeStamp 1729334996 [10:53:11]current date 1729335192 [10:53:11]FM_GetShiftState [10:53:11]SAM_PROTO_GetShiftState [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 13 01 00 [10:53:11]Write to MH i2c: E2 08 00 51 09 80 13 01 00 00 00 00 00 D7 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0E 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0E 00 51 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D9 [10:53:11]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_GetShiftState done [10:53:11]FM_GetShiftState done [10:53:11]opened in 1729298811 [10:53:11]opened+sec_in_day 1729385211 [10:53:11]quantity*price = 0 [10:53:11]sum+1 = 1 [10:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 38 19.10.2024 10:53 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4755529 ФМ: 0000000000871843 ФД: 82541 ФПД: 258828062095167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T105312&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82541&fm=258828062095167&tin=02508201610067®Number=0000000000091680&sum=0 [10:53:12]StoreToDocumentArchive [10:53:12]shift 527 fd 82541 [10:53:12]save to /storage/0527/doc_00082541 [10:53:12]save last doc name /storage/0527/doc_00082541 to /storage/kkm_last_doc_name [10:53:12]save OK [10:53:12]Clear old archive folders... [10:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:53:12]tlvbuf is 006DD810 [10:53:12]SAM_PROTO_ClearQueue [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 09 00 00 [10:53:12]Write to MH i2c: E2 08 00 5E 09 80 09 00 00 00 00 00 00 D9 [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [10:53:12]RAPDU: 90 00 [10:53:12]wFMCommunicate OK [10:53:12]SAM_PROTO_ClearQueue done [10:53:12]KKMCreateOFDPacket [10:53:12]OFDProtocolAddRootSTLVToBuf [10:53:12]FM_MakeSignedData [10:53:12]FM_MakeSignedData [10:53:12]SAM_PROTO_SignData [10:53:12]wFMCommunicate request_size=4 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 0D 01 02 [10:53:12]Write to MH i2c: E2 08 00 5F 09 80 0D 01 02 00 00 00 00 E1 [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:12]Read from MH i2c: E2 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 [10:53:12]MH_I2C_Read... [10:53:12]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [10:53:12]RAPDU: 90 00 [10:53:12]wFMCommunicate OK [10:53:12]wFMCommunicate request_size=255 [10:53:12]MH_SAM_APDU [10:53:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 98 8F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 42 01 00 35 04 06 00 [10:53:12]Write to MH i2c: E2 02 01 60 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 98 8F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 42 01 00 35 04 06 00 00 00 BF [10:53:12]Write i2c OK [10:53:12]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 03 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 03 00 60 09 00 90 00 DD [10:53:13]RAPDU: 90 00 [10:53:13]wFMCommunicate OK [10:53:13]wFMCommunicate request_size=11 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 0D 02 02 06 EB 67 1A B2 F7 3F [10:53:13]Write to MH i2c: E2 0E 00 61 09 80 0D 02 02 06 00 EB 67 1A B2 F7 3F 00 00 44 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 03 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [10:53:13]RAPDU: 90 00 [10:53:13]wFMCommunicate OK [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 0D 03 02 [10:53:13]Write to MH i2c: E2 08 00 62 09 80 0D 03 02 00 00 00 00 E6 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0B 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0B 00 62 09 00 8E 04 30 ED 23 7A 64 FE 90 00 95 [10:53:13]RAPDU: 8E 04 30 ED 23 7A 64 FE 90 00 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_SignData done [10:53:13]FM_MakeSignedData done [10:53:13]CreateOFDProtocolMessage [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 11 00 00 [10:53:13]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 17 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 38 [10:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:53:13]wFMCommunicate OK [10:53:13]CreateOFDProtocolMessage done [10:53:13]OFDSenderStorePacket 82541 [10:53:13]StoreOFDPacket docnum=82541 [10:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 EE DE 08 01 CD 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 98 8F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 42 01 00 35 04 06 00 EB 67 1A B2 F7 3F 8E 04 30 ED 23 7A 64 FE [10:53:13]CheckFolder [10:53:13]dirname=/storage/ofd_packets [10:53:13]CheckFolder done [10:53:13]ProducePacketName [10:53:13]name=ofd_packets/00082541 [10:53:13]NVStorageSaveData ofd_packets/00082541 [10:53:13]File name is /storage/ofd_packets/00082541 [10:53:13]Write 302 bytes [10:53:13]NVStorageSaveData done [10:53:13]OFDSenderStorePacket done [10:53:13]KKMCreateOFDPacket done [10:53:13]NVStorageSaveData kkm_last_timestamp [10:53:13]File name is /storage/kkm_last_timestamp [10:53:13]Write 4 bytes [10:53:13]NVStorageSaveData done [10:53:13]ExternCall_PrintAddStr [10:53:13]wPrintStart [10:53:13]Write to MH i2c: 01 00 00 64 09 6D [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 FF 0F 82 [10:53:13]RasterBufferAndPrint [10:53:13]line Счет N : (1)919030 [10:53:13]line ИНН: 02508201610067 [10:53:13]line Контрольно-Кассовый Чек [10:53:13]line ПРОДАЖА [10:53:13]line ТРК (МРК, ГНК) : 31 [10:53:13]line Товар: 2710194210 [10:53:13]line ДТ(л)-К-5 [10:53:13]line 50.000 * 0.00 [10:53:13]line = 0.00 [10:53:13]line НДС 12% НСП 1% [10:53:13]line > о реализуемом товаре [10:53:13]line ИТОГО: 0.00 [10:53:13]line НСП 1% : 0.00 [10:53:13]line НДС 12% : 0.00 [10:53:13]line Наличными: 0.00 [10:53:13]line Безнал.: 0.00 [10:53:13]line Место: АЗС № 114 "Партнер Нефть" [10:53:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:53:13]line СНО: Общий режим [10:53:13]line Чек 38 19.10.2024 10:53 [10:53:13]line Смена: 527 ФФД: 1.0 [10:53:13]line ЗНМ: 0300000086 [10:53:13]line РНМ: 0000000000091680 [10:53:13]line Версия ККМ: 001 [10:53:13]line Талоны: Топливные Талоны [10:53:13]line 4755529 [10:53:13]line ФМ: 0000000000871843 [10:53:13]line ФД: 82541 [10:53:13]line ФПД: 258828062095167 [10:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T105312&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82541&fm=258828062095167&tin=02508201610067®Number=0000000000091680&sum=0 [10:53:13]written 0, free lines is 4095 [10:53:13]OFD Sender: Processing packet 82541 [packets to send 254, broken 253] [10:53:13]ProducePacketName [10:53:13]name=ofd_packets/00082541 [10:53:13]OFD Sender: To server: pG, [10:53:13]CommunicateWithHost lk.salyk.kg:30040 [10:53:13]ConnectInit lk.salyk.kg [10:53:13]Write to MH i2c: 01 00 00 8E 09 97 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 E7 0C 91 [10:53:13]RasterBufferAndPrint [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]line [10:53:13]written 0, free lines is 3307 [10:53:13]MH_Cut [10:53:13]Write to MH i2c: D1 01 00 95 09 01 70 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 01 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: D1 01 00 95 09 00 6F [10:53:13]Write to MH i2c: 01 00 00 96 09 9F [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:14]*** Cut start [10:53:14]*** Partial cut [10:53:14]*** CUTSNS_PIN = 1 [10:53:14]*** CUTSNS_PIN = 0 [10:53:14]*** Brake cut motor [10:53:15]Connected sock=11 [10: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 31 38 34 33 10 01 00 00 EE DE 08 01 CD 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 98 8F 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 42 01 00 35 04 06 00 EB 67 1A B2 F7 3F 8E 04 30 ED 23 7A 64 FE [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]*** Stop cut motor [10:53:15]*** Cut end [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [10:53:15]process_action close_receipt done [10:53:15]requested_data is exist [10:53:15]produce_requested_data [10:53:15]requested_item fm.sn is exist - process it [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 11 00 00 [10:53:15]Write to MH i2c: E2 08 00 97 09 80 11 00 00 00 00 00 00 1A [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 97 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6C [10:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:53:15]wFMCommunicate OK [10:53:15]requested_item fd.num is exist - process it [10:53:15]SAM_PROTO_GetFieldsCounters [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 13 00 00 [10:53:15]Write to MH i2c: E2 08 00 98 09 80 13 00 00 00 00 00 00 1D [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4E 7A 47 00 DC 47 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 31 38 34 33 10 04 04 00 6D 42 01 00 F4 03 04 00 D1 34 13 67 B6 04 01 00 00 90 4B CD 53 F8 64 DE 18 [10:53:15]CommunicateWithHost err = 0 [10:53:15]CheckOFDResponse [10:53:15]1017 (14) - 77093643461234 [10:53:15]1041 (16) - 0000000000871843 [10:53:15]1040 (4) - 82541 [10:53:15]1012 (4) - 19.10.2024 04:25 [10:53:15]1206 (1) - 0 [10:53:15]OFD Sender: Remove packet 82541 [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00082541 [10:53:15]NVStorageDeleteData [10:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 62 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 62 00 98 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 42 01 00 0E 04 04 00 0F 02 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 6F [10: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 42 01 00 0E 04 04 00 0F 02 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 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_GetFieldsCounters done [10:53:15]requested_item shift.num is exist - process it [10:53:15]requested_item shift.opened is exist - process it [10:53:15]req_shift_opened [10:53:15]FM_GetShiftState [10:53:15]SAM_PROTO_GetShiftState [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 13 01 00 [10:53:15]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0E 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 21 [10:53:15]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_GetShiftState done [10:53:15]FM_GetShiftState done [10:53:15]req_shift_opened done [10:53:15]requested_item shift.open_date is exist - process it [10:53:15]req_shift_open_date [10:53:15]req_shift_open_date done [10:53:15]produce_requested_data done [10:53:15]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82541,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:53:15]process_action_free close_receipt [10:53:15]json_value_free [10:53:15]json_value_free done [10:53:15]process_json_proto returns [10:53:15]Send response to host [10:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82541,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:53:15]free response buf [10:53:15]execute_script done [10:53:15]execute_script returns [10:53:15]free content buf [10:53:15]Sock 8.Close socket [10:53:15]Sock 8.Thread stoped [10:53:15]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:27]recv_with_timeout no data received [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:54]accept exits with 9 [10:55:54]New connection [10:55:54]New thread 3067137380 created [10:55:54]Thread 3067280740 joined [10:55:54]Waiting for new connection... [10:55:54] Sock 9.Parse request [10:55:54]Sock 9.Check first char [10:55:54]Sock 9.First char is OK [10:55:54]request: POST /json_proto HTTP/1.0 [10:55:54]Method: POST [10:55:54]URL: /json_proto [10:55:54]Method is POST - this is cgi request [10:55:54]url: /json_proto [10:55:54]query_string will be loaded in cgi processing [10:55:54]execute_cgi json_proto POST (null) [10:55:54]execute_cgi path=json_proto method=POST [10:55:54]POST find Content-Length [10:55:54]Host: 172.17.44.67:8080 [10:55:54]Content-Length: 215 [10:55:54]Content-Type: application/json [10:55:54] [10:55:54]POST finish read [10:55:54]Found Content-Length = 215 [10:55: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" ] } } [10:55:54]execute_script... [10:55: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" ] } } [10:55:54]POST & json_proto [10:55:54]process_json_proto [10:55:54]json parsed OK: [10:55:54]protocol is kg_v1.0 [10:55:54]action value=get_value [10:55:54]process_action get_value [10:55:54]cmd_get_value [10:55:54]process_action get_value done [10:55:54]requested_data is exist [10:55:54]produce_requested_data [10:55:54]requested_item kkm.sn is exist - process it [10:55:54]requested_item kkm.ver is exist - process it [10:55:54]requested_item fm.sn is exist - process it [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 11 00 00 [10:55:54]Write to MH i2c: E2 08 00 9A 09 80 11 00 00 00 00 00 00 1D [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 9A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [10:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:55:54]wFMCommunicate OK [10:55:54]requested_item fd.num is exist - process it [10:55:54]SAM_PROTO_GetFieldsCounters [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 00 00 [10:55:54]Write to MH i2c: E2 08 00 9B 09 80 13 00 00 00 00 00 00 20 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 9B 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 42 01 00 0E 04 04 00 0F 02 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 72 [10:55: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 42 01 00 0E 04 04 00 0F 02 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 [10:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetFieldsCounters done [10:55:54]requested_item shift.num is exist - process it [10:55:54]requested_item shift.opened is exist - process it [10:55:54]req_shift_opened [10:55:54]FM_GetShiftState [10:55:54]SAM_PROTO_GetShiftState [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 01 00 [10:55:54]Write to MH i2c: E2 08 00 9C 09 80 13 01 00 00 00 00 00 22 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 0E 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 0E 00 9C 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 24 [10:55:54]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [10:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetShiftState done [10:55:54]FM_GetShiftState done [10:55:54]req_shift_opened done [10:55:54]requested_item shift.open_date is exist - process it [10:55:54]req_shift_open_date [10:55:54]req_shift_open_date done [10:55:54]produce_requested_data done [10:55:54]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82541,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [10:55:54]process_action_free get_value [10:55:54]json_value_free [10:55:54]json_value_free done [10:55:54]process_json_proto returns [10:55:54]Send response to host [10:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82541,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [10:55:54]free response buf [10:55:54]execute_script done [10:55:54]execute_script returns [10:55:54]free content buf [10:55:54]Sock 9.Close socket [10:55:54]Sock 9.Thread stoped [10:55:54]accept exits with 8 [10:55:54]New connection [10:55:54]New thread 3067280740 created [10:55:54]Thread 3067137380 joined [10:55:54]Waiting for new connection... [10:55:54] Sock 8.Parse request [10:55:54]Sock 8.Check first char [10:55:54]Sock 8.First char is OK [10:55:54]request: POST /json_proto HTTP/1.0 [10:55:54]Method: POST [10:55:54]URL: /json_proto [10:55:54]Method is POST - this is cgi request [10:55:54]url: /json_proto [10:55:54]query_string will be loaded in cgi processing [10:55:54]execute_cgi json_proto POST (null) [10:55:54]execute_cgi path=json_proto method=POST [10:55:54]POST find Content-Length [10:55:54]Host: 172.17.44.67:8080 [10:55:54]Content-Length: 331 [10:55:54]Content-Type: application/json [10:55:54] [10:55:54]POST finish read [10:55:54]Found Content-Length = 331 [10:55: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" ] } } [10:55:54]execute_script... [10:55:55]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" ] } } [10:55:55]POST & json_proto [10:55:55]process_json_proto [10:55:55]json parsed OK: [10:55:55]protocol is kg_v1.0 [10:55:55]action value=get_value [10:55:55]process_action get_value [10:55:55]cmd_get_value [10:55:55]process_action get_value done [10:55:55]requested_data is exist [10:55:55]produce_requested_data [10:55:55]requested_item fm.sale.total is exist - process it [10:55:55]SAM_PROTO_GetFMData [10:55:55]wFMCommunicate request_size=4 [10:55:55]MH_SAM_APDU [10:55:55]CAPDU: 80 13 03 00 [10:55:55]Write to MH i2c: E2 08 00 9D 09 80 13 03 00 00 00 00 00 25 [10:55:55]Write i2c OK [10:55:55]MH_I2C_Read... [10:55:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:55:55]Read from MH i2c: E2 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: E2 FD 00 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: E2 FD 00 9D 09 00 C7 04 85 04 C3 04 6E 04 04 00 4F 3E 01 00 69 04 A3 00 6F 04 04 00 B4 3B 01 00 B1 04 05 00 13 35 18 7C 01 70 04 05 00 94 E5 93 41 01 72 04 04 00 7F 4F 84 3A 00 04 7D 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 D0 B1 60 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 DE 50 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 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 60 F3 06 02 EF 90 00 93 [10:55:55]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 4F 3E 01 00 69 04 A3 00 6F 04 04 00 B4 3B 01 00 B1 04 05 00 13 35 18 7C 01 70 04 05 00 94 E5 93 41 01 72 04 04 00 7F 4F 84 3A 00 04 7D 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 D0 B1 60 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 DE 50 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 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 60 F3 06 02 EF 90 00 [10:55:55]wFMCommunicate OK [10:55:55]wFMCommunicate request_size=4 [10:55:55]MH_SAM_APDU [10:55:55]CAPDU: 80 17 00 00 [10:55:55]Write to MH i2c: E2 08 00 9E 09 80 17 00 00 00 00 00 00 27 [10:55:55]Write i2c OK [10:55:55]MH_I2C_Read... [10:55:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:56]Read from MH i2c: E2 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 9E 09 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [10:55:56]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:55:56]wFMCommunicate OK [10:55:56]wFMCommunicate request_size=4 [10:55:56]MH_SAM_APDU [10:55:56]CAPDU: 80 17 00 00 [10:55:56]Write to MH i2c: E2 08 00 9F 09 80 17 00 00 00 00 00 00 28 [10:55:56]Write i2c OK [10:55:56]MH_I2C_Read... [10:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:56]Read from MH i2c: E2 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 9F 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [10:55:56]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:55:56]wFMCommunicate OK [10:55:56]wFMCommunicate request_size=4 [10:55:56]MH_SAM_APDU [10:55:56]CAPDU: 80 17 00 00 [10:55:56]Write to MH i2c: E2 08 00 A0 09 80 17 00 00 00 00 00 00 29 [10:55:56]OFD Sender: No OFD packet to send [10:55:56]Write i2c OK [10:55:56]MH_I2C_Read... [10:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:56]Read from MH i2c: E2 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 FD 00 A0 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [10:55:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:55:56]wFMCommunicate OK [10:55:56]wFMCommunicate request_size=4 [10:55:56]MH_SAM_APDU [10:55:56]CAPDU: 80 17 00 00 [10:55:56]Write to MH i2c: E2 08 00 A1 09 80 17 00 00 00 00 00 00 2A [10:55:56]Write i2c OK [10:55:56]MH_I2C_Read... [10:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [10:55:56]Read from MH i2c: E2 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 E4 00 [10:55:56]MH_I2C_Read... [10:55:56]Read from MH i2c: E2 E4 00 A1 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [10:55:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:55:56]wFMCommunicate OK [10:55:56]SAM_PROTO_GetFMData done [10:55:56]requested_item fm.sale_refund.total is exist - process it [10:55:56]requested_item fm.buy.total is exist - process it [10:55:56]requested_item shift.sale.total is exist - process it [10:55:56]SAM_PROTO_GetShiftData [10:55:56]wFMCommunicate request_size=4 [10:55:56]MH_SAM_APDU [10:55:56]CAPDU: 80 13 02 00 [10:55:56]Write to MH i2c: E2 08 00 A2 09 80 13 02 00 00 00 00 00 29 [10:55:56]Write i2c OK [10:55:56]MH_I2C_Read... [10:55:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:55:57]Read from MH i2c: E2 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 A2 09 00 AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 74 70 1C 70 04 03 00 F0 F6 13 72 04 03 00 84 79 08 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 4F 05 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 71 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 3C [10:55:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 74 70 1C 70 04 03 00 F0 F6 13 72 04 03 00 84 79 08 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 4F 05 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 71 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 [10:55:57]wFMCommunicate OK [10:55:57]wFMCommunicate request_size=4 [10:55:57]MH_SAM_APDU [10:55:57]CAPDU: 80 17 00 00 [10:55:57]Write to MH i2c: E2 08 00 A3 09 80 17 00 00 00 00 00 00 2C [10:55:57]Write i2c OK [10:55:57]MH_I2C_Read... [10:55:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:57]Read from MH i2c: E2 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 A3 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 4E [10:55: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 [10:55:57]wFMCommunicate OK [10:55:57]wFMCommunicate request_size=4 [10:55:57]MH_SAM_APDU [10:55:57]CAPDU: 80 17 00 00 [10:55:57]Write to MH i2c: E2 08 00 A4 09 80 17 00 00 00 00 00 00 2D [10:55:57]Write i2c OK [10:55:57]MH_I2C_Read... [10:55:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:57]Read from MH i2c: E2 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 [10:55:57]MH_I2C_Read... [10:55:57]Read from MH i2c: E2 FD 00 A4 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 E4 [10:55: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 [10:55:57]wFMCommunicate OK [10:55:57]wFMCommunicate request_size=4 [10:55:57]MH_SAM_APDU [10:55:57]CAPDU: 80 17 00 00 [10:55:57]Write to MH i2c: E2 08 00 A5 09 80 17 00 00 00 00 00 00 2E [10:55:57]Write i2c OK [10:55:57]MH_I2C_Read... [10:55:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:55:58]Read from MH i2c: E2 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 FD 00 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 FD 00 A5 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 A0 [10:55: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 [10:55:58]wFMCommunicate OK [10:55:58]wFMCommunicate request_size=4 [10:55:58]MH_SAM_APDU [10:55:58]CAPDU: 80 17 00 00 [10:55:58]Write to MH i2c: E2 08 00 A6 09 80 17 00 00 00 00 00 00 2F [10:55:58]Write i2c OK [10:55:58]MH_I2C_Read... [10:55:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:55:58]Read from MH i2c: E2 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 CB 00 [10:55:58]MH_I2C_Read... [10:55:58]Read from MH i2c: E2 CB 00 A6 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 18 [10:55: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 [10:55:58]wFMCommunicate OK [10:55:58]SAM_PROTO_GetShiftData done [10:55:58]requested_item shift.sale.total_cash is exist - process it [10:55:58]requested_item shift.sale_refund.total is exist - process it [10:55:58]requested_item shift.sale_refund.total_cash is exist - process it [10:55:58]requested_item shift.buy.total is exist - process it [10:55:58]requested_item shift.buy.total_cash is exist - process it [10:55:58]produce_requested_data done [10:55:58]produce_requested_data return {"fm.sale.total":63769285.31,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":18637.96,"shift.sale.total_cash":13084.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} [10:55:58]process_action_free get_value [10:55:58]json_value_free [10:55:58]json_value_free done [10:55:58]process_json_proto returns [10:55:58]Send response to host [10:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63769285.31,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":18637.96,"shift.sale.total_cash":13084.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}}} [10:55:58]free response buf [10:55:58]execute_script done [10:55:58]execute_script returns [10:55:58]free content buf [10:55:58]Sock 8.Close socket [10:55:58]Sock 8.Thread stoped [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:12]accept exits with 9 [11:04:12]New connection [11:04:12]New thread 3067137380 created [11:04:12]Thread 3067280740 joined [11:04:12]Waiting for new connection... [11:04:12] Sock 9.Parse request [11:04:12]Sock 9.Check first char [11:04:12]Sock 9.First char is OK [11:04:12]request: POST /json_proto HTTP/1.0 [11:04:12]Method: POST [11:04:12]URL: /json_proto [11:04:12]Method is POST - this is cgi request [11:04:12]url: /json_proto [11:04:12]query_string will be loaded in cgi processing [11:04:12]execute_cgi json_proto POST (null) [11:04:12]execute_cgi path=json_proto method=POST [11:04:12]POST find Content-Length [11:04:12]Host: 172.17.44.67:8080 [11:04:12]Content-Length: 766 [11:04:12]Content-Type: application/json [11:04:12] [11:04:12]POST finish read [11:04:12]Found Content-Length = 766 [11:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "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: Mbank", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:12]execute_script... [11:04: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 : (1)919031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "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: Mbank", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:12]POST & json_proto [11:04:12]process_json_proto [11:04:12]json parsed OK: [11:04:12]protocol is kg_v1.0 [11:04:12]action value=close_receipt [11:04:12]process_action close_receipt [11:04:12]cmd_close_receipt [11:04:12]MH_GetDate [11:04:12]Write to MH i2c: F0 00 00 A7 09 9F [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: F0 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: F0 09 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: F0 09 00 A7 09 00 2D 92 13 67 F1 C7 6B 64 68 [11:04:12]GetLastDocTimeStamp 1729335192 [11:04:12]current date 1729335853 [11:04:12]FM_GetShiftState [11:04:12]SAM_PROTO_GetShiftState [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 13 01 00 [11:04:12]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0E 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 30 [11:04:12]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:04:12]wFMCommunicate OK [11:04:12]SAM_PROTO_GetShiftState done [11:04:12]FM_GetShiftState done [11:04:12]opened in 1729298811 [11:04:12]opened+sec_in_day 1729385211 [11:04:12]quantity*price = 33450 [11:04:12]sum+1 = 33451 [11:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.50 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 0.00 Безнал.: 334.50 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 39 19.10.2024 11:04 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82542 ФПД: 69244229768710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T110413&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82542&fm=69244229768710&tin=02508201610067®Number=0000000000091680&sum=33450 [11:04:14]StoreToDocumentArchive [11:04:14]shift 527 fd 82542 [11:04:14]save to /storage/0527/doc_00082542 [11:04:14]save last doc name /storage/0527/doc_00082542 to /storage/kkm_last_doc_name [11:04:14]save OK [11:04:14]Clear old archive folders... [11:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:14]tlvbuf is 006D5B80 [11:04:14]SAM_PROTO_ClearQueue [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 09 00 00 [11:04:14]Write to MH i2c: E2 08 00 B5 09 80 09 00 00 00 00 00 00 30 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]SAM_PROTO_ClearQueue done [11:04:14]KKMCreateOFDPacket [11:04:14]OFDProtocolAddRootSTLVToBuf [11:04:14]FM_MakeSignedData [11:04:14]FM_MakeSignedData [11:04:14]SAM_PROTO_SignData [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 01 02 [11:04:14]Write to MH i2c: E2 08 00 B6 09 80 0D 01 02 00 00 00 00 38 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=255 [11:04:14]MH_SAM_APDU [11:04:14]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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2D 92 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 42 01 00 35 04 06 00 3E [11:04:14]Write to MH i2c: E2 02 01 B7 09 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2D 92 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 42 01 00 35 04 06 00 3E 00 00 10 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=10 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 02 02 05 FA 2D B7 D6 06 [11:04:14]Write to MH i2c: E2 0D 00 B8 09 80 0D 02 02 05 00 FA 2D B7 D6 06 00 00 FF [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 03 02 [11:04:14]Write to MH i2c: E2 08 00 B9 09 80 0D 03 02 00 00 00 00 3D [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 0B 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 0B 00 B9 09 00 7B 62 0F 7D 6A F5 4C 37 90 00 89 [11:04:14]RAPDU: 7B 62 0F 7D 6A F5 4C 37 90 00 [11:04:14]wFMCommunicate OK [11:04:14]SAM_PROTO_SignData done [11:04:14]FM_MakeSignedData done [11:04:14]CreateOFDProtocolMessage [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 11 00 00 [11:04:14]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 17 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [11:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:04:14]wFMCommunicate OK [11:04:14]CreateOFDProtocolMessage done [11:04:14]OFDSenderStorePacket 82542 [11:04:14]StoreOFDPacket docnum=82542 [11:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 24 CD 07 01 51 DF 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2D 92 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 42 01 00 35 04 06 00 3E FA 2D B7 D6 06 7B 62 0F 7D 6A F5 4C 37 [11:04:14]CheckFolder [11:04:14]dirname=/storage/ofd_packets [11:04:14]CheckFolder done [11:04:14]ProducePacketName [11:04:14]name=ofd_packets/00082542 [11:04:14]NVStorageSaveData ofd_packets/00082542 [11:04:14]File name is /storage/ofd_packets/00082542 [11:04:14]Write 301 bytes [11:04:14]NVStorageSaveData done [11:04:14]OFDSenderStorePacket done [11:04:14]KKMCreateOFDPacket done [11:04:14]NVStorageSaveData kkm_last_timestamp [11:04:14]File name is /storage/kkm_last_timestamp [11:04:14]Write 4 bytes [11:04:14]NVStorageSaveData done [11:04:14]ExternCall_PrintAddStr [11:04:14]wPrintStart [11:04:14]Write to MH i2c: 01 00 00 BB 09 C4 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 07 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [11:04:14]RasterBufferAndPrint [11:04:14]line Счет N : (1)919031 [11:04:14]line ИНН: 02508201610067 [11:04:14]line Контрольно-Кассовый Чек [11:04:14]line ПРОДАЖА [11:04:14]line ТРК (МРК, ГНК) : 22 [11:04:14]line Товар: 2710124130 [11:04:14]line Аи-92-К-4 [11:04:14]line 5.000 * 66.90 [11:04:14]line = 334.50 [11:04:14]line НДС 12% НСП 1% [11:04:14]line > о реализуемом товаре [11:04:14]line ИТОГО: 334.50 [11:04:14]line НСП 1% : 2.96 [11:04:14]line НДС 12% : 35.52 [11:04:14]line Наличными: 0.00 [11:04:14]line Безнал.: 334.50 [11:04:14]line Место: АЗС № 114 "Партнер Нефть" [11:04:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:04:14]line СНО: Общий режим [11:04:14]line Чек 39 19.10.2024 11:04 [11:04:14]line Смена: 527 ФФД: 1.0 [11:04:14]line ЗНМ: 0300000086 [11:04:14]line РНМ: 0000000000091680 [11:04:14]line Версия ККМ: 001 [11:04:14]line Платежная система: Mbank [11:04:14]line ФМ: 0000000000871843 [11:04:14]line ФД: 82542 [11:04:14]line ФПД: 69244229768710 [11:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T110413&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82542&fm=69244229768710&tin=02508201610067®Number=0000000000091680&sum=33450 [11:04:14]written 0, free lines is 4095 [11:04:14]OFD Sender: Processing packet 82542 [packets to send 254, broken 253] [11:04:14]ProducePacketName [11:04:14]name=ofd_packets/00082542 [11:04:14]OFD Sender: To server: pG, [11:04:14]CommunicateWithHost lk.salyk.kg:30040 [11:04:14]ConnectInit lk.salyk.kg [11:04:15]Write to MH i2c: 01 00 00 E4 09 ED [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 07 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 08 0D 09 [11:04:15]RasterBufferAndPrint [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]written 0, free lines is 3342 [11:04:15]MH_Cut [11:04:15]Write to MH i2c: D1 01 00 EB 09 01 C6 [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 01 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 01 00 EB 09 00 C5 [11:04:15]Write to MH i2c: 01 00 00 EC 09 F5 [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]*** Cut start [11:04:15]*** Partial cut [11:04:15]*** CUTSNS_PIN = 1 [11:04:15]*** CUTSNS_PIN = 0 [11:04:16]*** Brake cut motor [11:04:16]Connected sock=10 [11:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 24 CD 07 01 51 DF 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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 2D 92 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 42 01 00 35 04 06 00 3E FA 2D B7 D6 06 7B 62 0F 7D 6A F5 4C 37 [11:04:16]Read from MH i2c: 01 [11:04:16]MH_I2C_Read... [11:04:16]*** Stop cut motor [11:04:16]*** Cut end [11:04:16]Read from MH i2c: 01 07 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 FF 0F 0A [11:04:16]process_action close_receipt done [11:04:16]requested_data is exist [11:04:16]produce_requested_data [11:04:16]requested_item fm.sn is exist - process it [11:04:16]wFMCommunicate request_size=4 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 11 00 00 [11:04:16]Write to MH i2c: E2 08 00 ED 09 80 11 00 00 00 00 00 00 70 [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:16]Read from MH i2c: E2 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 17 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 17 00 ED 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C2 [11:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:04:16]wFMCommunicate OK [11:04:16]requested_item fd.num is exist - process it [11:04:16]SAM_PROTO_GetFieldsCounters [11:04:16]wFMCommunicate request_size=4 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 13 00 00 [11:04:16]Write to MH i2c: E2 08 00 EE 09 80 13 00 00 00 00 00 00 73 [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:16]Read from MH i2c: E2 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 62 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 62 00 EE 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6E 42 01 00 0E 04 04 00 0F 02 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 C9 [11:04: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6E 42 01 00 0E 04 04 00 0F 02 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 [11:04:16]wFMCommunicate OK [11:04:16]SAM_PROTO_GetFieldsCounters done [11:04:16]requested_item shift.num is exist - process it [11:04:16]requested_item shift.opened is exist - process it [11:04:16]req_shift_opened [11:04:16]FM_GetShiftState [11:04:16]SAM_PROTO_GetShiftState [11:04:16]wFMCommunicate request_size=4 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 13 01 00 [11:04:16]Write to MH i2c: E2 08 00 EF 09 80 13 01 00 00 00 00 00 75 [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:16]Read from MH i2c: E2 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 0E 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 0E 00 EF 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 77 [11:04:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:04:16]wFMCommunicate OK [11:04:16]SAM_PROTO_GetShiftState done [11:04:16]FM_GetShiftState done [11:04:16]req_shift_opened done [11:04:16]requested_item shift.open_date is exist - process it [11:04:16]req_shift_open_date [11:04:16]req_shift_open_date done [11:04:16]produce_requested_data done [11:04:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82542,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:04:16]process_action_free close_receipt [11:04:16]json_value_free [11:04:16]json_value_free done [11:04:16]process_json_proto returns [11:04:16]Send response to host [11:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82542,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:04:16]free response buf [11:04:16]execute_script done [11:04:16]execute_script returns [11:04:16]free content buf [11:04:16]Sock 9.Close socket [11:04:16]Sock 9.Thread stoped [11:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 08 55 47 00 61 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 31 38 34 33 10 04 04 00 6E 42 01 00 F4 03 04 00 66 37 13 67 B6 04 01 00 00 D9 3A 7A FD BC 8C 75 10 [11:04:18]CommunicateWithHost err = 0 [11:04:18]CheckOFDResponse [11:04:18]1017 (14) - 77093643461234 [11:04:18]1041 (16) - 0000000000871843 [11:04:18]1040 (4) - 82542 [11:04:18]1012 (4) - 19.10.2024 04:36 [11:04:18]1206 (1) - 0 [11:04:18]OFD Sender: Remove packet 82542 [11:04:18]ProducePacketName [11:04:18]name=ofd_packets/00082542 [11:04:18]NVStorageDeleteData [11:04:19]OFD Sender: No OFD packet to send [11:04:21]recv_with_timeout no data received [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:31]recv_with_timeout no data received [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:43]recv_with_timeout no data received [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:58]recv_with_timeout no data received [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:14]recv_with_timeout no data received [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:27]recv_with_timeout no data received [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:19]accept exits with 8 [11:10:19]New connection [11:10:19]New thread 3067280740 created [11:10:19]Thread 3067137380 joined [11:10:19]Waiting for new connection... [11:10:19] Sock 8.Parse request [11:10:19]Sock 8.Check first char [11:10:19]Sock 8.First char is OK [11:10:19]request: POST /json_proto HTTP/1.0 [11:10:19]Method: POST [11:10:19]URL: /json_proto [11:10:19]Method is POST - this is cgi request [11:10:19]url: /json_proto [11:10:19]query_string will be loaded in cgi processing [11:10:19]execute_cgi json_proto POST (null) [11:10:19]execute_cgi path=json_proto method=POST [11:10:19]POST find Content-Length [11:10:19]Host: 172.17.44.67:8080 [11:10:19]Content-Length: 677 [11:10:19]Content-Type: application/json [11:10:19] [11:10:19]POST finish read [11:10:19]Found Content-Length = 677 [11:10:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:19]execute_script... [11:10: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 : (1)919032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:19]POST & json_proto [11:10:19]process_json_proto [11:10:19]json parsed OK: [11:10:19]protocol is kg_v1.0 [11:10:19]action value=close_receipt [11:10:19]process_action close_receipt [11:10:19]cmd_close_receipt [11:10:19]MH_GetDate [11:10:19]Write to MH i2c: F0 00 00 F0 09 E8 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: F0 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: F0 09 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: F0 09 00 F0 09 00 9C 93 13 67 F1 C7 6B 64 21 [11:10:19]GetLastDocTimeStamp 1729335853 [11:10:19]current date 1729336220 [11:10:19]FM_GetShiftState [11:10:19]SAM_PROTO_GetShiftState [11:10:19]wFMCommunicate request_size=4 [11:10:19]MH_SAM_APDU [11:10:19]CAPDU: 80 13 01 00 [11:10:19]Write to MH i2c: E2 08 00 F1 09 80 13 01 00 00 00 00 00 77 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:19]Read from MH i2c: E2 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 0E 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 0E 00 F1 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 79 [11:10:19]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:10:19]wFMCommunicate OK [11:10:19]SAM_PROTO_GetShiftState done [11:10:19]FM_GetShiftState done [11:10:19]opened in 1729298811 [11:10:19]opened+sec_in_day 1729385211 [11:10:19]quantity*price = 25020 [11:10:19]sum+1 = 25022 [11:10:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 40 19.10.2024 11:10 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82543 ФПД: 258943528024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T111020&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82543&fm=258943528024&tin=02508201610067®Number=0000000000091680&sum=25000 [11:10:20]StoreToDocumentArchive [11:10:20]shift 527 fd 82543 [11:10:20]save to /storage/0527/doc_00082543 [11:10:20]save last doc name /storage/0527/doc_00082543 to /storage/kkm_last_doc_name [11:10:20]save OK [11:10:20]Clear old archive folders... [11:10:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:20]tlvbuf is 006A9570 [11:10:20]SAM_PROTO_ClearQueue [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 09 00 00 [11:10:20]Write to MH i2c: E2 08 00 FE 09 80 09 00 00 00 00 00 00 79 [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 03 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [11:10:20]RAPDU: 90 00 [11:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_ClearQueue done [11:10:20]KKMCreateOFDPacket [11:10:20]OFDProtocolAddRootSTLVToBuf [11:10:20]FM_MakeSignedData [11:10:20]FM_MakeSignedData [11:10:20]SAM_PROTO_SignData [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 0D 01 02 [11:10:20]Write to MH i2c: E2 08 00 FF 09 80 0D 01 02 00 00 00 00 81 [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=255 [11:10:21]MH_SAM_APDU [11:10:21]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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 00 00 00 F4 03 04 00 9C 93 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 42 01 00 35 04 06 00 00 [11:10:21]Write to MH i2c: E2 02 01 00 0A 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 00 00 00 F4 03 04 00 9C 93 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 42 01 00 35 04 06 00 00 00 00 7B [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=10 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 02 02 05 3C 4A 3C AC 58 [11:10:21]Write to MH i2c: E2 0D 00 01 0A 80 0D 02 02 05 00 3C 4A 3C AC 58 00 00 55 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 03 02 [11:10:21]Write to MH i2c: E2 08 00 02 0A 80 0D 03 02 00 00 00 00 87 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0B 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0B 00 02 0A 00 F3 80 96 6D B3 18 1C 13 90 00 F8 [11:10:21]RAPDU: F3 80 96 6D B3 18 1C 13 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_SignData done [11:10:21]FM_MakeSignedData done [11:10:21]CreateOFDProtocolMessage [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 11 00 00 [11:10:21]Write to MH i2c: E2 08 00 03 0A 80 11 00 00 00 00 00 00 87 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 17 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 17 00 03 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [11:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:10:21]wFMCommunicate OK [11:10:21]CreateOFDProtocolMessage done [11:10:21]OFDSenderStorePacket 82543 [11:10:21]StoreOFDPacket docnum=82543 [11:10:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F3 15 07 01 EE AD 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 00 00 00 F4 03 04 00 9C 93 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 42 01 00 35 04 06 00 00 3C 4A 3C AC 58 F3 80 96 6D B3 18 1C 13 [11:10:21]CheckFolder [11:10:21]dirname=/storage/ofd_packets [11:10:21]CheckFolder done [11:10:21]ProducePacketName [11:10:21]name=ofd_packets/00082543 [11:10:21]NVStorageSaveData ofd_packets/00082543 [11:10:21]File name is /storage/ofd_packets/00082543 [11:10:21]Write 301 bytes [11:10:21]NVStorageSaveData done [11:10:21]OFDSenderStorePacket done [11:10:21]KKMCreateOFDPacket done [11:10:21]NVStorageSaveData kkm_last_timestamp [11:10:21]File name is /storage/kkm_last_timestamp [11:10:21]Write 4 bytes [11:10:21]NVStorageSaveData done [11:10:21]OFD Sender: Processing packet 82543 [packets to send 254, broken 253] [11:10:21]ProducePacketName [11:10:21]name=ofd_packets/00082543 [11:10:21]OFD Sender: To server: pG, [11:10:21]CommunicateWithHost lk.salyk.kg:30040 [11:10:21]ConnectInit lk.salyk.kg [11:10:21]ExternCall_PrintAddStr [11:10:21]wPrintStart [11:10:21]Write to MH i2c: 01 00 00 04 0A 0E [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: 01 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: 01 07 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [11:10:21]RasterBufferAndPrint [11:10:21]line Счет N : (1)919032 [11:10:21]line ИНН: 02508201610067 [11:10:21]line Контрольно-Кассовый Чек [11:10:21]line ПРОДАЖА [11:10:21]line ТРК (МРК, ГНК) : 11 [11:10:21]line Товар: 2710124130 [11:10:21]line Аи-92-К-4 [11:10:21]line 3.740 * 66.90 [11:10:21]line = 250.21 [11:10:21]line НДС 12% НСП 1% [11:10:21]line > о реализуемом товаре [11:10:21]line ОКРУГЛЕНИЕ: -0.21 [11:10:21]line ИТОГО: 250.00 [11:10:21]line Внесено: 250.00 [11:10:21]line СДАЧА: 0.00 [11:10:21]line НСП 1% : 2.21 [11:10:21]line НДС 12% : 26.57 [11:10:21]line Наличными: 250.00 [11:10:21]line Безнал.: 0.00 [11:10:21]line Место: АЗС № 114 "Партнер Нефть" [11:10:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:10:21]line СНО: Общий режим [11:10:21]line Чек 40 19.10.2024 11:10 [11:10:21]line Смена: 527 ФФД: 1.0 [11:10:21]line ЗНМ: 0300000086 [11:10:21]line РНМ: 0000000000091680 [11:10:21]line Версия ККМ: 001 [11:10:21]line ФМ: 0000000000871843 [11:10:21]line ФД: 82543 [11:10:21]line ФПД: 258943528024 [11:10:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T111020&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82543&fm=258943528024&tin=02508201610067®Number=0000000000091680&sum=25000 [11:10:21]written 0, free lines is 4095 [11:10:22]Write to MH i2c: 01 00 00 2F 0A 39 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 D6 0C 22 [11:10:22]RasterBufferAndPrint [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]written 0, free lines is 3289 [11:10:22]MH_Cut [11:10:22]Write to MH i2c: D1 01 00 36 0A 01 12 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 01 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 01 00 36 0A 00 11 [11:10:22]Write to MH i2c: 01 00 00 37 0A 41 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:23]*** Cut start [11:10:23]*** Partial cut [11:10:23]*** CUTSNS_PIN = 1 [11:10:23]*** CUTSNS_PIN = 0 [11:10:23]*** Brake cut motor [11:10:23]Read from MH i2c: 01 [11:10:23]MH_I2C_Read... [11:10:23]*** Stop cut motor [11:10:23]*** Cut end [11:10:23]Read from MH i2c: 01 07 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 FF 0F 56 [11:10:23]process_action close_receipt done [11:10:23]requested_data is exist [11:10:23]produce_requested_data [11:10:23]requested_item fm.sn is exist - process it [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 11 00 00 [11:10:23]Write to MH i2c: E2 08 00 38 0A 80 11 00 00 00 00 00 00 BC [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 17 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 17 00 38 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0E [11:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:10:23]wFMCommunicate OK [11:10:23]requested_item fd.num is exist - process it [11:10:23]SAM_PROTO_GetFieldsCounters [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 13 00 00 [11:10:23]Write to MH i2c: E2 08 00 39 0A 80 13 00 00 00 00 00 00 BF [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 62 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 62 00 39 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6F 42 01 00 0E 04 04 00 0F 02 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 19 [11:10: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6F 42 01 00 0E 04 04 00 0F 02 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 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_GetFieldsCounters done [11:10:23]requested_item shift.num is exist - process it [11:10:23]requested_item shift.opened is exist - process it [11:10:23]req_shift_opened [11:10:23]FM_GetShiftState [11:10:23]SAM_PROTO_GetShiftState [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 13 01 00 [11:10:23]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]Connected sock=12 [11:10:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F3 15 07 01 EE AD 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 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 61 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 28 00 00 00 F4 03 04 00 9C 93 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 42 01 00 35 04 06 00 00 3C 4A 3C AC 58 F3 80 96 6D B3 18 1C 13 [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:23]Read from MH i2c: E2 0E 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C3 [11:10:23]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_GetShiftState done [11:10:23]FM_GetShiftState done [11:10:23]req_shift_opened done [11:10:23]requested_item shift.open_date is exist - process it [11:10:23]req_shift_open_date [11:10:23]req_shift_open_date done [11:10:23]produce_requested_data done [11:10:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82543,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:10:23]process_action_free close_receipt [11:10:23]json_value_free [11:10:23]json_value_free done [11:10:23]process_json_proto returns [11:10:23]Send response to host [11:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82543,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:10:23]free response buf [11:10:23]execute_script done [11:10:23]execute_script returns [11:10:23]free content buf [11:10:23]Sock 8.Close socket [11:10:23]Sock 8.Thread stoped [11:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 81 C1 47 00 7E 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 31 38 34 33 10 04 04 00 6F 42 01 00 F4 03 04 00 D5 38 13 67 B6 04 01 00 00 D6 11 23 7E 74 B6 00 C1 [11:10:24]CommunicateWithHost err = 0 [11:10:24]CheckOFDResponse [11:10:24]1017 (14) - 77093643461234 [11:10:24]1041 (16) - 0000000000871843 [11:10:24]1040 (4) - 82543 [11:10:24]1012 (4) - 19.10.2024 04:43 [11:10:24]1206 (1) - 0 [11:10:24]OFD Sender: Remove packet 82543 [11:10:24]ProducePacketName [11:10:24]name=ofd_packets/00082543 [11:10:24]NVStorageDeleteData [11:10:25]recv_with_timeout no data received [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:36]recv_with_timeout no data received [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [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:38]recv_with_timeout no data received [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:14:59]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:38]recv_with_timeout no data received [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:22]recv_with_timeout no data received [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:43]accept exits with 9 [11:22:43]New connection [11:22:43]New thread 3067137380 created [11:22:43]Thread 3067280740 joined [11:22:43]Waiting for new connection... [11:22:43] Sock 9.Parse request [11:22:43]Sock 9.Check first char [11:22:43]Sock 9.First char is OK [11:22:43]request: POST /json_proto HTTP/1.0 [11:22:43]Method: POST [11:22:43]URL: /json_proto [11:22:43]Method is POST - this is cgi request [11:22:43]url: /json_proto [11:22:43]query_string will be loaded in cgi processing [11:22:43]execute_cgi json_proto POST (null) [11:22:43]execute_cgi path=json_proto method=POST [11:22:43]POST find Content-Length [11:22:43]Host: 172.17.44.67:8080 [11:22:43]Content-Length: 682 [11:22:43]Content-Type: application/json [11:22:43] [11:22:43]POST finish read [11:22:43]Found Content-Length = 682 [11:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:43]execute_script... [11:22: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 : (1)919033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:43]POST & json_proto [11:22:43]process_json_proto [11:22:43]json parsed OK: [11:22:43]protocol is kg_v1.0 [11:22:43]action value=close_receipt [11:22:43]process_action close_receipt [11:22:43]cmd_close_receipt [11:22:43]MH_GetDate [11:22:43]Write to MH i2c: F0 00 00 3B 0A 34 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 09 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 09 00 3B 0A 00 84 96 13 67 F1 C7 6B 64 58 [11:22:43]GetLastDocTimeStamp 1729336220 [11:22:43]current date 1729336964 [11:22:43]FM_GetShiftState [11:22:43]SAM_PROTO_GetShiftState [11:22:43]wFMCommunicate request_size=4 [11:22:43]MH_SAM_APDU [11:22:43]CAPDU: 80 13 01 00 [11:22:43]Write to MH i2c: E2 08 00 3C 0A 80 13 01 00 00 00 00 00 C3 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:43]Read from MH i2c: E2 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0E 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0E 00 3C 0A 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C5 [11:22:43]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:22:43]wFMCommunicate OK [11:22:43]SAM_PROTO_GetShiftState done [11:22:43]FM_GetShiftState done [11:22:43]opened in 1729298811 [11:22:43]opened+sec_in_day 1729385211 [11:22:43]quantity*price = 100021 [11:22:43]sum+1 = 100023 [11:22:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 42 19.10.2024 11:29 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82545 ФПД: 40707142115817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T112927&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82545&fm=40707142115817&tin=02508201610067®Number=0000000000091680&sum=30000 [11:29:28]StoreToDocumentArchive [11:29:28]shift 527 fd 82545 [11:29:28]save to /storage/0527/doc_00082545 [11:29:28]save last doc name /storage/0527/doc_00082545 to /storage/kkm_last_doc_name [11:29:28]save OK [11:29:28]Clear old archive folders... [11:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:28]tlvbuf is 00575D20 [11:29:28]SAM_PROTO_ClearQueue [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 09 00 00 [11:29:28]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]SAM_PROTO_ClearQueue done [11:29:28]KKMCreateOFDPacket [11:29:28]OFDProtocolAddRootSTLVToBuf [11:29:28]FM_MakeSignedData [11:29:28]FM_MakeSignedData [11:29:28]SAM_PROTO_SignData [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 0D 01 02 [11:29:28]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]wFMCommunicate request_size=255 [11:29:28]MH_SAM_APDU [11:29:28]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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 2A 00 00 00 F4 03 04 00 17 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 42 01 00 35 04 06 00 25 [11:29:28]Write to MH i2c: E2 02 01 2D 00 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 2A 00 00 00 F4 03 04 00 17 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 42 01 00 35 04 06 00 25 00 00 62 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:29:29]RAPDU: 90 00 [11:29:29]wFMCommunicate OK [11:29:29]wFMCommunicate request_size=10 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 0D 02 02 05 05 DE BE E1 E9 [11:29:29]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 05 DE BE E1 E9 00 00 1D [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:29:29]RAPDU: 90 00 [11:29:29]wFMCommunicate OK [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 0D 03 02 [11:29:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0B 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0B 00 2F 00 00 7C DD F1 08 24 8A 47 2A 90 00 1C [11:29:29]RAPDU: 7C DD F1 08 24 8A 47 2A 90 00 [11:29:29]wFMCommunicate OK [11:29:29]SAM_PROTO_SignData done [11:29:29]FM_MakeSignedData done [11:29:29]CreateOFDProtocolMessage [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 11 00 00 [11:29:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 17 00 [11:29:29]MH_I2C_Read... [11:29:29]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 31 38 34 33 90 00 FC [11:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:29:29]wFMCommunicate OK [11:29:29]CreateOFDProtocolMessage done [11:29:29]OFDSenderStorePacket 82545 [11:29:29]StoreOFDPacket docnum=82545 [11:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 89 93 07 01 1E 99 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 2A 00 00 00 F4 03 04 00 17 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 42 01 00 35 04 06 00 25 05 DE BE E1 E9 7C DD F1 08 24 8A 47 2A [11:29:29]CheckFolder [11:29:29]dirname=/storage/ofd_packets [11:29:29]CheckFolder done [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00082545 [11:29:29]NVStorageSaveData ofd_packets/00082545 [11:29:29]File name is /storage/ofd_packets/00082545 [11:29:29]Write 301 bytes [11:29:29]NVStorageSaveData done [11:29:29]OFDSenderStorePacket done [11:29:29]KKMCreateOFDPacket done [11:29:29]NVStorageSaveData kkm_last_timestamp [11:29:29]File name is /storage/kkm_last_timestamp [11:29:29]Write 4 bytes [11:29:29]NVStorageSaveData done [11:29:29]ExternCall_PrintAddStr [11:29:29]wPrintStart [11:29:29]Write to MH i2c: 01 00 00 31 00 31 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:29:29]RasterBufferAndPrint [11:29:29]line Счет N : (1)919034 [11:29:29]line ИНН: 02508201610067 [11:29:29]line Контрольно-Кассовый Чек [11:29:29]line ПРОДАЖА [11:29:29]line ТРК (МРК, ГНК) : 11 [11:29:29]line Товар: 2710124130 [11:29:29]line Аи-92-К-4 [11:29:29]line 4.490 * 66.90 [11:29:29]line = 300.38 [11:29:29]line НДС 12% НСП 1% [11:29:29]line > о реализуемом товаре [11:29:29]line ОКРУГЛЕНИЕ: -0.38 [11:29:29]line ИТОГО: 300.00 [11:29:29]line Внесено: 300.00 [11:29:29]line СДАЧА: 0.00 [11:29:29]line НСП 1% : 2.66 [11:29:29]line НДС 12% : 31.90 [11:29:29]line Наличными: 300.00 [11:29:29]line Безнал.: 0.00 [11:29:29]line Место: АЗС № 114 "Партнер Нефть" [11:29:29]OFD Sender: Processing packet 82545 [packets to send 254, broken 253] [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00082545 [11:29:29]OFD Sender: To server: pG, [11:29:29]CommunicateWithHost lk.salyk.kg:30040 [11:29:29]ConnectInit lk.salyk.kg [11:29:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:29:29]line СНО: Общий режим [11:29:29]line Чек 42 19.10.2024 11:29 [11:29:29]line Смена: 527 ФФД: 1.0 [11:29:29]line ЗНМ: 0300000086 [11:29:29]line РНМ: 0000000000091680 [11:29:29]line Версия ККМ: 001 [11:29:29]line ФМ: 0000000000871843 [11:29:29]line ФД: 82545 [11:29:29]line ФПД: 40707142115817 [11:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T112927&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82545&fm=40707142115817&tin=02508201610067®Number=0000000000091680&sum=30000 [11:29:29]written 0, free lines is 4095 [11:29:29]Write to MH i2c: 01 00 00 5C 00 5C [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E9 0C 58 [11:29:29]RasterBufferAndPrint [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]written 0, free lines is 3329 [11:29:29]MH_Cut [11:29:29]Write to MH i2c: D1 01 00 63 00 01 35 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 01 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 01 00 63 00 00 34 [11:29:30]Write to MH i2c: 01 00 00 64 00 64 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Connected sock=7 [11:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 89 93 07 01 1E 99 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 2A 00 00 00 F4 03 04 00 17 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 42 01 00 35 04 06 00 25 05 DE BE E1 E9 7C DD F1 08 24 8A 47 2A [11:29:30]*** Cut start [11:29:30]*** Partial cut [11:29:30]*** CUTSNS_PIN = 1 [11:29:30]*** CUTSNS_PIN = 0 [11:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D2 57 47 00 D5 27 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 31 38 34 33 10 04 04 00 71 42 01 00 F4 03 04 00 4F 3D 13 67 B6 04 01 00 00 0C AD A5 79 A0 6D E1 72 [11:29:30]CommunicateWithHost err = 0 [11:29:30]CheckOFDResponse [11:29:30]1017 (14) - 77093643461234 [11:29:30]1041 (16) - 0000000000871843 [11:29:30]1040 (4) - 82545 [11:29:30]1012 (4) - 19.10.2024 05:02 [11:29:30]1206 (1) - 0 [11:29:31]OFD Sender: Remove packet 82545 [11:29:31]ProducePacketName [11:29:31]name=ofd_packets/00082545 [11:29:31]NVStorageDeleteData [11:29:31]*** Brake cut motor [11:29:31]Read from MH i2c: 01 [11:29:31]MH_I2C_Read... [11:29:31]*** Stop cut motor [11:29:31]*** Cut end [11:29:31]Read from MH i2c: 01 07 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:29:31]process_action close_receipt done [11:29:31]requested_data is exist [11:29:31]produce_requested_data [11:29:31]requested_item fm.sn is exist - process it [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 11 00 00 [11:29:31]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [11:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:29:31]wFMCommunicate OK [11:29:31]requested_item fd.num is exist - process it [11:29:31]SAM_PROTO_GetFieldsCounters [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 00 00 [11:29:31]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]OFD Sender: No OFD packet to send [11:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 66 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 42 01 00 0E 04 04 00 0F 02 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 44 [11:29: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 42 01 00 0E 04 04 00 0F 02 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 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetFieldsCounters done [11:29:31]requested_item shift.num is exist - process it [11:29:31]requested_item shift.opened is exist - process it [11:29:31]req_shift_opened [11:29:31]FM_GetShiftState [11:29:31]SAM_PROTO_GetShiftState [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 01 00 [11:29:31]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E6 [11:29:31]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetShiftState done [11:29:31]FM_GetShiftState done [11:29:31]req_shift_opened done [11:29:31]requested_item shift.open_date is exist - process it [11:29:31]req_shift_open_date [11:29:31]req_shift_open_date done [11:29:31]produce_requested_data done [11:29:31]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82545,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:29:31]process_action_free close_receipt [11:29:31]json_value_free [11:29:31]json_value_free done [11:29:31]process_json_proto returns [11:29:31]Send response to host [11:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82545,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:29:31]free response buf [11:29:31]execute_script done [11:29:31]execute_script returns [11:29:31]free content buf [11:29:31]Sock 9.Close socket [11:29:31]Sock 9.Thread stoped [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]accept exits with 10 [11:29:56]New connection [11:29:56]New thread 3066744164 created [11:29:56]Thread 3066887524 joined [11:29:56]Waiting for new connection... [11:29:56] Sock 10.Parse request [11:29:56]Sock 10.Check first char [11:29:56]Sock 10.First char is OK [11:29:56]request: POST /json_proto HTTP/1.0 [11:29:56]Method: POST [11:29:56]URL: /json_proto [11:29:56]Method is POST - this is cgi request [11:29:56]url: /json_proto [11:29:56]query_string will be loaded in cgi processing [11:29:56]execute_cgi json_proto POST (null) [11:29:56]execute_cgi path=json_proto method=POST [11:29:56]POST find Content-Length [11:29:56]Host: 172.17.44.67:8080 [11:29:56]Content-Length: 677 [11:29:56]Content-Type: application/json [11:29:56] [11:29:56]POST finish read [11:29:56]Found Content-Length = 677 [11:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:56]execute_script... [11:29: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 : (1)919036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:56]POST & json_proto [11:29:56]process_json_proto [11:29:56]json parsed OK: [11:29:56]protocol is kg_v1.0 [11:29:56]action value=close_receipt [11:29:56]process_action close_receipt [11:29:56]cmd_close_receipt [11:29:56]MH_GetDate [11:29:56]Write to MH i2c: F0 00 00 68 00 57 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 09 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: F0 09 00 68 00 00 34 98 13 67 F1 C7 6B 64 2D [11:29:56]GetLastDocTimeStamp 1729337367 [11:29:56]current date 1729337396 [11:29:56]FM_GetShiftState [11:29:56]SAM_PROTO_GetShiftState [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 01 00 [11:29:56]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E8 [11:29:56]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetShiftState done [11:29:56]FM_GetShiftState done [11:29:56]opened in 1729298811 [11:29:56]opened+sec_in_day 1729385211 [11:29:56]quantity*price = 24017 [11:29:56]sum+1 = 24018 [11:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 43 19.10.2024 11:29 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82546 ФПД: 121031993752760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T112956&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82546&fm=121031993752760&tin=02508201610067®Number=0000000000091680&sum=24000 [11:29:57]StoreToDocumentArchive [11:29:57]shift 527 fd 82546 [11:29:57]save to /storage/0527/doc_00082546 [11:29:57]save last doc name /storage/0527/doc_00082546 to /storage/kkm_last_doc_name [11:29:57]save OK [11:29:57]Clear old archive folders... [11:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:57]tlvbuf is 0050DF00 [11:29:57]SAM_PROTO_ClearQueue [11:29:57]wFMCommunicate request_size=4 [11:29:57]MH_SAM_APDU [11:29:57]CAPDU: 80 09 00 00 [11:29:57]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:29:57]RAPDU: 90 00 [11:29:57]wFMCommunicate OK [11:29:57]SAM_PROTO_ClearQueue done [11:29:57]KKMCreateOFDPacket [11:29:57]OFDProtocolAddRootSTLVToBuf [11:29:57]FM_MakeSignedData [11:29:57]FM_MakeSignedData [11:29:57]SAM_PROTO_SignData [11:29:57]wFMCommunicate request_size=4 [11:29:57]MH_SAM_APDU [11:29:57]CAPDU: 80 0D 01 02 [11:29:57]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:29:57]RAPDU: 90 00 [11:29:57]wFMCommunicate OK [11:29:57]wFMCommunicate request_size=255 [11:29:57]MH_SAM_APDU [11:29:57]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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 2B 00 00 00 F4 03 04 00 34 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 42 01 00 35 04 06 00 6E [11:29:57]Write to MH i2c: E2 02 01 78 00 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 2B 00 00 00 F4 03 04 00 34 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 42 01 00 35 04 06 00 6E 00 00 27 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:29:57]RAPDU: 90 00 [11:29:57]wFMCommunicate OK [11:29:57]wFMCommunicate request_size=10 [11:29:57]MH_SAM_APDU [11:29:57]CAPDU: 80 0D 02 02 05 13 F4 FE 7C B8 [11:29:57]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 13 F4 FE 7C B8 00 00 36 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:29:57]RAPDU: 90 00 [11:29:57]wFMCommunicate OK [11:29:57]wFMCommunicate request_size=4 [11:29:57]MH_SAM_APDU [11:29:57]CAPDU: 80 0D 03 02 [11:29:57]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 0B 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 0B 00 7A 00 00 81 AA A0 49 D0 4F 7E 76 90 00 1D [11:29:57]RAPDU: 81 AA A0 49 D0 4F 7E 76 90 00 [11:29:57]wFMCommunicate OK [11:29:57]SAM_PROTO_SignData done [11:29:57]FM_MakeSignedData done [11:29:57]CreateOFDProtocolMessage [11:29:57]wFMCommunicate request_size=4 [11:29:57]MH_SAM_APDU [11:29:57]CAPDU: 80 11 00 00 [11:29:57]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:29:57]Write i2c OK [11:29:57]MH_I2C_Read... [11:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:57]Read from MH i2c: E2 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 17 00 [11:29:57]MH_I2C_Read... [11:29:57]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [11:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:29:58]wFMCommunicate OK [11:29:58]CreateOFDProtocolMessage done [11:29:58]OFDSenderStorePacket 82546 [11:29:58]StoreOFDPacket docnum=82546 [11:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 74 67 07 01 2B CC 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 2B 00 00 00 F4 03 04 00 34 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 42 01 00 35 04 06 00 6E 13 F4 FE 7C B8 81 AA A0 49 D0 4F 7E 76 [11:29:58]CheckFolder [11:29:58]dirname=/storage/ofd_packets [11:29:58]CheckFolder done [11:29:58]ProducePacketName [11:29:58]name=ofd_packets/00082546 [11:29:58]NVStorageSaveData ofd_packets/00082546 [11:29:58]File name is /storage/ofd_packets/00082546 [11:29:58]Write 301 bytes [11:29:58]NVStorageSaveData done [11:29:58]OFDSenderStorePacket done [11:29:58]KKMCreateOFDPacket done [11:29:58]NVStorageSaveData kkm_last_timestamp [11:29:58]File name is /storage/kkm_last_timestamp [11:29:58]Write 4 bytes [11:29:58]NVStorageSaveData done [11:29:58]ExternCall_PrintAddStr [11:29:58]wPrintStart [11:29:58]Write to MH i2c: 01 00 00 7C 00 7C [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:29:58]RasterBufferAndPrint [11:29:58]line Счет N : (1)919036 [11:29:58]line ИНН: 02508201610067 [11:29:58]line Контрольно-Кассовый Чек [11:29:58]line ПРОДАЖА [11:29:58]line ТРК (МРК, ГНК) : 11 [11:29:58]line Товар: 2710124130 [11:29:58]line Аи-92-К-4 [11:29:58]line 3.590 * 66.90 [11:29:58]line = 240.17 [11:29:58]line НДС 12% НСП 1% [11:29:58]line > о реализуемом товаре [11:29:58]line ОКРУГЛЕНИЕ: -0.17 [11:29:58]line ИТОГО: 240.00 [11:29:58]line Внесено: 240.00 [11:29:58]line СДАЧА: 0.00 [11:29:58]line НСП 1% : 2.12 [11:29:58]line НДС 12% : 25.50 [11:29:58]line Наличными: 240.00 [11:29:58]line Безнал.: 0.00 [11:29:58]line Место: АЗС № 114 "Партнер Нефть" [11:29:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:29:58]line СНО: Общий режим [11:29:58]line Чек 43 19.10.2024 11:29 [11:29:58]line Смена: 527 ФФД: 1.0 [11:29:58]line ЗНМ: 0300000086 [11:29:58]line РНМ: 0000000000091680 [11:29:58]line Версия ККМ: 001 [11:29:58]line ФМ: 0000000000871843 [11:29:58]line ФД: 82546 [11:29:58]line ФПД: 121031993752760 [11:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T112956&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82546&fm=121031993752760&tin=02508201610067®Number=0000000000091680&sum=24000 [11:29:58]written 0, free lines is 4095 [11:29:58]OFD Sender: Processing packet 82546 [packets to send 254, broken 253] [11:29:58]ProducePacketName [11:29:58]name=ofd_packets/00082546 [11:29:58]OFD Sender: To server: pG, [11:29:58]CommunicateWithHost lk.salyk.kg:30040 [11:29:58]ConnectInit lk.salyk.kg [11:29:58]Connected sock=6 [11:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 74 67 07 01 2B CC 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 34 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 2B 00 00 00 F4 03 04 00 34 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 42 01 00 35 04 06 00 6E 13 F4 FE 7C B8 81 AA A0 49 D0 4F 7E 76 [11:29:58]Write to MH i2c: 01 00 00 A7 00 A7 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 90 0D 4B [11:29:58]RasterBufferAndPrint [11:29:58]line [11:29:58]line [11:29:58]line [11:29:58]line [11:29:58]line [11:29:58]written 0, free lines is 3487 [11:29:58]MH_Cut [11:29:58]Write to MH i2c: D1 01 00 AE 00 01 80 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: D1 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: D1 01 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: D1 01 00 AE 00 00 7F [11:29:58]Write to MH i2c: 01 00 00 AF 00 AF [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0D 81 47 00 56 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 31 38 34 33 10 04 04 00 72 42 01 00 F4 03 04 00 6C 3D 13 67 B6 04 01 00 00 16 12 0E FD F9 70 4A F2 [11:29:59]CommunicateWithHost err = 0 [11:29:59]CheckOFDResponse [11:29:59]1017 (14) - 77093643461234 [11:29:59]1041 (16) - 0000000000871843 [11:29:59]1040 (4) - 82546 [11:29:59]1012 (4) - 19.10.2024 05:02 [11:29:59]1206 (1) - 0 [11:29:59]OFD Sender: Remove packet 82546 [11:29:59]ProducePacketName [11:29:59]name=ofd_packets/00082546 [11:29:59]NVStorageDeleteData [11:29:59]*** Cut start [11:29:59]*** Partial cut [11:29:59]*** CUTSNS_PIN = 1 [11:29:59]*** CUTSNS_PIN = 0 [11:29:59]*** Brake cut motor [11:29:59]OFD Sender: No OFD packet to send [11:29:59]Read from MH i2c: 01 [11:29:59]MH_I2C_Read... [11:29:59]*** Stop cut motor [11:29:59]*** Cut end [11:29:59]Read from MH i2c: 01 07 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [11:29:59]process_action close_receipt done [11:29:59]requested_data is exist [11:29:59]produce_requested_data [11:29:59]requested_item fm.sn is exist - process it [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 11 00 00 [11:29:59]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 17 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7C [11:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:29:59]wFMCommunicate OK [11:29:59]requested_item fd.num is exist - process it [11:29:59]SAM_PROTO_GetFieldsCounters [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 13 00 00 [11:29:59]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 62 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 62 00 B1 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 72 42 01 00 0E 04 04 00 0F 02 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 93 [11: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 72 42 01 00 0E 04 04 00 0F 02 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 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetFieldsCounters done [11:30:00]requested_item shift.num is exist - process it [11:30:00]requested_item shift.opened is exist - process it [11:30:00]req_shift_opened [11:30:00]FM_GetShiftState [11:30:00]SAM_PROTO_GetShiftState [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 01 00 [11:30:00]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 31 [11:30:00]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetShiftState done [11:30:00]FM_GetShiftState done [11:30:00]req_shift_opened done [11:30:00]requested_item shift.open_date is exist - process it [11:30:00]req_shift_open_date [11:30:00]req_shift_open_date done [11:30:00]produce_requested_data done [11:30:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82546,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:30:00]process_action_free close_receipt [11:30:00]json_value_free [11:30:00]json_value_free done [11:30:00]process_json_proto returns [11:30:00]Send response to host [11:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82546,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:30:00]free response buf [11:30:00]execute_script done [11:30:00]execute_script returns [11:30:00]free content buf [11:30:00]Sock 10.Close socket [11:30:00]Sock 10.Thread stoped [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:16]accept exits with 9 [11:30:16]New connection [11:30:16]New thread 3066887524 created [11:30:16]Thread 3066744164 joined [11:30:16]Waiting for new connection... [11:30:16] Sock 9.Parse request [11:30:16]Sock 9.Check first char [11:30:16]Sock 9.First char is OK [11:30:16]request: POST /json_proto HTTP/1.0 [11:30:16]Method: POST [11:30:16]URL: /json_proto [11:30:16]Method is POST - this is cgi request [11:30:16]url: /json_proto [11:30:16]query_string will be loaded in cgi processing [11:30:16]execute_cgi json_proto POST (null) [11:30:16]execute_cgi path=json_proto method=POST [11:30:16]POST find Content-Length [11:30:16]Host: 172.17.44.67:8080 [11:30:16]Content-Length: 767 [11:30:16]Content-Type: application/json [11:30:16] [11:30:16]POST finish read [11:30:16]Found Content-Length = 767 [11:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]execute_script... [11:30: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 : (1)919035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]POST & json_proto [11:30:16]process_json_proto [11:30:16]json parsed OK: [11:30:16]protocol is kg_v1.0 [11:30:16]action value=close_receipt [11:30:16]process_action close_receipt [11:30:16]cmd_close_receipt [11:30:16]MH_GetDate [11:30:16]Write to MH i2c: F0 00 00 B3 00 A2 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: F0 09 00 B3 00 00 48 98 13 67 F1 C7 6B 64 8C [11:30:16]GetLastDocTimeStamp 1729337396 [11:30:16]current date 1729337416 [11:30:16]FM_GetShiftState [11:30:16]SAM_PROTO_GetShiftState [11:30:16]wFMCommunicate request_size=4 [11:30:16]MH_SAM_APDU [11:30:16]CAPDU: 80 13 01 00 [11:30:16]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:16]Read from MH i2c: E2 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 33 [11:30:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:30:16]wFMCommunicate OK [11:30:16]SAM_PROTO_GetShiftState done [11:30:16]FM_GetShiftState done [11:30:16]opened in 1729298811 [11:30:16]opened+sec_in_day 1729385211 [11:30:16]quantity*price = 70044 [11:30:16]sum+1 = 70045 [11:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 44 19.10.2024 11:30 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82547 ФПД: 159273741500328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113016&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82547&fm=159273741500328&tin=02508201610067®Number=0000000000091680&sum=70044 [11:30:17]StoreToDocumentArchive [11:30:17]shift 527 fd 82547 [11:30:17]save to /storage/0527/doc_00082547 [11:30:17]save last doc name /storage/0527/doc_00082547 to /storage/kkm_last_doc_name [11:30:17]save OK [11:30:17]Clear old archive folders... [11:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:17]tlvbuf is 00548080 [11:30:17]SAM_PROTO_ClearQueue [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 09 00 00 [11:30:17]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_ClearQueue done [11:30:17]KKMCreateOFDPacket [11:30:17]OFDProtocolAddRootSTLVToBuf [11:30:17]FM_MakeSignedData [11:30:17]FM_MakeSignedData [11:30:17]SAM_PROTO_SignData [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 01 02 [11:30:17]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=255 [11:30:17]MH_SAM_APDU [11:30:17]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 42 01 00 35 04 06 00 90 [11:30:17]Write to MH i2c: E2 02 01 C3 00 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 42 01 00 35 04 06 00 90 00 00 0C [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=10 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 02 02 05 DB CE C8 BF A8 [11:30:17]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 DB CE C8 BF A8 00 00 20 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:30:17]RAPDU: 90 00 [11:30:17]wFMCommunicate OK [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 0D 03 02 [11:30:17]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 0B 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 0B 00 C5 00 00 80 4A CF 75 C0 B8 36 F9 90 00 F6 [11:30:17]RAPDU: 80 4A CF 75 C0 B8 36 F9 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_SignData done [11:30:17]FM_MakeSignedData done [11:30:17]CreateOFDProtocolMessage [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 11 00 00 [11:30:17]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:17]Read from MH i2c: E2 17 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 92 [11:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:17]wFMCommunicate OK [11:30:17]CreateOFDProtocolMessage done [11:30:17]OFDSenderStorePacket 82547 [11:30:17]StoreOFDPacket docnum=82547 [11:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9C AD 07 01 10 55 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 42 01 00 35 04 06 00 90 DB CE C8 BF A8 80 4A CF 75 C0 B8 36 F9 [11:30:17]CheckFolder [11:30:17]dirname=/storage/ofd_packets [11:30:17]CheckFolder done [11:30:17]ProducePacketName [11:30:17]name=ofd_packets/00082547 [11:30:17]NVStorageSaveData ofd_packets/00082547 [11:30:17]File name is /storage/ofd_packets/00082547 [11:30:17]Write 301 bytes [11:30:17]NVStorageSaveData done [11:30:17]OFDSenderStorePacket done [11:30:17]KKMCreateOFDPacket done [11:30:17]NVStorageSaveData kkm_last_timestamp [11:30:17]File name is /storage/kkm_last_timestamp [11:30:17]Write 4 bytes [11:30:17]NVStorageSaveData done [11:30:17]ExternCall_PrintAddStr [11:30:17]wPrintStart [11:30:17]Write to MH i2c: 01 00 00 C7 00 C7 [11:30:17]OFD Sender: Processing packet 82547 [packets to send 254, broken 253] [11:30:17]ProducePacketName [11:30:17]name=ofd_packets/00082547 [11:30:17]OFD Sender: To server: pG, [11:30:17]CommunicateWithHost lk.salyk.kg:30040 [11:30:17]ConnectInit lk.salyk.kg [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [11:30:17]RasterBufferAndPrint [11:30:17]line Счет N : (1)919035 [11:30:17]line ИНН: 02508201610067 [11:30:17]line Контрольно-Кассовый Чек [11:30:17]line ПРОДАЖА [11:30:17]line ТРК (МРК, ГНК) : 22 [11:30:17]line Товар: 2710124130 [11:30:17]line Аи-92-К-4 [11:30:17]line 10.470 * 66.90 [11:30:17]line = 700.44 [11:30:17]line НДС 12% НСП 1% [11:30:17]line > о реализуемом товаре [11:30:17]line ИТОГО: 700.44 [11:30:17]line НСП 1% : 6.20 [11:30:17]line НДС 12% : 74.38 [11:30:17]line Наличными: 0.00 [11:30:17]line Безнал.: 700.44 [11:30:17]line Место: АЗС № 114 "Партнер Нефть" [11:30:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:30:17]line СНО: Общий режим [11:30:17]line Чек 44 19.10.2024 11:30 [11:30:17]line Смена: 527 ФФД: 1.0 [11:30:17]line ЗНМ: 0300000086 [11:30:17]line РНМ: 0000000000091680 [11:30:17]line Версия ККМ: 001 [11:30:17]line Платежная система: Mbank [11:30:17]line ФМ: 0000000000871843 [11:30:17]line ФД: 82547 [11:30:17]line ФПД: 159273741500328 [11:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113016&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82547&fm=159273741500328&tin=02508201610067®Number=0000000000091680&sum=70044 [11:30:17]written 0, free lines is 4095 [11:30:18]Write to MH i2c: 01 00 00 F0 00 F0 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 0E 0D 12 [11:30:18]RasterBufferAndPrint [11:30:18]line [11:30:18]line [11:30:18]line [11:30:18]line [11:30:18]line [11:30:18]written 0, free lines is 3366 [11:30:18]MH_Cut [11:30:18]Write to MH i2c: D1 01 00 F7 00 01 C9 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: D1 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: D1 01 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: D1 01 00 F7 00 00 C8 [11:30:18]Write to MH i2c: 01 00 00 F8 00 F8 [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Connected sock=10 [11:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9C AD 07 01 10 55 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 98 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 42 01 00 35 04 06 *** Cut start [11:30:19]00 90 DB CE C8 BF A8 80 4A CF 75 C0 B8 36 F9 [11:30:19]*** Partial cut [11:30:19]*** CUTSNS_PIN = 1 [11:30:19]*** CUTSNS_PIN = 0 [11:30:19]*** Brake cut motor [11:30:19]Read from MH i2c: 01 [11:30:19]MH_I2C_Read... [11:30:19]*** Stop cut motor [11:30:19]*** Cut end [11:30:19]Read from MH i2c: 01 07 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [11:30:19]process_action close_receipt done [11:30:19]requested_data is exist [11:30:19]produce_requested_data [11:30:19]requested_item fm.sn is exist - process it [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 11 00 00 [11:30:19]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 17 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [11:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:19]wFMCommunicate OK [11:30:19]requested_item fd.num is exist - process it [11:30:19]SAM_PROTO_GetFieldsCounters [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 13 00 00 [11:30:19]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 62 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 62 00 FA 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 42 01 00 0E 04 04 00 0F 02 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 E0 [11:30: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 42 01 00 0E 04 04 00 0F 02 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 [11:30:20]wFMCommunicate OK [11:30:20]SAM_PROTO_GetFieldsCounters done [11:30:20]requested_item shift.num is exist - process it [11:30:20]requested_item shift.opened is exist - process it [11:30:20]req_shift_opened [11:30:20]FM_GetShiftState [11:30:20]SAM_PROTO_GetShiftState [11:30:20]wFMCommunicate request_size=4 [11:30:20]MH_SAM_APDU [11:30:20]CAPDU: 80 13 01 00 [11:30:20]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:20]Read from MH i2c: E2 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 0E 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7A [11:30:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:30:20]wFMCommunicate OK [11:30:20]SAM_PROTO_GetShiftState done [11:30:20]FM_GetShiftState done [11:30:20]req_shift_opened done [11:30:20]requested_item shift.open_date is exist - process it [11:30:20]req_shift_open_date [11:30:20]req_shift_open_date done [11:30:20]produce_requested_data done [11:30:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82547,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:30:20]process_action_free close_receipt [11:30:20]json_value_free [11:30:20]json_value_free done [11:30:20]process_json_proto returns [11:30:20]Send response to host [11:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82547,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:30:20]free response buf [11:30:20]execute_script done [11:30:20]execute_script returns [11:30:20]free content buf [11:30:20]Sock 9.Close socket [11:30:20]Sock 9.Thread stoped [11:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 70 63 47 00 B1 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 31 38 34 33 10 04 04 00 73 42 01 00 F4 03 04 00 81 3D 13 67 B6 04 01 00 00 48 76 23 31 2F E4 9A A5 [11:30:20]CommunicateWithHost err = 0 [11:30:20]CheckOFDResponse [11:30:20]1017 (14) - 77093643461234 [11:30:20]1041 (16) - 0000000000871843 [11:30:20]1040 (4) - 82547 [11:30:20]1012 (4) - 19.10.2024 05:02 [11:30:20]1206 (1) - 0 [11:30:20]OFD Sender: Remove packet 82547 [11:30:20]ProducePacketName [11:30:20]name=ofd_packets/00082547 [11:30:20]NVStorageDeleteData [11:30:20]OFD Sender: No OFD packet to send [11:30:24]recv_with_timeout no data received [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:05]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:30]accept exits with 7 [11:34:30]New connection [11:34:30]New thread 3066744164 created [11:34:30]Thread 3066887524 joined [11:34:30]Waiting for new connection... [11:34:30] Sock 7.Parse request [11:34:30]Sock 7.Check first char [11:34:30]Sock 7.First char is OK [11:34:30]request: POST /json_proto HTTP/1.0 [11:34:30]Method: POST [11:34:30]URL: /json_proto [11:34:30]Method is POST - this is cgi request [11:34:30]url: /json_proto [11:34:30]query_string will be loaded in cgi processing [11:34:30]execute_cgi json_proto POST (null) [11:34:30]execute_cgi path=json_proto method=POST [11:34:30]POST find Content-Length [11:34:30]Host: 172.17.44.67:8080 [11:34:30]Content-Length: 797 [11:34:30]Content-Type: application/json [11:34:30] [11:34:30]POST finish read [11:34:30]Found Content-Length = 797 [11:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:30]execute_script... [11:34: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 : (1)919037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:30]POST & json_proto [11:34:30]process_json_proto [11:34:30]json parsed OK: [11:34:30]protocol is kg_v1.0 [11:34:30]action value=close_receipt [11:34:30]process_action close_receipt [11:34:30]cmd_close_receipt [11:34:30]MH_GetDate [11:34:30]Write to MH i2c: F0 00 00 FC 00 EB [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 09 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 09 00 FC 00 00 47 99 13 67 F1 C7 6B 64 D5 [11:34:30]GetLastDocTimeStamp 1729337416 [11:34:30]current date 1729337671 [11:34:30]FM_GetShiftState [11:34:30]SAM_PROTO_GetShiftState [11:34:30]wFMCommunicate request_size=4 [11:34:30]MH_SAM_APDU [11:34:30]CAPDU: 80 13 01 00 [11:34:30]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:30]Read from MH i2c: E2 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7C [11:34:30]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:34:30]wFMCommunicate OK [11:34:30]SAM_PROTO_GetShiftState done [11:34:30]FM_GetShiftState done [11:34:30]opened in 1729298811 [11:34:30]opened+sec_in_day 1729385211 [11:34:30]quantity*price = 0 [11:34:30]sum+1 = 1 [11:34:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 45 19.10.2024 11:34 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 43256 ФМ: 0000000000871843 ФД: 82548 ФПД: 226493886097191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113431&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82548&fm=226493886097191&tin=02508201610067®Number=0000000000091680&sum=0 [11:34:31]StoreToDocumentArchive [11:34:31]shift 527 fd 82548 [11:34:31]save to /storage/0527/doc_00082548 [11:34:31]save last doc name /storage/0527/doc_00082548 to /storage/kkm_last_doc_name [11:34:31]save OK [11:34:31]Clear old archive folders... [11:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:34:31]tlvbuf is 00511F40 [11:34:31]SAM_PROTO_ClearQueue [11:34:31]wFMCommunicate request_size=4 [11:34:31]MH_SAM_APDU [11:34:31]CAPDU: 80 09 00 00 [11:34:31]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [11:34:31]Write i2c OK [11:34:31]MH_I2C_Read... [11:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:31]Read from MH i2c: E2 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:34:31]RAPDU: 90 00 [11:34:31]wFMCommunicate OK [11:34:31]SAM_PROTO_ClearQueue done [11:34:31]KKMCreateOFDPacket [11:34:31]OFDProtocolAddRootSTLVToBuf [11:34:31]FM_MakeSignedData [11:34:31]FM_MakeSignedData [11:34:31]SAM_PROTO_SignData [11:34:31]wFMCommunicate request_size=4 [11:34:31]MH_SAM_APDU [11:34:31]CAPDU: 80 0D 01 02 [11:34:31]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [11:34:31]Write i2c OK [11:34:31]MH_I2C_Read... [11:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:31]Read from MH i2c: E2 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:34:31]RAPDU: 90 00 [11:34:31]wFMCommunicate OK [11:34:31]wFMCommunicate request_size=255 [11:34:31]MH_SAM_APDU [11:34:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 42 01 00 35 04 06 00 [11:34:31]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 42 01 00 35 04 06 00 00 00 67 [11:34:31]Write i2c OK [11:34:31]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:34:32]RAPDU: 90 00 [11:34:32]wFMCommunicate OK [11:34:32]wFMCommunicate request_size=11 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 0D 02 02 06 CD FE B7 9F E7 27 [11:34:32]Write to MH i2c: E2 0E 00 0D 01 80 0D 02 02 06 00 CD FE B7 9F E7 27 00 00 C3 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:34:32]RAPDU: 90 00 [11:34:32]wFMCommunicate OK [11:34:32]wFMCommunicate request_size=4 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 0D 03 02 [11:34:32]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 0B 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 0B 00 0E 01 00 FE 5B 70 AD D8 24 49 56 90 00 9C [11:34:32]RAPDU: FE 5B 70 AD D8 24 49 56 90 00 [11:34:32]wFMCommunicate OK [11:34:32]SAM_PROTO_SignData done [11:34:32]FM_MakeSignedData done [11:34:32]CreateOFDProtocolMessage [11:34:32]wFMCommunicate request_size=4 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 11 00 00 [11:34:32]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 17 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [11:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:34:32]wFMCommunicate OK [11:34:32]CreateOFDProtocolMessage done [11:34:32]OFDSenderStorePacket 82548 [11:34:32]StoreOFDPacket docnum=82548 [11:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 1F 86 08 01 45 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 42 01 00 35 04 06 00 CD FE B7 9F E7 27 FE 5B 70 AD D8 24 49 56 [11:34:32]CheckFolder [11:34:32]dirname=/storage/ofd_packets [11:34:32]CheckFolder done [11:34:32]ProducePacketName [11:34:32]name=ofd_packets/00082548 [11:34:32]NVStorageSaveData ofd_packets/00082548 [11:34:32]File name is /storage/ofd_packets/00082548 [11:34:32]Write 302 bytes [11:34:32]NVStorageSaveData done [11:34:32]OFDSenderStorePacket done [11:34:32]KKMCreateOFDPacket done [11:34:32]NVStorageSaveData kkm_last_timestamp [11:34:32]File name is /storage/kkm_last_timestamp [11:34:32]Write 4 bytes [11:34:32]NVStorageSaveData done [11:34:32]ExternCall_PrintAddStr [11:34:32]wPrintStart [11:34:32]Write to MH i2c: 01 00 00 10 01 11 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 07 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [11:34:32]RasterBufferAndPrint [11:34:32]line Счет N : (1)919037 [11:34:32]line ИНН: 02508201610067 [11:34:32]line Контрольно-Кассовый Чек [11:34:32]line ПРОДАЖА [11:34:32]line ТРК (МРК, ГНК) : 31 [11:34:32]line Товар: 2710194210 [11:34:32]line ДТ(л)-К-5 [11:34:32]line 11.810 * 0.00 [11:34:32]line = 0.00 [11:34:32]line НДС 12% НСП 1% [11:34:32]line > о реализуемом товаре [11:34:32]line ИТОГО: 0.00 [11:34:32]line НСП 1% : 0.00 [11:34:32]line НДС 12% : 0.00 [11:34:32]line Наличными: 0.00 [11:34:32]line Безнал.: 0.00 [11:34:32]line Место: АЗС № 114 "Партнер Нефть" [11:34:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:34:32]line СНО: Общий режим [11:34:32]line Чек 45 19.10.2024 11:34 [11:34:32]line Смена: 527 ФФД: 1.0 [11:34:32]line ЗНМ: 0300000086 [11:34:32]line РНМ: 0000000000091680 [11:34:32]line Версия ККМ: 001 [11:34:32]line Талоны: Топливная Карта [11:34:32]line 43256 [11:34:32]line ФМ: 0000000000871843 [11:34:32]line ФД: 82548 [11:34:32]line ФПД: 226493886097191 [11:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113431&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82548&fm=226493886097191&tin=02508201610067®Number=0000000000091680&sum=0 [11:34:32]written 0, free lines is 4095 [11:34:32]OFD Sender: Processing packet 82548 [packets to send 254, broken 253] [11:34:32]ProducePacketName [11:34:32]name=ofd_packets/00082548 [11:34:32]OFD Sender: To server: pG, [11:34:32]CommunicateWithHost lk.salyk.kg:30040 [11:34:32]ConnectInit lk.salyk.kg [11:34:33]Write to MH i2c: 01 00 00 3A 01 3B [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 07 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 F1 0C 3F [11:34:33]RasterBufferAndPrint [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]written 0, free lines is 3318 [11:34:33]MH_Cut [11:34:33]Write to MH i2c: D1 01 00 41 01 01 14 [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 01 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 01 00 41 01 00 13 [11:34:33]Write to MH i2c: 01 00 00 42 01 43 [11:34:33]Connected sock=10 [11:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 1F 86 08 01 45 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 47 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 42 01 00 35 04 06 00 CD FE B7 9F E7 27 FE 5B 70 AD D8 24 49 56 [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 57 AA 47 00 84 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 31 38 34 33 10 04 04 00 74 42 01 00 F4 03 04 00 7E 3E 13 67 B6 04 01 00 00 60 A7 C1 AC BE 14 88 35 [11:34:33]CommunicateWithHost err = 0 [11:34:33]CheckOFDResponse [11:34:33]1017 (14) - 77093643461234 [11:34:33]1041 (16) - 0000000000871843 [11:34:33]1040 (4) - 82548 [11:34:33]1012 (4) - 19.10.2024 05:07 [11:34:33]1206 (1) - 0 [11:34:33]OFD Sender: Remove packet 82548 [11:34:33]ProducePacketName [11:34:33]name=ofd_packets/00082548 [11:34:33]NVStorageDeleteData [11:34:33]*** Cut start [11:34:33]*** Partial cut [11:34:33]*** CUTSNS_PIN = 1 [11:34:33]*** CUTSNS_PIN = 0 [11:34:34]OFD Sender: No OFD packet to send [11:34:34]*** Brake cut motor [11:34:34]Read from MH i2c: 01 [11:34:34]MH_I2C_Read... [11:34:34]*** Stop cut motor [11:34:34]*** Cut end [11:34:34]Read from MH i2c: 01 07 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [11:34:34]process_action close_receipt done [11:34:34]requested_data is exist [11:34:34]produce_requested_data [11:34:34]requested_item fm.sn is exist - process it [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 11 00 00 [11:34:34]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 17 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [11:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:34:34]wFMCommunicate OK [11:34:34]requested_item fd.num is exist - process it [11:34:34]SAM_PROTO_GetFieldsCounters [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 13 00 00 [11:34:34]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:34]Read from MH i2c: E2 62 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 62 00 44 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 74 42 01 00 0E 04 04 00 0F 02 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 2F [11:34: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 74 42 01 00 0E 04 04 00 0F 02 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 [11:34:34]wFMCommunicate OK [11:34:34]SAM_PROTO_GetFieldsCounters done [11:34:34]requested_item shift.num is exist - process it [11:34:34]requested_item shift.opened is exist - process it [11:34:34]req_shift_opened [11:34:34]FM_GetShiftState [11:34:34]SAM_PROTO_GetShiftState [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 13 01 00 [11:34:34]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 0E 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C5 [11:34:34]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:34:34]wFMCommunicate OK [11:34:34]SAM_PROTO_GetShiftState done [11:34:34]FM_GetShiftState done [11:34:34]req_shift_opened done [11:34:34]requested_item shift.open_date is exist - process it [11:34:34]req_shift_open_date [11:34:34]req_shift_open_date done [11:34:34]produce_requested_data done [11:34:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82548,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:34:34]process_action_free close_receipt [11:34:34]json_value_free [11:34:34]json_value_free done [11:34:34]process_json_proto returns [11:34:34]Send response to host [11:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82548,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:34:34]free response buf [11:34:34]execute_script done [11:34:34]execute_script returns [11:34:34]free content buf [11:34:34]Sock 7.Close socket [11:34:34]Sock 7.Thread stoped [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:47]accept exits with 9 [11:36:47]New connection [11:36:47]New thread 3066887524 created [11:36:47]Thread 3066744164 joined [11:36:47]Waiting for new connection... [11:36:47] Sock 9.Parse request [11:36:47]Sock 9.Check first char [11:36:47]Sock 9.First char is OK [11:36:47]request: POST /json_proto HTTP/1.0 [11:36:47]Method: POST [11:36:47]URL: /json_proto [11:36:47]Method is POST - this is cgi request [11:36:47]url: /json_proto [11:36:47]query_string will be loaded in cgi processing [11:36:47]execute_cgi json_proto POST (null) [11:36:47]execute_cgi path=json_proto method=POST [11:36:47]POST find Content-Length [11:36:47]Host: 172.17.44.67:8080 [11:36:47]Content-Length: 708 [11:36:47]Content-Type: application/json [11:36:47] [11:36:47]POST finish read [11:36:47]Found Content-Length = 708 [11:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10600", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [11:36:47]execute_script... [11:36: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)10600", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "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" ] } } [11:36:47]POST & json_proto [11:36:47]process_json_proto [11:36:47]json parsed OK: [11:36:47]protocol is kg_v1.0 [11:36:47]action value=close_receipt [11:36:47]process_action close_receipt [11:36:47]cmd_close_receipt [11:36:47]MH_GetDate [11:36:47]Write to MH i2c: F0 00 00 46 01 36 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: F0 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: F0 09 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: F0 09 00 46 01 00 CF 99 13 67 F1 C7 6B 64 A8 [11:36:47]GetLastDocTimeStamp 1729337671 [11:36:47]current date 1729337807 [11:36:47]FM_GetShiftState [11:36:47]SAM_PROTO_GetShiftState [11:36:47]wFMCommunicate request_size=4 [11:36:47]MH_SAM_APDU [11:36:47]CAPDU: 80 13 01 00 [11:36:47]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:47]Read from MH i2c: E2 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: E2 0E 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C7 [11:36:47]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:36:47]wFMCommunicate OK [11:36:47]SAM_PROTO_GetShiftState done [11:36:47]FM_GetShiftState done [11:36:47]opened in 1729298811 [11:36:47]opened+sec_in_day 1729385211 [11:36:47]quantity*price = 9500 [11:36:47]sum+1 = 9501 [11:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 46 19.10.2024 11:36 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82549 ФПД: 133165401950153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113647&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82549&fm=133165401950153&tin=02508201610067®Number=0000000000091680&sum=9500 0 [11:36:48]StoreToDocumentArchive [11:36:48]shift 527 fd 82549 [11:36:48]save to /storage/0527/doc_00082549 [11:36:48]save last doc name /storage/0527/doc_00082549 to /storage/kkm_last_doc_name [11:36:48]save OK [11:36:48]Clear old archive folders... [11:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:36:48]tlvbuf is 00511E00 [11:36:48]SAM_PROTO_ClearQueue [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 09 00 00 [11:36:48]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [11:36:48]RAPDU: 90 00 [11:36:48]wFMCommunicate OK [11:36:48]SAM_PROTO_ClearQueue done [11:36:48]KKMCreateOFDPacket [11:36:48]OFDProtocolAddRootSTLVToBuf [11:36:48]FM_MakeSignedData [11:36:48]FM_MakeSignedData [11:36:48]SAM_PROTO_SignData [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 0D 01 02 [11:36:48]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:36:48]RAPDU: 90 00 [11:36:48]wFMCommunicate OK [11:36:48]wFMCommunicate request_size=255 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 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 2E 00 00 00 F4 03 04 00 CF 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 [11:36:48]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 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 2E 00 00 00 F4 03 04 00 CF 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 00 00 36 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [11:36:48]RAPDU: 90 00 [11:36:48]wFMCommunicate OK [11:36:48]wFMCommunicate request_size=63 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 42 01 00 35 04 06 00 79 1C FC 7A C7 C9 [11:36:48]Write to MH i2c: E2 42 00 57 01 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 42 01 00 35 04 06 00 79 1C FC 7A C7 C9 00 00 6D [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:36:48]RAPDU: 90 00 [11:36:48]wFMCommunicate OK [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 0D 03 02 [11:36:48]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 0B 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 0B 00 58 01 00 76 F1 97 53 FD 3E 57 46 90 00 FE [11:36:48]RAPDU: 76 F1 97 53 FD 3E 57 46 90 00 [11:36:48]wFMCommunicate OK [11:36:48]SAM_PROTO_SignData done [11:36:48]FM_MakeSignedData done [11:36:48]CreateOFDProtocolMessage [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 11 00 00 [11:36:48]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:49]Read from MH i2c: E2 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 17 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [11:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:36:49]wFMCommunicate OK [11:36:49]CreateOFDProtocolMessage done [11:36:49]OFDSenderStorePacket 82549 [11:36:49]StoreOFDPacket docnum=82549 [11:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 5C 4A 3C 01 28 B9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 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 2E 00 00 00 F4 03 04 00 CF 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 42 01 00 35 04 06 00 79 1C FC 7A C7 C9 76 F1 97 53 FD 3E 57 46 [11:36:49]CheckFolder [11:36:49]dirname=/storage/ofd_packets [11:36:49]CheckFolder done [11:36:49]ProducePacketName [11:36:49]name=ofd_packets/00082549 [11:36:49]NVStorageSaveData ofd_packets/00082549 [11:36:49]File name is /storage/ofd_packets/00082549 [11:36:49]Write 354 bytes [11:36:49]NVStorageSaveData done [11:36:49]OFDSenderStorePacket done [11:36:49]KKMCreateOFDPacket done [11:36:49]NVStorageSaveData kkm_last_timestamp [11:36:49]File name is /storage/kkm_last_timestamp [11:36:49]Write 4 bytes [11:36:49]NVStorageSaveData done [11:36:49]ExternCall_PrintAddStr [11:36:49]wPrintStart [11:36:49]Write to MH i2c: 01 00 00 5A 01 5B [11:36:49]Write i2c OK [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 07 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [11:36:49]RasterBufferAndPrint [11:36:49]line Счет N : (3)10600 [11:36:49]line ИНН: 02508201610067 [11:36:49]line Контрольно-Кассовый Чек [11:36:49]line ПРОДАЖА [11:36:49]line Товар: 4700000480302 [11:36:49]line Напиток энерг Nitro манго-клуб 0.45 ж/б [11:36:49]line 1.000 * 95.00 [11:36:49]line = 95.00 [11:36:49]line НДС 12% НСП 1% [11:36:49]line > о реализуемом товаре [11:36:49]line ИТОГО: 95.00 [11:36:49]line НСП 1% : 0.84 [11:36:49]line НДС 12% : 10.09 [11:36:49]line Наличными: 95.00 [11:36:49]line Безнал.: 0.00 [11:36:49]line Место: АЗС № 114 "Партнер Нефть" [11:36:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:36:49]line СНО: Общий режим [11:36:49]line Чек 46 19.10.2024 11:36 [11:36:49]line Смена: 527 ФФД: 1.0 [11:36:49]line ЗНМ: 0300000086 [11:36:49]line РНМ: 0000000000091680 [11:36:49]line Версия ККМ: 001 [11:36:49]line ФМ: 0000000000871843 [11:36:49]line ФД: 82549 [11:36:49]line ФПД: 133165401950153 [11:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113647&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82549&fm=133165401950153&tin=02508201610067®Number=0000000000091680&sum=9500 [11:36:49]line 0 [11:36:49]OFD Sender: Processing packet 82549 [packets to send 254, broken 253] [11:36:49]ProducePacketName [11:36:49]name=ofd_packets/00082549 [11:36:49]OFD Sender: To server: pG, [11:36:49]CommunicateWithHost lk.salyk.kg:30040 [11:36:49]ConnectInit lk.salyk.kg [11:36:49]written 0, free lines is 4095 [11:36:49]Connected sock=10 [11:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 5C 4A 3C 01 28 B9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 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 2E 00 00 00 F4 03 04 00 CF 99 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 42 01 00 35 04 06 00 79 1C FC 7A C7 C9 76 F1 97 53 FD 3E 57 46 [11:36:49]Write to MH i2c: 01 00 00 83 01 84 [11:36:49]Write i2c OK [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 07 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 F7 0C 8E [11:36:49]RasterBufferAndPrint [11:36:49]line [11:36:49]line [11:36:49]line [11:36:49]line [11:36:49]line [11:36:49]written 0, free lines is 3327 [11:36:49]MH_Cut [11:36:49]Write to MH i2c: D1 01 00 8A 01 01 5D [11:36:49]Write i2c OK [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: D1 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: D1 01 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: D1 01 00 8A 01 00 5C [11:36:49]Write to MH i2c: 01 00 00 8B 01 8C [11:36:49]Write i2c OK [11:36:49]MH_I2C_Read... [11:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C1 E7 47 00 CA 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 31 38 34 33 10 04 04 00 75 42 01 00 F4 03 04 00 07 3F 13 67 B6 04 01 00 00 01 CD 50 6F 5A C1 24 EE [11:36:50]CommunicateWithHost err = 0 [11:36:50]CheckOFDResponse [11:36:50]1017 (14) - 77093643461234 [11:36:50]1041 (16) - 0000000000871843 [11:36:50]1040 (4) - 82549 [11:36:50]1012 (4) - 19.10.2024 05:09 [11:36:50]1206 (1) - 0 [11:36:50]OFD Sender: Remove packet 82549 [11:36:50]ProducePacketName [11:36:50]name=ofd_packets/00082549 [11:36:50]NVStorageDeleteData [11:36:50]*** Cut start [11:36:50]*** Partial cut [11:36:50]*** CUTSNS_PIN = 1 [11:36:50]*** CUTSNS_PIN = 0 [11:36:50]OFD Sender: No OFD packet to send [11:36:50]*** Brake cut motor [11:36:51]Read from MH i2c: 01 [11:36:51]MH_I2C_Read... [11:36:51]*** Stop cut motor [11:36:51]*** Cut end [11:36:51]Read from MH i2c: 01 07 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [11:36:51]process_action close_receipt done [11:36:51]requested_data is exist [11:36:51]produce_requested_data [11:36:51]requested_item fm.sn is exist - process it [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 11 00 00 [11:36:51]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 17 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 59 [11:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:36:51]wFMCommunicate OK [11:36:51]requested_item fd.num is exist - process it [11:36:51]SAM_PROTO_GetFieldsCounters [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 13 00 00 [11:36:51]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 62 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 62 00 8D 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 75 42 01 00 0E 04 04 00 0F 02 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 7C [11:36: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 75 42 01 00 0E 04 04 00 0F 02 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:36:51]wFMCommunicate OK [11:36:51]SAM_PROTO_GetFieldsCounters done [11:36:51]requested_item shift.num is exist - process it [11:36:51]requested_item shift.opened is exist - process it [11:36:51]req_shift_opened [11:36:51]FM_GetShiftState [11:36:51]SAM_PROTO_GetShiftState [11:36:51]wFMCommunicate request_size=4 [11:36:51]MH_SAM_APDU [11:36:51]CAPDU: 80 13 01 00 [11:36:51]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [11:36:51]Write i2c OK [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 [11:36:51]MH_I2C_Read... [11:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:51]Read from MH i2c: E2 0E 00 [11:36:51]MH_I2C_Read... [11:36:51]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 0E [11:36:51]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:36:51]wFMCommunicate OK [11:36:51]SAM_PROTO_GetShiftState done [11:36:51]FM_GetShiftState done [11:36:51]req_shift_opened done [11:36:51]requested_item shift.open_date is exist - process it [11:36:51]req_shift_open_date [11:36:51]req_shift_open_date done [11:36:51]produce_requested_data done [11:36:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82549,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:36:51]process_action_free close_receipt [11:36:51]json_value_free [11:36:51]json_value_free done [11:36:51]process_json_proto returns [11:36:51]Send response to host [11:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82549,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:36:51]free response buf [11:36:51]execute_script done [11:36:51]execute_script returns [11:36:51]free content buf [11:36:51]Sock 9.Close socket [11:36:51]Sock 9.Thread stoped [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:54]accept exits with 7 [11:37:54]New connection [11:37:54]New thread 3066744164 created [11:37:54]Thread 3066887524 joined [11:37:54]Waiting for new connection... [11:37:54] Sock 7.Parse request [11:37:54]Sock 7.Check first char [11:37:54]Sock 7.First char is OK [11:37:54]request: POST /json_proto HTTP/1.0 [11:37:54]Method: POST [11:37:54]URL: /json_proto [11:37:54]Method is POST - this is cgi request [11:37:54]url: /json_proto [11:37:54]query_string will be loaded in cgi processing [11:37:54]execute_cgi json_proto POST (null) [11:37:54]execute_cgi path=json_proto method=POST [11:37:54]POST find Content-Length [11:37:54]Host: 172.17.44.67:8080 [11:37:54]Content-Length: 677 [11:37:54]Content-Type: application/json [11:37:54] [11:37:54]POST finish read [11:37:54]Found Content-Length = 677 [11:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:54]execute_script... [11:37: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 : (1)919038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:54]POST & json_proto [11:37:54]process_json_proto [11:37:54]json parsed OK: [11:37:54]protocol is kg_v1.0 [11:37:54]action value=close_receipt [11:37:54]process_action close_receipt [11:37:54]cmd_close_receipt [11:37:54]MH_GetDate [11:37:54]Write to MH i2c: F0 00 00 8F 01 7F [11:37:54]Write i2c OK [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: F0 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: F0 09 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: F0 09 00 8F 01 00 13 9A 13 67 F1 C7 6B 64 36 [11:37:54]GetLastDocTimeStamp 1729337807 [11:37:54]current date 1729337875 [11:37:54]FM_GetShiftState [11:37:54]SAM_PROTO_GetShiftState [11:37:54]wFMCommunicate request_size=4 [11:37:54]MH_SAM_APDU [11:37:54]CAPDU: 80 13 01 00 [11:37:54]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [11:37:54]Write i2c OK [11:37:54]MH_I2C_Read... [11:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:54]Read from MH i2c: E2 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 0E 00 [11:37:54]MH_I2C_Read... [11:37:54]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 10 [11:37:54]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:37:54]wFMCommunicate OK [11:37:54]SAM_PROTO_GetShiftState done [11:37:54]FM_GetShiftState done [11:37:54]opened in 1729298811 [11:37:54]opened+sec_in_day 1729385211 [11:37:54]quantity*price = 40006 [11:37:54]sum+1 = 40007 [11:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 47 19.10.2024 11:37 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82550 ФПД: 149089660911938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82550&fm=149089660911938&tin=02508201610067®Number=0000000000091680&sum=40000 [11:37:55]StoreToDocumentArchive [11:37:55]shift 527 fd 82550 [11:37:55]save to /storage/0527/doc_00082550 [11:37:55]save last doc name /storage/0527/doc_00082550 to /storage/kkm_last_doc_name [11:37:55]save OK [11:37:55]Clear old archive folders... [11:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:55]tlvbuf is 005A7670 [11:37:55]SAM_PROTO_ClearQueue [11:37:55]wFMCommunicate request_size=4 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 09 00 00 [11:37:55]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]SAM_PROTO_ClearQueue done [11:37:55]KKMCreateOFDPacket [11:37:55]OFDProtocolAddRootSTLVToBuf [11:37:55]FM_MakeSignedData [11:37:55]FM_MakeSignedData [11:37:55]SAM_PROTO_SignData [11:37:55]wFMCommunicate request_size=4 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 0D 01 02 [11:37:55]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]wFMCommunicate request_size=255 [11:37:55]MH_SAM_APDU [11:37:55]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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 13 9A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 42 01 00 35 04 06 00 87 [11:37:55]Write to MH i2c: E2 02 01 9F 01 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 13 9A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 42 01 00 35 04 06 00 87 00 00 1A [11:37:55]Write i2c OK [11:37:55]MH_I2C_Read... [11:37:55]OFD Sender: No OFD packet to send [11:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:55]Read from MH i2c: E2 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 [11:37:55]MH_I2C_Read... [11:37:55]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [11:37:55]RAPDU: 90 00 [11:37:55]wFMCommunicate OK [11:37:55]wFMCommunicate request_size=10 [11:37:55]MH_SAM_APDU [11:37:55]CAPDU: 80 0D 02 02 05 98 A4 47 41 42 [11:37:55]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 98 A4 47 41 42 00 00 2B [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 0D 03 02 [11:37:56]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0B 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0B 00 A1 01 00 DE CA DB BE FB CC 78 E2 90 00 80 [11:37:56]RAPDU: DE CA DB BE FB CC 78 E2 90 00 [11:37:56]wFMCommunicate OK [11:37:56]SAM_PROTO_SignData done [11:37:56]FM_MakeSignedData done [11:37:56]CreateOFDProtocolMessage [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 11 00 00 [11:37:56]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [11:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:37:56]wFMCommunicate OK [11:37:56]CreateOFDProtocolMessage done [11:37:56]OFDSenderStorePacket 82550 [11:37:56]StoreOFDPacket docnum=82550 [11:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 25 07 01 04 9B 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 13 9A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 42 01 00 35 04 06 00 87 98 A4 47 41 42 DE CA DB BE FB CC 78 E2 [11:37:56]CheckFolder [11:37:56]dirname=/storage/ofd_packets [11:37:56]CheckFolder done [11:37:56]ProducePacketName [11:37:56]name=ofd_packets/00082550 [11:37:56]NVStorageSaveData ofd_packets/00082550 [11:37:56]File name is /storage/ofd_packets/00082550 [11:37:56]Write 301 bytes [11:37:56]NVStorageSaveData done [11:37:56]OFDSenderStorePacket done [11:37:56]KKMCreateOFDPacket done [11:37:56]NVStorageSaveData kkm_last_timestamp [11:37:56]File name is /storage/kkm_last_timestamp [11:37:56]Write 4 bytes [11:37:56]NVStorageSaveData done [11:37:56]ExternCall_PrintAddStr [11:37:56]wPrintStart [11:37:56]Write to MH i2c: 01 00 00 A3 01 A4 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [11:37:56]RasterBufferAndPrint [11:37:56]line Счет N : (1)919038 [11:37:56]line ИНН: 02508201610067 [11:37:56]line Контрольно-Кассовый Чек [11:37:56]line ПРОДАЖА [11:37:56]line ТРК (МРК, ГНК) : 11 [11:37:56]line Товар: 2710124130 [11:37:56]line Аи-92-К-4 [11:37:56]line 5.980 * 66.90 [11:37:56]line = 400.06 [11:37:56]line НДС 12% НСП 1% [11:37:56]line > о реализуемом товаре [11:37:56]line ОКРУГЛЕНИЕ: -0.06 [11:37:56]line ИТОГО: 400.00 [11:37:56]line Внесено: 400.00 [11:37:56]line СДАЧА: 0.00 [11:37:56]line НСП 1% : 3.54 [11:37:56]line НДС 12% : 42.48 [11:37:56]line Наличными: 400.00 [11:37:56]line Безнал.: 0.00 [11:37:56]line Место: АЗС № 114 "Партнер Нефть" [11:37:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:37:56]line СНО: Общий режим [11:37:56]line Чек 47 19.10.2024 11:37 [11:37:56]line Смена: 527 ФФД: 1.0 [11:37:56]line ЗНМ: 0300000086 [11:37:56]line РНМ: 0000000000091680 [11:37:56]line Версия ККМ: 001 [11:37:56]line ФМ: 0000000000871843 [11:37:56]line ФД: 82550 [11:37:56]line ФПД: 149089660911938 [11:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T113755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82550&fm=149089660911938&tin=02508201610067®Number=0000000000091680&sum=40000 [11:37:56]OFD Sender: Processing packet 82550 [packets to send 254, broken 253] [11:37:56]ProducePacketName [11:37:56]name=ofd_packets/00082550 [11:37:56]OFD Sender: To server: pG, [11:37:56]CommunicateWithHost lk.salyk.kg:30040 [11:37:56]ConnectInit lk.salyk.kg [11:37:56]written 0, free lines is 4095 [11:37:56]Write to MH i2c: 01 00 00 CE 01 CF [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 E5 0C C7 [11:37:56]RasterBufferAndPrint [11:37:56]line [11:37:56]line [11:37:56]line [11:37:56]line [11:37:56]line [11:37:56]written 0, free lines is 3307 [11:37:56]MH_Cut [11:37:56]Write to MH i2c: D1 01 00 D5 01 01 A8 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: D1 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: D1 01 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: D1 01 00 D5 01 00 A7 [11:37:56]Write to MH i2c: 01 00 00 D6 01 D7 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:57]*** Cut start [11:37:57]*** Partial cut [11:37:57]*** CUTSNS_PIN = 1 [11:37:57]*** CUTSNS_PIN = 0 [11:37:57]*** Brake cut motor [11:37:58]Connected sock=11 [11:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 25 07 01 04 9B 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 13 9A 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 42 01 00 35 04 06 00 87 98 A4 47 41 42 DE CA DB BE FB CC 78 E2 [11:37:58]*** Stop cut motor [11:37:58]*** Cut end [11:37:58]Read from MH i2c: 01 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [11:37:58]process_action close_receipt done [11:37:58]requested_data is exist [11:37:58]produce_requested_data [11:37:58]requested_item fm.sn is exist - process it [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 11 00 00 [11:37:58]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 [11:37:58]MH_I2C_Read... [11:37:58]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 31 38 34 33 90 00 A4 [11:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:37:58]wFMCommunicate OK [11:37:58]requested_item fd.num is exist - process it [11:37:58]SAM_PROTO_GetFieldsCounters [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 13 00 00 [11:37:58]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 62 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 62 00 D8 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 76 42 01 00 0E 04 04 00 0F 02 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 CB [11:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 76 42 01 00 0E 04 04 00 0F 02 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:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_GetFieldsCounters done [11:37:58]requested_item shift.num is exist - process it [11:37:58]requested_item shift.opened is exist - process it [11:37:58]req_shift_opened [11:37:58]FM_GetShiftState [11:37:58]SAM_PROTO_GetShiftState [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 13 01 00 [11:37:58]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 59 [11:37:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_GetShiftState done [11:37:58]FM_GetShiftState done [11:37:58]req_shift_opened done [11:37:58]requested_item shift.open_date is exist - process it [11:37:58]req_shift_open_date [11:37:58]req_shift_open_date done [11:37:58]produce_requested_data done [11:37:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82550,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:37:58]process_action_free close_receipt [11:37:58]json_value_free [11:37:58]json_value_free done [11:37:58]process_json_proto returns [11:37:58]Send response to host [11:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82550,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:37:58]free response buf [11:37:58]execute_script done [11:37:58]execute_script returns [11:37:58]free content buf [11:37:58]Sock 7.Close socket [11:37:58]Sock 7.Thread stoped [11:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EE F2 47 00 6E 29 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 31 38 34 33 10 04 04 00 76 42 01 00 F4 03 04 00 4B 3F 13 67 B6 04 01 00 00 63 54 71 9D 75 7E 79 26 [11:37:59]CommunicateWithHost err = 0 [11:37:59]CheckOFDResponse [11:37:59]1017 (14) - 77093643461234 [11:37:59]1041 (16) - 0000000000871843 [11:37:59]1040 (4) - 82550 [11:37:59]1012 (4) - 19.10.2024 05:10 [11:37:59]1206 (1) - 0 [11:37:59]OFD Sender: Remove packet 82550 [11:37:59]ProducePacketName [11:37:59]name=ofd_packets/00082550 [11:37:59]NVStorageDeleteData [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:10]recv_with_timeout no data received [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:20]recv_with_timeout no data received [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:39]recv_with_timeout no data received [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:42]accept exits with 9 [11:44:42]New connection [11:44:42]New thread 3066887524 created [11:44:42]Thread 3066744164 joined [11:44:42]Waiting for new connection... [11:44:42] Sock 9.Parse request [11:44:42]Sock 9.Check first char [11:44:42]Sock 9.First char is OK [11:44:42]request: POST /json_proto HTTP/1.0 [11:44:42]Method: POST [11:44:42]URL: /json_proto [11:44:42]Method is POST - this is cgi request [11:44:42]url: /json_proto [11:44:42]query_string will be loaded in cgi processing [11:44:42]execute_cgi json_proto POST (null) [11:44:42]execute_cgi path=json_proto method=POST [11:44:42]POST find Content-Length [11:44:42]Host: 172.17.44.67:8080 [11:44:42]Content-Length: 677 [11:44:42]Content-Type: application/json [11:44:42] [11:44:42]POST finish read [11:44:42]Found Content-Length = 677 [11:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [11:44:42]execute_script... [11:44: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 : (1)919039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [11:44:42]POST & json_proto [11:44:42]process_json_proto [11:44:42]json parsed OK: [11:44:42]protocol is kg_v1.0 [11:44:42]action value=close_receipt [11:44:42]process_action close_receipt [11:44:42]cmd_close_receipt [11:44:42]MH_GetDate [11:44:42]Write to MH i2c: F0 00 00 DA 01 CA [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: F0 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: F0 09 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: F0 09 00 DA 01 00 AB 9B 13 67 F1 C7 6B 64 1A [11:44:42]GetLastDocTimeStamp 1729337875 [11:44:42]current date 1729338283 [11:44:42]FM_GetShiftState [11:44:42]SAM_PROTO_GetShiftState [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 13 01 00 [11:44:42]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:42]Read from MH i2c: E2 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 0E 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 5B [11:44:42]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:44:42]wFMCommunicate OK [11:44:42]SAM_PROTO_GetShiftState done [11:44:42]FM_GetShiftState done [11:44:42]opened in 1729298811 [11:44:42]opened+sec_in_day 1729385211 [11:44:42]quantity*price = 50041 [11:44:42]sum+1 = 50042 [11:44:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 48 19.10.2024 11:44 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82551 ФПД: 31636836270698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T114443&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82551&fm=31636836270698&tin=02508201610067®Number=0000000000091680&sum=50000 [11:44:43]StoreToDocumentArchive [11:44:43]shift 527 fd 82551 [11:44:43]save to /storage/0527/doc_00082551 [11:44:43]save last doc name /storage/0527/doc_00082551 to /storage/kkm_last_doc_name [11:44:43]save OK [11:44:43]Clear old archive folders... [11:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:43]tlvbuf is 00504840 [11:44:43]SAM_PROTO_ClearQueue [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 09 00 00 [11:44:43]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_ClearQueue done [11:44:43]KKMCreateOFDPacket [11:44:43]OFDProtocolAddRootSTLVToBuf [11:44:43]FM_MakeSignedData [11:44:43]FM_MakeSignedData [11:44:43]SAM_PROTO_SignData [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 0D 01 02 [11:44:43]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=255 [11:44:43]MH_SAM_APDU [11:44:43]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 30 00 00 00 F4 03 04 00 AB 9B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 42 01 00 35 04 06 00 1C [11:44:43]Write to MH i2c: E2 02 01 EA 01 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 30 00 00 00 F4 03 04 00 AB 9B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 42 01 00 35 04 06 00 1C 00 00 C6 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]wFMCommunicate request_size=10 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 02 02 05 C6 06 63 42 6A [11:44:44]Write to MH i2c: E2 0D 00 EB 01 80 0D 02 02 05 00 C6 06 63 42 6A 00 00 4B [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [11:44:44]RAPDU: 90 00 [11:44:44]wFMCommunicate OK [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 0D 03 02 [11:44:44]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 0B 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 0B 00 EC 01 00 EE 89 43 5F 9C EC 25 EB 90 00 1A [11:44:44]RAPDU: EE 89 43 5F 9C EC 25 EB 90 00 [11:44:44]wFMCommunicate OK [11:44:44]SAM_PROTO_SignData done [11:44:44]FM_MakeSignedData done [11:44:44]CreateOFDProtocolMessage [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 11 00 00 [11:44:44]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 17 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BA [11:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:44:44]wFMCommunicate OK [11:44:44]CreateOFDProtocolMessage done [11:44:44]OFDSenderStorePacket 82551 [11:44:44]StoreOFDPacket docnum=82551 [11:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5F D9 07 01 0A FA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 30 00 00 00 F4 03 04 00 AB 9B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 42 01 00 35 04 06 00 1C C6 06 63 42 6A EE 89 43 5F 9C EC 25 EB [11:44:44]CheckFolder [11:44:44]dirname=/storage/ofd_packets [11:44:44]CheckFolder done [11:44:44]ProducePacketName [11:44:44]name=ofd_packets/00082551 [11:44:44]NVStorageSaveData ofd_packets/00082551 [11:44:44]File name is /storage/ofd_packets/00082551 [11:44:44]Write 301 bytes [11:44:44]NVStorageSaveData done [11:44:44]OFDSenderStorePacket done [11:44:44]KKMCreateOFDPacket done [11:44:44]NVStorageSaveData kkm_last_timestamp [11:44:44]File name is /storage/kkm_last_timestamp [11:44:44]Write 4 bytes [11:44:44]NVStorageSaveData done [11:44:44]ExternCall_PrintAddStr [11:44:44]wPrintStart [11:44:44]Write to MH i2c: 01 00 00 EE 01 EF [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [11:44:44]RasterBufferAndPrint [11:44:44]line Счет N : (1)919039 [11:44:44]line ИНН: 02508201610067 [11:44:44]line Контрольно-Кассовый Чек [11:44:44]line ПРОДАЖА [11:44:44]line ТРК (МРК, ГНК) : 22 [11:44:44]line Товар: 2710124130 [11:44:44]line Аи-92-К-4 [11:44:44]line 7.480 * 66.90 [11:44:44]line = 500.41 [11:44:44]line НДС 12% НСП 1% [11:44:44]line > о реализуемом товаре [11:44:44]line ОКРУГЛЕНИЕ: -0.41 [11:44:44]line ИТОГО: 500.00 [11:44:44]line Внесено: 500.00 [11:44:44]line СДАЧА: 0.00 [11:44:44]line НСП 1% : 4.43 [11:44:44]line НДС 12% : 53.14 [11:44:44]line Наличными: 500.00 [11:44:44]line Безнал.: 0.00 [11:44:44]line Место: АЗС № 114 "Партнер Нефть" [11:44:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:44:44]line СНО: Общий режим [11:44:44]line Чек 48 19.10.2024 11:44 [11:44:44]line Смена: 527 ФФД: 1.0 [11:44:44]line ЗНМ: 0300000086 [11:44:44]line РНМ: 0000000000091680 [11:44:44]line Версия ККМ: 001 [11:44:44]line ФМ: 0000000000871843 [11:44:44]line ФД: 82551 [11:44:44]line ФПД: 31636836270698 [11:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T114443&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82551&fm=31636836270698&tin=02508201610067®Number=0000000000091680&sum=50000 [11:44:44]OFD Sender: Processing packet 82551 [packets to send 254, broken 253] [11:44:44]ProducePacketName [11:44:44]name=ofd_packets/00082551 [11:44:44]OFD Sender: To server: pG, [11:44:44]CommunicateWithHost lk.salyk.kg:30040 [11:44:44]ConnectInit lk.salyk.kg [11:44:44]written 0, free lines is 4095 [11:44:45]Write to MH i2c: 01 00 00 19 02 1B [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 E1 0C 0F [11:44:45]RasterBufferAndPrint [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]line [11:44:45]written 0, free lines is 3303 [11:44:45]MH_Cut [11:44:45]Write to MH i2c: D1 01 00 20 02 01 F4 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: D1 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: D1 01 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: D1 01 00 20 02 00 F3 [11:44:45]Write to MH i2c: 01 00 00 21 02 23 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Connected sock=10 [11:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5F D9 07 01 0A FA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 30 00 00 00 F4 03 04 00 AB 9B 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 42 01 00 35 04 06 00 1C C6 06 63 42 6A EE 89 43 5F 9C EC 25 EB [11:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 51 4E 47 00 1E 91 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 31 38 34 33 10 04 04 00 77 42 01 00 F4 03 04 00 E2 40 13 67 B6 04 01 00 00 03 17 75 F1 7D B8 72 1B [11:44:45]CommunicateWithHost err = 0 [11:44:45]CheckOFDResponse [11:44:45]1017 (14) - 77093643461234 [11:44:45]1041 (16) - 0000000000871843 [11:44:45]1040 (4) - 82551 [11:44:45]1012 (4) - 19.10.2024 05:17 [11:44:45]1206 (1) - 0 [11:44:45]OFD Sender: Remove packet 82551 [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00082551 [11:44:45]NVStorageDeleteData [11:44:45]*** Cut start [11:44:45]*** Partial cut [11:44:45]*** CUTSNS_PIN = 1 [11:44:45]*** CUTSNS_PIN = 0 [11:44:46]*** Brake cut motor [11:44:46]OFD Sender: No OFD packet to send [11:44:46]Read from MH i2c: 01 [11:44:46]MH_I2C_Read... [11:44:46]*** Stop cut motor [11:44:46]*** Cut end [11:44:46]Read from MH i2c: 01 07 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [11:44:46]process_action close_receipt done [11:44:46]requested_data is exist [11:44:46]produce_requested_data [11:44:46]requested_item fm.sn is exist - process it [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 11 00 00 [11:44:46]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 17 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F0 [11:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:44:46]wFMCommunicate OK [11:44:46]requested_item fd.num is exist - process it [11:44:46]SAM_PROTO_GetFieldsCounters [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 13 00 00 [11:44:46]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 62 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 62 00 23 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 77 42 01 00 0E 04 04 00 0F 02 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 1B [11:44: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 77 42 01 00 0E 04 04 00 0F 02 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:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_GetFieldsCounters done [11:44:46]requested_item shift.num is exist - process it [11:44:46]requested_item shift.opened is exist - process it [11:44:46]req_shift_opened [11:44:46]FM_GetShiftState [11:44:46]SAM_PROTO_GetShiftState [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 13 01 00 [11:44:46]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 A5 [11:44:46]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_GetShiftState done [11:44:46]FM_GetShiftState done [11:44:46]req_shift_opened done [11:44:46]requested_item shift.open_date is exist - process it [11:44:46]req_shift_open_date [11:44:46]req_shift_open_date done [11:44:46]produce_requested_data done [11:44:46]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82551,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:44:46]process_action_free close_receipt [11:44:46]json_value_free [11:44:46]json_value_free done [11:44:46]process_json_proto returns [11:44:46]Send response to host [11:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82551,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:44:46]free response buf [11:44:46]execute_script done [11:44:46]execute_script returns [11:44:46]free content buf [11:44:46]Sock 9.Close socket [11:44:46]Sock 9.Thread stoped [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:37]accept exits with 7 [11:52:37]New connection [11:52:37]New thread 3066744164 created [11:52:37]Thread 3066887524 joined [11:52:37]Waiting for new connection... [11:52:37] Sock 7.Parse request [11:52:37]Sock 7.Check first char [11:52:37]Sock 7.First char is OK [11:52:37]request: POST /json_proto HTTP/1.0 [11:52:37]Method: POST [11:52:37]URL: /json_proto [11:52:37]Method is POST - this is cgi request [11:52:37]url: /json_proto [11:52:37]query_string will be loaded in cgi processing [11:52:37]execute_cgi json_proto POST (null) [11:52:37]execute_cgi path=json_proto method=POST [11:52:37]POST find Content-Length [11:52:37]Host: 172.17.44.67:8080 [11:52:37]Content-Length: 766 [11:52:37]Content-Type: application/json [11:52:37] [11:52:37]POST finish read [11:52:37]Found Content-Length = 766 [11:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:37]execute_script... [11:52: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 : (1)919041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:37]POST & json_proto [11:52:37]process_json_proto [11:52:37]json parsed OK: [11:52:37]protocol is kg_v1.0 [11:52:37]action value=close_receipt [11:52:37]process_action close_receipt [11:52:37]cmd_close_receipt [11:52:37]MH_GetDate [11:52:37]Write to MH i2c: F0 00 00 25 02 16 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: F0 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: F0 09 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: F0 09 00 25 02 00 86 9D 13 67 F1 C7 6B 64 43 [11:52:37]GetLastDocTimeStamp 1729338283 [11:52:37]current date 1729338758 [11:52:37]FM_GetShiftState [11:52:37]SAM_PROTO_GetShiftState [11:52:37]wFMCommunicate request_size=4 [11:52:37]MH_SAM_APDU [11:52:37]CAPDU: 80 13 01 00 [11:52:37]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [11:52:37]Write i2c OK [11:52:37]MH_I2C_Read... [11:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:37]Read from MH i2c: E2 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0E 00 [11:52:37]MH_I2C_Read... [11:52:37]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 A7 [11:52:37]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:52:37]wFMCommunicate OK [11:52:37]SAM_PROTO_GetShiftState done [11:52:37]FM_GetShiftState done [11:52:37]opened in 1729298811 [11:52:37]opened+sec_in_day 1729385211 [11:52:37]quantity*price = 30038 [11:52:37]sum+1 = 30039 [11:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 49 19.10.2024 11:52 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82552 ФПД: 69704329984007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T115238&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82552&fm=69704329984007&tin=02508201610067®Number=0000000000091680&sum=30038 [11:52:39]StoreToDocumentArchive [11:52:39]shift 527 fd 82552 [11:52:39]save to /storage/0527/doc_00082552 [11:52:39]save last doc name /storage/0527/doc_00082552 to /storage/kkm_last_doc_name [11:52:39]save OK [11:52:39]Clear old archive folders... [11:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:39]tlvbuf is 005084E0 [11:52:39]SAM_PROTO_ClearQueue [11:52:39]wFMCommunicate request_size=4 [11:52:39]MH_SAM_APDU [11:52:39]CAPDU: 80 09 00 00 [11:52:39]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [11:52:39]RAPDU: 90 00 [11:52:39]wFMCommunicate OK [11:52:39]SAM_PROTO_ClearQueue done [11:52:39]KKMCreateOFDPacket [11:52:39]OFDProtocolAddRootSTLVToBuf [11:52:39]FM_MakeSignedData [11:52:39]FM_MakeSignedData [11:52:39]SAM_PROTO_SignData [11:52:39]wFMCommunicate request_size=4 [11:52:39]MH_SAM_APDU [11:52:39]CAPDU: 80 0D 01 02 [11:52:39]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [11:52:39]RAPDU: 90 00 [11:52:39]wFMCommunicate OK [11:52:39]wFMCommunicate request_size=255 [11:52:39]MH_SAM_APDU [11:52:39]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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 42 01 00 35 04 06 00 3F [11:52:39]Write to MH i2c: E2 02 01 35 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 42 01 00 35 04 06 00 3F 00 00 54 [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [11:52:39]RAPDU: 90 00 [11:52:39]wFMCommunicate OK [11:52:39]wFMCommunicate request_size=10 [11:52:39]MH_SAM_APDU [11:52:39]CAPDU: 80 0D 02 02 05 65 4D D3 F8 07 [11:52:39]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 65 4D D3 F8 07 00 00 40 [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [11:52:39]RAPDU: 90 00 [11:52:39]wFMCommunicate OK [11:52:39]wFMCommunicate request_size=4 [11:52:39]MH_SAM_APDU [11:52:39]CAPDU: 80 0D 03 02 [11:52:39]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 0B 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 0B 00 37 02 00 06 79 CC 7C F6 B2 3E 23 90 00 85 [11:52:39]RAPDU: 06 79 CC 7C F6 B2 3E 23 90 00 [11:52:39]wFMCommunicate OK [11:52:39]SAM_PROTO_SignData done [11:52:39]FM_MakeSignedData done [11:52:39]CreateOFDProtocolMessage [11:52:39]wFMCommunicate request_size=4 [11:52:39]MH_SAM_APDU [11:52:39]CAPDU: 80 11 00 00 [11:52:39]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:39]Read from MH i2c: E2 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 17 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 06 [11:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:52:39]wFMCommunicate OK [11:52:39]CreateOFDProtocolMessage done [11:52:39]OFDSenderStorePacket 82552 [11:52:39]StoreOFDPacket docnum=82552 [11:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E3 36 07 01 EE 46 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 42 01 00 35 04 06 00 3F 65 4D D3 F8 07 06 79 CC 7C F6 B2 3E 23 [11:52:39]CheckFolder [11:52:39]dirname=/storage/ofd_packets [11:52:39]CheckFolder done [11:52:39]ProducePacketName [11:52:39]name=ofd_packets/00082552 [11:52:39]NVStorageSaveData ofd_packets/00082552 [11:52:39]File name is /storage/ofd_packets/00082552 [11:52:39]Write 301 bytes [11:52:39]NVStorageSaveData done [11:52:39]OFDSenderStorePacket done [11:52:39]KKMCreateOFDPacket done [11:52:39]NVStorageSaveData kkm_last_timestamp [11:52:39]File name is /storage/kkm_last_timestamp [11:52:39]Write 4 bytes [11:52:39]NVStorageSaveData done [11:52:39]ExternCall_PrintAddStr [11:52:39]wPrintStart [11:52:39]Write to MH i2c: 01 00 00 39 02 3B [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 07 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [11:52:39]RasterBufferAndPrint [11:52:39]line Счет N : (1)919041 [11:52:39]line ИНН: 02508201610067 [11:52:39]line Контрольно-Кассовый Чек [11:52:39]line ПРОДАЖА [11:52:39]line ТРК (МРК, ГНК) : 11 [11:52:39]line Товар: 2710124130 [11:52:39]line Аи-92-К-4 [11:52:39]line 4.490 * 66.90 [11:52:39]line = 300.38 [11:52:39]line НДС 12% НСП 1% [11:52:39]line > о реализуемом товаре [11:52:39]line ИТОГО: 300.38 [11:52:39]line НСП 1% : 2.66 [11:52:39]line НДС 12% : 31.90 [11:52:39]line Наличными: 0.00 [11:52:39]line Безнал.: 300.38 [11:52:39]line Место: АЗС № 114 "Партнер Нефть" [11:52:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:52:39]line СНО: Общий режим [11:52:39]line Чек 49 19.10.2024 11:52 [11:52:39]line Смена: 527 ФФД: 1.0 [11:52:39]line ЗНМ: 0300000086 [11:52:39]line РНМ: 0000000000091680 [11:52:39]line Версия ККМ: 001 [11:52:39]line Платежная система: Mbank [11:52:39]line ФМ: 0000000000871843 [11:52:39]line ФД: 82552 [11:52:39]line ФПД: 69704329984007 [11:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T115238&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82552&fm=69704329984007&tin=02508201610067®Number=0000000000091680&sum=30038 [11:52:39]written 0, free lines is 4095 [11:52:39]OFD Sender: Processing packet 82552 [packets to send 254, broken 253] [11:52:39]ProducePacketName [11:52:39]name=ofd_packets/00082552 [11:52:39]OFD Sender: To server: pG, [11:52:39]CommunicateWithHost lk.salyk.kg:30040 [11:52:39]ConnectInit lk.salyk.kg [11:52:40]Connected sock=10 [11:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E3 36 07 01 EE 46 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 42 01 00 35 04 06 00 3F 65 4D D3 F8 07 06 79 CC 7C F6 B2 3E 23 [11:52:40]Write to MH i2c: 01 00 00 62 02 64 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 07 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0C 76 [11:52:40]RasterBufferAndPrint [11:52:40]line [11:52:40]line [11:52:40]line [11:52:40]line [11:52:40]line [11:52:40]written 0, free lines is 3333 [11:52:40]MH_Cut [11:52:40]Write to MH i2c: D1 01 00 69 02 01 3D [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: D1 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: D1 01 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: D1 01 00 69 02 00 3C [11:52:40]Write to MH i2c: 01 00 00 6A 02 6C [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CA B5 47 00 06 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 31 38 34 33 10 04 04 00 78 42 01 00 F4 03 04 00 BD 42 13 67 B6 04 01 00 00 4F DA EE EA 3A 61 DE 47 [11:52:40]CommunicateWithHost err = 0 [11:52:40]CheckOFDResponse [11:52:40]1017 (14) - 77093643461234 [11:52:40]1041 (16) - 0000000000871843 [11:52:40]1040 (4) - 82552 [11:52:40]1012 (4) - 19.10.2024 05:25 [11:52:40]1206 (1) - 0 [11:52:40]OFD Sender: Remove packet 82552 [11:52:40]ProducePacketName [11:52:40]name=ofd_packets/00082552 [11:52:40]NVStorageDeleteData [11:52:41]*** Cut start [11:52:41]*** Partial cut [11:52:41]*** CUTSNS_PIN = 1 [11:52:41]OFD Sender: No OFD packet to send [11:52:41]*** CUTSNS_PIN = 0 [11:52:41]*** Brake cut motor [11:52:41]Read from MH i2c: 01 [11:52:41]MH_I2C_Read... [11:52:41]*** Stop cut motor [11:52:41]*** Cut end [11:52:41]Read from MH i2c: 01 07 00 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [11:52:41]process_action close_receipt done [11:52:41]requested_data is exist [11:52:41]produce_requested_data [11:52:41]requested_item fm.sn is exist - process it [11:52:41]wFMCommunicate request_size=4 [11:52:41]MH_SAM_APDU [11:52:41]CAPDU: 80 11 00 00 [11:52:41]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:41]Read from MH i2c: E2 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: E2 17 00 [11:52:41]MH_I2C_Read... [11:52:41]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 31 38 34 33 90 00 39 [11:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:52:41]wFMCommunicate OK [11:52:41]requested_item fd.num is exist - process it [11:52:41]SAM_PROTO_GetFieldsCounters [11:52:41]wFMCommunicate request_size=4 [11:52:41]MH_SAM_APDU [11:52:41]CAPDU: 80 13 00 00 [11:52:41]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:41]Read from MH i2c: E2 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: E2 62 00 [11:52:41]MH_I2C_Read... [11:52:41]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 78 42 01 00 0E 04 04 00 0F 02 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 68 [11:52: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 78 42 01 00 0E 04 04 00 0F 02 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 [11:52:41]wFMCommunicate OK [11:52:41]SAM_PROTO_GetFieldsCounters done [11:52:41]requested_item shift.num is exist - process it [11:52:41]requested_item shift.opened is exist - process it [11:52:41]req_shift_opened [11:52:41]FM_GetShiftState [11:52:41]SAM_PROTO_GetShiftState [11:52:41]wFMCommunicate request_size=4 [11:52:41]MH_SAM_APDU [11:52:41]CAPDU: 80 13 01 00 [11:52:41]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:41]Read from MH i2c: E2 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: E2 0E 00 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 EE [11:52:41]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:52:41]wFMCommunicate OK [11:52:41]SAM_PROTO_GetShiftState done [11:52:41]FM_GetShiftState done [11:52:41]req_shift_opened done [11:52:41]requested_item shift.open_date is exist - process it [11:52:41]req_shift_open_date [11:52:41]req_shift_open_date done [11:52:41]produce_requested_data done [11:52:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82552,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:52:41]process_action_free close_receipt [11:52:41]json_value_free [11:52:41]json_value_free done [11:52:41]process_json_proto returns [11:52:41]Send response to host [11:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82552,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:52:41]free response buf [11:52:41]execute_script done [11:52:41]execute_script returns [11:52:41]free content buf [11:52:41]Sock 7.Close socket [11:52:41]Sock 7.Thread stoped [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:54]recv_with_timeout no data received [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:05]recv_with_timeout no data received [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]accept exits with 9 [11:54:16]New connection [11:54:16]New thread 3066887524 created [11:54:16]Thread 3066744164 joined [11:54:16]Waiting for new connection... [11:54:16] Sock 9.Parse request [11:54:16]Sock 9.Check first char [11:54:16]Sock 9.First char is OK [11:54:16]request: POST /json_proto HTTP/1.0 [11:54:16]Method: POST [11:54:16]URL: /json_proto [11:54:16]Method is POST - this is cgi request [11:54:16]url: /json_proto [11:54:16]query_string will be loaded in cgi processing [11:54:16]execute_cgi json_proto POST (null) [11:54:16]execute_cgi path=json_proto method=POST [11:54:16]POST find Content-Length [11:54:16]Host: 172.17.44.67:8080 [11:54:16]Content-Length: 806 [11:54:16]Content-Type: application/json [11:54:16] [11:54:16]POST finish read [11:54:16]Found Content-Length = 806 [11:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:16]execute_script... [11:54: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 : (1)919040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:16]POST & json_proto [11:54:16]process_json_proto [11:54:16]json parsed OK: [11:54:16]protocol is kg_v1.0 [11:54:16]action value=close_receipt [11:54:16]process_action close_receipt [11:54:16]cmd_close_receipt [11:54:16]MH_GetDate [11:54:16]Write to MH i2c: F0 00 00 6E 02 5F [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 6E 02 00 E8 9D 13 67 F1 C7 6B 64 EE [11:54:16]GetLastDocTimeStamp 1729338758 [11:54:16]current date 1729338856 [11:54:16]FM_GetShiftState [11:54:16]SAM_PROTO_GetShiftState [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 13 01 00 [11:54:16]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F0 [11:54:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_GetShiftState done [11:54:16]FM_GetShiftState done [11:54:16]opened in 1729298811 [11:54:16]opened+sec_in_day 1729385211 [11:54:16]quantity*price = 0 [11:54:16]sum+1 = 1 [11:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 50 19.10.2024 11:54 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203014 ФМ: 0000000000871843 ФД: 82553 ФПД: 198041701108557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T115416&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82553&fm=198041701108557&tin=02508201610067®Number=0000000000091680&sum=0 [11:54:17]StoreToDocumentArchive [11:54:17]shift 527 fd 82553 [11:54:17]save to /storage/0527/doc_00082553 [11:54:17]save last doc name /storage/0527/doc_00082553 to /storage/kkm_last_doc_name [11:54:17]save OK [11:54:17]Clear old archive folders... [11:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:54:17]tlvbuf is 0050A120 [11:54:17]SAM_PROTO_ClearQueue [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 09 00 00 [11:54:17]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_ClearQueue done [11:54:17]KKMCreateOFDPacket [11:54:17]OFDProtocolAddRootSTLVToBuf [11:54:17]FM_MakeSignedData [11:54:17]FM_MakeSignedData [11:54:17]SAM_PROTO_SignData [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 01 02 [11:54:17]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=255 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 E8 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 42 01 [11:54:17]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 E8 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 42 01 00 00 3E [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=16 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B4 1E 2D 3E CB 4D [11:54:17]Write to MH i2c: E2 13 00 7F 02 80 0D 02 02 0B 00 00 35 04 06 00 B4 1E 2D 3E CB 4D 00 00 A5 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 03 02 [11:54:17]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 80 02 00 37 23 54 A7 A6 36 44 98 90 00 0B [11:54:17]RAPDU: 37 23 54 A7 A6 36 44 98 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_SignData done [11:54:17]FM_MakeSignedData done [11:54:17]CreateOFDProtocolMessage [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 11 00 00 [11:54:17]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [11:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:54:17]wFMCommunicate OK [11:54:17]CreateOFDProtocolMessage done [11:54:17]OFDSenderStorePacket 82553 [11:54:17]StoreOFDPacket docnum=82553 [11:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 E8 11 0D 01 AD 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 E8 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 42 01 00 35 04 06 00 B4 1E 2D 3E CB 4D 37 23 54 A7 A6 36 44 98 [11:54:17]CheckFolder [11:54:17]dirname=/storage/ofd_packets [11:54:17]CheckFolder done [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00082553 [11:54:17]NVStorageSaveData ofd_packets/00082553 [11:54:17]File name is /storage/ofd_packets/00082553 [11:54:17]Write 307 bytes [11:54:17]NVStorageSaveData done [11:54:17]OFDSenderStorePacket done [11:54:17]KKMCreateOFDPacket done [11:54:17]NVStorageSaveData kkm_last_timestamp [11:54:17]File name is /storage/kkm_last_timestamp [11:54:17]Write 4 bytes [11:54:17]NVStorageSaveData done [11:54:17]ExternCall_PrintAddStr [11:54:17]wPrintStart [11:54:17]Write to MH i2c: 01 00 00 82 02 84 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [11:54:17]RasterBufferAndPrint [11:54:17]line Счет N : (1)919040 [11:54:17]line ИНН: 02508201610067 [11:54:17]line Контрольно-Кассовый Чек [11:54:17]line ПРОДАЖА [11:54:17]line ТРК (МРК, ГНК) : 21 [11:54:17]line Товар: 2710194800 [11:54:17]line D-Energy ДТ-К-2 [11:54:17]line 50.000 * 0.00 [11:54:17]line = 0.00 [11:54:17]line НДС 12% НСП 1% [11:54:17]line > о реализуемом товаре [11:54:17]line ИТОГО: 0.00 [11:54:17]line НСП 1% : 0.00 [11:54:17]line НДС 12% : 0.00 [11:54:17]line Наличными: 0.00 [11:54:17]line Безнал.: 0.00 [11:54:17]line Место: АЗС № 114 "Партнер Нефть" [11:54:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:54:17]line СНО: Общий режим [11:54:17]line Чек 50 19.10.2024 11:54 [11:54:17]line Смена: 527 ФФД: 1.0 [11:54:17]line ЗНМ: 0300000086 [11:54:17]line РНМ: 0000000000091680 [11:54:17]line Версия ККМ: 001 [11:54:17]line Талоны: Топливные Талоны [11:54:17]line 2203014 [11:54:17]line ФМ: 0000000000871843 [11:54:17]line ФД: 82553 [11:54:17]line ФПД: 198041701108557 [11:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T115416&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82553&fm=198041701108557&tin=02508201610067®Number=0000000000091680&sum=0 [11:54:18]OFD Sender: Processing packet 82553 [packets to send 254, broken 253] [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00082553 [11:54:18]OFD Sender: To server: pG, [11:54:18]CommunicateWithHost lk.salyk.kg:30040 [11:54:18]ConnectInit lk.salyk.kg [11:54:18]written 0, free lines is 4095 [11:54:18]Write to MH i2c: 01 00 00 AC 02 AE [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 EF 0C B0 [11:54:18]RasterBufferAndPrint [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]written 0, free lines is 3318 [11:54:18]MH_Cut [11:54:18]Write to MH i2c: D1 01 00 B3 02 01 87 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 B3 02 00 86 [11:54:18]Write to MH i2c: 01 00 00 B4 02 B6 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:19]Connected sock=10 [11:54:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 E8 11 0D 01 AD 31 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 E8 9D 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 42 01 00 35 04 06 00 B4 1E 2D 3E CB 4D 37 23 54 A7 A6 36 44 98 [11:54:19]*** Cut start [11:54:19]*** Partial cut [11:54:19]*** CUTSNS_PIN = 1 [11:54:19]*** CUTSNS_PIN = 0 [11:54:19]*** Brake cut motor [11:54:19]Read from MH i2c: 01 [11:54:19]MH_I2C_Read... [11:54:19]*** Stop cut motor [11:54:19]*** Cut end [11:54:19]Read from MH i2c: 01 07 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [11:54:19]process_action close_receipt done [11:54:19]requested_data is exist [11:54:19]produce_requested_data [11:54:19]requested_item fm.sn is exist - process it [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 11 00 00 [11:54:19]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EB DC 47 00 13 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 31 38 34 33 10 04 04 00 79 42 01 00 F4 03 04 00 20 43 13 67 B6 04 01 00 00 DE F8 F6 2E CF 00 36 DB [11:54:19]CommunicateWithHost err = 0 [11:54:19]CheckOFDResponse [11:54:19]1017 (14) - 77093643461234 [11:54:19]1041 (16) - 0000000000871843 [11:54:19]1040 (4) - 82553 [11:54:19]1012 (4) - 19.10.2024 05:26 [11:54:19]1206 (1) - 0 [11:54:19]OFD Sender: Remove packet 82553 [11:54:19]ProducePacketName [11:54:19]name=ofd_packets/00082553 [11:54:19]NVStorageDeleteData [11:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 83 [11:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:54:20]wFMCommunicate OK [11:54:20]requested_item fd.num is exist - process it [11:54:20]SAM_PROTO_GetFieldsCounters [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 13 00 00 [11:54:20]Write to MH i2c: E2 08 00 B6 02 80 13 00 00 00 00 00 00 34 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 B6 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 79 42 01 00 0E 04 04 00 0F 02 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 B6 [11:54: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 79 42 01 00 0E 04 04 00 0F 02 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 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetFieldsCounters done [11:54:20]requested_item shift.num is exist - process it [11:54:20]requested_item shift.opened is exist - process it [11:54:20]req_shift_opened [11:54:20]FM_GetShiftState [11:54:20]SAM_PROTO_GetShiftState [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 13 01 00 [11:54:20]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 38 [11:54:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetShiftState done [11:54:20]FM_GetShiftState done [11:54:20]req_shift_opened done [11:54:20]requested_item shift.open_date is exist - process it [11:54:20]req_shift_open_date [11:54:20]req_shift_open_date done [11:54:20]produce_requested_data done [11:54:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82553,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [11:54:20]process_action_free close_receipt [11:54:20]json_value_free [11:54:20]json_value_free done [11:54:20]process_json_proto returns [11:54:20]Send response to host [11:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82553,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [11:54:20]free response buf [11:54:20]execute_script done [11:54:20]execute_script returns [11:54:20]free content buf [11:54:20]Sock 9.Close socket [11:54:20]Sock 9.Thread stoped [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]accept exits with 7 [12:04:16]New connection [12:04:16]New thread 3066744164 created [12:04:16]Thread 3066887524 joined [12:04:16]Waiting for new connection... [12:04:16] Sock 7.Parse request [12:04:16]Sock 7.Check first char [12:04:16]Sock 7.First char is OK [12:04:16]request: POST /json_proto HTTP/1.0 [12:04:16]Method: POST [12:04:16]URL: /json_proto [12:04:16]Method is POST - this is cgi request [12:04:16]url: /json_proto [12:04:16]query_string will be loaded in cgi processing [12:04:16]execute_cgi json_proto POST (null) [12:04:16]execute_cgi path=json_proto method=POST [12:04:16]POST find Content-Length [12:04:16]Host: 172.17.44.67:8080 [12:04:16]Content-Length: 687 [12:04:16]Content-Type: application/json [12:04:16] [12:04:16]POST finish read [12:04:16]Found Content-Length = 687 [12:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:16]execute_script... [12:04: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 : (1)919042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:16]POST & json_proto [12:04:16]process_json_proto [12:04:16]json parsed OK: [12:04:16]protocol is kg_v1.0 [12:04:16]action value=close_receipt [12:04:16]process_action close_receipt [12:04:16]cmd_close_receipt [12:04:16]MH_GetDate [12:04:16]Write to MH i2c: F0 00 00 B8 02 A9 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 09 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 09 00 B8 02 00 40 A0 13 67 F1 C7 6B 64 93 [12:04:16]GetLastDocTimeStamp 1729338856 [12:04:16]current date 1729339456 [12:04:16]FM_GetShiftState [12:04:16]SAM_PROTO_GetShiftState [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 13 01 00 [12:04:16]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 3A [12:04:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_GetShiftState done [12:04:16]FM_GetShiftState done [12:04:16]opened in 1729298811 [12:04:16]opened+sec_in_day 1729385211 [12:04:16]quantity*price = 200025 [12:04:16]sum+1 = 200026 [12:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 51 19.10.2024 12:04 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82554 ФПД: 186840492439233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120416&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82554&fm=186840492439233&tin=02508201610067®Number=0000000000091680&sum=200000 [12:04:17]StoreToDocumentArchive [12:04:17]shift 527 fd 82554 [12:04:17]save to /storage/0527/doc_00082554 [12:04:17]save last doc name /storage/0527/doc_00082554 to /storage/kkm_last_doc_name [12:04:17]save OK [12:04:17]Clear old archive folders... [12:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:04:17]tlvbuf is 005A5860 [12:04:17]SAM_PROTO_ClearQueue [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 09 00 00 [12:04:17]Write to MH i2c: E2 08 00 C6 02 80 09 00 00 00 00 00 00 3A [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_ClearQueue done [12:04:17]KKMCreateOFDPacket [12:04:17]OFDProtocolAddRootSTLVToBuf [12:04:17]FM_MakeSignedData [12:04:17]FM_MakeSignedData [12:04:17]SAM_PROTO_SignData [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 01 02 [12:04:17]Write to MH i2c: E2 08 00 C7 02 80 0D 01 02 00 00 00 00 42 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=255 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 40 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 42 01 00 35 04 06 00 [12:04:17]Write to MH i2c: E2 02 01 C8 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 40 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 42 01 00 35 04 06 00 00 00 F6 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=11 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 06 A9 EE 31 2E 76 C1 [12:04:17]Write to MH i2c: E2 0E 00 C9 02 80 0D 02 02 06 00 A9 EE 31 2E 76 C1 00 00 7E [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 03 02 [12:04:17]Write to MH i2c: E2 08 00 CA 02 80 0D 03 02 00 00 00 00 47 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 CA 02 00 F3 06 D3 37 B5 04 91 56 90 00 EB [12:04:17]RAPDU: F3 06 D3 37 B5 04 91 56 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_SignData done [12:04:17]FM_MakeSignedData done [12:04:17]CreateOFDProtocolMessage [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 11 00 00 [12:04:17]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 99 [12:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:04:17]wFMCommunicate OK [12:04:17]CreateOFDProtocolMessage done [12:04:17]OFDSenderStorePacket 82554 [12:04:17]StoreOFDPacket docnum=82554 [12:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B7 17 08 01 6B 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 40 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 42 01 00 35 04 06 00 A9 EE 31 2E 76 C1 F3 06 D3 37 B5 04 91 56 [12:04:17]CheckFolder [12:04:17]dirname=/storage/ofd_packets [12:04:17]CheckFolder done [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00082554 [12:04:17]NVStorageSaveData ofd_packets/00082554 [12:04:17]File name is /storage/ofd_packets/00082554 [12:04:17]Write 302 bytes [12:04:17]NVStorageSaveData done [12:04:17]OFDSenderStorePacket done [12:04:17]KKMCreateOFDPacket done [12:04:17]NVStorageSaveData kkm_last_timestamp [12:04:17]File name is /storage/kkm_last_timestamp [12:04:17]Write 4 bytes [12:04:17]NVStorageSaveData done [12:04:17]ExternCall_PrintAddStr [12:04:17]wPrintStart [12:04:17]Write to MH i2c: 01 00 00 CC 02 CE [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [12:04:17]RasterBufferAndPrint [12:04:17]line Счет N : (1)919042 [12:04:17]line ИНН: 02508201610067 [12:04:17]line Контрольно-Кассовый Чек [12:04:17]line ПРОДАЖА [12:04:17]line ТРК (МРК, ГНК) : 31 [12:04:17]line Товар: 2710194210 [12:04:17]line ДТ(л)-К-5 [12:04:17]line 26.250 * 76.20 [12:04:17]line = 2000.25 [12:04:17]line НДС 12% НСП 1% [12:04:17]line > о реализуемом товаре [12:04:17]line ОКРУГЛЕНИЕ: -0.25 [12:04:17]line ИТОГО: 2000.00 [12:04:17]line Внесено: 2000.00 [12:04:17]line СДАЧА: 0.00 [12:04:17]line НСП 1% : 17.70 [12:04:17]line НДС 12% : 212.42 [12:04:17]line Наличными: 2000.00 [12:04:17]line Безнал.: 0.00 [12:04:17]line Место: АЗС № 114 "Партнер Нефть" [12:04:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:04:17]line СНО: Общий режим [12:04:17]line Чек 51 19.10.2024 12:04 [12:04:17]line Смена: 527 ФФД: 1.0 [12:04:17]line ЗНМ: 0300000086 [12:04:17]line РНМ: 0000000000091680 [12:04:17]line Версия ККМ: 001 [12:04:17]line ФМ: 0000000000871843 [12:04:17]line ФД: 82554 [12:04:17]line ФПД: 186840492439233 [12:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120416&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82554&fm=186840492439233&tin=02508201610067®Number=0000000000091680&sum=200000 [12:04:18]OFD Sender: Processing packet 82554 [packets to send 254, broken 253] [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00082554 [12:04:18]OFD Sender: To server: pG, [12:04:18]CommunicateWithHost lk.salyk.kg:30040 [12:04:18]ConnectInit lk.salyk.kg [12:04:18]written 0, free lines is 4095 [12:04:18]Connected sock=11 [12:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B7 17 08 01 6B 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 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 40 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 42 01 00 35 04 06 00 A9 EE 31 2E 76 C1 F3 06 D3 37 B5 04 91 56 [12:04:18]Write to MH i2c: 01 00 00 F7 02 F9 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 E4 0C F0 [12:04:18]RasterBufferAndPrint [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]written 0, free lines is 3306 [12:04:18]MH_Cut [12:04:18]Write to MH i2c: D1 01 00 FE 02 01 D2 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 01 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 01 00 FE 02 00 D1 [12:04:18]Write to MH i2c: 01 00 00 FF 02 01 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D6 FA 47 00 1F 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 31 38 34 33 10 04 04 00 7A 42 01 00 F4 03 04 00 78 45 13 67 B6 04 01 00 00 43 20 1F 2A FB 76 05 55 [12:04:18]CommunicateWithHost err = 0 [12:04:18]CheckOFDResponse [12:04:18]1017 (14) - 77093643461234 [12:04:18]1041 (16) - 0000000000871843 [12:04:18]1040 (4) - 82554 [12:04:18]1012 (4) - 19.10.2024 05:36 [12:04:18]1206 (1) - 0 [12:04:18]OFD Sender: Remove packet 82554 [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00082554 [12:04:18]NVStorageDeleteData [12:04:19]OFD Sender: No OFD packet to send [12:04:19]*** Cut start [12:04:19]*** Partial cut [12:04:19]*** CUTSNS_PIN = 1 [12:04:19]*** CUTSNS_PIN = 0 [12:04:19]*** Brake cut motor [12:04:20]Read from MH i2c: 01 [12:04:20]MH_I2C_Read... [12:04:20]*** Stop cut motor [12:04:20]*** Cut end [12:04:20]Read from MH i2c: 01 07 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [12:04:20]process_action close_receipt done [12:04:20]requested_data is exist [12:04:20]produce_requested_data [12:04:20]requested_item fm.sn is exist - process it [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 11 00 00 [12:04:20]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CF [12:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:04:20]wFMCommunicate OK [12:04:20]requested_item fd.num is exist - process it [12:04:20]SAM_PROTO_GetFieldsCounters [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 13 00 00 [12:04:20]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 62 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 62 00 01 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7A 42 01 00 0E 04 04 00 0F 02 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 06 [12:04: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7A 42 01 00 0E 04 04 00 0F 02 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:04:20]wFMCommunicate OK [12:04:20]SAM_PROTO_GetFieldsCounters done [12:04:20]requested_item shift.num is exist - process it [12:04:20]requested_item shift.opened is exist - process it [12:04:20]req_shift_opened [12:04:20]FM_GetShiftState [12:04:20]SAM_PROTO_GetShiftState [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 13 01 00 [12:04:20]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 0E 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 84 [12:04:20]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:04:20]wFMCommunicate OK [12:04:20]SAM_PROTO_GetShiftState done [12:04:20]FM_GetShiftState done [12:04:20]req_shift_opened done [12:04:20]requested_item shift.open_date is exist - process it [12:04:20]req_shift_open_date [12:04:20]req_shift_open_date done [12:04:20]produce_requested_data done [12:04:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82554,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:04:20]process_action_free close_receipt [12:04:20]json_value_free [12:04:20]json_value_free done [12:04:20]process_json_proto returns [12:04:20]Send response to host [12:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82554,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:04:20]free response buf [12:04:20]execute_script done [12:04:20]execute_script returns [12:04:20]free content buf [12:04:20]Sock 7.Close socket [12:04:20]Sock 7.Thread stoped [12:04:21]accept exits with 9 [12:04:21]New connection [12:04:21]New thread 3066887524 created [12:04:21]Thread 3066744164 joined [12:04:21]Waiting for new connection... [12:04:21] Sock 9.Parse request [12:04:21]Sock 9.Check first char [12:04:21]Sock 9.First char is OK [12:04:21]request: POST /json_proto HTTP/1.0 [12:04:21]Method: POST [12:04:21]URL: /json_proto [12:04:21]Method is POST - this is cgi request [12:04:21]url: /json_proto [12:04:21]query_string will be loaded in cgi processing [12:04:21]execute_cgi json_proto POST (null) [12:04:21]execute_cgi path=json_proto method=POST [12:04:21]POST find Content-Length [12:04:21]Host: 172.17.44.67:8080 [12:04:21]Content-Length: 677 [12:04:21]Content-Type: application/json [12:04:21] [12:04:21]POST finish read [12:04:21]Found Content-Length = 677 [12:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:21]execute_script... [12:04:21]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)919043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:21]POST & json_proto [12:04:21]process_json_proto [12:04:21]json parsed OK: [12:04:21]protocol is kg_v1.0 [12:04:21]action value=close_receipt [12:04:21]process_action close_receipt [12:04:21]cmd_close_receipt [12:04:21]MH_GetDate [12:04:21]Write to MH i2c: F0 00 00 03 03 F5 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: F0 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: F0 09 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: F0 09 00 03 03 00 45 A0 13 67 F1 C7 6B 64 E4 [12:04:21]GetLastDocTimeStamp 1729339456 [12:04:21]current date 1729339461 [12:04:21]FM_GetShiftState [12:04:21]SAM_PROTO_GetShiftState [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 13 01 00 [12:04:21]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 86 [12:04:21]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_GetShiftState done [12:04:21]FM_GetShiftState done [12:04:21]opened in 1729298811 [12:04:21]opened+sec_in_day 1729385211 [12:04:21]quantity*price = 60009 [12:04:21]sum+1 = 60010 [12:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 52 19.10.2024 12:04 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82555 ФПД: 115259911351298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120422&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82555&fm=115259911351298&tin=02508201610067®Number=0000000000091680&sum=60000 [12:04:22]StoreToDocumentArchive [12:04:22]shift 527 fd 82555 [12:04:22]save to /storage/0527/doc_00082555 [12:04:22]save last doc name /storage/0527/doc_00082555 to /storage/kkm_last_doc_name [12:04:22]save OK [12:04:22]Clear old archive folders... [12:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:22]tlvbuf is 00517D80 [12:04:22]SAM_PROTO_ClearQueue [12:04:22]wFMCommunicate request_size=4 [12:04:22]MH_SAM_APDU [12:04:22]CAPDU: 80 09 00 00 [12:04:22]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:22]Read from MH i2c: E2 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 03 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [12:04:22]RAPDU: 90 00 [12:04:22]wFMCommunicate OK [12:04:22]SAM_PROTO_ClearQueue done [12:04:22]KKMCreateOFDPacket [12:04:22]OFDProtocolAddRootSTLVToBuf [12:04:22]FM_MakeSignedData [12:04:22]FM_MakeSignedData [12:04:22]SAM_PROTO_SignData [12:04:22]wFMCommunicate request_size=4 [12:04:22]MH_SAM_APDU [12:04:22]CAPDU: 80 0D 01 02 [12:04:22]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:22]Read from MH i2c: E2 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 03 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [12:04:22]RAPDU: 90 00 [12:04:22]wFMCommunicate OK [12:04:22]wFMCommunicate request_size=255 [12:04:22]MH_SAM_APDU [12:04:22]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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 46 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 42 01 00 35 04 06 00 68 [12:04:22]Write to MH i2c: E2 02 01 13 03 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 46 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 42 01 00 35 04 06 00 68 00 00 C2 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:23]Read from MH i2c: E2 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 03 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [12:04:23]RAPDU: 90 00 [12:04:23]wFMCommunicate OK [12:04:23]wFMCommunicate request_size=10 [12:04:23]MH_SAM_APDU [12:04:23]CAPDU: 80 0D 02 02 05 D4 0A 12 AC 02 [12:04:23]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 D4 0A 12 AC 02 00 00 39 [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:23]Read from MH i2c: E2 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 03 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [12:04:23]RAPDU: 90 00 [12:04:23]wFMCommunicate OK [12:04:23]wFMCommunicate request_size=4 [12:04:23]MH_SAM_APDU [12:04:23]CAPDU: 80 0D 03 02 [12:04:23]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:23]Read from MH i2c: E2 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 0B 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 0B 00 15 03 00 5D 5F 2B CD 07 41 AA 0D 90 00 47 [12:04:23]RAPDU: 5D 5F 2B CD 07 41 AA 0D 90 00 [12:04:23]wFMCommunicate OK [12:04:23]SAM_PROTO_SignData done [12:04:23]FM_MakeSignedData done [12:04:23]CreateOFDProtocolMessage [12:04:23]wFMCommunicate request_size=4 [12:04:23]MH_SAM_APDU [12:04:23]CAPDU: 80 11 00 00 [12:04:23]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:23]Read from MH i2c: E2 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 17 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E5 [12:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:04:23]wFMCommunicate OK [12:04:23]CreateOFDProtocolMessage done [12:04:23]OFDSenderStorePacket 82555 [12:04:23]StoreOFDPacket docnum=82555 [12:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 59 85 07 01 1C 8F 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 46 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 42 01 00 35 04 06 00 68 D4 0A 12 AC 02 5D 5F 2B CD 07 41 AA 0D [12:04:23]CheckFolder [12:04:23]dirname=/storage/ofd_packets [12:04:23]CheckFolder done [12:04:23]ProducePacketName [12:04:23]name=ofd_packets/00082555 [12:04:23]NVStorageSaveData ofd_packets/00082555 [12:04:23]File name is /storage/ofd_packets/00082555 [12:04:23]Write 301 bytes [12:04:23]NVStorageSaveData done [12:04:23]OFDSenderStorePacket done [12:04:23]KKMCreateOFDPacket done [12:04:23]NVStorageSaveData kkm_last_timestamp [12:04:23]File name is /storage/kkm_last_timestamp [12:04:23]Write 4 bytes [12:04:23]NVStorageSaveData done [12:04:23]ExternCall_PrintAddStr [12:04:23]wPrintStart [12:04:23]Write to MH i2c: 01 00 00 17 03 1A [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 07 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [12:04:23]RasterBufferAndPrint [12:04:23]line Счет N : (1)919043 [12:04:23]line ИНН: 02508201610067 [12:04:23]line Контрольно-Кассовый Чек [12:04:23]line ПРОДАЖА [12:04:23]line ТРК (МРК, ГНК) : 22 [12:04:23]line Товар: 2710124130 [12:04:23]line Аи-92-К-4 [12:04:23]line 8.970 * 66.90 [12:04:23]line = 600.09 [12:04:23]line НДС 12% НСП 1% [12:04:23]line > о реализуемом товаре [12:04:23]line ОКРУГЛЕНИЕ: -0.09 [12:04:23]line ИТОГО: 600.00 [12:04:23]line Внесено: 600.00 [12:04:23]line СДАЧА: 0.00 [12:04:23]line НСП 1% : 5.31 [12:04:23]line НДС 12% : 63.73 [12:04:23]line Наличными: 600.00 [12:04:23]line Безнал.: 0.00 [12:04:23]line Место: АЗС № 114 "Партнер Нефть" [12:04:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:04:23]line СНО: Общий режим [12:04:23]line Чек 52 19.10.2024 12:04 [12:04:23]line Смена: 527 ФФД: 1.0 [12:04:23]line ЗНМ: 0300000086 [12:04:23]line РНМ: 0000000000091680 [12:04:23]line Версия ККМ: 001 [12:04:23]line ФМ: 0000000000871843 [12:04:23]line ФД: 82555 [12:04:23]line ФПД: 115259911351298 [12:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120422&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82555&fm=115259911351298&tin=02508201610067®Number=0000000000091680&sum=60000 [12:04:23]written 0, free lines is 4095 [12:04:23]OFD Sender: Processing packet 82555 [packets to send 254, broken 253] [12:04:23]ProducePacketName [12:04:23]name=ofd_packets/00082555 [12:04:23]OFD Sender: To server: pG, [12:04:23]CommunicateWithHost lk.salyk.kg:30040 [12:04:23]ConnectInit lk.salyk.kg [12:04:23]Connected sock=10 [12:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 59 85 07 01 1C 8F 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 46 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 42 01 00 35 04 06 00 68 D4 0A 12 AC 02 5D 5F 2B CD 07 41 AA 0D [12:04:23]Write to MH i2c: 01 00 00 42 03 45 [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 07 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 04 0D 5D [12:04:23]RasterBufferAndPrint [12:04:23]line [12:04:23]line [12:04:23]line [12:04:23]line [12:04:23]line [12:04:23]written 0, free lines is 3344 [12:04:23]MH_Cut [12:04:23]Write to MH i2c: D1 01 00 49 03 01 1E [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: D1 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: D1 01 00 [12:04:23]MH_I2C_Read... [12:04:23]Read from MH i2c: D1 01 00 49 03 00 1D [12:04:23]Write to MH i2c: 01 00 00 4A 03 4D [12:04:23]Write i2c OK [12:04:23]MH_I2C_Read... [12:04:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F8 82 47 00 48 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 31 38 34 33 10 04 04 00 7B 42 01 00 F4 03 04 00 7D 45 13 67 B6 04 01 00 00 73 D1 F1 F0 E5 3A A6 DA [12:04:24]CommunicateWithHost err = 0 [12:04:24]CheckOFDResponse [12:04:24]1017 (14) - 77093643461234 [12:04:24]1041 (16) - 0000000000871843 [12:04:24]1040 (4) - 82555 [12:04:24]1012 (4) - 19.10.2024 05:37 [12:04:24]1206 (1) - 0 [12:04:24]OFD Sender: Remove packet 82555 [12:04:24]ProducePacketName [12:04:24]name=ofd_packets/00082555 [12:04:24]NVStorageDeleteData [12:04:24]*** Cut start [12:04:24]*** Partial cut [12:04:24]*** CUTSNS_PIN = 1 [12:04:24]*** CUTSNS_PIN = 0 [12:04:24]OFD Sender: No OFD packet to send [12:04:24]*** Brake cut motor [12:04:25]Read from MH i2c: 01 [12:04:25]MH_I2C_Read... [12:04:25]*** Stop cut motor [12:04:25]*** Cut end [12:04:25]Read from MH i2c: 01 07 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [12:04:25]process_action close_receipt done [12:04:25]requested_data is exist [12:04:25]produce_requested_data [12:04:25]requested_item fm.sn is exist - process it [12:04:25]wFMCommunicate request_size=4 [12:04:25]MH_SAM_APDU [12:04:25]CAPDU: 80 11 00 00 [12:04:25]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:25]Read from MH i2c: E2 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 17 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1A [12:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:04:25]wFMCommunicate OK [12:04:25]requested_item fd.num is exist - process it [12:04:25]SAM_PROTO_GetFieldsCounters [12:04:25]wFMCommunicate request_size=4 [12:04:25]MH_SAM_APDU [12:04:25]CAPDU: 80 13 00 00 [12:04:25]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:25]Read from MH i2c: E2 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 62 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 62 00 4C 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7B 42 01 00 0E 04 04 00 0F 02 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 55 [12:04: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7B 42 01 00 0E 04 04 00 0F 02 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:04:25]wFMCommunicate OK [12:04:25]SAM_PROTO_GetFieldsCounters done [12:04:25]requested_item shift.num is exist - process it [12:04:25]requested_item shift.opened is exist - process it [12:04:25]req_shift_opened [12:04:25]FM_GetShiftState [12:04:25]SAM_PROTO_GetShiftState [12:04:25]wFMCommunicate request_size=4 [12:04:25]MH_SAM_APDU [12:04:25]CAPDU: 80 13 01 00 [12:04:25]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:25]Read from MH i2c: E2 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 0E 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 CF [12:04:25]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:04:25]wFMCommunicate OK [12:04:25]SAM_PROTO_GetShiftState done [12:04:25]FM_GetShiftState done [12:04:25]req_shift_opened done [12:04:25]requested_item shift.open_date is exist - process it [12:04:25]req_shift_open_date [12:04:25]req_shift_open_date done [12:04:25]produce_requested_data done [12:04:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82555,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:04:25]process_action_free close_receipt [12:04:25]json_value_free [12:04:25]json_value_free done [12:04:25]process_json_proto returns [12:04:25]Send response to host [12:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82555,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:04:25]free response buf [12:04:25]execute_script done [12:04:25]execute_script returns [12:04:25]free content buf [12:04:25]Sock 9.Close socket [12:04:25]Sock 9.Thread stoped [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:48]recv_with_timeout no data received [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:53]accept exits with 7 [12:05:53]New connection [12:05:53]New thread 3066744164 created [12:05:53]Thread 3066887524 joined [12:05:53]Waiting for new connection... [12:05:53] Sock 7.Parse request [12:05:53]Sock 7.Check first char [12:05:53]Sock 7.First char is OK [12:05:53]request: POST /json_proto HTTP/1.0 [12:05:53]Method: POST [12:05:53]URL: /json_proto [12:05:53]Method is POST - this is cgi request [12:05:53]url: /json_proto [12:05:53]query_string will be loaded in cgi processing [12:05:53]execute_cgi json_proto POST (null) [12:05:53]execute_cgi path=json_proto method=POST [12:05:53]POST find Content-Length [12:05:53]Host: 172.17.44.67:8080 [12:05:53]Content-Length: 766 [12:05:53]Content-Type: application/json [12:05:53] [12:05:53]POST finish read [12:05:53]Found Content-Length = 766 [12:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:53]execute_script... [12:05: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 : (1)919044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:53]POST & json_proto [12:05:53]process_json_proto [12:05:53]json parsed OK: [12:05:53]protocol is kg_v1.0 [12:05:53]action value=close_receipt [12:05:53]process_action close_receipt [12:05:53]cmd_close_receipt [12:05:53]MH_GetDate [12:05:53]Write to MH i2c: F0 00 00 4E 03 40 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: F0 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: F0 09 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: F0 09 00 4E 03 00 A2 A0 13 67 F1 C7 6B 64 8C [12:05:53]GetLastDocTimeStamp 1729339462 [12:05:53]current date 1729339554 [12:05:53]FM_GetShiftState [12:05:53]SAM_PROTO_GetShiftState [12:05:53]wFMCommunicate request_size=4 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 13 01 00 [12:05:53]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0E 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D1 [12:05:53]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:05:53]wFMCommunicate OK [12:05:53]SAM_PROTO_GetShiftState done [12:05:53]FM_GetShiftState done [12:05:53]opened in 1729298811 [12:05:53]opened+sec_in_day 1729385211 [12:05:53]quantity*price = 60009 [12:05:53]sum+1 = 60010 [12:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 53 19.10.2024 12:05 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82556 ФПД: 209712436867989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120554&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82556&fm=209712436867989&tin=02508201610067®Number=0000000000091680&sum=60009 [12:05:55]StoreToDocumentArchive [12:05:55]shift 527 fd 82556 [12:05:55]save to /storage/0527/doc_00082556 [12:05:55]save last doc name /storage/0527/doc_00082556 to /storage/kkm_last_doc_name [12:05:55]save OK [12:05:55]Clear old archive folders... [12:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:55]tlvbuf is 00599A70 [12:05:55]SAM_PROTO_ClearQueue [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 09 00 00 [12:05:55]Write to MH i2c: E2 08 00 5C 03 80 09 00 00 00 00 00 00 D1 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [12:05:55]RAPDU: 90 00 [12:05:55]wFMCommunicate OK [12:05:55]SAM_PROTO_ClearQueue done [12:05:55]KKMCreateOFDPacket [12:05:55]OFDProtocolAddRootSTLVToBuf [12:05:55]FM_MakeSignedData [12:05:55]FM_MakeSignedData [12:05:55]SAM_PROTO_SignData [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 0D 01 02 [12:05:55]Write to MH i2c: E2 08 00 5D 03 80 0D 01 02 00 00 00 00 D9 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [12:05:55]RAPDU: 90 00 [12:05:55]wFMCommunicate OK [12:05:55]wFMCommunicate request_size=255 [12:05:55]MH_SAM_APDU [12:05:55]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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 42 01 00 35 04 06 00 BE [12:05:55]Write to MH i2c: E2 02 01 5E 03 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 42 01 00 35 04 06 00 BE 00 00 D3 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [12:05:55]RAPDU: 90 00 [12:05:55]wFMCommunicate OK [12:05:55]wFMCommunicate request_size=10 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 0D 02 02 05 BB 7B 4D F3 95 [12:05:55]Write to MH i2c: E2 0D 00 5F 03 80 0D 02 02 05 00 BB 7B 4D F3 95 00 00 F1 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [12:05:55]RAPDU: 90 00 [12:05:55]wFMCommunicate OK [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 0D 03 02 [12:05:55]Write to MH i2c: E2 08 00 60 03 80 0D 03 02 00 00 00 00 DE [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 0B 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 0B 00 60 03 00 39 52 CD 6A CF 80 BD 97 90 00 44 [12:05:55]RAPDU: 39 52 CD 6A CF 80 BD 97 90 00 [12:05:55]wFMCommunicate OK [12:05:55]SAM_PROTO_SignData done [12:05:55]FM_MakeSignedData done [12:05:55]CreateOFDProtocolMessage [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 11 00 00 [12:05:55]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 17 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [12:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:05:55]wFMCommunicate OK [12:05:55]CreateOFDProtocolMessage done [12:05:55]OFDSenderStorePacket 82556 [12:05:55]StoreOFDPacket docnum=82556 [12:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 64 F3 07 01 B3 F2 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 42 01 00 35 04 06 00 BE BB 7B 4D F3 95 39 52 CD 6A CF 80 BD 97 [12:05:55]CheckFolder [12:05:55]dirname=/storage/ofd_packets [12:05:55]CheckFolder done [12:05:55]ProducePacketName [12:05:55]name=ofd_packets/00082556 [12:05:55]NVStorageSaveData ofd_packets/00082556 [12:05:55]File name is /storage/ofd_packets/00082556 [12:05:55]Write 301 bytes [12:05:55]NVStorageSaveData done [12:05:55]OFDSenderStorePacket done [12:05:55]KKMCreateOFDPacket done [12:05:55]NVStorageSaveData kkm_last_timestamp [12:05:55]File name is /storage/kkm_last_timestamp [12:05:55]Write 4 bytes [12:05:55]NVStorageSaveData done [12:05:55]ExternCall_PrintAddStr [12:05:55]wPrintStart [12:05:55]Write to MH i2c: 01 00 00 62 03 65 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: 01 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: 01 07 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 FF 0F 7A [12:05:55]RasterBufferAndPrint [12:05:55]line Счет N : (1)919044 [12:05:55]line ИНН: 02508201610067 [12:05:55]line Контрольно-Кассовый Чек [12:05:55]line ПРОДАЖА [12:05:55]line ТРК (МРК, ГНК) : 22 [12:05:55]line Товар: 2710124130 [12:05:55]line Аи-92-К-4 [12:05:55]line 8.970 * 66.90 [12:05:55]line = 600.09 [12:05:55]line НДС 12% НСП 1% [12:05:55]line > о реализуемом товаре [12:05:55]line ИТОГО: 600.09 [12:05:55]line НСП 1% : 5.31 [12:05:55]line НДС 12% : 63.73 [12:05:55]line Наличными: 0.00 [12:05:55]line Безнал.: 600.09 [12:05:55]line Место: АЗС № 114 "Партнер Нефть" [12:05:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:05:55]line СНО: Общий режим [12:05:55]line Чек 53 19.10.2024 12:05 [12:05:55]line Смена: 527 ФФД: 1.0 [12:05:55]line ЗНМ: 0300000086 [12:05:55]line РНМ: 0000000000091680 [12:05:55]line Версия ККМ: 001 [12:05:55]line Платежная система: Mbank [12:05:55]line ФМ: 0000000000871843 [12:05:55]line ФД: 82556 [12:05:55]line ФПД: 209712436867989 [12:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T120554&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82556&fm=209712436867989&tin=02508201610067®Number=0000000000091680&sum=60009 [12:05:55]written 0, free lines is 4095 [12:05:55]OFD Sender: Processing packet 82556 [packets to send 254, broken 253] [12:05:55]ProducePacketName [12:05:55]name=ofd_packets/00082556 [12:05:55]OFD Sender: To server: pG, [12:05:55]CommunicateWithHost lk.salyk.kg:30040 [12:05:55]ConnectInit lk.salyk.kg [12:05:56]Connected sock=10 [12:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 64 F3 07 01 B3 F2 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 A2 A0 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 42 01 00 35 04 06 00 BE BB 7B 4D F3 95 39 52 CD 6A CF 80 BD 97 [12:05:56]Write to MH i2c: 01 00 00 8B 03 8E [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: 01 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: 01 07 00 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 13 0D B5 [12:05:56]RasterBufferAndPrint [12:05:56]line [12:05:56]line [12:05:56]line [12:05:56]line [12:05:56]line [12:05:56]written 0, free lines is 3354 [12:05:56]MH_Cut [12:05:56]Write to MH i2c: D1 01 00 92 03 01 67 [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: D1 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: D1 01 00 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: D1 01 00 92 03 00 66 [12:05:56]Write to MH i2c: 01 00 00 93 03 96 [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9B 39 47 00 9E 2A 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 31 38 34 33 10 04 04 00 7C 42 01 00 F4 03 04 00 DA 45 13 67 B6 04 01 00 00 02 5F 67 2B 8C 27 20 DA [12:05:56]CommunicateWithHost err = 0 [12:05:56]CheckOFDResponse [12:05:56]1017 (14) - 77093643461234 [12:05:56]1041 (16) - 0000000000871843 [12:05:56]1040 (4) - 82556 [12:05:56]1012 (4) - 19.10.2024 05:38 [12:05:56]1206 (1) - 0 [12:05:56]OFD Sender: Remove packet 82556 [12:05:56]ProducePacketName [12:05:56]name=ofd_packets/00082556 [12:05:56]NVStorageDeleteData [12:05:57]*** Cut start [12:05:57]*** Partial cut [12:05:57]*** CUTSNS_PIN = 1 [12:05:57]*** CUTSNS_PIN = 0 [12:05:57]OFD Sender: No OFD packet to send [12:05:57]*** Brake cut motor [12:05:57]Read from MH i2c: 01 [12:05:57]MH_I2C_Read... [12:05:57]*** Stop cut motor [12:05:57]*** Cut end [12:05:57]Read from MH i2c: 01 07 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [12:05:57]process_action close_receipt done [12:05:57]requested_data is exist [12:05:57]produce_requested_data [12:05:57]requested_item fm.sn is exist - process it [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 11 00 00 [12:05:57]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 63 [12:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:05:57]wFMCommunicate OK [12:05:57]requested_item fd.num is exist - process it [12:05:57]SAM_PROTO_GetFieldsCounters [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 00 00 [12:05:57]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 62 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 62 00 95 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7C 42 01 00 0E 04 04 00 0F 02 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 A2 [12:05: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7C 42 01 00 0E 04 04 00 0F 02 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:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_GetFieldsCounters done [12:05:57]requested_item shift.num is exist - process it [12:05:57]requested_item shift.opened is exist - process it [12:05:57]req_shift_opened [12:05:57]FM_GetShiftState [12:05:57]SAM_PROTO_GetShiftState [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 01 00 [12:05:57]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 18 [12:05:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_GetShiftState done [12:05:58]FM_GetShiftState done [12:05:58]req_shift_opened done [12:05:58]requested_item shift.open_date is exist - process it [12:05:58]req_shift_open_date [12:05:58]req_shift_open_date done [12:05:58]produce_requested_data done [12:05:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82556,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:05:58]process_action_free close_receipt [12:05:58]json_value_free [12:05:58]json_value_free done [12:05:58]process_json_proto returns [12:05:58]Send response to host [12:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82556,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:05:58]free response buf [12:05:58]execute_script done [12:05:58]execute_script returns [12:05:58]free content buf [12:05:58]Sock 7.Close socket [12:05:58]Sock 7.Thread stoped [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:16]recv_with_timeout no data received [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]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:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]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:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:14]accept exits with 9 [12:24:14]New connection [12:24:14]New thread 3066887524 created [12:24:14]Thread 3066744164 joined [12:24:14]Waiting for new connection... [12:24:14] Sock 9.Parse request [12:24:14]Sock 9.Check first char [12:24:14]Sock 9.First char is OK [12:24:14]request: POST /json_proto HTTP/1.0 [12:24:14]Method: POST [12:24:14]URL: /json_proto [12:24:14]Method is POST - this is cgi request [12:24:14]url: /json_proto [12:24:14]query_string will be loaded in cgi processing [12:24:14]execute_cgi json_proto POST (null) [12:24:14]execute_cgi path=json_proto method=POST [12:24:14]POST find Content-Length [12:24:14]Host: 172.17.44.67:8080 [12:24:14]Content-Length: 677 [12:24:14]Content-Type: application/json [12:24:14] [12:24:14]POST finish read [12:24:14]Found Content-Length = 677 [12:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:24:14]execute_script... [12:24: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 : (1)919046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:24:14]POST & json_proto [12:24:14]process_json_proto [12:24:14]json parsed OK: [12:24:14]protocol is kg_v1.0 [12:24:14]action value=close_receipt [12:24:14]process_action close_receipt [12:24:14]cmd_close_receipt [12:24:14]MH_GetDate [12:24:14]Write to MH i2c: F0 00 00 97 03 89 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 09 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 09 00 97 03 00 EF A4 13 67 F1 C7 6B 64 26 [12:24:14]GetLastDocTimeStamp 1729339554 [12:24:14]current date 1729340655 [12:24:14]FM_GetShiftState [12:24:14]SAM_PROTO_GetShiftState [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 13 01 00 [12:24:14]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 1A [12:24:15]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_GetShiftState done [12:24:15]FM_GetShiftState done [12:24:15]opened in 1729298811 [12:24:15]opened+sec_in_day 1729385211 [12:24:15]quantity*price = 50010 [12:24:15]sum+1 = 50012 [12:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 54 19.10.2024 12:24 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82557 ФПД: 196291332900351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122415&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82557&fm=196291332900351&tin=02508201610067®Number=0000000000091680&sum=50000 [12:24:16]StoreToDocumentArchive [12:24:16]shift 527 fd 82557 [12:24:16]save to /storage/0527/doc_00082557 [12:24:16]save last doc name /storage/0527/doc_00082557 to /storage/kkm_last_doc_name [12:24:16]save OK [12:24:16]Clear old archive folders... [12:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:16]tlvbuf is 005A62D0 [12:24:16]SAM_PROTO_ClearQueue [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 09 00 00 [12:24:16]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_ClearQueue done [12:24:16]KKMCreateOFDPacket [12:24:16]OFDProtocolAddRootSTLVToBuf [12:24:16]FM_MakeSignedData [12:24:16]FM_MakeSignedData [12:24:16]SAM_PROTO_SignData [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 01 02 [12:24:16]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=255 [12:24:16]MH_SAM_APDU [12:24:16]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 36 00 00 00 F4 03 04 00 EF A4 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 42 01 00 35 04 06 00 B2 [12:24:16]Write to MH i2c: E2 02 01 A7 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 36 00 00 00 F4 03 04 00 EF A4 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 42 01 00 35 04 06 00 B2 00 00 4D [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=10 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 02 02 05 86 A3 2B 85 FF [12:24:16]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 86 A3 2B 85 FF 00 00 07 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 03 02 [12:24:16]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0B 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0B 00 A9 03 00 42 D0 8A 66 C7 F3 F3 A5 90 00 7C [12:24:16]RAPDU: 42 D0 8A 66 C7 F3 F3 A5 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_SignData done [12:24:16]FM_MakeSignedData done [12:24:16]CreateOFDProtocolMessage [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 11 00 00 [12:24:16]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [12:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:24:16]wFMCommunicate OK [12:24:16]CreateOFDProtocolMessage done [12:24:16]OFDSenderStorePacket 82557 [12:24:16]StoreOFDPacket docnum=82557 [12:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AC 67 07 01 0C A6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 36 00 00 00 F4 03 04 00 EF A4 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 42 01 00 35 04 06 00 B2 86 A3 2B 85 FF 42 D0 8A 66 C7 F3 F3 A5 [12:24:16]CheckFolder [12:24:16]dirname=/storage/ofd_packets [12:24:16]CheckFolder done [12:24:16]ProducePacketName [12:24:16]name=ofd_packets/00082557 [12:24:16]NVStorageSaveData ofd_packets/00082557 [12:24:16]File name is /storage/ofd_packets/00082557 [12:24:16]Write 301 bytes [12:24:16]NVStorageSaveData done [12:24:16]OFDSenderStorePacket done [12:24:16]KKMCreateOFDPacket done [12:24:16]NVStorageSaveData kkm_last_timestamp [12:24:16]File name is /storage/kkm_last_timestamp [12:24:16]Write 4 bytes [12:24:16]NVStorageSaveData done [12:24:16]ExternCall_PrintAddStr [12:24:16]wPrintStart [12:24:16]Write to MH i2c: 01 00 00 AB 03 AE [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [12:24:16]RasterBufferAndPrint [12:24:16]line Счет N : (1)919046 [12:24:16]line ИНН: 02508201610067 [12:24:16]line Контрольно-Кассовый Чек [12:24:16]line ПРОДАЖА [12:24:16]line ТРК (МРК, ГНК) : 12 [12:24:16]line Товар: 2710124500 [12:24:16]line Аи-95-К-5 [12:24:16]line 6.740 * 74.20 [12:24:16]line = 500.11 [12:24:16]line НДС 12% НСП 1% [12:24:16]line > о реализуемом товаре [12:24:16]line ОКРУГЛЕНИЕ: -0.11 [12:24:16]line ИТОГО: 500.00 [12:24:16]line Внесено: 500.00 [12:24:16]line СДАЧА: 0.00 [12:24:16]line НСП 1% : 4.43 [12:24:16]line НДС 12% : 53.11 [12:24:16]line Наличными: 500.00 [12:24:16]line Безнал.: 0.00 [12:24:16]line Место: АЗС № 114 "Партнер Нефть" [12:24:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:24:16]line СНО: Общий режим [12:24:16]line Чек 54 19.10.2024 12:24 [12:24:16]line Смена: 527 ФФД: 1.0 [12:24:16]line ЗНМ: 0300000086 [12:24:16]line РНМ: 0000000000091680 [12:24:16]line Версия ККМ: 001 [12:24:16]line ФМ: 0000000000871843 [12:24:16]line ФД: 82557 [12:24:16]line ФПД: 196291332900351 [12:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122415&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82557&fm=196291332900351&tin=02508201610067®Number=0000000000091680&sum=50000 [12:24:17]OFD Sender: Processing packet 82557 [packets to send 254, broken 253] [12:24:17]ProducePacketName [12:24:17]name=ofd_packets/00082557 [12:24:17]OFD Sender: To server: pG, [12:24:17]CommunicateWithHost lk.salyk.kg:30040 [12:24:17]ConnectInit lk.salyk.kg [12:24:17]written 0, free lines is 4095 [12:24:17]Write to MH i2c: 01 00 00 D6 03 D9 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 07 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 D7 0C C3 [12:24:17]RasterBufferAndPrint [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]written 0, free lines is 3294 [12:24:17]MH_Cut [12:24:17]Write to MH i2c: D1 01 00 DD 03 01 B2 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 01 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 01 00 DD 03 00 B1 [12:24:17]Write to MH i2c: 01 00 00 DE 03 E1 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Connected sock=10 [12:24:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AC 67 07 01 0C A6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 BF 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 36 00 00 00 F4 03 04 00 EF A4 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 42 01 00 35 04 06 00 B2 86 A3 2B 85 FF 42 D0 8A 66 C7 F3 F3 A5 [12:24:18]*** Cut start [12:24:18]*** Partial cut [12:24:18]*** CUTSNS_PIN = 1 [12:24:18]*** CUTSNS_PIN = 0 [12:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2D AD 47 00 EA 30 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 31 38 34 33 10 04 04 00 7D 42 01 00 F4 03 04 00 27 4A 13 67 B6 04 01 00 00 E1 4E 72 17 11 22 6B 76 [12:24:18]CommunicateWithHost err = 0 [12:24:18]CheckOFDResponse [12:24:18]1017 (14) - 77093643461234 [12:24:18]1041 (16) - 0000000000871843 [12:24:18]1040 (4) - 82557 [12:24:18]1012 (4) - 19.10.2024 05:56 [12:24:18]1206 (1) - 0 [12:24:18]OFD Sender: Remove packet 82557 [12:24:18]ProducePacketName [12:24:18]name=ofd_packets/00082557 [12:24:18]NVStorageDeleteData [12:24:18]*** Brake cut motor [12:24:18]Read from MH i2c: 01 [12:24:18]MH_I2C_Read... [12:24:18]*** Stop cut motor [12:24:18]*** Cut end [12:24:18]Read from MH i2c: 01 07 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [12:24:18]process_action close_receipt done [12:24:18]requested_data is exist [12:24:18]produce_requested_data [12:24:18]requested_item fm.sn is exist - process it [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 11 00 00 [12:24:18]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 17 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [12:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:24:18]wFMCommunicate OK [12:24:18]requested_item fd.num is exist - process it [12:24:18]SAM_PROTO_GetFieldsCounters [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 13 00 00 [12:24:18]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:19]OFD Sender: No OFD packet to send [12:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 62 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 62 00 E0 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7D 42 01 00 0E 04 04 00 0F 02 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 F1 [12:24: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7D 42 01 00 0E 04 04 00 0F 02 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:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetFieldsCounters done [12:24:19]requested_item shift.num is exist - process it [12:24:19]requested_item shift.opened is exist - process it [12:24:19]req_shift_opened [12:24:19]FM_GetShiftState [12:24:19]SAM_PROTO_GetShiftState [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 13 01 00 [12:24:19]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 63 [12:24:19]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetShiftState done [12:24:19]FM_GetShiftState done [12:24:19]req_shift_opened done [12:24:19]requested_item shift.open_date is exist - process it [12:24:19]req_shift_open_date [12:24:19]req_shift_open_date done [12:24:19]produce_requested_data done [12:24:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82557,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:24:19]process_action_free close_receipt [12:24:19]json_value_free [12:24:19]json_value_free done [12:24:19]process_json_proto returns [12:24:19]Send response to host [12:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82557,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:24:19]free response buf [12:24:19]execute_script done [12:24:19]execute_script returns [12:24:19]free content buf [12:24:19]Sock 9.Close socket [12:24:19]Sock 9.Thread stoped [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:39]accept exits with 7 [12:24:39]New connection [12:24:39]New thread 3066744164 created [12:24:39]Thread 3066887524 joined [12:24:39]Waiting for new connection... [12:24:39] Sock 7.Parse request [12:24:39]Sock 7.Check first char [12:24:39]Sock 7.First char is OK [12:24:39]request: POST /json_proto HTTP/1.0 [12:24:39]Method: POST [12:24:39]URL: /json_proto [12:24:39]Method is POST - this is cgi request [12:24:39]url: /json_proto [12:24:39]query_string will be loaded in cgi processing [12:24:39]execute_cgi json_proto POST (null) [12:24:39]execute_cgi path=json_proto method=POST [12:24:39]POST find Content-Length [12:24:39]Host: 172.17.44.67:8080 [12:24:39]Content-Length: 806 [12:24:39]Content-Type: application/json [12:24:39] [12:24:39]POST finish read [12:24:39]Found Content-Length = 806 [12:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203027", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]execute_script... [12:24: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 : (1)919045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203027", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:39]POST & json_proto [12:24:39]process_json_proto [12:24:39]json parsed OK: [12:24:39]protocol is kg_v1.0 [12:24:39]action value=close_receipt [12:24:39]process_action close_receipt [12:24:39]cmd_close_receipt [12:24:39]MH_GetDate [12:24:39]Write to MH i2c: F0 00 00 E2 03 D4 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: F0 09 00 E2 03 00 08 A5 13 67 F1 C7 6B 64 8B [12:24:39]GetLastDocTimeStamp 1729340655 [12:24:39]current date 1729340680 [12:24:39]FM_GetShiftState [12:24:39]SAM_PROTO_GetShiftState [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 13 01 00 [12:24:39]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 65 [12:24:39]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:24:39]wFMCommunicate OK [12:24:39]SAM_PROTO_GetShiftState done [12:24:39]FM_GetShiftState done [12:24:39]opened in 1729298811 [12:24:39]opened+sec_in_day 1729385211 [12:24:39]quantity*price = 0 [12:24:39]sum+1 = 1 [12:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 55 19.10.2024 12:24 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203027 ФМ: 0000000000871843 ФД: 82558 ФПД: 98091697445370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122440&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82558&fm=98091697445370&tin=02508201610067®Number=0000000000091680&sum=0 [12:24:40]StoreToDocumentArchive [12:24:40]shift 527 fd 82558 [12:24:40]save to /storage/0527/doc_00082558 [12:24:40]save last doc name /storage/0527/doc_00082558 to /storage/kkm_last_doc_name [12:24:40]save OK [12:24:40]Clear old archive folders... [12:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:24:40]tlvbuf is 0054FB50 [12:24:40]SAM_PROTO_ClearQueue [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 09 00 00 [12:24:40]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_ClearQueue done [12:24:40]KKMCreateOFDPacket [12:24:40]OFDProtocolAddRootSTLVToBuf [12:24:40]FM_MakeSignedData [12:24:40]FM_MakeSignedData [12:24:40]SAM_PROTO_SignData [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 01 02 [12:24:40]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=255 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 42 01 [12:24:40]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 42 01 00 00 77 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=16 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 59 36 C0 C8 19 FA [12:24:40]Write to MH i2c: E2 13 00 F3 03 80 0D 02 02 0B 00 00 35 04 06 00 59 36 C0 C8 19 FA 00 00 EF [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 03 02 [12:24:40]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0B 00 F4 03 00 7B 2C F6 5A 12 C7 57 1B 90 00 B5 [12:24:41]RAPDU: 7B 2C F6 5A 12 C7 57 1B 90 00 [12:24:41]wFMCommunicate OK [12:24:41]SAM_PROTO_SignData done [12:24:41]FM_MakeSignedData done [12:24:41]CreateOFDProtocolMessage [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 11 00 00 [12:24:41]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [12:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:24:41]wFMCommunicate OK [12:24:41]CreateOFDProtocolMessage done [12:24:41]OFDSenderStorePacket 82558 [12:24:41]StoreOFDPacket docnum=82558 [12:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 96 1D 0D 01 DE 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 42 01 00 35 04 06 00 59 36 C0 C8 19 FA 7B 2C F6 5A 12 C7 57 1B [12:24:41]CheckFolder [12:24:41]dirname=/storage/ofd_packets [12:24:41]CheckFolder done [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00082558 [12:24:41]NVStorageSaveData ofd_packets/00082558 [12:24:41]File name is /storage/ofd_packets/00082558 [12:24:41]Write 307 bytes [12:24:41]NVStorageSaveData done [12:24:41]OFDSenderStorePacket done [12:24:41]KKMCreateOFDPacket done [12:24:41]NVStorageSaveData kkm_last_timestamp [12:24:41]File name is /storage/kkm_last_timestamp [12:24:41]Write 4 bytes [12:24:41]NVStorageSaveData done [12:24:41]ExternCall_PrintAddStr [12:24:41]wPrintStart [12:24:41]Write to MH i2c: 01 00 00 F6 03 F9 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [12:24:41]RasterBufferAndPrint [12:24:41]line Счет N : (1)919045 [12:24:41]line ИНН: 02508201610067 [12:24:41]line Контрольно-Кассовый Чек [12:24:41]line ПРОДАЖА [12:24:41]line ТРК (МРК, ГНК) : 21 [12:24:41]line Товар: 2710194800 [12:24:41]line D-Energy ДТ-К-2 [12:24:41]line 30.000 * 0.00 [12:24:41]line = 0.00 [12:24:41]line НДС 12% НСП 1% [12:24:41]line > о реализуемом товаре [12:24:41]line ИТОГО: 0.00 [12:24:41]line НСП 1% : 0.00 [12:24:41]line НДС 12% : 0.00 [12:24:41]line Наличными: 0.00 [12:24:41]line Безнал.: 0.00 [12:24:41]line Место: АЗС № 114 "Партнер Нефть" [12:24:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:24:41]line СНО: Общий режим [12:24:41]line Чек 55 19.10.2024 12:24 [12:24:41]line Смена: 527 ФФД: 1.0 [12:24:41]line ЗНМ: 0300000086 [12:24:41]line РНМ: 0000000000091680 [12:24:41]line Версия ККМ: 001 [12:24:41]line Талоны: Топливные Талоны [12:24:41]line 2203027 [12:24:41]line ФМ: 0000000000871843 [12:24:41]line ФД: 82558 [12:24:41]line ФПД: 98091697445370 [12:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122440&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82558&fm=98091697445370&tin=02508201610067®Number=0000000000091680&sum=0 [12:24:41]OFD Sender: Processing packet 82558 [packets to send 254, broken 253] [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00082558 [12:24:41]OFD Sender: To server: pG, [12:24:41]CommunicateWithHost lk.salyk.kg:30040 [12:24:41]ConnectInit lk.salyk.kg [12:24:41]written 0, free lines is 4095 [12:24:41]Write to MH i2c: 01 00 00 20 04 24 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FE 0C 35 [12:24:41]RasterBufferAndPrint [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]written 0, free lines is 3332 [12:24:41]MH_Cut [12:24:41]Write to MH i2c: D1 01 00 27 04 01 FD [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 01 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 01 00 27 04 00 FC [12:24:41]Write to MH i2c: 01 00 00 28 04 2C [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:42]Connected sock=10 [12:24:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 96 1D 0D 01 DE 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 08 A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 42 01 00 35 04 06 00 59 36 C0 C8 19 FA 7B 2C F6 5A 12 C7 57 1B [12:24:42]*** Cut start [12:24:42]*** Partial cut [12:24:42]*** CUTSNS_PIN = 1 [12:24:42]*** CUTSNS_PIN = 0 [12:24:42]*** Brake cut motor [12:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5B E4 47 00 7F 38 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 31 38 34 33 10 04 04 00 7E 42 01 00 F4 03 04 00 3F 4A 13 67 B6 04 01 00 00 82 59 55 49 EC 5D 01 5E [12:24:43]CommunicateWithHost err = 0 [12:24:43]CheckOFDResponse [12:24:43]1017 (14) - 77093643461234 [12:24:43]1041 (16) - 0000000000871843 [12:24:43]1040 (4) - 82558 [12:24:43]1012 (4) - 19.10.2024 05:57 [12:24:43]1206 (1) - 0 [12:24:43]OFD Sender: Remove packet 82558 [12:24:43]ProducePacketName [12:24:43]name=ofd_packets/00082558 [12:24:43]NVStorageDeleteData [12:24:43]Read from MH i2c: 01 [12:24:43]MH_I2C_Read... [12:24:43]*** Stop cut motor [12:24:43]*** Cut end [12:24:43]Read from MH i2c: 01 07 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [12:24:43]process_action close_receipt done [12:24:43]requested_data is exist [12:24:43]produce_requested_data [12:24:43]requested_item fm.sn is exist - process it [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 11 00 00 [12:24:43]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F9 [12:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:24:43]wFMCommunicate OK [12:24:43]requested_item fd.num is exist - process it [12:24:43]SAM_PROTO_GetFieldsCounters [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 00 00 [12:24:43]Write to MH i2c: E2 08 00 2A 04 80 13 00 00 00 00 00 00 AA [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 2A 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7E 42 01 00 0E 04 04 00 0F 02 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 40 [12:24: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7E 42 01 00 0E 04 04 00 0F 02 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:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetFieldsCounters done [12:24:43]requested_item shift.num is exist - process it [12:24:43]requested_item shift.opened is exist - process it [12:24:43]req_shift_opened [12:24:43]FM_GetShiftState [12:24:43]SAM_PROTO_GetShiftState [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 01 00 [12:24:43]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 AE [12:24:43]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetShiftState done [12:24:43]FM_GetShiftState done [12:24:43]req_shift_opened done [12:24:43]requested_item shift.open_date is exist - process it [12:24:43]req_shift_open_date [12:24:43]req_shift_open_date done [12:24:43]produce_requested_data done [12:24:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82558,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:24:43]process_action_free close_receipt [12:24:43]json_value_free [12:24:43]json_value_free done [12:24:43]process_json_proto returns [12:24:43]Send response to host [12:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82558,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:24:43]free response buf [12:24:43]execute_script done [12:24:43]execute_script returns [12:24:43]free content buf [12:24:43]Sock 7.Close socket [12:24:43]Sock 7.Thread stoped [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:49]recv_with_timeout no data received [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:00]recv_with_timeout no data received [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:39]accept exits with 9 [12:26:39]New connection [12:26:39]New thread 3066887524 created [12:26:39]Thread 3066744164 joined [12:26:39]Waiting for new connection... [12:26:39] Sock 9.Parse request [12:26:39]Sock 9.Check first char [12:26:39]Sock 9.First char is OK [12:26:39]request: POST /json_proto HTTP/1.0 [12:26:39]Method: POST [12:26:39]URL: /json_proto [12:26:39]Method is POST - this is cgi request [12:26:39]url: /json_proto [12:26:39]query_string will be loaded in cgi processing [12:26:39]execute_cgi json_proto POST (null) [12:26:39]execute_cgi path=json_proto method=POST [12:26:39]POST find Content-Length [12:26:39]Host: 172.17.44.67:8080 [12:26:39]Content-Length: 775 [12:26:39]Content-Type: application/json [12:26:39] [12:26:39]POST finish read [12:26:39]Found Content-Length = 775 [12:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:39]execute_script... [12:26: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 : (1)919047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:39]POST & json_proto [12:26:39]process_json_proto [12:26:39]json parsed OK: [12:26:39]protocol is kg_v1.0 [12:26:39]action value=close_receipt [12:26:39]process_action close_receipt [12:26:39]cmd_close_receipt [12:26:39]MH_GetDate [12:26:39]Write to MH i2c: F0 00 00 2C 04 1F [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 09 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 09 00 2C 04 00 7F A5 13 67 F1 C7 6B 64 4D [12:26:39]GetLastDocTimeStamp 1729340680 [12:26:39]current date 1729340799 [12:26:39]FM_GetShiftState [12:26:39]SAM_PROTO_GetShiftState [12:26:39]wFMCommunicate request_size=4 [12:26:39]MH_SAM_APDU [12:26:39]CAPDU: 80 13 01 00 [12:26:39]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:39]Read from MH i2c: E2 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: E2 0E 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 B0 [12:26:39]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:26:39]wFMCommunicate OK [12:26:39]SAM_PROTO_GetShiftState done [12:26:39]FM_GetShiftState done [12:26:39]opened in 1729298811 [12:26:39]opened+sec_in_day 1729385211 [12:26:39]quantity*price = 100051 [12:26:39]sum+1 = 100052 [12:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 56 19.10.2024 12:26 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82559 ФПД: 152691419626434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122639&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82559&fm=152691419626434&tin=02508201610067®Number=0000000000091680&sum=100051 [12:26:40]StoreToDocumentArchive [12:26:40]shift 527 fd 82559 [12:26:40]save to /storage/0527/doc_00082559 [12:26:40]save last doc name /storage/0527/doc_00082559 to /storage/kkm_last_doc_name [12:26:40]save OK [12:26:40]Clear old archive folders... [12:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:26:40]tlvbuf is 005A5700 [12:26:40]SAM_PROTO_ClearQueue [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 09 00 00 [12:26:40]Write to MH i2c: E2 08 00 3A 04 80 09 00 00 00 00 00 00 B0 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]SAM_PROTO_ClearQueue done [12:26:40]KKMCreateOFDPacket [12:26:40]OFDProtocolAddRootSTLVToBuf [12:26:40]FM_MakeSignedData [12:26:40]FM_MakeSignedData [12:26:40]SAM_PROTO_SignData [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 01 02 [12:26:40]Write to MH i2c: E2 08 00 3B 04 80 0D 01 02 00 00 00 00 B8 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=255 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 42 01 [12:26:40]Write to MH i2c: E2 02 01 3C 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 42 01 00 00 DE [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=16 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8A DF 3D D3 BB C2 [12:26:40]Write to MH i2c: E2 13 00 3D 04 80 0D 02 02 0B 00 00 35 04 06 00 8A DF 3D D3 BB C2 00 00 06 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 03 02 [12:26:40]Write to MH i2c: E2 08 00 3E 04 80 0D 03 02 00 00 00 00 BD [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 0B 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 0B 00 3E 04 00 F4 5F A4 8C FC 86 91 D5 90 00 29 [12:26:40]RAPDU: F4 5F A4 8C FC 86 91 D5 90 00 [12:26:40]wFMCommunicate OK [12:26:40]SAM_PROTO_SignData done [12:26:40]FM_MakeSignedData done [12:26:40]CreateOFDProtocolMessage [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 11 00 00 [12:26:40]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 17 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [12:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:26:40]wFMCommunicate OK [12:26:40]CreateOFDProtocolMessage done [12:26:40]OFDSenderStorePacket 82559 [12:26:40]StoreOFDPacket docnum=82559 [12:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 C4 01 0D 01 32 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 42 01 00 35 04 06 00 8A DF 3D D3 BB C2 F4 5F A4 8C FC 86 91 D5 [12:26:40]CheckFolder [12:26:40]dirname=/storage/ofd_packets [12:26:40]CheckFolder done [12:26:40]ProducePacketName [12:26:40]name=ofd_packets/00082559 [12:26:40]NVStorageSaveData ofd_packets/00082559 [12:26:40]File name is /storage/ofd_packets/00082559 [12:26:40]Write 307 bytes [12:26:40]NVStorageSaveData done [12:26:40]OFDSenderStorePacket done [12:26:40]KKMCreateOFDPacket done [12:26:40]NVStorageSaveData kkm_last_timestamp [12:26:40]File name is /storage/kkm_last_timestamp [12:26:40]Write 4 bytes [12:26:40]NVStorageSaveData done [12:26:40]ExternCall_PrintAddStr [12:26:40]wPrintStart [12:26:40]Write to MH i2c: 01 00 00 40 04 44 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: 01 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: 01 07 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [12:26:40]RasterBufferAndPrint [12:26:40]line Счет N : (1)919047 [12:26:40]line ИНН: 02508201610067 [12:26:40]line Контрольно-Кассовый Чек [12:26:40]line ПРОДАЖА [12:26:40]line ТРК (МРК, ГНК) : 21 [12:26:40]line Товар: 2710194800 [12:26:40]line D-Energy ДТ-К-2 [12:26:40]line 12.960 * 77.20 [12:26:40]line = 1000.51 [12:26:40]line НДС 12% НСП 1% [12:26:40]line > о реализуемом товаре [12:26:40]line ИТОГО: 1000.51 [12:26:40]line НСП 1% : 8.85 [12:26:40]line НДС 12% : 106.25 [12:26:40]line Наличными: 0.00 [12:26:40]line Безнал.: 1000.51 [12:26:40]line Место: АЗС № 114 "Партнер Нефть" [12:26:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:26:40]line СНО: Общий режим [12:26:40]line Чек 56 19.10.2024 12:26 [12:26:40]line Смена: 527 ФФД: 1.0 [12:26:40]line ЗНМ: 0300000086 [12:26:40]line РНМ: 0000000000091680 [12:26:40]line Версия ККМ: 001 [12:26:40]line Платежная система: Mbank [12:26:40]line ФМ: 0000000000871843 [12:26:40]line ФД: 82559 [12:26:40]line ФПД: 152691419626434 [12:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122639&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82559&fm=152691419626434&tin=02508201610067®Number=0000000000091680&sum=100051 [12:26:41]OFD Sender: Processing packet 82559 [packets to send 254, broken 253] [12:26:41]ProducePacketName [12:26:41]name=ofd_packets/00082559 [12:26:41]OFD Sender: To server: pG, [12:26:41]CommunicateWithHost lk.salyk.kg:30040 [12:26:41]ConnectInit lk.salyk.kg [12:26:41]written 0, free lines is 4095 [12:26:41]Connected sock=7 [12:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 C4 01 0D 01 32 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 7F A5 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 42 01 00 35 04 06 00 8A DF 3D D3 BB C2 F4 5F A4 8C FC 86 91 D5 [12:26:41]Write to MH i2c: 01 00 00 69 04 6D [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 12 0D 93 [12:26:41]RasterBufferAndPrint [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]written 0, free lines is 3353 [12:26:41]MH_Cut [12:26:41]Write to MH i2c: D1 01 00 70 04 01 46 [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 01 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 01 00 70 04 00 45 [12:26:41]Write to MH i2c: 01 00 00 71 04 75 [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 51 56 47 00 6E 4B 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 31 38 34 33 10 04 04 00 7F 42 01 00 F4 03 04 00 B6 4A 13 67 B6 04 01 00 00 50 37 38 B8 03 1A 05 9D [12:26:41]CommunicateWithHost err = 0 [12:26:41]CheckOFDResponse [12:26:41]1017 (14) - 77093643461234 [12:26:41]1041 (16) - 0000000000871843 [12:26:41]1040 (4) - 82559 [12:26:41]1012 (4) - 19.10.2024 05:59 [12:26:41]1206 (1) - 0 [12:26:41]OFD Sender: Remove packet 82559 [12:26:41]ProducePacketName [12:26:41]name=ofd_packets/00082559 [12:26:41]NVStorageDeleteData [12:26:42]*** Cut start [12:26:42]*** Partial cut [12:26:42]*** CUTSNS_PIN = 1 [12:26:42]OFD Sender: No OFD packet to send [12:26:42]*** CUTSNS_PIN = 0 [12:26:42]*** Brake cut motor [12:26:42]Read from MH i2c: 01 [12:26:42]MH_I2C_Read... [12:26:42]*** Stop cut motor [12:26:42]Read from MH i2c: 01 07 00 [12:26:42]MH_I2C_Read... [12:26:42]*** Cut end [12:26:42]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [12:26:42]process_action close_receipt done [12:26:42]requested_data is exist [12:26:42]produce_requested_data [12:26:42]requested_item fm.sn is exist - process it [12:26:42]wFMCommunicate request_size=4 [12:26:42]MH_SAM_APDU [12:26:42]CAPDU: 80 11 00 00 [12:26:42]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [12:26:42]Write i2c OK [12:26:42]MH_I2C_Read... [12:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:42]Read from MH i2c: E2 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 17 00 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [12:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:26:42]wFMCommunicate OK [12:26:42]requested_item fd.num is exist - process it [12:26:42]SAM_PROTO_GetFieldsCounters [12:26:42]wFMCommunicate request_size=4 [12:26:42]MH_SAM_APDU [12:26:42]CAPDU: 80 13 00 00 [12:26:42]Write to MH i2c: E2 08 00 73 04 80 13 00 00 00 00 00 00 F3 [12:26:42]Write i2c OK [12:26:42]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 62 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 62 00 73 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7F 42 01 00 0E 04 04 00 0F 02 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 8D [12:26: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7F 42 01 00 0E 04 04 00 0F 02 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:26:43]wFMCommunicate OK [12:26:43]SAM_PROTO_GetFieldsCounters done [12:26:43]requested_item shift.num is exist - process it [12:26:43]requested_item shift.opened is exist - process it [12:26:43]req_shift_opened [12:26:43]FM_GetShiftState [12:26:43]SAM_PROTO_GetShiftState [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 13 01 00 [12:26:43]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:43]Read from MH i2c: E2 0E 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F7 [12:26:43]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:26:43]wFMCommunicate OK [12:26:43]SAM_PROTO_GetShiftState done [12:26:43]FM_GetShiftState done [12:26:43]req_shift_opened done [12:26:43]requested_item shift.open_date is exist - process it [12:26:43]req_shift_open_date [12:26:43]req_shift_open_date done [12:26:43]produce_requested_data done [12:26:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82559,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:26:43]process_action_free close_receipt [12:26:43]json_value_free [12:26:43]json_value_free done [12:26:43]process_json_proto returns [12:26:43]Send response to host [12:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82559,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:26:43]free response buf [12:26:43]execute_script done [12:26:43]execute_script returns [12:26:43]free content buf [12:26:43]Sock 9.Close socket [12:26:43]Sock 9.Thread stoped [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:53]accept exits with 10 [12:28:53]New connection [12:28:53]New thread 3066744164 created [12:28:53]Thread 3066887524 joined [12:28:53]Waiting for new connection... [12:28:53] Sock 10.Parse request [12:28:53]Sock 10.Check first char [12:28:53]Sock 10.First char is OK [12:28:53]request: POST /json_proto HTTP/1.0 [12:28:53]Method: POST [12:28:53]URL: /json_proto [12:28:53]Method is POST - this is cgi request [12:28:53]url: /json_proto [12:28:53]query_string will be loaded in cgi processing [12:28:53]execute_cgi json_proto POST (null) [12:28:53]execute_cgi path=json_proto method=POST [12:28:53]POST find Content-Length [12:28:53]Host: 172.17.44.67:8080 [12:28:53]Content-Length: 677 [12:28:53]Content-Type: application/json [12:28:53] [12:28:53]POST finish read [12:28:53]Found Content-Length = 677 [12:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:28:53]execute_script... [12:28: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 : (1)919048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:28:53]POST & json_proto [12:28:53]process_json_proto [12:28:53]json parsed OK: [12:28:53]protocol is kg_v1.0 [12:28:53]action value=close_receipt [12:28:53]process_action close_receipt [12:28:53]cmd_close_receipt [12:28:53]MH_GetDate [12:28:53]Write to MH i2c: F0 00 00 75 04 68 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: F0 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: F0 09 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: F0 09 00 75 04 00 06 A6 13 67 F1 C7 6B 64 1E [12:28:53]GetLastDocTimeStamp 1729340799 [12:28:53]current date 1729340934 [12:28:53]FM_GetShiftState [12:28:53]SAM_PROTO_GetShiftState [12:28:53]wFMCommunicate request_size=4 [12:28:53]MH_SAM_APDU [12:28:53]CAPDU: 80 13 01 00 [12:28:53]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [12:28:53]Write i2c OK [12:28:53]MH_I2C_Read... [12:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:53]Read from MH i2c: E2 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 0E 00 [12:28:53]MH_I2C_Read... [12:28:53]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 F9 [12:28:53]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:28:53]wFMCommunicate OK [12:28:53]SAM_PROTO_GetShiftState done [12:28:53]FM_GetShiftState done [12:28:53]opened in 1729298811 [12:28:53]opened+sec_in_day 1729385211 [12:28:53]quantity*price = 50041 [12:28:53]sum+1 = 50042 [12:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 57 19.10.2024 12:28 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82560 ФПД: 49740842973944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122854&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82560&fm=49740842973944&tin=02508201610067®Number=0000000000091680&sum=50000 [12:28:55]StoreToDocumentArchive [12:28:55]shift 527 fd 82560 [12:28:55]save to /storage/0527/doc_00082560 [12:28:55]save last doc name /storage/0527/doc_00082560 to /storage/kkm_last_doc_name [12:28:55]save OK [12:28:55]Clear old archive folders... [12:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:55]tlvbuf is 0059ED30 [12:28:55]SAM_PROTO_ClearQueue [12:28:55]wFMCommunicate request_size=4 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 09 00 00 [12:28:55]Write to MH i2c: E2 08 00 83 04 80 09 00 00 00 00 00 00 F9 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [12:28:55]RAPDU: 90 00 [12:28:55]wFMCommunicate OK [12:28:55]SAM_PROTO_ClearQueue done [12:28:55]KKMCreateOFDPacket [12:28:55]OFDProtocolAddRootSTLVToBuf [12:28:55]FM_MakeSignedData [12:28:55]FM_MakeSignedData [12:28:55]SAM_PROTO_SignData [12:28:55]wFMCommunicate request_size=4 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 0D 01 02 [12:28:55]Write to MH i2c: E2 08 00 84 04 80 0D 01 02 00 00 00 00 01 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [12:28:55]RAPDU: 90 00 [12:28:55]wFMCommunicate OK [12:28:55]wFMCommunicate request_size=255 [12:28:55]MH_SAM_APDU [12:28:55]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 06 A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 42 01 00 35 04 06 00 2D [12:28:55]Write to MH i2c: E2 02 01 85 04 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 06 A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 42 01 00 35 04 06 00 2D 00 00 ED [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [12:28:55]RAPDU: 90 00 [12:28:55]wFMCommunicate OK [12:28:55]wFMCommunicate request_size=10 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 0D 02 02 05 3D 31 46 BA F8 [12:28:55]Write to MH i2c: E2 0D 00 86 04 80 0D 02 02 05 00 3D 31 46 BA F8 00 00 74 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [12:28:55]RAPDU: 90 00 [12:28:55]wFMCommunicate OK [12:28:55]wFMCommunicate request_size=4 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 0D 03 02 [12:28:55]Write to MH i2c: E2 08 00 87 04 80 0D 03 02 00 00 00 00 06 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 0B 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 0B 00 87 04 00 38 28 30 1C B9 39 76 1F 90 00 3A [12:28:55]RAPDU: 38 28 30 1C B9 39 76 1F 90 00 [12:28:55]wFMCommunicate OK [12:28:55]SAM_PROTO_SignData done [12:28:55]FM_MakeSignedData done [12:28:55]CreateOFDProtocolMessage [12:28:55]wFMCommunicate request_size=4 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 11 00 00 [12:28:55]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 17 00 [12:28:55]MH_I2C_Read... [12:28:55]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 31 38 34 33 90 00 58 [12:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:28:55]wFMCommunicate OK [12:28:55]CreateOFDProtocolMessage done [12:28:55]OFDSenderStorePacket 82560 [12:28:55]StoreOFDPacket docnum=82560 [12:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E3 A5 07 01 7F C1 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 06 A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 42 01 00 35 04 06 00 2D 3D 31 46 BA F8 38 28 30 1C B9 39 76 1F [12:28:55]CheckFolder [12:28:55]dirname=/storage/ofd_packets [12:28:55]CheckFolder done [12:28:55]ProducePacketName [12:28:55]name=ofd_packets/00082560 [12:28:55]NVStorageSaveData ofd_packets/00082560 [12:28:55]File name is /storage/ofd_packets/00082560 [12:28:55]Write 301 bytes [12:28:55]NVStorageSaveData done [12:28:55]OFDSenderStorePacket done [12:28:55]KKMCreateOFDPacket done [12:28:55]NVStorageSaveData kkm_last_timestamp [12:28:55]File name is /storage/kkm_last_timestamp [12:28:55]Write 4 bytes [12:28:55]NVStorageSaveData done [12:28:55]ExternCall_PrintAddStr [12:28:55]wPrintStart [12:28:55]Write to MH i2c: 01 00 00 89 04 8D [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 07 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [12:28:55]RasterBufferAndPrint [12:28:55]line Счет N : (1)919048 [12:28:55]line ИНН: 02508201610067 [12:28:55]line Контрольно-Кассовый Чек [12:28:55]line ПРОДАЖА [12:28:55]line ТРК (МРК, ГНК) : 22 [12:28:55]line Товар: 2710124130 [12:28:55]line Аи-92-К-4 [12:28:55]line 7.480 * 66.90 [12:28:55]line = 500.41 [12:28:55]line НДС 12% НСП 1% [12:28:55]line > о реализуемом товаре [12:28:55]line ОКРУГЛЕНИЕ: -0.41 [12:28:55]line ИТОГО: 500.00 [12:28:55]line Внесено: 500.00 [12:28:55]line СДАЧА: 0.00 [12:28:55]line НСП 1% : 4.43 [12:28:55]line НДС 12% : 53.14 [12:28:55]line Наличными: 500.00 [12:28:55]line Безнал.: 0.00 [12:28:55]line Место: АЗС № 114 "Партнер Нефть" [12:28:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:28:55]line СНО: Общий режим [12:28:55]line Чек 57 19.10.2024 12:28 [12:28:55]line Смена: 527 ФФД: 1.0 [12:28:55]line ЗНМ: 0300000086 [12:28:55]line РНМ: 0000000000091680 [12:28:55]line Версия ККМ: 001 [12:28:55]line ФМ: 0000000000871843 [12:28:55]line ФД: 82560 [12:28:55]line ФПД: 49740842973944 [12:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122854&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82560&fm=49740842973944&tin=02508201610067®Number=0000000000091680&sum=50000 [12:28:55]OFD Sender: Processing packet 82560 [packets to send 254, broken 253] [12:28:55]ProducePacketName [12:28:55]name=ofd_packets/00082560 [12:28:55]OFD Sender: To server: pG, [12:28:55]CommunicateWithHost lk.salyk.kg:30040 [12:28:55]ConnectInit lk.salyk.kg [12:28:55]written 0, free lines is 4095 [12:28:56]Connected sock=7 [12:28:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E3 A5 07 01 7F C1 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 06 A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 42 01 00 35 04 06 00 2D 3D 31 46 BA F8 38 28 30 1C B9 39 76 1F [12:28:56]Write to MH i2c: 01 00 00 B4 04 B8 [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: 01 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: 01 07 00 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 DC 0C A7 [12:28:56]RasterBufferAndPrint [12:28:56]line [12:28:56]line [12:28:56]line [12:28:56]line [12:28:56]line [12:28:56]written 0, free lines is 3298 [12:28:56]MH_Cut [12:28:56]Write to MH i2c: D1 01 00 BB 04 01 91 [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: D1 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: D1 01 00 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: D1 01 00 BB 04 00 90 [12:28:56]Write to MH i2c: 01 00 00 BC 04 C0 [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C3 7F 47 00 1B 8C 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 31 38 34 33 10 04 04 00 80 42 01 00 F4 03 04 00 3D 4B 13 67 B6 04 01 00 00 AB EA 85 DB 1C 84 CF AB [12:28:56]CommunicateWithHost err = 0 [12:28:56]CheckOFDResponse [12:28:56]1017 (14) - 77093643461234 [12:28:56]1041 (16) - 0000000000871843 [12:28:56]1040 (4) - 82560 [12:28:56]1012 (4) - 19.10.2024 06:01 [12:28:56]1206 (1) - 0 [12:28:56]OFD Sender: Remove packet 82560 [12:28:56]ProducePacketName [12:28:56]name=ofd_packets/00082560 [12:28:56]NVStorageDeleteData [12:28:57]*** Cut start [12:28:57]*** Partial cut [12:28:57]*** CUTSNS_PIN = 1 [12:28:57]OFD Sender: No OFD packet to send [12:28:57]*** CUTSNS_PIN = 0 [12:28:57]*** Brake cut motor [12:28:57]Read from MH i2c: 01 [12:28:57]MH_I2C_Read... [12:28:57]*** Stop cut motor [12:28:57]*** Cut end [12:28:57]Read from MH i2c: 01 07 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [12:28:57]process_action close_receipt done [12:28:57]requested_data is exist [12:28:57]produce_requested_data [12:28:57]requested_item fm.sn is exist - process it [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 11 00 00 [12:28:57]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8D [12:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:28:57]wFMCommunicate OK [12:28:57]requested_item fd.num is exist - process it [12:28:57]SAM_PROTO_GetFieldsCounters [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 13 00 00 [12:28:57]Write to MH i2c: E2 08 00 BE 04 80 13 00 00 00 00 00 00 3E [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 62 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 62 00 BE 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 80 42 01 00 0E 04 04 00 0F 02 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 DC [12:28: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 80 42 01 00 0E 04 04 00 0F 02 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:28:57]wFMCommunicate OK [12:28:57]SAM_PROTO_GetFieldsCounters done [12:28:57]requested_item shift.num is exist - process it [12:28:57]requested_item shift.opened is exist - process it [12:28:57]req_shift_opened [12:28:57]FM_GetShiftState [12:28:57]SAM_PROTO_GetShiftState [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 13 01 00 [12:28:57]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 42 [12:28:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetShiftState done [12:28:58]FM_GetShiftState done [12:28:58]req_shift_opened done [12:28:58]requested_item shift.open_date is exist - process it [12:28:58]req_shift_open_date [12:28:58]req_shift_open_date done [12:28:58]produce_requested_data done [12:28:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82560,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:28:58]process_action_free close_receipt [12:28:58]json_value_free [12:28:58]json_value_free done [12:28:58]process_json_proto returns [12:28:58]Send response to host [12:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82560,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:28:58]free response buf [12:28:58]execute_script done [12:28:58]execute_script returns [12:28:58]free content buf [12:28:58]Sock 10.Close socket [12:28:58]Sock 10.Thread stoped [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:22]recv_with_timeout no data received [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:33]accept exits with 9 [12:29:33]New connection [12:29:33]New thread 3066887524 created [12:29:33]Thread 3066744164 joined [12:29:33]Waiting for new connection... [12:29:33] Sock 9.Parse request [12:29:33]Sock 9.Check first char [12:29:33]Sock 9.First char is OK [12:29:33]request: POST /json_proto HTTP/1.0 [12:29:33]Method: POST [12:29:33]URL: /json_proto [12:29:33]Method is POST - this is cgi request [12:29:33]url: /json_proto [12:29:33]query_string will be loaded in cgi processing [12:29:33]execute_cgi json_proto POST (null) [12:29:33]execute_cgi path=json_proto method=POST [12:29:33]POST find Content-Length [12:29:33]Host: 172.17.44.67:8080 [12:29:33]Content-Length: 677 [12:29:33]Content-Type: application/json [12:29:33] [12:29:33]POST finish read [12:29:33]Found Content-Length = 677 [12:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:33]execute_script... [12:29: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 : (1)919049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:33]POST & json_proto [12:29:33]process_json_proto [12:29:33]json parsed OK: [12:29:33]protocol is kg_v1.0 [12:29:33]action value=close_receipt [12:29:33]process_action close_receipt [12:29:33]cmd_close_receipt [12:29:33]MH_GetDate [12:29:33]Write to MH i2c: F0 00 00 C0 04 B3 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: F0 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: F0 09 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: F0 09 00 C0 04 00 2D A6 13 67 F1 C7 6B 64 90 [12:29:33]GetLastDocTimeStamp 1729340934 [12:29:33]current date 1729340973 [12:29:33]FM_GetShiftState [12:29:33]SAM_PROTO_GetShiftState [12:29:33]wFMCommunicate request_size=4 [12:29:33]MH_SAM_APDU [12:29:33]CAPDU: 80 13 01 00 [12:29:33]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [12:29:33]Write i2c OK [12:29:33]MH_I2C_Read... [12:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:33]Read from MH i2c: E2 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0E 00 [12:29:33]MH_I2C_Read... [12:29:33]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 44 [12:29:33]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:29:33]wFMCommunicate OK [12:29:33]SAM_PROTO_GetShiftState done [12:29:33]FM_GetShiftState done [12:29:33]opened in 1729298811 [12:29:33]opened+sec_in_day 1729385211 [12:29:33]quantity*price = 30038 [12:29:33]sum+1 = 30039 [12:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 58 19.10.2024 12:29 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82561 ФПД: 193200838906277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122933&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82561&fm=193200838906277&tin=02508201610067®Number=0000000000091680&sum=30000 [12:29:34]StoreToDocumentArchive [12:29:34]shift 527 fd 82561 [12:29:34]save to /storage/0527/doc_00082561 [12:29:34]save last doc name /storage/0527/doc_00082561 to /storage/kkm_last_doc_name [12:29:34]save OK [12:29:34]Clear old archive folders... [12:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:34]tlvbuf is 0054FB40 [12:29:34]SAM_PROTO_ClearQueue [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 09 00 00 [12:29:34]Write to MH i2c: E2 08 00 CE 04 80 09 00 00 00 00 00 00 44 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_ClearQueue done [12:29:34]KKMCreateOFDPacket [12:29:34]OFDProtocolAddRootSTLVToBuf [12:29:34]FM_MakeSignedData [12:29:34]FM_MakeSignedData [12:29:34]SAM_PROTO_SignData [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 01 02 [12:29:34]Write to MH i2c: E2 08 00 CF 04 80 0D 01 02 00 00 00 00 4C [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=255 [12:29:34]MH_SAM_APDU [12:29:34]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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 3A 00 00 00 F4 03 04 00 2D A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 42 01 00 35 04 06 00 AF [12:29:34]Write to MH i2c: E2 02 01 D0 04 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 3A 00 00 00 F4 03 04 00 2D A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 42 01 00 35 04 06 00 AF 00 00 D7 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=10 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 02 02 05 B7 13 5F 91 A5 [12:29:34]Write to MH i2c: E2 0D 00 D1 04 80 0D 02 02 05 00 B7 13 5F 91 A5 00 00 B8 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 03 02 [12:29:34]Write to MH i2c: E2 08 00 D2 04 80 0D 03 02 00 00 00 00 51 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0B 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0B 00 D2 04 00 66 53 7C 3C E9 D4 A2 AF 90 00 D1 [12:29:34]RAPDU: 66 53 7C 3C E9 D4 A2 AF 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_SignData done [12:29:34]FM_MakeSignedData done [12:29:34]CreateOFDProtocolMessage [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 11 00 00 [12:29:34]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A3 [12:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:29:34]wFMCommunicate OK [12:29:34]CreateOFDProtocolMessage done [12:29:34]OFDSenderStorePacket 82561 [12:29:34]StoreOFDPacket docnum=82561 [12:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F3 C8 07 01 51 4A 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 3A 00 00 00 F4 03 04 00 2D A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 42 01 00 35 04 06 00 AF B7 13 5F 91 A5 66 53 7C 3C E9 D4 A2 AF [12:29:34]CheckFolder [12:29:34]dirname=/storage/ofd_packets [12:29:34]CheckFolder done [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00082561 [12:29:34]NVStorageSaveData ofd_packets/00082561 [12:29:34]File name is /storage/ofd_packets/00082561 [12:29:34]Write 301 bytes [12:29:34]NVStorageSaveData done [12:29:34]OFDSenderStorePacket done [12:29:34]KKMCreateOFDPacket done [12:29:34]NVStorageSaveData kkm_last_timestamp [12:29:34]File name is /storage/kkm_last_timestamp [12:29:34]Write 4 bytes [12:29:34]NVStorageSaveData done [12:29:34]ExternCall_PrintAddStr [12:29:34]wPrintStart [12:29:34]Write to MH i2c: 01 00 00 D4 04 D8 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [12:29:34]RasterBufferAndPrint [12:29:34]line Счет N : (1)919049 [12:29:34]line ИНН: 02508201610067 [12:29:34]line Контрольно-Кассовый Чек [12:29:34]line ПРОДАЖА [12:29:34]line ТРК (МРК, ГНК) : 11 [12:29:34]line Товар: 2710124130 [12:29:34]line Аи-92-К-4 [12:29:34]line 4.490 * 66.90 [12:29:34]line = 300.38 [12:29:34]line НДС 12% НСП 1% [12:29:34]line > о реализуемом товаре [12:29:34]line ОКРУГЛЕНИЕ: -0.38 [12:29:34]line ИТОГО: 300.00 [12:29:34]line Внесено: 300.00 [12:29:34]line СДАЧА: 0.00 [12:29:34]line НСП 1% : 2.66 [12:29:34]line НДС 12% : 31.90 [12:29:34]line Наличными: 300.00 [12:29:34]line Безнал.: 0.00 [12:29:34]line Место: АЗС № 114 "Партнер Нефть" [12:29:34]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:29:34]line СНО: Общий режим [12:29:34]line Чек 58 19.10.2024 12:29 [12:29:34]line Смена: 527 ФФД: 1.0 [12:29:34]line ЗНМ: 0300000086 [12:29:34]line РНМ: 0000000000091680 [12:29:34]line Версия ККМ: 001 [12:29:34]line ФМ: 0000000000871843 [12:29:34]line ФД: 82561 [12:29:34]line ФПД: 193200838906277 [12:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T122933&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82561&fm=193200838906277&tin=02508201610067®Number=0000000000091680&sum=30000 [12:29:34]written 0, free lines is 4095 [12:29:34]OFD Sender: Processing packet 82561 [packets to send 254, broken 253] [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00082561 [12:29:34]OFD Sender: To server: pG, [12:29:34]CommunicateWithHost lk.salyk.kg:30040 [12:29:34]ConnectInit lk.salyk.kg [12:29:35]Write to MH i2c: 01 00 00 FF 04 03 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 E1 0C F7 [12:29:35]RasterBufferAndPrint [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]written 0, free lines is 3303 [12:29:35]MH_Cut [12:29:35]Write to MH i2c: D1 01 00 06 05 01 DD [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 01 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 01 00 06 05 00 DC [12:29:35]Write to MH i2c: 01 00 00 07 05 0C [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Connected sock=11 [12:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F3 C8 07 01 51 4A 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 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 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 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 3A 00 00 00 F4 03 04 00 2D A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 42 01 00 35 04 06 00 AF B7 13 5F 91 A5 66 53 7C 3C E9 D4 A2 AF [12:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 63 31 47 00 D2 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 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 42 01 00 F4 03 04 00 64 4B 13 67 B6 04 01 00 00 A9 4E 43 CA 30 AE 56 71 [12:29:35]CommunicateWithHost err = 0 [12:29:35]CheckOFDResponse [12:29:35]1017 (14) - 77093643461234 [12:29:35]1041 (16) - 0000000000871843 [12:29:35]1040 (4) - 82561 [12:29:35]1012 (4) - 19.10.2024 06:02 [12:29:35]1206 (1) - 0 [12:29:35]OFD Sender: Remove packet 82561 [12:29:35]ProducePacketName [12:29:35]name=ofd_packets/00082561 [12:29:35]NVStorageDeleteData [12:29:36]*** Cut start [12:29:36]*** Partial cut [12:29:36]*** CUTSNS_PIN = 1 [12:29:36]*** CUTSNS_PIN = 0 [12:29:36]*** Brake cut motor [12:29:36]OFD Sender: No OFD packet to send [12:29:36]Read from MH i2c: 01 [12:29:36]MH_I2C_Read... [12:29:36]*** Stop cut motor [12:29:36]*** Cut end [12:29:36]Read from MH i2c: 01 07 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [12:29:36]process_action close_receipt done [12:29:36]requested_data is exist [12:29:36]produce_requested_data [12:29:36]requested_item fm.sn is exist - process it [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 11 00 00 [12:29:36]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 17 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [12:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:29:36]wFMCommunicate OK [12:29:36]requested_item fd.num is exist - process it [12:29:36]SAM_PROTO_GetFieldsCounters [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 13 00 00 [12:29:36]Write to MH i2c: E2 08 00 09 05 80 13 00 00 00 00 00 00 8A [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 09 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 81 42 01 00 0E 04 04 00 0F 02 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 2C [12:29: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 81 42 01 00 0E 04 04 00 0F 02 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:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetFieldsCounters done [12:29:36]requested_item shift.num is exist - process it [12:29:36]requested_item shift.opened is exist - process it [12:29:36]req_shift_opened [12:29:36]FM_GetShiftState [12:29:36]SAM_PROTO_GetShiftState [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 13 01 00 [12:29:36]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 8E [12:29:36]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetShiftState done [12:29:36]FM_GetShiftState done [12:29:36]req_shift_opened done [12:29:36]requested_item shift.open_date is exist - process it [12:29:36]req_shift_open_date [12:29:36]req_shift_open_date done [12:29:36]produce_requested_data done [12:29:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82561,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:29:36]process_action_free close_receipt [12:29:36]json_value_free [12:29:36]json_value_free done [12:29:36]process_json_proto returns [12:29:36]Send response to host [12:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82561,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:29:36]free response buf [12:29:36]execute_script done [12:29:36]execute_script returns [12:29:36]free content buf [12:29:36]Sock 9.Close socket [12:29:36]Sock 9.Thread stoped [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:55]accept exits with 7 [12:31:55]New connection [12:31:55]New thread 3066744164 created [12:31:55]Thread 3066887524 joined [12:31:55]Waiting for new connection... [12:31:55] Sock 7.Parse request [12:31:55]Sock 7.Check first char [12:31:55]Sock 7.First char is OK [12:31:55]request: POST /json_proto HTTP/1.0 [12:31:55]Method: POST [12:31:55]URL: /json_proto [12:31:55]Method is POST - this is cgi request [12:31:55]url: /json_proto [12:31:55]query_string will be loaded in cgi processing [12:31:55]execute_cgi json_proto POST (null) [12:31:55]execute_cgi path=json_proto method=POST [12:31:55]POST find Content-Length [12:31:55]Host: 172.17.44.67:8080 [12:31:55]Content-Length: 677 [12:31:55]Content-Type: application/json [12:31:55] [12:31:55]POST finish read [12:31:55]Found Content-Length = 677 [12:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:31:55]execute_script... [12:31: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 : (1)919050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:31:55]POST & json_proto [12:31:55]process_json_proto [12:31:55]json parsed OK: [12:31:55]protocol is kg_v1.0 [12:31:55]action value=close_receipt [12:31:55]process_action close_receipt [12:31:55]cmd_close_receipt [12:31:55]MH_GetDate [12:31:55]Write to MH i2c: F0 00 00 0B 05 FF [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: F0 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: F0 09 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: F0 09 00 0B 05 00 BC A6 13 67 F1 C7 6B 64 6B [12:31:55]GetLastDocTimeStamp 1729340973 [12:31:55]current date 1729341116 [12:31:55]FM_GetShiftState [12:31:55]SAM_PROTO_GetShiftState [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 01 00 [12:31:55]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 90 [12:31:55]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetShiftState done [12:31:55]FM_GetShiftState done [12:31:55]opened in 1729298811 [12:31:55]opened+sec_in_day 1729385211 [12:31:55]quantity*price = 50041 [12:31:55]sum+1 = 50042 [12:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 59 19.10.2024 12:31 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82562 ФПД: 132618738581055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123156&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82562&fm=132618738581055&tin=02508201610067®Number=0000000000091680&sum=50000 [12:31:56]StoreToDocumentArchive [12:31:56]shift 527 fd 82562 [12:31:56]save to /storage/0527/doc_00082562 [12:31:56]save last doc name /storage/0527/doc_00082562 to /storage/kkm_last_doc_name [12:31:56]save OK [12:31:56]Clear old archive folders... [12:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:56]tlvbuf is 0059F0B0 [12:31:56]SAM_PROTO_ClearQueue [12:31:56]wFMCommunicate request_size=4 [12:31:56]MH_SAM_APDU [12:31:56]CAPDU: 80 09 00 00 [12:31:56]Write to MH i2c: E2 08 00 19 05 80 09 00 00 00 00 00 00 90 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:56]Read from MH i2c: E2 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 03 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [12:31:56]RAPDU: 90 00 [12:31:56]wFMCommunicate OK [12:31:56]SAM_PROTO_ClearQueue done [12:31:56]KKMCreateOFDPacket [12:31:56]OFDProtocolAddRootSTLVToBuf [12:31:56]FM_MakeSignedData [12:31:56]FM_MakeSignedData [12:31:56]SAM_PROTO_SignData [12:31:56]wFMCommunicate request_size=4 [12:31:56]MH_SAM_APDU [12:31:56]CAPDU: 80 0D 01 02 [12:31:56]Write to MH i2c: E2 08 00 1A 05 80 0D 01 02 00 00 00 00 98 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:56]Read from MH i2c: E2 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 03 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [12:31:56]RAPDU: 90 00 [12:31:56]wFMCommunicate OK [12:31:56]wFMCommunicate request_size=255 [12:31:56]MH_SAM_APDU [12:31:56]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3B 00 00 00 F4 03 04 00 BC A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 42 01 00 35 04 06 00 78 [12:31:56]Write to MH i2c: E2 02 01 1B 05 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3B 00 00 00 F4 03 04 00 BC A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 42 01 00 35 04 06 00 78 00 00 89 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 03 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [12:31:57]RAPDU: 90 00 [12:31:57]wFMCommunicate OK [12:31:57]wFMCommunicate request_size=10 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 0D 02 02 05 9D B4 CD BE 3F [12:31:57]Write to MH i2c: E2 0D 00 1C 05 80 0D 02 02 05 00 9D B4 CD BE 3F 00 00 C0 [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 03 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [12:31:57]RAPDU: 90 00 [12:31:57]wFMCommunicate OK [12:31:57]wFMCommunicate request_size=4 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 0D 03 02 [12:31:57]Write to MH i2c: E2 08 00 1D 05 80 0D 03 02 00 00 00 00 9D [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 0B 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 0B 00 1D 05 00 70 A7 67 FC F8 83 C0 9A 90 00 ED [12:31:57]RAPDU: 70 A7 67 FC F8 83 C0 9A 90 00 [12:31:57]wFMCommunicate OK [12:31:57]SAM_PROTO_SignData done [12:31:57]FM_MakeSignedData done [12:31:57]CreateOFDProtocolMessage [12:31:57]wFMCommunicate request_size=4 [12:31:57]MH_SAM_APDU [12:31:57]CAPDU: 80 11 00 00 [12:31:57]Write to MH i2c: E2 08 00 1E 05 80 11 00 00 00 00 00 00 9D [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:57]Read from MH i2c: E2 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 17 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: E2 17 00 1E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EF [12:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:31:57]wFMCommunicate OK [12:31:57]CreateOFDProtocolMessage done [12:31:57]OFDSenderStorePacket 82562 [12:31:57]StoreOFDPacket docnum=82562 [12:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 56 32 07 01 81 03 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3B 00 00 00 F4 03 04 00 BC A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 42 01 00 35 04 06 00 78 9D B4 CD BE 3F 70 A7 67 FC F8 83 C0 9A [12:31:57]CheckFolder [12:31:57]dirname=/storage/ofd_packets [12:31:57]CheckFolder done [12:31:57]ProducePacketName [12:31:57]name=ofd_packets/00082562 [12:31:57]NVStorageSaveData ofd_packets/00082562 [12:31:57]File name is /storage/ofd_packets/00082562 [12:31:57]Write 301 bytes [12:31:57]NVStorageSaveData done [12:31:57]OFDSenderStorePacket done [12:31:57]KKMCreateOFDPacket done [12:31:57]NVStorageSaveData kkm_last_timestamp [12:31:57]File name is /storage/kkm_last_timestamp [12:31:57]Write 4 bytes [12:31:57]NVStorageSaveData done [12:31:57]ExternCall_PrintAddStr [12:31:57]wPrintStart [12:31:57]Write to MH i2c: 01 00 00 1F 05 24 [12:31:57]Write i2c OK [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: 01 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: 01 07 00 [12:31:57]MH_I2C_Read... [12:31:57]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [12:31:57]RasterBufferAndPrint [12:31:57]line Счет N : (1)919050 [12:31:57]line ИНН: 02508201610067 [12:31:57]line Контрольно-Кассовый Чек [12:31:57]line ПРОДАЖА [12:31:57]line ТРК (МРК, ГНК) : 22 [12:31:57]line Товар: 2710124130 [12:31:57]line Аи-92-К-4 [12:31:57]line 7.480 * 66.90 [12:31:57]line = 500.41 [12:31:57]line НДС 12% НСП 1% [12:31:57]line > о реализуемом товаре [12:31:57]line ОКРУГЛЕНИЕ: -0.41 [12:31:57]line ИТОГО: 500.00 [12:31:57]line Внесено: 500.00 [12:31:57]line СДАЧА: 0.00 [12:31:57]line НСП 1% : 4.43 [12:31:57]line НДС 12% : 53.14 [12:31:57]line Наличными: 500.00 [12:31:57]line Безнал.: 0.00 [12:31:57]line Место: АЗС № 114 "Партнер Нефть" [12:31:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:31:57]line СНО: Общий режим [12:31:57]line Чек 59 19.10.2024 12:31 [12:31:57]line Смена: 527 ФФД: 1.0 [12:31:57]line ЗНМ: 0300000086 [12:31:57]line РНМ: 0000000000091680 [12:31:57]line Версия ККМ: 001 [12:31:57]line ФМ: 0000000000871843 [12:31:57]line ФД: 82562 [12:31:57]line ФПД: 132618738581055 [12:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123156&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82562&fm=132618738581055&tin=02508201610067®Number=0000000000091680&sum=50000 [12:31:57]OFD Sender: Processing packet 82562 [packets to send 254, broken 253] [12:31:57]ProducePacketName [12:31:57]name=ofd_packets/00082562 [12:31:57]OFD Sender: To server: pG, [12:31:57]CommunicateWithHost lk.salyk.kg:30040 [12:31:57]ConnectInit lk.salyk.kg [12:31:57]written 0, free lines is 4095 [12:31:58]Connected sock=9 [12:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 56 32 07 01 81 03 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3B 00 00 00 F4 03 04 00 BC A6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 42 01 00 35 04 06 00 78 9D B4 CD BE 3F 70 A7 67 FC F8 83 C0 9A [12:31:58]Write to MH i2c: 01 00 00 4A 05 4F [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 07 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 DC 0C 3E [12:31:58]RasterBufferAndPrint [12:31:58]line [12:31:58]line [12:31:58]line [12:31:58]line [12:31:58]line [12:31:58]written 0, free lines is 3298 [12:31:58]MH_Cut [12:31:58]Write to MH i2c: D1 01 00 51 05 01 28 [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: D1 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: D1 01 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: D1 01 00 51 05 00 27 [12:31:58]Write to MH i2c: 01 00 00 52 05 57 [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4B E5 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 31 38 34 33 10 04 04 00 82 42 01 00 F4 03 04 00 F3 4B 13 67 B6 04 01 00 00 41 59 8E 8C 8C F3 F6 8A [12:31:58]CommunicateWithHost err = 0 [12:31:58]CheckOFDResponse [12:31:58]1017 (14) - 77093643461234 [12:31:58]1041 (16) - 0000000000871843 [12:31:58]1040 (4) - 82562 [12:31:58]1012 (4) - 19.10.2024 06:04 [12:31:58]1206 (1) - 0 [12:31:58]OFD Sender: Remove packet 82562 [12:31:58]ProducePacketName [12:31:58]name=ofd_packets/00082562 [12:31:58]NVStorageDeleteData [12:31:58]OFD Sender: No OFD packet to send [12:31:58]*** Cut start [12:31:58]*** Partial cut [12:31:58]*** CUTSNS_PIN = 1 [12:31:59]*** CUTSNS_PIN = 0 [12:31:59]*** Brake cut motor [12:31:59]Read from MH i2c: 01 [12:31:59]MH_I2C_Read... [12:31:59]*** Stop cut motor [12:31:59]*** Cut end [12:31:59]Read from MH i2c: 01 07 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [12:31:59]process_action close_receipt done [12:31:59]requested_data is exist [12:31:59]produce_requested_data [12:31:59]requested_item fm.sn is exist - process it [12:31:59]wFMCommunicate request_size=4 [12:31:59]MH_SAM_APDU [12:31:59]CAPDU: 80 11 00 00 [12:31:59]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:59]Read from MH i2c: E2 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 17 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [12:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:31:59]wFMCommunicate OK [12:31:59]requested_item fd.num is exist - process it [12:31:59]SAM_PROTO_GetFieldsCounters [12:31:59]wFMCommunicate request_size=4 [12:31:59]MH_SAM_APDU [12:31:59]CAPDU: 80 13 00 00 [12:31:59]Write to MH i2c: E2 08 00 54 05 80 13 00 00 00 00 00 00 D5 [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:59]Read from MH i2c: E2 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 62 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 62 00 54 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 82 42 01 00 0E 04 04 00 0F 02 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 7B [12:31: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 82 42 01 00 0E 04 04 00 0F 02 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 [12:31:59]wFMCommunicate OK [12:31:59]SAM_PROTO_GetFieldsCounters done [12:31:59]requested_item shift.num is exist - process it [12:31:59]requested_item shift.opened is exist - process it [12:31:59]req_shift_opened [12:31:59]FM_GetShiftState [12:31:59]SAM_PROTO_GetShiftState [12:31:59]wFMCommunicate request_size=4 [12:31:59]MH_SAM_APDU [12:31:59]CAPDU: 80 13 01 00 [12:31:59]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:59]Read from MH i2c: E2 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 0E 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D9 [12:31:59]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:31:59]wFMCommunicate OK [12:31:59]SAM_PROTO_GetShiftState done [12:31:59]FM_GetShiftState done [12:31:59]req_shift_opened done [12:31:59]requested_item shift.open_date is exist - process it [12:31:59]req_shift_open_date [12:31:59]req_shift_open_date done [12:31:59]produce_requested_data done [12:31:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82562,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:31:59]process_action_free close_receipt [12:31:59]json_value_free [12:31:59]json_value_free done [12:31:59]process_json_proto returns [12:31:59]Send response to host [12:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82562,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:31:59]free response buf [12:31:59]execute_script done [12:31:59]execute_script returns [12:31:59]free content buf [12:31:59]Sock 7.Close socket [12:31:59]Sock 7.Thread stoped [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:22]recv_with_timeout no data received [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [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:08]accept exits with 10 [12:37:08]New connection [12:37:08]New thread 3066887524 created [12:37:08]Thread 3066744164 joined [12:37:08]Waiting for new connection... [12:37:08] Sock 10.Parse request [12:37:08]Sock 10.Check first char [12:37:08]Sock 10.First char is OK [12:37:08]request: POST /json_proto HTTP/1.0 [12:37:08]Method: POST [12:37:08]URL: /json_proto [12:37:08]Method is POST - this is cgi request [12:37:08]url: /json_proto [12:37:08]query_string will be loaded in cgi processing [12:37:08]execute_cgi json_proto POST (null) [12:37:08]execute_cgi path=json_proto method=POST [12:37:08]POST find Content-Length [12:37:08]Host: 172.17.44.67:8080 [12:37:08]Content-Length: 758 [12:37:08]Content-Type: application/json [12:37:08] [12:37:08]POST finish read [12:37:08]Found Content-Length = 758 [12:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 3.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:08]execute_script... [12:37: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 : (1)919051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 3.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:08]POST & json_proto [12:37:08]process_json_proto [12:37:08]json parsed OK: [12:37:08]protocol is kg_v1.0 [12:37:08]action value=close_receipt [12:37:08]process_action close_receipt [12:37:08]cmd_close_receipt [12:37:08]MH_GetDate [12:37:08]Write to MH i2c: F0 00 00 56 05 4A [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 09 00 [12:37:08]MH_I2C_Read... [12:37:08]Read from MH i2c: F0 09 00 56 05 00 F5 A7 13 67 F1 C7 6B 64 F0 [12:37:08]GetLastDocTimeStamp 1729341116 [12:37:08]current date 1729341429 [12:37:08]FM_GetShiftState [12:37:08]SAM_PROTO_GetShiftState [12:37:08]wFMCommunicate request_size=4 [12:37:08]MH_SAM_APDU [12:37:08]CAPDU: 80 13 01 00 [12:37:08]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [12:37:08]Write i2c OK [12:37:08]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 0E 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 DB [12:37:09]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:37:09]wFMCommunicate OK [12:37:09]SAM_PROTO_GetShiftState done [12:37:09]FM_GetShiftState done [12:37:09]opened in 1729298811 [12:37:09]opened+sec_in_day 1729385211 [12:37:09]quantity*price = 0 [12:37:09]sum+1 = 1 [12:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 60 19.10.2024 12:37 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82563 ФПД: 70508773935761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123709&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82563&fm=70508773935761&tin=02508201610067®Number=0000000000091680&sum=0 [12:37:10]StoreToDocumentArchive [12:37:10]shift 527 fd 82563 [12:37:10]save to /storage/0527/doc_00082563 [12:37:10]save last doc name /storage/0527/doc_00082563 to /storage/kkm_last_doc_name [12:37:10]save OK [12:37:10]Clear old archive folders... [12:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:37:10]tlvbuf is 00540390 [12:37:10]SAM_PROTO_ClearQueue [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 09 00 00 [12:37:10]Write to MH i2c: E2 08 00 64 05 80 09 00 00 00 00 00 00 DB [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [12:37:10]RAPDU: 90 00 [12:37:10]wFMCommunicate OK [12:37:10]SAM_PROTO_ClearQueue done [12:37:10]KKMCreateOFDPacket [12:37:10]OFDProtocolAddRootSTLVToBuf [12:37:10]FM_MakeSignedData [12:37:10]FM_MakeSignedData [12:37:10]SAM_PROTO_SignData [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 0D 01 02 [12:37:10]Write to MH i2c: E2 08 00 65 05 80 0D 01 02 00 00 00 00 E3 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [12:37:10]RAPDU: 90 00 [12:37:10]wFMCommunicate OK [12:37:10]wFMCommunicate request_size=255 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 0E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F5 A7 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 42 01 00 35 04 06 00 [12:37:10]Write to MH i2c: E2 02 01 66 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 0E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F5 A7 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 42 01 00 35 04 06 00 00 00 03 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [12:37:10]RAPDU: 90 00 [12:37:10]wFMCommunicate OK [12:37:10]wFMCommunicate request_size=11 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 0D 02 02 06 40 20 9A 6C 8A 91 [12:37:10]Write to MH i2c: E2 0E 00 67 05 80 0D 02 02 06 00 40 20 9A 6C 8A 91 00 00 73 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [12:37:10]RAPDU: 90 00 [12:37:10]wFMCommunicate OK [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 0D 03 02 [12:37:10]Write to MH i2c: E2 08 00 68 05 80 0D 03 02 00 00 00 00 E8 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 0B 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 0B 00 68 05 00 36 34 FC 0E FD 73 A0 FD 90 00 6A [12:37:10]RAPDU: 36 34 FC 0E FD 73 A0 FD 90 00 [12:37:10]wFMCommunicate OK [12:37:10]SAM_PROTO_SignData done [12:37:10]FM_MakeSignedData done [12:37:10]CreateOFDProtocolMessage [12:37:10]wFMCommunicate request_size=4 [12:37:10]MH_SAM_APDU [12:37:10]CAPDU: 80 11 00 00 [12:37:10]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:10]Read from MH i2c: E2 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: E2 17 00 [12:37:10]MH_I2C_Read... [12:37:10]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 31 38 34 33 90 00 3A [12:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:37:10]wFMCommunicate OK [12:37:10]CreateOFDProtocolMessage done [12:37:10]OFDSenderStorePacket 82563 [12:37:10]StoreOFDPacket docnum=82563 [12:37:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3A A9 08 01 99 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 0E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F5 A7 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 42 01 00 35 04 06 00 40 20 9A 6C 8A 91 36 34 FC 0E FD 73 A0 FD [12:37:10]CheckFolder [12:37:10]dirname=/storage/ofd_packets [12:37:10]CheckFolder done [12:37:10]ProducePacketName [12:37:10]name=ofd_packets/00082563 [12:37:10]NVStorageSaveData ofd_packets/00082563 [12:37:10]File name is /storage/ofd_packets/00082563 [12:37:10]Write 302 bytes [12:37:10]NVStorageSaveData done [12:37:10]OFDSenderStorePacket done [12:37:10]KKMCreateOFDPacket done [12:37:10]NVStorageSaveData kkm_last_timestamp [12:37:10]File name is /storage/kkm_last_timestamp [12:37:10]Write 4 bytes [12:37:10]NVStorageSaveData done [12:37:10]ExternCall_PrintAddStr [12:37:10]wPrintStart [12:37:10]Write to MH i2c: 01 00 00 6A 05 6F [12:37:10]Write i2c OK [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: 01 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: 01 07 00 [12:37:10]MH_I2C_Read... [12:37:10]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [12:37:10]RasterBufferAndPrint [12:37:10]line Счет N : (1)919051 [12:37:10]line ИНН: 02508201610067 [12:37:10]line Контрольно-Кассовый Чек [12:37:10]line ПРОДАЖА [12:37:10]line ТРК (МРК, ГНК) : 31 [12:37:10]line Товар: 2710194210 [12:37:10]line ДТ(л)-К-5 [12:37:10]line 3.750 * 0.00 [12:37:10]line = 0.00 [12:37:10]line НДС 12% НСП 1% [12:37:10]line > о реализуемом товаре [12:37:10]line ИТОГО: 0.00 [12:37:10]line НСП 1% : 0.00 [12:37:10]line НДС 12% : 0.00 [12:37:10]line Наличными: 0.00 [12:37:10]line Безнал.: 0.00 [12:37:10]line Место: АЗС № 114 "Партнер Нефть" [12:37:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:37:10]line СНО: Общий режим [12:37:10]line Чек 60 19.10.2024 12:37 [12:37:10]line Смена: 527 ФФД: 1.0 [12:37:10]line ЗНМ: 0300000086 [12:37:10]line РНМ: 0000000000091680 [12:37:10]line Версия ККМ: 001 [12:37:10]line Талоны: ТК ГПНА Online [12:37:10]line 30121604 [12:37:10]line ФМ: 0000000000871843 [12:37:10]line ФД: 82563 [12:37:10]line ФПД: 70508773935761 [12:37:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123709&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82563&fm=70508773935761&tin=02508201610067®Number=0000000000091680&sum=0 [12:37:11]written 0, free lines is 4095 [12:37:11]OFD Sender: Processing packet 82563 [packets to send 254, broken 253] [12:37:11]ProducePacketName [12:37:11]name=ofd_packets/00082563 [12:37:11]OFD Sender: To server: pG, [12:37:11]CommunicateWithHost lk.salyk.kg:30040 [12:37:11]ConnectInit lk.salyk.kg [12:37:11]Connected sock=7 [12:37:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3A A9 08 01 99 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 0E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F5 A7 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 42 01 00 35 04 06 00 40 20 9A 6C 8A 91 36 34 FC 0E FD 73 A0 FD [12:37:11]Write to MH i2c: 01 00 00 94 05 99 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: 01 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: 01 07 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 DF 0C 8B [12:37:11]RasterBufferAndPrint [12:37:11]line [12:37:11]line [12:37:11]line [12:37:11]line [12:37:11]line [12:37:11]written 0, free lines is 3301 [12:37:11]MH_Cut [12:37:11]Write to MH i2c: D1 01 00 9B 05 01 72 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: D1 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: D1 01 00 [12:37:11]MH_I2C_Read... [12:37:11]Read from MH i2c: D1 01 00 9B 05 00 71 [12:37:11]Write to MH i2c: 01 00 00 9C 05 A1 [12:37:11]Write i2c OK [12:37:11]MH_I2C_Read... [12:37:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B2 32 47 00 AC E1 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 31 38 34 33 10 04 04 00 83 42 01 00 F4 03 04 00 2C 4D 13 67 B6 04 01 00 00 D9 B3 8C A4 D1 32 A0 52 [12:37:11]CommunicateWithHost err = 0 [12:37:11]CheckOFDResponse [12:37:11]1017 (14) - 77093643461234 [12:37:11]1041 (16) - 0000000000871843 [12:37:11]1040 (4) - 82563 [12:37:11]1012 (4) - 19.10.2024 06:09 [12:37:11]1206 (1) - 0 [12:37:11]OFD Sender: Remove packet 82563 [12:37:11]ProducePacketName [12:37:11]name=ofd_packets/00082563 [12:37:11]NVStorageDeleteData [12:37:12]OFD Sender: No OFD packet to send [12:37:12]*** Cut start [12:37:12]*** Partial cut [12:37:12]*** CUTSNS_PIN = 1 [12:37:12]*** CUTSNS_PIN = 0 [12:37:12]*** Brake cut motor [12:37:12]Read from MH i2c: 01 [12:37:12]MH_I2C_Read... [12:37:12]*** Stop cut motor [12:37:12]*** Cut end [12:37:12]Read from MH i2c: 01 07 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [12:37:12]process_action close_receipt done [12:37:12]requested_data is exist [12:37:12]produce_requested_data [12:37:12]requested_item fm.sn is exist - process it [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 11 00 00 [12:37:12]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 17 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6E [12:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:37:12]wFMCommunicate OK [12:37:12]requested_item fd.num is exist - process it [12:37:12]SAM_PROTO_GetFieldsCounters [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 13 00 00 [12:37:12]Write to MH i2c: E2 08 00 9E 05 80 13 00 00 00 00 00 00 1F [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 62 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 62 00 9E 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 83 42 01 00 0E 04 04 00 0F 02 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 C9 [12:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 83 42 01 00 0E 04 04 00 0F 02 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 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_GetFieldsCounters done [12:37:13]requested_item shift.num is exist - process it [12:37:13]requested_item shift.opened is exist - process it [12:37:13]req_shift_opened [12:37:13]FM_GetShiftState [12:37:13]SAM_PROTO_GetShiftState [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 13 01 00 [12:37:13]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 23 [12:37:13]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_GetShiftState done [12:37:13]FM_GetShiftState done [12:37:13]req_shift_opened done [12:37:13]requested_item shift.open_date is exist - process it [12:37:13]req_shift_open_date [12:37:13]req_shift_open_date done [12:37:13]produce_requested_data done [12:37:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82563,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:37:13]process_action_free close_receipt [12:37:13]json_value_free [12:37:13]json_value_free done [12:37:13]process_json_proto returns [12:37:13]Send response to host [12:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82563,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:37:13]free response buf [12:37:13]execute_script done [12:37:13]execute_script returns [12:37:13]free content buf [12:37:13]Sock 10.Close socket [12:37:13]Sock 10.Thread stoped [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:40]accept exits with 9 [12:37:40]New connection [12:37:40]New thread 3066744164 created [12:37:40]Thread 3066887524 joined [12:37:40]Waiting for new connection... [12:37:40] Sock 9.Parse request [12:37:40]Sock 9.Check first char [12:37:40]Sock 9.First char is OK [12:37:40]request: POST /json_proto HTTP/1.0 [12:37:40]Method: POST [12:37:40]URL: /json_proto [12:37:40]Method is POST - this is cgi request [12:37:40]url: /json_proto [12:37:40]query_string will be loaded in cgi processing [12:37:40]execute_cgi json_proto POST (null) [12:37:40]execute_cgi path=json_proto method=POST [12:37:40]POST find Content-Length [12:37:40]Host: 172.17.44.67:8080 [12:37:40]Content-Length: 678 [12:37:40]Content-Type: application/json [12:37:40] [12:37:40]POST finish read [12:37:40]Found Content-Length = 678 [12:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:40]execute_script... [12:37: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 : (1)919052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:40]POST & json_proto [12:37:40]process_json_proto [12:37:40]json parsed OK: [12:37:40]protocol is kg_v1.0 [12:37:40]action value=close_receipt [12:37:40]process_action close_receipt [12:37:40]cmd_close_receipt [12:37:40]MH_GetDate [12:37:40]Write to MH i2c: F0 00 00 A0 05 94 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: F0 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: F0 09 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: F0 09 00 A0 05 00 15 A8 13 67 F1 C7 6B 64 5B [12:37:40]GetLastDocTimeStamp 1729341429 [12:37:40]current date 1729341461 [12:37:40]FM_GetShiftState [12:37:40]SAM_PROTO_GetShiftState [12:37:40]wFMCommunicate request_size=4 [12:37:40]MH_SAM_APDU [12:37:40]CAPDU: 80 13 01 00 [12:37:40]Write to MH i2c: E2 08 00 A1 05 80 13 01 00 00 00 00 00 23 [12:37:40]Write i2c OK [12:37:40]MH_I2C_Read... [12:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:40]Read from MH i2c: E2 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 0E 00 [12:37:40]MH_I2C_Read... [12:37:40]Read from MH i2c: E2 0E 00 A1 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 25 [12:37:40]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:37:40]wFMCommunicate OK [12:37:40]SAM_PROTO_GetShiftState done [12:37:40]FM_GetShiftState done [12:37:40]opened in 1729298811 [12:37:40]opened+sec_in_day 1729385211 [12:37:40]quantity*price = 70044 [12:37:40]sum+1 = 70045 [12:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 61 19.10.2024 12:37 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82564 ФПД: 224438341691070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123741&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82564&fm=224438341691070&tin=02508201610067®Number=0000000000091680&sum=70000 [12:37:41]StoreToDocumentArchive [12:37:41]shift 527 fd 82564 [12:37:41]save to /storage/0527/doc_00082564 [12:37:41]save last doc name /storage/0527/doc_00082564 to /storage/kkm_last_doc_name [12:37:41]save OK [12:37:41]Clear old archive folders... [12:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:41]tlvbuf is 00541C80 [12:37:41]SAM_PROTO_ClearQueue [12:37:41]wFMCommunicate request_size=4 [12:37:41]MH_SAM_APDU [12:37:41]CAPDU: 80 09 00 00 [12:37:41]Write to MH i2c: E2 08 00 AE 05 80 09 00 00 00 00 00 00 25 [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:41]Read from MH i2c: E2 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 03 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [12:37:41]RAPDU: 90 00 [12:37:41]wFMCommunicate OK [12:37:41]SAM_PROTO_ClearQueue done [12:37:41]KKMCreateOFDPacket [12:37:41]OFDProtocolAddRootSTLVToBuf [12:37:41]FM_MakeSignedData [12:37:41]FM_MakeSignedData [12:37:41]SAM_PROTO_SignData [12:37:41]wFMCommunicate request_size=4 [12:37:41]MH_SAM_APDU [12:37:41]CAPDU: 80 0D 01 02 [12:37:41]Write to MH i2c: E2 08 00 AF 05 80 0D 01 02 00 00 00 00 2D [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:41]Read from MH i2c: E2 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 03 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [12:37:41]RAPDU: 90 00 [12:37:41]wFMCommunicate OK [12:37:41]wFMCommunicate request_size=255 [12:37:41]MH_SAM_APDU [12:37:41]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 3D 00 00 00 F4 03 04 00 15 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 42 01 00 35 04 06 00 CC [12:37:41]Write to MH i2c: E2 02 01 B0 05 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 3D 00 00 00 F4 03 04 00 15 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 42 01 00 35 04 06 00 CC 00 00 E1 [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:42]OFD Sender: No OFD packet to send [12:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [12:37:42]RAPDU: 90 00 [12:37:42]wFMCommunicate OK [12:37:42]wFMCommunicate request_size=10 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 0D 02 02 05 20 1F A1 66 BE [12:37:42]Write to MH i2c: E2 0D 00 B1 05 80 0D 02 02 05 00 20 1F A1 66 BE 00 00 3E [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [12:37:42]RAPDU: 90 00 [12:37:42]wFMCommunicate OK [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 0D 03 02 [12:37:42]Write to MH i2c: E2 08 00 B2 05 80 0D 03 02 00 00 00 00 32 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 0B 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 0B 00 B2 05 00 83 D8 65 BC 9D A5 EF E5 90 00 C5 [12:37:42]RAPDU: 83 D8 65 BC 9D A5 EF E5 90 00 [12:37:42]wFMCommunicate OK [12:37:42]SAM_PROTO_SignData done [12:37:42]FM_MakeSignedData done [12:37:42]CreateOFDProtocolMessage [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 11 00 00 [12:37:42]Write to MH i2c: E2 08 00 B3 05 80 11 00 00 00 00 00 00 32 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 17 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 17 00 B3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 84 [12:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:37:42]wFMCommunicate OK [12:37:42]CreateOFDProtocolMessage done [12:37:42]OFDSenderStorePacket 82564 [12:37:42]StoreOFDPacket docnum=82564 [12:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 38 E7 07 01 5E 9B 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 3D 00 00 00 F4 03 04 00 15 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 42 01 00 35 04 06 00 CC 20 1F A1 66 BE 83 D8 65 BC 9D A5 EF E5 [12:37:42]CheckFolder [12:37:42]dirname=/storage/ofd_packets [12:37:42]CheckFolder done [12:37:42]ProducePacketName [12:37:42]name=ofd_packets/00082564 [12:37:42]NVStorageSaveData ofd_packets/00082564 [12:37:42]File name is /storage/ofd_packets/00082564 [12:37:42]Write 301 bytes [12:37:42]NVStorageSaveData done [12:37:42]OFDSenderStorePacket done [12:37:42]KKMCreateOFDPacket done [12:37:42]NVStorageSaveData kkm_last_timestamp [12:37:42]File name is /storage/kkm_last_timestamp [12:37:42]Write 4 bytes [12:37:42]NVStorageSaveData done [12:37:42]ExternCall_PrintAddStr [12:37:42]wPrintStart [12:37:42]Write to MH i2c: 01 00 00 B4 05 B9 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: 01 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: 01 07 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: 01 07 00 B4 05 00 00 00 00 00 FF 0F CE [12:37:42]RasterBufferAndPrint [12:37:42]line Счет N : (1)919052 [12:37:42]line ИНН: 02508201610067 [12:37:42]line Контрольно-Кассовый Чек [12:37:42]line ПРОДАЖА [12:37:42]line ТРК (МРК, ГНК) : 11 [12:37:42]line Товар: 2710124130 [12:37:42]line Аи-92-К-4 [12:37:42]line 10.470 * 66.90 [12:37:42]line = 700.44 [12:37:42]line НДС 12% НСП 1% [12:37:42]line > о реализуемом товаре [12:37:42]line ОКРУГЛЕНИЕ: -0.44 [12:37:42]line ИТОГО: 700.00 [12:37:42]line Внесено: 700.00 [12:37:42]line СДАЧА: 0.00 [12:37:42]line НСП 1% : 6.20 [12:37:42]line НДС 12% : 74.38 [12:37:42]line Наличными: 700.00 [12:37:42]line Безнал.: 0.00 [12:37:42]line Место: АЗС № 114 "Партнер Нефть" [12:37:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:37:42]line СНО: Общий режим [12:37:42]line Чек 61 19.10.2024 12:37 [12:37:42]line Смена: 527 ФФД: 1.0 [12:37:42]line ЗНМ: 0300000086 [12:37:42]line РНМ: 0000000000091680 [12:37:42]line Версия ККМ: 001 [12:37:42]line ФМ: 0000000000871843 [12:37:42]line ФД: 82564 [12:37:42]line ФПД: 224438341691070 [12:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123741&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82564&fm=224438341691070&tin=02508201610067®Number=0000000000091680&sum=70000 [12:37:42]OFD Sender: Processing packet 82564 [packets to send 254, broken 253] [12:37:42]ProducePacketName [12:37:42]name=ofd_packets/00082564 [12:37:42]OFD Sender: To server: pG, [12:37:42]CommunicateWithHost lk.salyk.kg:30040 [12:37:42]ConnectInit lk.salyk.kg [12:37:42]written 0, free lines is 4095 [12:37:43]Connected sock=7 [12:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 38 E7 07 01 5E 9B 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 3D 00 00 00 F4 03 04 00 15 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 42 01 00 35 04 06 00 CC 20 1F A1 66 BE 83 D8 65 BC 9D A5 EF E5 [12:37:43]Write to MH i2c: 01 00 00 DF 05 E4 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 DD 0C D4 [12:37:43]RasterBufferAndPrint [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]written 0, free lines is 3299 [12:37:43]MH_Cut [12:37:43]Write to MH i2c: D1 01 00 E6 05 01 BD [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 01 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 01 00 E6 05 00 BC [12:37:43]Write to MH i2c: 01 00 00 E7 05 EC [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AE CF 47 00 7D 7C 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 31 38 34 33 10 04 04 00 84 42 01 00 F4 03 04 00 4C 4D 13 67 B6 04 01 00 00 1C BA 82 84 24 BA 4D EA [12:37:43]CommunicateWithHost err = 0 [12:37:43]CheckOFDResponse [12:37:43]1017 (14) - 77093643461234 [12:37:43]1041 (16) - 0000000000871843 [12:37:43]1040 (4) - 82564 [12:37:43]1012 (4) - 19.10.2024 06:10 [12:37:43]1206 (1) - 0 [12:37:43]OFD Sender: Remove packet 82564 [12:37:43]ProducePacketName [12:37:43]name=ofd_packets/00082564 [12:37:43]NVStorageDeleteData [12:37:43]OFD Sender: No OFD packet to send [12:37:43]*** Cut start [12:37:43]*** Partial cut [12:37:43]*** CUTSNS_PIN = 1 [12:37:44]*** CUTSNS_PIN = 0 [12:37:44]*** Brake cut motor [12:37:44]Read from MH i2c: 01 [12:37:44]MH_I2C_Read... [12:37:44]*** Stop cut motor [12:37:44]*** Cut end [12:37:44]Read from MH i2c: 01 07 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [12:37:44]process_action close_receipt done [12:37:44]requested_data is exist [12:37:44]produce_requested_data [12:37:44]requested_item fm.sn is exist - process it [12:37:44]wFMCommunicate request_size=4 [12:37:44]MH_SAM_APDU [12:37:44]CAPDU: 80 11 00 00 [12:37:44]Write to MH i2c: E2 08 00 E8 05 80 11 00 00 00 00 00 00 67 [12:37:44]Write i2c OK [12:37:44]MH_I2C_Read... [12:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:44]Read from MH i2c: E2 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 17 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 17 00 E8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B9 [12:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:37:44]wFMCommunicate OK [12:37:44]requested_item fd.num is exist - process it [12:37:44]SAM_PROTO_GetFieldsCounters [12:37:44]wFMCommunicate request_size=4 [12:37:44]MH_SAM_APDU [12:37:44]CAPDU: 80 13 00 00 [12:37:44]Write to MH i2c: E2 08 00 E9 05 80 13 00 00 00 00 00 00 6A [12:37:44]Write i2c OK [12:37:44]MH_I2C_Read... [12:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:44]Read from MH i2c: E2 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 62 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 62 00 E9 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 84 42 01 00 0E 04 04 00 0F 02 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 18 [12:37: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 84 42 01 00 0E 04 04 00 0F 02 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 [12:37:44]wFMCommunicate OK [12:37:44]SAM_PROTO_GetFieldsCounters done [12:37:44]requested_item shift.num is exist - process it [12:37:44]requested_item shift.opened is exist - process it [12:37:44]req_shift_opened [12:37:44]FM_GetShiftState [12:37:44]SAM_PROTO_GetShiftState [12:37:44]wFMCommunicate request_size=4 [12:37:44]MH_SAM_APDU [12:37:44]CAPDU: 80 13 01 00 [12:37:44]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [12:37:44]Write i2c OK [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 [12:37:44]MH_I2C_Read... [12:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:44]Read from MH i2c: E2 0E 00 [12:37:44]MH_I2C_Read... [12:37:44]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 6E [12:37:44]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:37:44]wFMCommunicate OK [12:37:44]SAM_PROTO_GetShiftState done [12:37:44]FM_GetShiftState done [12:37:44]req_shift_opened done [12:37:44]requested_item shift.open_date is exist - process it [12:37:44]req_shift_open_date [12:37:44]req_shift_open_date done [12:37:44]produce_requested_data done [12:37:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82564,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:37:44]process_action_free close_receipt [12:37:44]json_value_free [12:37:44]json_value_free done [12:37:44]process_json_proto returns [12:37:44]Send response to host [12:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82564,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:37:44]free response buf [12:37:44]execute_script done [12:37:44]execute_script returns [12:37:44]free content buf [12:37:44]Sock 9.Close socket [12:37:44]Sock 9.Thread stoped [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:00]recv_with_timeout no data received [12:38:01]accept exits with 10 [12:38:01]New connection [12:38:01]New thread 3066887524 created [12:38:01]Thread 3066744164 joined [12:38:01]Waiting for new connection... [12:38:01] Sock 10.Parse request [12:38:01]Sock 10.Check first char [12:38:01]Sock 10.First char is OK [12:38:01]request: POST /json_proto HTTP/1.0 [12:38:01]Method: POST [12:38:01]URL: /json_proto [12:38:01]Method is POST - this is cgi request [12:38:01]url: /json_proto [12:38:01]query_string will be loaded in cgi processing [12:38:01]execute_cgi json_proto POST (null) [12:38:01]execute_cgi path=json_proto method=POST [12:38:01]POST find Content-Length [12:38:01]Host: 172.17.44.67:8080 [12:38:01]Content-Length: 677 [12:38:01]Content-Type: application/json [12:38:01] [12:38:01]POST finish read [12:38:01]Found Content-Length = 677 [12:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:38:01]execute_script... [12:38: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 : (1)919053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:38:01]POST & json_proto [12:38:01]process_json_proto [12:38:01]json parsed OK: [12:38:01]protocol is kg_v1.0 [12:38:01]action value=close_receipt [12:38:01]process_action close_receipt [12:38:01]cmd_close_receipt [12:38:01]MH_GetDate [12:38:01]Write to MH i2c: F0 00 00 EB 05 DF [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 09 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 09 00 EB 05 00 2A A8 13 67 F1 C7 6B 64 BB [12:38:01]GetLastDocTimeStamp 1729341461 [12:38:01]current date 1729341482 [12:38:01]FM_GetShiftState [12:38:01]SAM_PROTO_GetShiftState [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 13 01 00 [12:38:01]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 70 [12:38:01]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_GetShiftState done [12:38:01]FM_GetShiftState done [12:38:01]opened in 1729298811 [12:38:01]opened+sec_in_day 1729385211 [12:38:01]quantity*price = 50041 [12:38:01]sum+1 = 50042 [12:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 62 19.10.2024 12:38 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82565 ФПД: 16879735990011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123802&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82565&fm=16879735990011&tin=02508201610067®Number=0000000000091680&sum=50000 [12:38:02]StoreToDocumentArchive [12:38:02]shift 527 fd 82565 [12:38:02]save to /storage/0527/doc_00082565 [12:38:02]save last doc name /storage/0527/doc_00082565 to /storage/kkm_last_doc_name [12:38:02]save OK [12:38:02]Clear old archive folders... [12:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:02]tlvbuf is 0050CCC0 [12:38:02]SAM_PROTO_ClearQueue [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 09 00 00 [12:38:02]Write to MH i2c: E2 08 00 F9 05 80 09 00 00 00 00 00 00 70 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [12:38:02]RAPDU: 90 00 [12:38:02]wFMCommunicate OK [12:38:02]SAM_PROTO_ClearQueue done [12:38:02]KKMCreateOFDPacket [12:38:02]OFDProtocolAddRootSTLVToBuf [12:38:02]FM_MakeSignedData [12:38:02]FM_MakeSignedData [12:38:02]SAM_PROTO_SignData [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 0D 01 02 [12:38:02]Write to MH i2c: E2 08 00 FA 05 80 0D 01 02 00 00 00 00 78 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [12:38:02]RAPDU: 90 00 [12:38:02]wFMCommunicate OK [12:38:02]wFMCommunicate request_size=255 [12:38:02]MH_SAM_APDU [12:38:02]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3E 00 00 00 F4 03 04 00 2A A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 42 01 00 35 04 06 00 0F [12:38:02]Write to MH i2c: E2 02 01 FB 05 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3E 00 00 00 F4 03 04 00 2A A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 42 01 00 35 04 06 00 0F 00 00 76 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]wFMCommunicate request_size=10 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 02 02 05 5A 1E AA E6 FB [12:38:03]Write to MH i2c: E2 0D 00 FC 05 80 0D 02 02 05 00 5A 1E AA E6 FB 00 00 88 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 03 02 [12:38:03]Write to MH i2c: E2 08 00 FD 05 80 0D 03 02 00 00 00 00 7D [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0B 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0B 00 FD 05 00 4C A5 C6 C1 C7 F2 1C 99 90 00 64 [12:38:03]RAPDU: 4C A5 C6 C1 C7 F2 1C 99 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_SignData done [12:38:03]FM_MakeSignedData done [12:38:03]CreateOFDProtocolMessage [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 11 00 00 [12:38:03]Write to MH i2c: E2 08 00 FE 05 80 11 00 00 00 00 00 00 7D [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 FE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CF [12:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:38:03]wFMCommunicate OK [12:38:03]CreateOFDProtocolMessage done [12:38:03]OFDSenderStorePacket 82565 [12:38:03]StoreOFDPacket docnum=82565 [12:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A6 B3 07 01 44 AC 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3E 00 00 00 F4 03 04 00 2A A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 42 01 00 35 04 06 00 0F 5A 1E AA E6 FB 4C A5 C6 C1 C7 F2 1C 99 [12:38:03]CheckFolder [12:38:03]dirname=/storage/ofd_packets [12:38:03]CheckFolder done [12:38:03]ProducePacketName [12:38:03]name=ofd_packets/00082565 [12:38:03]NVStorageSaveData ofd_packets/00082565 [12:38:03]File name is /storage/ofd_packets/00082565 [12:38:03]Write 301 bytes [12:38:03]NVStorageSaveData done [12:38:03]OFDSenderStorePacket done [12:38:03]KKMCreateOFDPacket done [12:38:03]NVStorageSaveData kkm_last_timestamp [12:38:03]File name is /storage/kkm_last_timestamp [12:38:03]Write 4 bytes [12:38:03]NVStorageSaveData done [12:38:03]ExternCall_PrintAddStr [12:38:03]wPrintStart [12:38:03]Write to MH i2c: 01 00 00 FF 05 04 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 FF 0F 19 [12:38:03]RasterBufferAndPrint [12:38:03]line Счет N : (1)919053 [12:38:03]line ИНН: 02508201610067 [12:38:03]line Контрольно-Кассовый Чек [12:38:03]line ПРОДАЖА [12:38:03]line ТРК (МРК, ГНК) : 22 [12:38:03]line Товар: 2710124130 [12:38:03]line Аи-92-К-4 [12:38:03]line 7.480 * 66.90 [12:38:03]line = 500.41 [12:38:03]line НДС 12% НСП 1% [12:38:03]line > о реализуемом товаре [12:38:03]line ОКРУГЛЕНИЕ: -0.41 [12:38:03]line ИТОГО: 500.00 [12:38:03]line Внесено: 500.00 [12:38:03]line СДАЧА: 0.00 [12:38:03]line НСП 1% : 4.43 [12:38:03]line НДС 12% : 53.14 [12:38:03]line Наличными: 500.00 [12:38:03]line Безнал.: 0.00 [12:38:03]line Место: АЗС № 114 "Партнер Нефть" [12:38:03]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:38:03]line СНО: Общий режим [12:38:03]line Чек 62 19.10.2024 12:38 [12:38:03]line Смена: 527 ФФД: 1.0 [12:38:03]line ЗНМ: 0300000086 [12:38:03]line РНМ: 0000000000091680 [12:38:03]line Версия ККМ: 001 [12:38:03]line ФМ: 0000000000871843 [12:38:03]line ФД: 82565 [12:38:03]line ФПД: 16879735990011 [12:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123802&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82565&fm=16879735990011&tin=02508201610067®Number=0000000000091680&sum=50000 [12:38:03]written 0, free lines is 4095 [12:38:03]OFD Sender: Processing packet 82565 [packets to send 254, broken 253] [12:38:03]ProducePacketName [12:38:03]name=ofd_packets/00082565 [12:38:03]OFD Sender: To server: pG, [12:38:03]CommunicateWithHost lk.salyk.kg:30040 [12:38:03]ConnectInit lk.salyk.kg [12:38:03]Connected sock=9 [12:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A6 B3 07 01 44 AC 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3E 00 00 00 F4 03 04 00 2A A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 42 01 00 35 04 06 00 0F 5A 1E AA E6 FB 4C A5 C6 C1 C7 F2 1C 99 [12:38:03]Write to MH i2c: 01 00 00 2A 06 30 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 EB 0C 2E [12:38:03]RasterBufferAndPrint [12:38:03]line [12:38:03]line [12:38:03]line [12:38:03]line [12:38:03]line [12:38:03]written 0, free lines is 3316 [12:38:03]MH_Cut [12:38:03]Write to MH i2c: D1 01 00 31 06 01 09 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: D1 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: D1 01 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: D1 01 00 31 06 00 08 [12:38:03]Write to MH i2c: 01 00 00 32 06 38 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 86 5C 47 00 7C 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 31 38 34 33 10 04 04 00 85 42 01 00 F4 03 04 00 61 4D 13 67 B6 04 01 00 00 31 80 4A 75 7D 98 E0 B0 [12:38:03]CommunicateWithHost err = 0 [12:38:03]CheckOFDResponse [12:38:03]1017 (14) - 77093643461234 [12:38:03]1041 (16) - 0000000000871843 [12:38:03]1040 (4) - 82565 [12:38:03]1012 (4) - 19.10.2024 06:10 [12:38:03]1206 (1) - 0 [12:38:03]OFD Sender: Remove packet 82565 [12:38:03]ProducePacketName [12:38:03]name=ofd_packets/00082565 [12:38:03]NVStorageDeleteData [12:38:04]OFD Sender: No OFD packet to send [12:38:04]*** Cut start [12:38:04]*** Partial cut [12:38:04]*** CUTSNS_PIN = 1 [12:38:04]*** CUTSNS_PIN = 0 [12:38:04]*** Brake cut motor [12:38:05]Read from MH i2c: 01 [12:38:05]MH_I2C_Read... [12:38:05]*** Stop cut motor [12:38:05]*** Cut end [12:38:05]Read from MH i2c: 01 07 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [12:38:05]process_action close_receipt done [12:38:05]requested_data is exist [12:38:05]produce_requested_data [12:38:05]requested_item fm.sn is exist - process it [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 11 00 00 [12:38:05]Write to MH i2c: E2 08 00 33 06 80 11 00 00 00 00 00 00 B3 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 33 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 05 [12:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:38:05]wFMCommunicate OK [12:38:05]requested_item fd.num is exist - process it [12:38:05]SAM_PROTO_GetFieldsCounters [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 00 00 [12:38:05]Write to MH i2c: E2 08 00 34 06 80 13 00 00 00 00 00 00 B6 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 34 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 85 42 01 00 0E 04 04 00 0F 02 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 68 [12:38: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 85 42 01 00 0E 04 04 00 0F 02 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 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_GetFieldsCounters done [12:38:05]requested_item shift.num is exist - process it [12:38:05]requested_item shift.opened is exist - process it [12:38:05]req_shift_opened [12:38:05]FM_GetShiftState [12:38:05]SAM_PROTO_GetShiftState [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 01 00 [12:38:05]Write to MH i2c: E2 08 00 35 06 80 13 01 00 00 00 00 00 B8 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0E 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0E 00 35 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 BA [12:38:05]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_GetShiftState done [12:38:05]FM_GetShiftState done [12:38:05]req_shift_opened done [12:38:05]requested_item shift.open_date is exist - process it [12:38:05]req_shift_open_date [12:38:05]req_shift_open_date done [12:38:05]produce_requested_data done [12:38:05]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82565,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:38:05]process_action_free close_receipt [12:38:05]json_value_free [12:38:05]json_value_free done [12:38:05]process_json_proto returns [12:38:05]Send response to host [12:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82565,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:38:05]free response buf [12:38:05]execute_script done [12:38:05]execute_script returns [12:38:05]free content buf [12:38:05]Sock 10.Close socket [12:38:05]Sock 10.Thread stoped [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:32]accept exits with 7 [12:38:32]New connection [12:38:32]New thread 3066744164 created [12:38:32]Thread 3066887524 joined [12:38:32]Waiting for new connection... [12:38:32] Sock 7.Parse request [12:38:32]Sock 7.Check first char [12:38:32]Sock 7.First char is OK [12:38:32]request: POST /json_proto HTTP/1.0 [12:38:32]Method: POST [12:38:32]URL: /json_proto [12:38:32]Method is POST - this is cgi request [12:38:32]url: /json_proto [12:38:32]query_string will be loaded in cgi processing [12:38:32]execute_cgi json_proto POST (null) [12:38:32]execute_cgi path=json_proto method=POST [12:38:32]POST find Content-Length [12:38:32]Host: 172.17.44.67:8080 [12:38:32]Content-Length: 758 [12:38:32]Content-Type: application/json [12:38:32] [12:38:32]POST finish read [12:38:32]Found Content-Length = 758 [12:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 9.400, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30022216", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:32]execute_script... [12:38: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 : (1)919054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 9.400, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30022216", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:32]POST & json_proto [12:38:32]process_json_proto [12:38:32]json parsed OK: [12:38:32]protocol is kg_v1.0 [12:38:32]action value=close_receipt [12:38:32]process_action close_receipt [12:38:32]cmd_close_receipt [12:38:32]MH_GetDate [12:38:32]Write to MH i2c: F0 00 00 36 06 2B [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: F0 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: F0 09 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: F0 09 00 36 06 00 48 A8 13 67 F1 C7 6B 64 25 [12:38:32]GetLastDocTimeStamp 1729341482 [12:38:32]current date 1729341512 [12:38:32]FM_GetShiftState [12:38:32]SAM_PROTO_GetShiftState [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 13 01 00 [12:38:32]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0E 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 BC [12:38:32]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:38:32]wFMCommunicate OK [12:38:32]SAM_PROTO_GetShiftState done [12:38:32]FM_GetShiftState done [12:38:32]opened in 1729298811 [12:38:32]opened+sec_in_day 1729385211 [12:38:32]quantity*price = 0 [12:38:32]sum+1 = 1 [12:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 63 19.10.2024 12:38 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30022216 ФМ: 0000000000871843 ФД: 82566 ФПД: 164076825809704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82566&fm=164076825809704&tin=02508201610067®Number=0000000000091680&sum=0 [12:38:33]StoreToDocumentArchive [12:38:33]shift 527 fd 82566 [12:38:33]save to /storage/0527/doc_00082566 [12:38:33]save last doc name /storage/0527/doc_00082566 to /storage/kkm_last_doc_name [12:38:33]save OK [12:38:33]Clear old archive folders... [12:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:38:33]tlvbuf is 004EC0A0 [12:38:33]SAM_PROTO_ClearQueue [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 09 00 00 [12:38:33]Write to MH i2c: E2 08 00 44 06 80 09 00 00 00 00 00 00 BC [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]SAM_PROTO_ClearQueue done [12:38:33]KKMCreateOFDPacket [12:38:33]OFDProtocolAddRootSTLVToBuf [12:38:33]FM_MakeSignedData [12:38:33]FM_MakeSignedData [12:38:33]SAM_PROTO_SignData [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 01 02 [12:38:33]Write to MH i2c: E2 08 00 45 06 80 0D 01 02 00 00 00 00 C4 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]wFMCommunicate request_size=255 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 49 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 42 01 00 35 04 06 00 [12:38:33]Write to MH i2c: E2 02 01 46 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 49 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 42 01 00 35 04 06 00 00 00 67 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]wFMCommunicate request_size=11 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 02 02 06 95 3A 1C EB 13 28 [12:38:33]Write to MH i2c: E2 0E 00 47 06 80 0D 02 02 06 00 95 3A 1C EB 13 28 00 00 E4 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 03 02 [12:38:33]Write to MH i2c: E2 08 00 48 06 80 0D 03 02 00 00 00 00 C9 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0B 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0B 00 48 06 00 78 10 CE CE 91 06 A3 7D 90 00 A5 [12:38:33]RAPDU: 78 10 CE CE 91 06 A3 7D 90 00 [12:38:33]wFMCommunicate OK [12:38:33]SAM_PROTO_SignData done [12:38:33]FM_MakeSignedData done [12:38:33]CreateOFDProtocolMessage [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 11 00 00 [12:38:33]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1B [12:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:38:33]wFMCommunicate OK [12:38:33]CreateOFDProtocolMessage done [12:38:33]OFDSenderStorePacket 82566 [12:38:33]StoreOFDPacket docnum=82566 [12:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 90 69 08 01 5B A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 49 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 42 01 00 35 04 06 00 95 3A 1C EB 13 28 78 10 CE CE 91 06 A3 7D [12:38:33]CheckFolder [12:38:33]dirname=/storage/ofd_packets [12:38:33]CheckFolder done [12:38:33]ProducePacketName [12:38:33]name=ofd_packets/00082566 [12:38:33]NVStorageSaveData ofd_packets/00082566 [12:38:33]File name is /storage/ofd_packets/00082566 [12:38:33]Write 302 bytes [12:38:33]NVStorageSaveData done [12:38:33]OFDSenderStorePacket done [12:38:33]KKMCreateOFDPacket done [12:38:33]NVStorageSaveData kkm_last_timestamp [12:38:33]File name is /storage/kkm_last_timestamp [12:38:33]Write 4 bytes [12:38:33]NVStorageSaveData done [12:38:33]ExternCall_PrintAddStr [12:38:33]wPrintStart [12:38:33]Write to MH i2c: 01 00 00 4A 06 50 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [12:38:33]RasterBufferAndPrint [12:38:33]line Счет N : (1)919054 [12:38:33]line ИНН: 02508201610067 [12:38:33]line Контрольно-Кассовый Чек [12:38:33]line ПРОДАЖА [12:38:33]line ТРК (МРК, ГНК) : 31 [12:38:33]line Товар: 2710194210 [12:38:33]line ДТ(л)-К-5 [12:38:33]line 9.400 * 0.00 [12:38:33]line = 0.00 [12:38:33]line НДС 12% НСП 1% [12:38:33]line > о реализуемом товаре [12:38:33]line ИТОГО: 0.00 [12:38:33]line НСП 1% : 0.00 [12:38:33]line НДС 12% : 0.00 [12:38:33]line Наличными: 0.00 [12:38:33]line Безнал.: 0.00 [12:38:33]line Место: АЗС № 114 "Партнер Нефть" [12:38:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:38:33]line СНО: Общий режим [12:38:33]line Чек 63 19.10.2024 12:38 [12:38:33]line Смена: 527 ФФД: 1.0 [12:38:33]line ЗНМ: 0300000086 [12:38:33]line РНМ: 0000000000091680 [12:38:33]line Версия ККМ: 001 [12:38:33]line Талоны: ТК ГПНА Online [12:38:33]line 30022216 [12:38:33]line ФМ: 0000000000871843 [12:38:33]line ФД: 82566 [12:38:33]line ФПД: 164076825809704 [12:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T123833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82566&fm=164076825809704&tin=02508201610067®Number=0000000000091680&sum=0 [12:38:33]written 0, free lines is 4095 [12:38:33]OFD Sender: Processing packet 82566 [packets to send 254, broken 253] [12:38:33]ProducePacketName [12:38:33]name=ofd_packets/00082566 [12:38:33]OFD Sender: To server: pG, [12:38:33]CommunicateWithHost lk.salyk.kg:30040 [12:38:33]ConnectInit lk.salyk.kg [12:38:34]Connected sock=9 [12:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 90 69 08 01 5B A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 49 A8 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 42 01 00 35 04 06 00 95 3A 1C EB 13 28 78 10 CE CE 91 06 A3 7D [12:38:34]Write to MH i2c: 01 00 00 74 06 7A [12:38:34]Write i2c OK [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: 01 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: 01 07 00 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 F4 0C 81 [12:38:34]RasterBufferAndPrint [12:38:34]line [12:38:34]line [12:38:34]line [12:38:34]line [12:38:34]line [12:38:34]written 0, free lines is 3323 [12:38:34]MH_Cut [12:38:34]Write to MH i2c: D1 01 00 7B 06 01 53 [12:38:34]Write i2c OK [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: D1 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: D1 01 00 [12:38:34]MH_I2C_Read... [12:38:34]Read from MH i2c: D1 01 00 7B 06 00 52 [12:38:34]Write to MH i2c: 01 00 00 7C 06 82 [12:38:34]Write i2c OK [12:38:34]MH_I2C_Read... [12:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 36 AD 47 00 84 82 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 31 38 34 33 10 04 04 00 86 42 01 00 F4 03 04 00 7F 4D 13 67 B6 04 01 00 00 1A 71 6D 2C 32 D6 7D B9 [12:38:34]CommunicateWithHost err = 0 [12:38:34]CheckOFDResponse [12:38:34]1017 (14) - 77093643461234 [12:38:34]1041 (16) - 0000000000871843 [12:38:34]1040 (4) - 82566 [12:38:34]1012 (4) - 19.10.2024 06:11 [12:38:34]1206 (1) - 0 [12:38:34]OFD Sender: Remove packet 82566 [12:38:34]ProducePacketName [12:38:34]name=ofd_packets/00082566 [12:38:34]NVStorageDeleteData [12:38:35]OFD Sender: No OFD packet to send [12:38:35]*** Cut start [12:38:35]*** Partial cut [12:38:35]*** CUTSNS_PIN = 1 [12:38:35]*** CUTSNS_PIN = 0 [12:38:35]*** Brake cut motor [12:38:35]Read from MH i2c: 01 [12:38:35]MH_I2C_Read... [12:38:35]*** Stop cut motor [12:38:35]*** Cut end [12:38:35]Read from MH i2c: 01 07 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 FF 0F 97 [12:38:35]process_action close_receipt done [12:38:35]requested_data is exist [12:38:35]produce_requested_data [12:38:35]requested_item fm.sn is exist - process it [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 11 00 00 [12:38:35]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 17 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 17 00 7D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [12:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:38:35]wFMCommunicate OK [12:38:35]requested_item fd.num is exist - process it [12:38:35]SAM_PROTO_GetFieldsCounters [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 13 00 00 [12:38:35]Write to MH i2c: E2 08 00 7E 06 80 13 00 00 00 00 00 00 00 [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 62 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 62 00 7E 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 86 42 01 00 0E 04 04 00 0F 02 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 B6 [12:38: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 86 42 01 00 0E 04 04 00 0F 02 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 [12:38:35]wFMCommunicate OK [12:38:35]SAM_PROTO_GetFieldsCounters done [12:38:35]requested_item shift.num is exist - process it [12:38:35]requested_item shift.opened is exist - process it [12:38:35]req_shift_opened [12:38:35]FM_GetShiftState [12:38:35]SAM_PROTO_GetShiftState [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 13 01 00 [12:38:35]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:35]Read from MH i2c: E2 0E 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 04 [12:38:35]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:38:35]wFMCommunicate OK [12:38:35]SAM_PROTO_GetShiftState done [12:38:35]FM_GetShiftState done [12:38:35]req_shift_opened done [12:38:35]requested_item shift.open_date is exist - process it [12:38:35]req_shift_open_date [12:38:35]req_shift_open_date done [12:38:35]produce_requested_data done [12:38:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82566,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:38:35]process_action_free close_receipt [12:38:35]json_value_free [12:38:35]json_value_free done [12:38:35]process_json_proto returns [12:38:35]Send response to host [12:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82566,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:38:35]free response buf [12:38:35]execute_script done [12:38:35]execute_script returns [12:38:35]free content buf [12:38:35]Sock 7.Close socket [12:38:35]Sock 7.Thread stoped [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:29]accept exits with 10 [12:47:29]New connection [12:47:29]New thread 3066887524 created [12:47:29]Thread 3066744164 joined [12:47:29]Waiting for new connection... [12:47:29] Sock 10.Parse request [12:47:29]Sock 10.Check first char [12:47:29]Sock 10.First char is OK [12:47:29]request: POST /json_proto HTTP/1.0 [12:47:29]Method: POST [12:47:29]URL: /json_proto [12:47:29]Method is POST - this is cgi request [12:47:29]url: /json_proto [12:47:29]query_string will be loaded in cgi processing [12:47:29]execute_cgi json_proto POST (null) [12:47:29]execute_cgi path=json_proto method=POST [12:47:29]POST find Content-Length [12:47:29]Host: 172.17.44.67:8080 [12:47:29]Content-Length: 677 [12:47:29]Content-Type: application/json [12:47:29] [12:47:29]POST finish read [12:47:29]Found Content-Length = 677 [12:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:47:29]execute_script... [12:47: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 : (1)919055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:47:29]POST & json_proto [12:47:29]process_json_proto [12:47:29]json parsed OK: [12:47:29]protocol is kg_v1.0 [12:47:29]action value=close_receipt [12:47:29]process_action close_receipt [12:47:29]cmd_close_receipt [12:47:29]MH_GetDate [12:47:29]Write to MH i2c: F0 00 00 80 06 75 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: F0 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: F0 09 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: F0 09 00 80 06 00 61 AA 13 67 F1 C7 6B 64 8A [12:47:29]GetLastDocTimeStamp 1729341513 [12:47:29]current date 1729342049 [12:47:29]FM_GetShiftState [12:47:29]SAM_PROTO_GetShiftState [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 13 01 00 [12:47:29]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 0E 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 06 [12:47:29]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:47:29]wFMCommunicate OK [12:47:29]SAM_PROTO_GetShiftState done [12:47:29]FM_GetShiftState done [12:47:29]opened in 1729298811 [12:47:29]opened+sec_in_day 1729385211 [12:47:29]quantity*price = 50041 [12:47:29]sum+1 = 50042 [12:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 64 19.10.2024 12:47 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82567 ФПД: 209465177815176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T124729&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82567&fm=209465177815176&tin=02508201610067®Number=0000000000091680&sum=50000 [12:47:30]StoreToDocumentArchive [12:47:30]shift 527 fd 82567 [12:47:30]save to /storage/0527/doc_00082567 [12:47:30]save last doc name /storage/0527/doc_00082567 to /storage/kkm_last_doc_name [12:47:30]save OK [12:47:30]Clear old archive folders... [12:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:30]tlvbuf is 00540A90 [12:47:30]SAM_PROTO_ClearQueue [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 09 00 00 [12:47:30]Write to MH i2c: E2 08 00 8E 06 80 09 00 00 00 00 00 00 06 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]SAM_PROTO_ClearQueue done [12:47:30]KKMCreateOFDPacket [12:47:30]OFDProtocolAddRootSTLVToBuf [12:47:30]FM_MakeSignedData [12:47:30]FM_MakeSignedData [12:47:30]SAM_PROTO_SignData [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 01 02 [12:47:30]Write to MH i2c: E2 08 00 8F 06 80 0D 01 02 00 00 00 00 0E [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=255 [12:47:30]MH_SAM_APDU [12:47:30]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 40 00 00 00 F4 03 04 00 61 AA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 42 01 00 35 04 06 00 BE [12:47:30]Write to MH i2c: E2 02 01 90 06 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 40 00 00 00 F4 03 04 00 61 AA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 42 01 00 35 04 06 00 BE 00 00 F8 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=10 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 02 02 05 81 E9 84 38 88 [12:47:30]Write to MH i2c: E2 0D 00 91 06 80 0D 02 02 05 00 81 E9 84 38 88 00 00 C9 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 03 02 [12:47:30]Write to MH i2c: E2 08 00 92 06 80 0D 03 02 00 00 00 00 13 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 92 06 00 81 65 44 EE EE A5 70 95 90 00 C4 [12:47:30]RAPDU: 81 65 44 EE EE A5 70 95 90 00 [12:47:30]wFMCommunicate OK [12:47:30]SAM_PROTO_SignData done [12:47:30]FM_MakeSignedData done [12:47:30]CreateOFDProtocolMessage [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 11 00 00 [12:47:30]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [12:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:47:30]wFMCommunicate OK [12:47:30]CreateOFDProtocolMessage done [12:47:30]OFDSenderStorePacket 82567 [12:47:30]StoreOFDPacket docnum=82567 [12:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C1 36 07 01 5B 3D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 40 00 00 00 F4 03 04 00 61 AA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 42 01 00 35 04 06 00 BE 81 E9 84 38 88 81 65 44 EE EE A5 70 95 [12:47:30]CheckFolder [12:47:30]dirname=/storage/ofd_packets [12:47:30]CheckFolder done [12:47:30]ProducePacketName [12:47:30]name=ofd_packets/00082567 [12:47:30]NVStorageSaveData ofd_packets/00082567 [12:47:30]File name is /storage/ofd_packets/00082567 [12:47:30]Write 301 bytes [12:47:30]NVStorageSaveData done [12:47:30]OFDSenderStorePacket done [12:47:30]KKMCreateOFDPacket done [12:47:30]NVStorageSaveData kkm_last_timestamp [12:47:30]File name is /storage/kkm_last_timestamp [12:47:30]Write 4 bytes [12:47:30]NVStorageSaveData done [12:47:30]ExternCall_PrintAddStr [12:47:30]wPrintStart [12:47:30]Write to MH i2c: 01 00 00 94 06 9A [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [12:47:30]RasterBufferAndPrint [12:47:30]line Счет N : (1)919055 [12:47:30]line ИНН: 02508201610067 [12:47:30]line Контрольно-Кассовый Чек [12:47:30]line ПРОДАЖА [12:47:30]line ТРК (МРК, ГНК) : 11 [12:47:30]line Товар: 2710124130 [12:47:30]line Аи-92-К-4 [12:47:30]line 7.480 * 66.90 [12:47:30]line = 500.41 [12:47:30]line НДС 12% НСП 1% [12:47:30]line > о реализуемом товаре [12:47:30]line ОКРУГЛЕНИЕ: -0.41 [12:47:30]line ИТОГО: 500.00 [12:47:30]line Внесено: 500.00 [12:47:30]line СДАЧА: 0.00 [12:47:30]line НСП 1% : 4.43 [12:47:30]line НДС 12% : 53.14 [12:47:30]line Наличными: 500.00 [12:47:30]line Безнал.: 0.00 [12:47:30]line Место: АЗС № 114 "Партнер Нефть" [12:47:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:47:30]line СНО: Общий режим [12:47:30]line Чек 64 19.10.2024 12:47 [12:47:30]line Смена: 527 ФФД: 1.0 [12:47:30]line ЗНМ: 0300000086 [12:47:30]line РНМ: 0000000000091680 [12:47:30]line Версия ККМ: 001 [12:47:30]line ФМ: 0000000000871843 [12:47:30]line ФД: 82567 [12:47:30]line ФПД: 209465177815176 [12:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T124729&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82567&fm=209465177815176&tin=02508201610067®Number=0000000000091680&sum=50000 [12:47:31]OFD Sender: Processing packet 82567 [packets to send 254, broken 253] [12:47:31]ProducePacketName [12:47:31]name=ofd_packets/00082567 [12:47:31]OFD Sender: To server: pG, [12:47:31]CommunicateWithHost lk.salyk.kg:30040 [12:47:31]ConnectInit lk.salyk.kg [12:47:31]written 0, free lines is 4095 [12:47:31]Write to MH i2c: 01 00 00 BF 06 C5 [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 D4 0C AC [12:47:31]RasterBufferAndPrint [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]written 0, free lines is 3288 [12:47:31]MH_Cut [12:47:31]Write to MH i2c: D1 01 00 C6 06 01 9E [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 C6 06 00 9D [12:47:31]Write to MH i2c: 01 00 00 C7 06 CD [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:32]Connected sock=11 [12:47:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C1 36 07 01 5B 3D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 40 00 00 00 F4 03 04 00 61 AA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 42 01 00 35 04 06 00 BE 81 E9 84 38 88 81 65 44 EE EE A5 70 95 [12:47:32]*** Cut start [12:47:32]*** Partial cut [12:47:32]*** CUTSNS_PIN = 1 [12:47:32]*** CUTSNS_PIN = 0 [12:47:32]*** Brake cut motor [12:47:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 84 01 47 00 22 6B 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 31 38 34 33 10 04 04 00 87 42 01 00 F4 03 04 00 99 4F 13 67 B6 04 01 00 00 76 36 57 33 A9 94 59 E0 [12:47:32]CommunicateWithHost err = 0 [12:47:32]CheckOFDResponse [12:47:32]1017 (14) - 77093643461234 [12:47:32]1041 (16) - 0000000000871843 [12:47:32]1040 (4) - 82567 [12:47:32]1012 (4) - 19.10.2024 06:20 [12:47:32]1206 (1) - 0 [12:47:32]OFD Sender: Remove packet 82567 [12:47:32]ProducePacketName [12:47:32]name=ofd_packets/00082567 [12:47:32]NVStorageDeleteData [12:47:32]Read from MH i2c: 01 [12:47:32]MH_I2C_Read... [12:47:32]*** Stop cut motor [12:47:32]*** Cut end [12:47:32]Read from MH i2c: 01 07 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FF 0F E2 [12:47:32]process_action close_receipt done [12:47:32]requested_data is exist [12:47:32]produce_requested_data [12:47:32]requested_item fm.sn is exist - process it [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 11 00 00 [12:47:32]Write to MH i2c: E2 08 00 C8 06 80 11 00 00 00 00 00 00 48 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 C8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9A [12:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:47:33]wFMCommunicate OK [12:47:33]requested_item fd.num is exist - process it [12:47:33]SAM_PROTO_GetFieldsCounters [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 00 00 [12:47:33]Write to MH i2c: E2 08 00 C9 06 80 13 00 00 00 00 00 00 4B [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 62 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 62 00 C9 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 87 42 01 00 0E 04 04 00 0F 02 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 05 [12:47: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 87 42 01 00 0E 04 04 00 0F 02 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 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetFieldsCounters done [12:47:33]requested_item shift.num is exist - process it [12:47:33]requested_item shift.opened is exist - process it [12:47:33]req_shift_opened [12:47:33]FM_GetShiftState [12:47:33]SAM_PROTO_GetShiftState [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 01 00 [12:47:33]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 4F [12:47:33]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetShiftState done [12:47:33]FM_GetShiftState done [12:47:33]req_shift_opened done [12:47:33]requested_item shift.open_date is exist - process it [12:47:33]req_shift_open_date [12:47:33]req_shift_open_date done [12:47:33]produce_requested_data done [12:47:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82567,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [12:47:33]process_action_free close_receipt [12:47:33]json_value_free [12:47:33]json_value_free done [12:47:33]process_json_proto returns [12:47:33]Send response to host [12:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82567,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [12:47:33]free response buf [12:47:33]execute_script done [12:47:33]execute_script returns [12:47:33]free content buf [12:47:33]Sock 10.Close socket [12:47:33]Sock 10.Thread stoped [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:51]recv_with_timeout no data received [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:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:38]accept exits with 7 [13:01:38]New connection [13:01:38]New thread 3066744164 created [13:01:38]Thread 3066887524 joined [13:01:38]Waiting for new connection... [13:01:38] Sock 7.Parse request [13:01:38]Sock 7.Check first char [13:01:38]Sock 7.First char is OK [13:01:38]request: POST /json_proto HTTP/1.0 [13:01:38]Method: POST [13:01:38]URL: /json_proto [13:01:38]Method is POST - this is cgi request [13:01:38]url: /json_proto [13:01:38]query_string will be loaded in cgi processing [13:01:38]execute_cgi json_proto POST (null) [13:01:38]execute_cgi path=json_proto method=POST [13:01:38]POST find Content-Length [13:01:38]Host: 172.17.44.67:8080 [13:01:38]Content-Length: 682 [13:01:38]Content-Type: application/json [13:01:38] [13:01:38]POST finish read [13:01:38]Found Content-Length = 682 [13:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:38]execute_script... [13:01: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 : (1)919056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:38]POST & json_proto [13:01:38]process_json_proto [13:01:38]json parsed OK: [13:01:38]protocol is kg_v1.0 [13:01:38]action value=close_receipt [13:01:38]process_action close_receipt [13:01:38]cmd_close_receipt [13:01:38]MH_GetDate [13:01:38]Write to MH i2c: F0 00 00 CB 06 C0 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 09 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: F0 09 00 CB 06 00 B3 AD 13 67 F1 C7 6B 64 2A [13:01:38]GetLastDocTimeStamp 1729342049 [13:01:38]current date 1729342899 [13:01:38]FM_GetShiftState [13:01:38]SAM_PROTO_GetShiftState [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 13 01 00 [13:01:38]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0E 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 51 [13:01:38]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:01:38]wFMCommunicate OK [13:01:38]SAM_PROTO_GetShiftState done [13:01:38]FM_GetShiftState done [13:01:38]opened in 1729298811 [13:01:38]opened+sec_in_day 1729385211 [13:01:38]quantity*price = 100015 [13:01:38]sum+1 = 100017 [13:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 65 19.10.2024 13:01 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82568 ФПД: 9555496548394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T130139&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82568&fm=9555496548394&tin=02508201610067®Number=0000000000091680&sum=100000 [13:01:39]StoreToDocumentArchive [13:01:39]shift 527 fd 82568 [13:01:39]save to /storage/0527/doc_00082568 [13:01:39]save last doc name /storage/0527/doc_00082568 to /storage/kkm_last_doc_name [13:01:39]save OK [13:01:39]Clear old archive folders... [13:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:39]tlvbuf is 0050BCC0 [13:01:39]SAM_PROTO_ClearQueue [13:01:39]wFMCommunicate request_size=4 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 09 00 00 [13:01:39]Write to MH i2c: E2 08 00 D9 06 80 09 00 00 00 00 00 00 51 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [13:01:39]RAPDU: 90 00 [13:01:39]wFMCommunicate OK [13:01:39]SAM_PROTO_ClearQueue done [13:01:39]KKMCreateOFDPacket [13:01:39]OFDProtocolAddRootSTLVToBuf [13:01:39]FM_MakeSignedData [13:01:39]FM_MakeSignedData [13:01:39]SAM_PROTO_SignData [13:01:39]wFMCommunicate request_size=4 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 0D 01 02 [13:01:39]Write to MH i2c: E2 08 00 DA 06 80 0D 01 02 00 00 00 00 59 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [13:01:39]RAPDU: 90 00 [13:01:39]wFMCommunicate OK [13:01:39]wFMCommunicate request_size=255 [13:01:39]MH_SAM_APDU [13:01:39]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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B3 AD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 42 01 00 35 04 06 00 08 [13:01:39]Write to MH i2c: E2 02 01 DB 06 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B3 AD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 42 01 00 35 04 06 00 08 00 00 DE [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]OFD Sender: No OFD packet to send [13:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [13:01:39]RAPDU: 90 00 [13:01:39]wFMCommunicate OK [13:01:39]wFMCommunicate request_size=10 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 0D 02 02 05 B0 CF FA 38 2A [13:01:39]Write to MH i2c: E2 0D 00 DC 06 80 0D 02 02 05 00 B0 CF FA 38 2A 00 00 41 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [13:01:40]RAPDU: 90 00 [13:01:40]wFMCommunicate OK [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 0D 03 02 [13:01:40]Write to MH i2c: E2 08 00 DD 06 80 0D 03 02 00 00 00 00 5E [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0B 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0B 00 DD 06 00 D3 EB 96 7F BE DE 67 F8 90 00 2D [13:01:40]RAPDU: D3 EB 96 7F BE DE 67 F8 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_SignData done [13:01:40]FM_MakeSignedData done [13:01:40]CreateOFDProtocolMessage [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 11 00 00 [13:01:40]Write to MH i2c: E2 08 00 DE 06 80 11 00 00 00 00 00 00 5E [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 DE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B0 [13:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:40]wFMCommunicate OK [13:01:40]CreateOFDProtocolMessage done [13:01:40]OFDSenderStorePacket 82568 [13:01:40]StoreOFDPacket docnum=82568 [13:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 64 4E 07 01 43 92 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B3 AD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 42 01 00 35 04 06 00 08 B0 CF FA 38 2A D3 EB 96 7F BE DE 67 F8 [13:01:40]CheckFolder [13:01:40]dirname=/storage/ofd_packets [13:01:40]CheckFolder done [13:01:40]ProducePacketName [13:01:40]name=ofd_packets/00082568 [13:01:40]NVStorageSaveData ofd_packets/00082568 [13:01:40]File name is /storage/ofd_packets/00082568 [13:01:40]Write 301 bytes [13:01:40]NVStorageSaveData done [13:01:40]OFDSenderStorePacket done [13:01:40]KKMCreateOFDPacket done [13:01:40]NVStorageSaveData kkm_last_timestamp [13:01:40]File name is /storage/kkm_last_timestamp [13:01:40]Write 4 bytes [13:01:40]NVStorageSaveData done [13:01:40]ExternCall_PrintAddStr [13:01:40]wPrintStart [13:01:40]Write to MH i2c: 01 00 00 DF 06 E5 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [13:01:40]RasterBufferAndPrint [13:01:40]line Счет N : (1)919056 [13:01:40]line ИНН: 02508201610067 [13:01:40]line Контрольно-Кассовый Чек [13:01:40]line ПРОДАЖА [13:01:40]line ТРК (МРК, ГНК) : 11 [13:01:40]line Товар: 2710124130 [13:01:40]line Аи-92-К-4 [13:01:40]line 14.950 * 66.90 [13:01:40]line = 1000.16 [13:01:40]line НДС 12% НСП 1% [13:01:40]line > о реализуемом товаре [13:01:40]line ОКРУГЛЕНИЕ: -0.16 [13:01:40]line ИТОГО: 1000.00 [13:01:40]line Внесено: 1000.00 [13:01:40]line СДАЧА: 0.00 [13:01:40]line НСП 1% : 8.85 [13:01:40]line НДС 12% : 106.21 [13:01:40]line Наличными: 1000.00 [13:01:40]line Безнал.: 0.00 [13:01:40]line Место: АЗС № 114 "Партнер Нефть" [13:01:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:01:40]line СНО: Общий режим [13:01:40]line Чек 65 19.10.2024 13:01 [13:01:40]line Смена: 527 ФФД: 1.0 [13:01:40]line ЗНМ: 0300000086 [13:01:40]line РНМ: 0000000000091680 [13:01:40]line Версия ККМ: 001 [13:01:40]line ФМ: 0000000000871843 [13:01:40]line ФД: 82568 [13:01:40]line ФПД: 9555496548394 [13:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T130139&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82568&fm=9555496548394&tin=02508201610067®Number=0000000000091680&sum=100000 [13:01:40]OFD Sender: Processing packet 82568 [packets to send 254, broken 253] [13:01:40]ProducePacketName [13:01:40]name=ofd_packets/00082568 [13:01:40]OFD Sender: To server: pG, [13:01:40]CommunicateWithHost lk.salyk.kg:30040 [13:01:40]ConnectInit lk.salyk.kg [13:01:40]written 0, free lines is 4095 [13:01:40]Write to MH i2c: 01 00 00 0A 07 11 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 E4 0C 08 [13:01:40]RasterBufferAndPrint [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]line [13:01:40]written 0, free lines is 3306 [13:01:40]MH_Cut [13:01:40]Write to MH i2c: D1 01 00 11 07 01 EA [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: D1 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: D1 01 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: D1 01 00 11 07 00 E9 [13:01:40]Write to MH i2c: 01 00 00 12 07 19 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:41]*** Cut start [13:01:41]*** Partial cut [13:01:41]*** CUTSNS_PIN = 1 [13:01:41]*** CUTSNS_PIN = 0 [13:01:41]Connected sock=11 [13:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 64 4E 07 01 43 92 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B3 AD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 42 01 00 35 04 06 00 08 B0 CF FA 38 2A D3 EB 96 7F BE DE 67 F8 [13:01:41]*** Brake cut motor [13:01:42]Read from MH i2c: 01 [13:01:42]MH_I2C_Read... [13:01:42]*** Stop cut motor [13:01:42]*** Cut end [13:01:42]Read from MH i2c: 01 07 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [13:01:42]process_action close_receipt done [13:01:42]requested_data is exist [13:01:42]produce_requested_data [13:01:42]requested_item fm.sn is exist - process it [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 11 00 00 [13:01:42]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 17 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E6 [13:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:42]wFMCommunicate OK [13:01:42]requested_item fd.num is exist - process it [13:01:42]SAM_PROTO_GetFieldsCounters [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 13 00 00 [13:01:42]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A4 21 47 00 E0 A2 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 31 38 34 33 10 04 04 00 88 42 01 00 F4 03 04 00 EB 52 13 67 B6 04 01 00 00 82 DB 07 AF 09 F7 15 6F [13:01:42]CommunicateWithHost err = 0 [13:01:42]CheckOFDResponse [13:01:42]1017 (14) - 77093643461234 [13:01:42]1041 (16) - 0000000000871843 [13:01:42]1040 (4) - 82568 [13:01:42]1012 (4) - 19.10.2024 06:34 [13:01:42]1206 (1) - 0 [13:01:42]OFD Sender: Remove packet 82568 [13:01:42]ProducePacketName [13:01:42]name=ofd_packets/00082568 [13:01:42]NVStorageDeleteData [13:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 62 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 62 00 14 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 88 42 01 00 0E 04 04 00 0F 02 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 55 [13:01: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 88 42 01 00 0E 04 04 00 0F 02 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 [13:01:42]wFMCommunicate OK [13:01:42]SAM_PROTO_GetFieldsCounters done [13:01:42]requested_item shift.num is exist - process it [13:01:42]requested_item shift.opened is exist - process it [13:01:42]req_shift_opened [13:01:42]FM_GetShiftState [13:01:42]SAM_PROTO_GetShiftState [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 13 01 00 [13:01:42]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:42]Read from MH i2c: E2 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 9B [13:01:42]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:01:42]wFMCommunicate OK [13:01:42]SAM_PROTO_GetShiftState done [13:01:42]FM_GetShiftState done [13:01:42]req_shift_opened done [13:01:42]requested_item shift.open_date is exist - process it [13:01:42]req_shift_open_date [13:01:42]req_shift_open_date done [13:01:42]produce_requested_data done [13:01:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82568,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [13:01:42]process_action_free close_receipt [13:01:42]json_value_free [13:01:42]json_value_free done [13:01:42]process_json_proto returns [13:01:42]Send response to host [13:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82568,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [13:01:42]free response buf [13:01:42]execute_script done [13:01:42]execute_script returns [13:01:42]free content buf [13:01:42]Sock 7.Close socket [13:01:42]Sock 7.Thread stoped [13:01:42]OFD Sender: No OFD packet to send [13:01:47]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:00]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:48]OFD Sender: No OFD packet to send [13:02:51]recv_with_timeout no data received [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:01]recv_with_timeout no data received [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:14]recv_with_timeout no data received [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:33]recv_with_timeout no data received [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:49]recv_with_timeout no data received [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:19]recv_with_timeout no data received [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]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:08]recv_with_timeout no data received [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:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]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:26:59]accept exits with 10 [13:26:59]New connection [13:26:59]New thread 3066887524 created [13:26:59]Thread 3066744164 joined [13:26:59]Waiting for new connection... [13:26:59] Sock 10.Parse request [13:26:59]Sock 10.Check first char [13:26:59]Sock 10.First char is OK [13:26:59]request: POST /json_proto HTTP/1.0 [13:26:59]Method: POST [13:26:59]URL: /json_proto [13:26:59]Method is POST - this is cgi request [13:26:59]url: /json_proto [13:26:59]query_string will be loaded in cgi processing [13:26:59]execute_cgi json_proto POST (null) [13:26:59]execute_cgi path=json_proto method=POST [13:26:59]POST find Content-Length [13:26:59]Host: 172.17.44.67:8080 [13:26:59]Content-Length: 769 [13:26:59]Content-Type: application/json [13:26:59] [13:26:59]POST finish read [13:26:59]Found Content-Length = 769 [13:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:59]execute_script... [13:26: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 : (1)919058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:59]POST & json_proto [13:26:59]process_json_proto [13:26:59]json parsed OK: [13:26:59]protocol is kg_v1.0 [13:26:59]action value=close_receipt [13:26:59]process_action close_receipt [13:26:59]cmd_close_receipt [13:26:59]MH_GetDate [13:26:59]Write to MH i2c: F0 00 00 16 07 0C [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 09 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: F0 09 00 16 07 00 A4 B3 13 67 F1 C7 6B 64 6D [13:26:59]GetLastDocTimeStamp 1729342899 [13:26:59]current date 1729344420 [13:26:59]FM_GetShiftState [13:26:59]SAM_PROTO_GetShiftState [13:26:59]wFMCommunicate request_size=4 [13:26:59]MH_SAM_APDU [13:26:59]CAPDU: 80 13 01 00 [13:26:59]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [13:26:59]Write i2c OK [13:26:59]MH_I2C_Read... [13:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:59]Read from MH i2c: E2 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 0E 00 [13:26:59]MH_I2C_Read... [13:26:59]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 9D [13:26:59]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:26:59]wFMCommunicate OK [13:26:59]SAM_PROTO_GetShiftState done [13:26:59]FM_GetShiftState done [13:26:59]opened in 1729298811 [13:26:59]opened+sec_in_day 1729385211 [13:26:59]quantity*price = 100015 [13:26:59]sum+1 = 100017 [13:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 66 19.10.2024 13:27 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82569 ФПД: 109017492594936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T132700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82569&fm=109017492594936&tin=02508201610067®Number=0000000000091680&sum=100016 [13:27:01]StoreToDocumentArchive [13:27:01]shift 527 fd 82569 [13:27:01]save to /storage/0527/doc_00082569 [13:27:01]save last doc name /storage/0527/doc_00082569 to /storage/kkm_last_doc_name [13:27:01]save OK [13:27:01]Clear old archive folders... [13:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:01]tlvbuf is 00544080 [13:27:01]SAM_PROTO_ClearQueue [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 09 00 00 [13:27:01]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_ClearQueue done [13:27:01]KKMCreateOFDPacket [13:27:01]OFDProtocolAddRootSTLVToBuf [13:27:01]FM_MakeSignedData [13:27:01]FM_MakeSignedData [13:27:01]SAM_PROTO_SignData [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 01 02 [13:27:01]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=255 [13:27:01]MH_SAM_APDU [13:27:01]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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 42 01 00 35 04 06 00 63 [13:27:01]Write to MH i2c: E2 02 01 26 07 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 42 01 00 35 04 06 00 63 00 00 9E [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=10 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 02 02 05 26 9C EB A0 F8 [13:27:01]Write to MH i2c: E2 0D 00 27 07 80 0D 02 02 05 00 26 9C EB A0 F8 00 00 F7 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:27:01]RAPDU: 90 00 [13:27:01]wFMCommunicate OK [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 0D 03 02 [13:27:01]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0B 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 0B 00 28 07 00 69 89 EB A5 6F 04 1C AB 90 00 67 [13:27:01]RAPDU: 69 89 EB A5 6F 04 1C AB 90 00 [13:27:01]wFMCommunicate OK [13:27:01]SAM_PROTO_SignData done [13:27:01]FM_MakeSignedData done [13:27:01]CreateOFDProtocolMessage [13:27:01]wFMCommunicate request_size=4 [13:27:01]MH_SAM_APDU [13:27:01]CAPDU: 80 11 00 00 [13:27:01]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:01]Read from MH i2c: E2 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [13:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:01]wFMCommunicate OK [13:27:01]CreateOFDProtocolMessage done [13:27:01]OFDSenderStorePacket 82569 [13:27:01]StoreOFDPacket docnum=82569 [13:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 BD 07 01 EB 01 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 42 01 00 35 04 06 00 63 26 9C EB A0 F8 69 89 EB A5 6F 04 1C AB [13:27:01]CheckFolder [13:27:01]dirname=/storage/ofd_packets [13:27:01]CheckFolder done [13:27:01]ProducePacketName [13:27:01]name=ofd_packets/00082569 [13:27:01]NVStorageSaveData ofd_packets/00082569 [13:27:01]File name is /storage/ofd_packets/00082569 [13:27:01]Write 301 bytes [13:27:01]NVStorageSaveData done [13:27:01]OFDSenderStorePacket done [13:27:01]KKMCreateOFDPacket done [13:27:01]NVStorageSaveData kkm_last_timestamp [13:27:01]File name is /storage/kkm_last_timestamp [13:27:01]Write 4 bytes [13:27:01]NVStorageSaveData done [13:27:01]ExternCall_PrintAddStr [13:27:01]wPrintStart [13:27:01]Write to MH i2c: 01 00 00 2A 07 31 [13:27:01]Write i2c OK [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 [13:27:01]MH_I2C_Read... [13:27:01]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [13:27:01]RasterBufferAndPrint [13:27:01]line Счет N : (1)919058 [13:27:01]line ИНН: 02508201610067 [13:27:01]line Контрольно-Кассовый Чек [13:27:01]line ПРОДАЖА [13:27:01]line ТРК (МРК, ГНК) : 11 [13:27:01]line Товар: 2710124130 [13:27:01]line Аи-92-К-4 [13:27:01]line 14.950 * 66.90 [13:27:01]line = 1000.16 [13:27:01]line НДС 12% НСП 1% [13:27:01]line > о реализуемом товаре [13:27:01]line ИТОГО: 1000.16 [13:27:01]line НСП 1% : 8.85 [13:27:01]line НДС 12% : 106.21 [13:27:01]line Наличными: 0.00 [13:27:01]line Безнал.: 1000.16 [13:27:01]line Место: АЗС № 114 "Партнер Нефть" [13:27:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:27:01]line СНО: Общий режим [13:27:01]line Чек 66 19.10.2024 13:27 [13:27:01]line Смена: 527 ФФД: 1.0 [13:27:01]line ЗНМ: 0300000086 [13:27:01]line РНМ: 0000000000091680 [13:27:01]line Версия ККМ: 001 [13:27:01]line Платежная система: Mbank [13:27:01]line ФМ: 0000000000871843 [13:27:01]line ФД: 82569 [13:27:01]line ФПД: 109017492594936 [13:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T132700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82569&fm=109017492594936&tin=02508201610067®Number=0000000000091680&sum=100016 [13:27:01]written 0, free lines is 4095 [13:27:01]OFD Sender: Processing packet 82569 [packets to send 254, broken 253] [13:27:01]ProducePacketName [13:27:01]name=ofd_packets/00082569 [13:27:01]OFD Sender: To server: pG, [13:27:01]CommunicateWithHost lk.salyk.kg:30040 [13:27:01]ConnectInit lk.salyk.kg [13:27:02]Write to MH i2c: 01 00 00 53 07 5A [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 12 0D 80 [13:27:02]RasterBufferAndPrint [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]line [13:27:02]Connected sock=7 [13:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 BD 07 01 EB 01 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 42 01 00 35 04 06 00 63 26 9C EB A0 F8 69 89 EB A5 6F 04 1C AB [13:27:02]written 0, free lines is 3353 [13:27:02]MH_Cut [13:27:02]Write to MH i2c: D1 01 00 5A 07 01 33 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 01 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: D1 01 00 5A 07 00 32 [13:27:02]Write to MH i2c: 01 00 00 5B 07 62 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3B 95 47 00 08 B3 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 31 38 34 33 10 04 04 00 89 42 01 00 F4 03 04 00 DC 58 13 67 B6 04 01 00 00 26 4A 07 F9 88 AA EE 2E [13:27:02]CommunicateWithHost err = 0 [13:27:02]CheckOFDResponse [13:27:02]1017 (14) - 77093643461234 [13:27:02]1041 (16) - 0000000000871843 [13:27:02]1040 (4) - 82569 [13:27:02]1012 (4) - 19.10.2024 06:59 [13:27:02]1206 (1) - 0 [13:27:02]OFD Sender: Remove packet 82569 [13:27:02]ProducePacketName [13:27:02]name=ofd_packets/00082569 [13:27:02]NVStorageDeleteData [13:27:03]*** Cut start [13:27:03]*** Partial cut [13:27:03]*** CUTSNS_PIN = 1 [13:27:03]*** CUTSNS_PIN = 0 [13:27:03]OFD Sender: No OFD packet to send [13:27:03]*** Brake cut motor [13:27:03]Read from MH i2c: 01 [13:27:03]MH_I2C_Read... [13:27:03]*** Stop cut motor [13:27:03]*** Cut end [13:27:03]Read from MH i2c: 01 07 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 FF 0F 77 [13:27:03]process_action close_receipt done [13:27:03]requested_data is exist [13:27:03]produce_requested_data [13:27:03]requested_item fm.sn is exist - process it [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 11 00 00 [13:27:03]Write to MH i2c: E2 08 00 5C 07 80 11 00 00 00 00 00 00 DD [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 17 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 17 00 5C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [13:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:03]wFMCommunicate OK [13:27:03]requested_item fd.num is exist - process it [13:27:03]SAM_PROTO_GetFieldsCounters [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 13 00 00 [13:27:03]Write to MH i2c: E2 08 00 5D 07 80 13 00 00 00 00 00 00 E0 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 62 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 62 00 5D 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 89 42 01 00 0E 04 04 00 0F 02 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 A2 [13:27: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 89 42 01 00 0E 04 04 00 0F 02 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 [13:27:03]wFMCommunicate OK [13:27:04]SAM_PROTO_GetFieldsCounters done [13:27:04]requested_item shift.num is exist - process it [13:27:04]requested_item shift.opened is exist - process it [13:27:04]req_shift_opened [13:27:04]FM_GetShiftState [13:27:04]SAM_PROTO_GetShiftState [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 13 01 00 [13:27:04]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:04]Read from MH i2c: E2 0E 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E4 [13:27:04]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_GetShiftState done [13:27:04]FM_GetShiftState done [13:27:04]req_shift_opened done [13:27:04]requested_item shift.open_date is exist - process it [13:27:04]req_shift_open_date [13:27:04]req_shift_open_date done [13:27:04]produce_requested_data done [13:27:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82569,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [13:27:04]process_action_free close_receipt [13:27:04]json_value_free [13:27:04]json_value_free done [13:27:04]process_json_proto returns [13:27:04]Send response to host [13:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82569,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [13:27:04]free response buf [13:27:04]execute_script done [13:27:04]execute_script returns [13:27:04]free content buf [13:27:04]Sock 10.Close socket [13:27:04]Sock 10.Thread stoped [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:22]accept exits with 9 [13:28:22]New connection [13:28:22]New thread 3066744164 created [13:28:22]Thread 3066887524 joined [13:28:22]Waiting for new connection... [13:28:22] Sock 9.Parse request [13:28:22]Sock 9.Check first char [13:28:22]Sock 9.First char is OK [13:28:22]request: POST /json_proto HTTP/1.0 [13:28:22]Method: POST [13:28:22]URL: /json_proto [13:28:22]Method is POST - this is cgi request [13:28:22]url: /json_proto [13:28:22]query_string will be loaded in cgi processing [13:28:22]execute_cgi json_proto POST (null) [13:28:22]execute_cgi path=json_proto method=POST [13:28:22]POST find Content-Length [13:28:22]Host: 172.17.44.67:8080 [13:28:22]Content-Length: 759 [13:28:22]Content-Type: application/json [13:28:22] [13:28:22]POST finish read [13:28:22]Found Content-Length = 759 [13:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100699", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]execute_script... [13:28: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 : (1)919057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100699", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]POST & json_proto [13:28:22]process_json_proto [13:28:22]json parsed OK: [13:28:22]protocol is kg_v1.0 [13:28:22]action value=close_receipt [13:28:22]process_action close_receipt [13:28:22]cmd_close_receipt [13:28:22]MH_GetDate [13:28:22]Write to MH i2c: F0 00 00 5F 07 55 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 5F 07 00 F7 B3 13 67 F1 C7 6B 64 09 [13:28:22]GetLastDocTimeStamp 1729344420 [13:28:22]current date 1729344503 [13:28:22]FM_GetShiftState [13:28:22]SAM_PROTO_GetShiftState [13:28:22]wFMCommunicate request_size=4 [13:28:22]MH_SAM_APDU [13:28:22]CAPDU: 80 13 01 00 [13:28:22]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:22]Read from MH i2c: E2 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 E6 [13:28:22]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:28:22]wFMCommunicate OK [13:28:22]SAM_PROTO_GetShiftState done [13:28:22]FM_GetShiftState done [13:28:22]opened in 1729298811 [13:28:22]opened+sec_in_day 1729385211 [13:28:22]quantity*price = 0 [13:28:22]sum+1 = 1 [13:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 67 19.10.2024 13:28 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100699 ФМ: 0000000000871843 ФД: 82570 ФПД: 26317426092437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T132823&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82570&fm=26317426092437&tin=02508201610067®Number=0000000000091680&sum=0 [13:28:24]StoreToDocumentArchive [13:28:24]shift 527 fd 82570 [13:28:24]save to /storage/0527/doc_00082570 [13:28:24]save last doc name /storage/0527/doc_00082570 to /storage/kkm_last_doc_name [13:28:24]save OK [13:28:24]Clear old archive folders... [13:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:28:24]tlvbuf is 005459A0 [13:28:24]SAM_PROTO_ClearQueue [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 09 00 00 [13:28:24]Write to MH i2c: E2 08 00 6D 07 80 09 00 00 00 00 00 00 E6 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [13:28:24]RAPDU: 90 00 [13:28:24]wFMCommunicate OK [13:28:24]SAM_PROTO_ClearQueue done [13:28:24]KKMCreateOFDPacket [13:28:24]OFDProtocolAddRootSTLVToBuf [13:28:24]FM_MakeSignedData [13:28:24]FM_MakeSignedData [13:28:24]SAM_PROTO_SignData [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 0D 01 02 [13:28:24]Write to MH i2c: E2 08 00 6E 07 80 0D 01 02 00 00 00 00 EE [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:24]Read from MH i2c: E2 03 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [13:28:24]RAPDU: 90 00 [13:28:24]wFMCommunicate OK [13:28:24]wFMCommunicate request_size=255 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F7 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 42 01 00 35 04 06 00 [13:28:24]Write to MH i2c: E2 02 01 6F 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F7 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 42 01 00 35 04 06 00 00 00 89 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:24]Read from MH i2c: E2 03 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [13:28:24]RAPDU: 90 00 [13:28:24]wFMCommunicate OK [13:28:24]wFMCommunicate request_size=11 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 0D 02 02 06 17 EF 80 D5 69 95 [13:28:24]Write to MH i2c: E2 0E 00 70 07 80 0D 02 02 06 00 17 EF 80 D5 69 95 00 00 56 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [13:28:24]RAPDU: 90 00 [13:28:24]wFMCommunicate OK [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 0D 03 02 [13:28:24]Write to MH i2c: E2 08 00 71 07 80 0D 03 02 00 00 00 00 F3 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0B 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 0B 00 71 07 00 FB A4 F0 77 3B FF 27 67 90 00 C2 [13:28:24]RAPDU: FB A4 F0 77 3B FF 27 67 90 00 [13:28:24]wFMCommunicate OK [13:28:24]SAM_PROTO_SignData done [13:28:24]FM_MakeSignedData done [13:28:24]CreateOFDProtocolMessage [13:28:24]wFMCommunicate request_size=4 [13:28:24]MH_SAM_APDU [13:28:24]CAPDU: 80 11 00 00 [13:28:24]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [13:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:28:24]wFMCommunicate OK [13:28:24]CreateOFDProtocolMessage done [13:28:24]OFDSenderStorePacket 82570 [13:28:24]StoreOFDPacket docnum=82570 [13:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 00 41 08 01 A4 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F7 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 42 01 00 35 04 06 00 17 EF 80 D5 69 95 FB A4 F0 77 3B FF 27 67 [13:28:24]CheckFolder [13:28:24]dirname=/storage/ofd_packets [13:28:24]CheckFolder done [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00082570 [13:28:24]NVStorageSaveData ofd_packets/00082570 [13:28:24]File name is /storage/ofd_packets/00082570 [13:28:24]Write 302 bytes [13:28:24]NVStorageSaveData done [13:28:24]OFDSenderStorePacket done [13:28:24]KKMCreateOFDPacket done [13:28:24]NVStorageSaveData kkm_last_timestamp [13:28:24]File name is /storage/kkm_last_timestamp [13:28:24]Write 4 bytes [13:28:24]NVStorageSaveData done [13:28:24]ExternCall_PrintAddStr [13:28:24]wPrintStart [13:28:24]Write to MH i2c: 01 00 00 73 07 7A [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [13:28:24]RasterBufferAndPrint [13:28:24]line Счет N : (1)919057 [13:28:24]line ИНН: 02508201610067 [13:28:24]line Контрольно-Кассовый Чек [13:28:24]line ПРОДАЖА [13:28:24]line ТРК (МРК, ГНК) : 31 [13:28:24]line Товар: 2710194210 [13:28:24]line ДТ(л)-К-5 [13:28:24]line 50.000 * 0.00 [13:28:24]line = 0.00 [13:28:24]line НДС 12% НСП 1% [13:28:24]line > о реализуемом товаре [13:28:24]line ИТОГО: 0.00 [13:28:24]line НСП 1% : 0.00 [13:28:24]line НДС 12% : 0.00 [13:28:24]line Наличными: 0.00 [13:28:24]line Безнал.: 0.00 [13:28:24]line Место: АЗС № 114 "Партнер Нефть" [13:28:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:28:24]line СНО: Общий режим [13:28:24]line Чек 67 19.10.2024 13:28 [13:28:24]line Смена: 527 ФФД: 1.0 [13:28:24]line ЗНМ: 0300000086 [13:28:24]line РНМ: 0000000000091680 [13:28:24]line Версия ККМ: 001 [13:28:24]line Талоны: ТК ГПНА Online [13:28:24]line 30100699 [13:28:24]line ФМ: 0000000000871843 [13:28:24]line ФД: 82570 [13:28:24]line ФПД: 26317426092437 [13:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T132823&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82570&fm=26317426092437&tin=02508201610067®Number=0000000000091680&sum=0 [13:28:24]OFD Sender: Processing packet 82570 [packets to send 254, broken 253] [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00082570 [13:28:24]OFD Sender: To server: pG, [13:28:24]CommunicateWithHost lk.salyk.kg:30040 [13:28:24]ConnectInit lk.salyk.kg [13:28:24]written 0, free lines is 4095 [13:28:25]Write to MH i2c: 01 00 00 9D 07 A4 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 ED 0C A4 [13:28:25]RasterBufferAndPrint [13:28:25]line [13:28:25]line [13:28:25]line [13:28:25]line [13:28:25]line [13:28:25]written 0, free lines is 3313 [13:28:25]MH_Cut [13:28:25]Write to MH i2c: D1 01 00 A4 07 01 7D [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: D1 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: D1 01 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: D1 01 00 A4 07 00 7C [13:28:25]Write to MH i2c: 01 00 00 A5 07 AC [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]Connected sock=11 [13:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 00 41 08 01 A4 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 F7 B3 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 42 01 00 35 04 06 00 17 EF 80 D5 69 95 FB A4 F0 77 3B FF 27 67 [13:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A1 18 47 00 67 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 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 42 01 00 F4 03 04 00 2F 59 13 67 B6 04 01 00 00 B7 F5 E3 DF 89 82 77 45 [13:28:25]CommunicateWithHost err = 0 [13:28:25]CheckOFDResponse [13:28:25]1017 (14) - 77093643461234 [13:28:25]1041 (16) - 0000000000871843 [13:28:25]1040 (4) - 82570 [13:28:25]1012 (4) - 19.10.2024 07:01 [13:28:25]1206 (1) - 0 [13:28:25]OFD Sender: Remove packet 82570 [13:28:25]ProducePacketName [13:28:25]name=ofd_packets/00082570 [13:28:25]NVStorageDeleteData [13:28:26]*** Cut start [13:28:26]*** Partial cut [13:28:26]*** CUTSNS_PIN = 1 [13:28:26]*** CUTSNS_PIN = 0 [13:28:26]*** Brake cut motor [13:28:26]OFD Sender: No OFD packet to send [13:28:26]Read from MH i2c: 01 [13:28:26]MH_I2C_Read... [13:28:26]*** Stop cut motor [13:28:26]*** Cut end [13:28:26]Read from MH i2c: 01 07 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [13:28:26]process_action close_receipt done [13:28:26]requested_data is exist [13:28:26]produce_requested_data [13:28:26]requested_item fm.sn is exist - process it [13:28:26]wFMCommunicate request_size=4 [13:28:26]MH_SAM_APDU [13:28:26]CAPDU: 80 11 00 00 [13:28:26]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 17 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [13:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:28:26]wFMCommunicate OK [13:28:26]requested_item fd.num is exist - process it [13:28:26]SAM_PROTO_GetFieldsCounters [13:28:26]wFMCommunicate request_size=4 [13:28:26]MH_SAM_APDU [13:28:26]CAPDU: 80 13 00 00 [13:28:26]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 A7 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8A 42 01 00 0E 04 04 00 0F 02 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 F0 [13:28: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8A 42 01 00 0E 04 04 00 0F 02 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 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetFieldsCounters done [13:28:26]requested_item shift.num is exist - process it [13:28:26]requested_item shift.opened is exist - process it [13:28:26]req_shift_opened [13:28:26]FM_GetShiftState [13:28:26]SAM_PROTO_GetShiftState [13:28:26]wFMCommunicate request_size=4 [13:28:26]MH_SAM_APDU [13:28:26]CAPDU: 80 13 01 00 [13:28:26]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 2E [13:28:26]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetShiftState done [13:28:26]FM_GetShiftState done [13:28:26]req_shift_opened done [13:28:26]requested_item shift.open_date is exist - process it [13:28:26]req_shift_open_date [13:28:26]req_shift_open_date done [13:28:26]produce_requested_data done [13:28:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82570,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [13:28:26]process_action_free close_receipt [13:28:26]json_value_free [13:28:26]json_value_free done [13:28:26]process_json_proto returns [13:28:26]Send response to host [13:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82570,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [13:28:26]free response buf [13:28:26]execute_script done [13:28:26]execute_script returns [13:28:26]free content buf [13:28:26]Sock 9.Close socket [13:28:26]Sock 9.Thread stoped [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:14]accept exits with 7 [13:40:14]New connection [13:40:14]New thread 3066887524 created [13:40:14]Thread 3066744164 joined [13:40:14]Waiting for new connection... [13:40:14] Sock 7.Parse request [13:40:14]Sock 7.Check first char [13:40:14]Sock 7.First char is OK [13:40:14]request: POST /json_proto HTTP/1.0 [13:40:14]Method: POST [13:40:14]URL: /json_proto [13:40:14]Method is POST - this is cgi request [13:40:14]url: /json_proto [13:40:14]query_string will be loaded in cgi processing [13:40:14]execute_cgi json_proto POST (null) [13:40:14]execute_cgi path=json_proto method=POST [13:40:14]POST find Content-Length [13:40:14]Host: 172.17.44.67:8080 [13:40:14]Content-Length: 806 [13:40:14]Content-Type: application/json [13:40:14] [13:40:14]POST finish read [13:40:14]Found Content-Length = 806 [13:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203020", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:14]execute_script... [13:40: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 : (1)919059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203020", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:14]POST & json_proto [13:40:14]process_json_proto [13:40:14]json parsed OK: [13:40:14]protocol is kg_v1.0 [13:40:14]action value=close_receipt [13:40:14]process_action close_receipt [13:40:14]cmd_close_receipt [13:40:14]MH_GetDate [13:40:14]Write to MH i2c: F0 00 00 A9 07 9F [13:40:14]Write i2c OK [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 09 00 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: F0 09 00 A9 07 00 BF B6 13 67 F1 C7 6B 64 1E [13:40:14]GetLastDocTimeStamp 1729344503 [13:40:14]current date 1729345215 [13:40:14]FM_GetShiftState [13:40:14]SAM_PROTO_GetShiftState [13:40:14]wFMCommunicate request_size=4 [13:40:14]MH_SAM_APDU [13:40:14]CAPDU: 80 13 01 00 [13:40:14]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [13:40:14]Write i2c OK [13:40:14]MH_I2C_Read... [13:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:14]Read from MH i2c: E2 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: E2 0E 00 [13:40:14]MH_I2C_Read... [13:40:14]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 30 [13:40:14]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:40:14]wFMCommunicate OK [13:40:14]SAM_PROTO_GetShiftState done [13:40:14]FM_GetShiftState done [13:40:14]opened in 1729298811 [13:40:14]opened+sec_in_day 1729385211 [13:40:14]quantity*price = 0 [13:40:14]sum+1 = 1 [13:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 68 19.10.2024 13:40 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203020 ФМ: 0000000000871843 ФД: 82571 ФПД: 275115158447950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T134015&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82571&fm=275115158447950&tin=02508201610067®Number=0000000000091680&sum=0 [13:40:15]StoreToDocumentArchive [13:40:15]shift 527 fd 82571 [13:40:15]save to /storage/0527/doc_00082571 [13:40:15]save last doc name /storage/0527/doc_00082571 to /storage/kkm_last_doc_name [13:40:15]save OK [13:40:15]Clear old archive folders... [13:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:40:15]tlvbuf is 005455E0 [13:40:15]SAM_PROTO_ClearQueue [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 09 00 00 [13:40:15]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]SAM_PROTO_ClearQueue done [13:40:15]KKMCreateOFDPacket [13:40:15]OFDProtocolAddRootSTLVToBuf [13:40:15]FM_MakeSignedData [13:40:15]FM_MakeSignedData [13:40:15]SAM_PROTO_SignData [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 01 02 [13:40:15]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=255 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BF B6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 42 01 [13:40:15]Write to MH i2c: E2 02 01 B9 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BF B6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 42 01 00 00 ED [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=16 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FA 37 3D 4A A7 4E [13:40:15]Write to MH i2c: E2 13 00 BA 07 80 0D 02 02 0B 00 00 35 04 06 00 FA 37 3D 4A A7 4E 00 00 3D [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 03 02 [13:40:15]Write to MH i2c: E2 08 00 BB 07 80 0D 03 02 00 00 00 00 3D [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 0B 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 0B 00 BB 07 00 9D FE BA AF 12 4D 47 F3 90 00 DB [13:40:15]RAPDU: 9D FE BA AF 12 4D 47 F3 90 00 [13:40:15]wFMCommunicate OK [13:40:15]SAM_PROTO_SignData done [13:40:15]FM_MakeSignedData done [13:40:15]CreateOFDProtocolMessage [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 11 00 00 [13:40:15]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 17 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [13:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:40:15]wFMCommunicate OK [13:40:15]CreateOFDProtocolMessage done [13:40:15]OFDSenderStorePacket 82571 [13:40:15]StoreOFDPacket docnum=82571 [13:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 FD 97 0D 01 7F D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BF B6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 42 01 00 35 04 06 00 FA 37 3D 4A A7 4E 9D FE BA AF 12 4D 47 F3 [13:40:15]CheckFolder [13:40:15]dirname=/storage/ofd_packets [13:40:15]CheckFolder done [13:40:15]ProducePacketName [13:40:15]name=ofd_packets/00082571 [13:40:15]NVStorageSaveData ofd_packets/00082571 [13:40:15]File name is /storage/ofd_packets/00082571 [13:40:15]Write 307 bytes [13:40:15]NVStorageSaveData done [13:40:15]OFDSenderStorePacket done [13:40:15]KKMCreateOFDPacket done [13:40:15]NVStorageSaveData kkm_last_timestamp [13:40:15]File name is /storage/kkm_last_timestamp [13:40:15]Write 4 bytes [13:40:15]NVStorageSaveData done [13:40:15]ExternCall_PrintAddStr [13:40:15]wPrintStart [13:40:15]Write to MH i2c: 01 00 00 BD 07 C4 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 07 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [13:40:15]RasterBufferAndPrint [13:40:15]line Счет N : (1)919059 [13:40:15]line ИНН: 02508201610067 [13:40:15]line Контрольно-Кассовый Чек [13:40:15]line ПРОДАЖА [13:40:15]line ТРК (МРК, ГНК) : 21 [13:40:15]line Товар: 2710194800 [13:40:15]line D-Energy ДТ-К-2 [13:40:15]line 20.000 * 0.00 [13:40:15]line = 0.00 [13:40:15]line НДС 12% НСП 1% [13:40:15]line > о реализуемом товаре [13:40:15]line ИТОГО: 0.00 [13:40:15]line НСП 1% : 0.00 [13:40:15]line НДС 12% : 0.00 [13:40:15]line Наличными: 0.00 [13:40:15]line Безнал.: 0.00 [13:40:15]line Место: АЗС № 114 "Партнер Нефть" [13:40:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:40:15]line СНО: Общий режим [13:40:15]line Чек 68 19.10.2024 13:40 [13:40:15]line Смена: 527 ФФД: 1.0 [13:40:15]line ЗНМ: 0300000086 [13:40:15]line РНМ: 0000000000091680 [13:40:15]line Версия ККМ: 001 [13:40:15]line Талоны: Топливные Талоны [13:40:15]line 2203020 [13:40:15]line ФМ: 0000000000871843 [13:40:15]line ФД: 82571 [13:40:15]line ФПД: 275115158447950 [13:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T134015&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82571&fm=275115158447950&tin=02508201610067®Number=0000000000091680&sum=0 [13:40:16]OFD Sender: Processing packet 82571 [packets to send 254, broken 253] [13:40:16]ProducePacketName [13:40:16]name=ofd_packets/00082571 [13:40:16]OFD Sender: To server: pG, [13:40:16]CommunicateWithHost lk.salyk.kg:30040 [13:40:16]ConnectInit lk.salyk.kg [13:40:16]written 0, free lines is 4095 [13:40:16]Connected sock=9 [13:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 FD 97 0D 01 7F D9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 BF B6 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 42 01 00 35 04 06 00 FA 37 3D 4A A7 4E 9D FE BA AF 12 4D 47 F3 [13:40:16]Write to MH i2c: 01 00 00 E7 07 EE [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FB 0C FC [13:40:16]RasterBufferAndPrint [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]written 0, free lines is 3329 [13:40:16]MH_Cut [13:40:16]Write to MH i2c: D1 01 00 EE 07 01 C7 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 EE 07 00 C6 [13:40:16]Write to MH i2c: 01 00 00 EF 07 F6 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4D BF 47 00 F7 61 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 31 38 34 33 10 04 04 00 8B 42 01 00 F4 03 04 00 F6 5B 13 67 B6 04 01 00 00 1C 7E 7E 00 2D 72 17 44 [13:40:17]CommunicateWithHost err = 0 [13:40:17]CheckOFDResponse [13:40:17]1017 (14) - 77093643461234 [13:40:17]1041 (16) - 0000000000871843 [13:40:17]1040 (4) - 82571 [13:40:17]1012 (4) - 19.10.2024 07:12 [13:40:17]1206 (1) - 0 [13:40:17]OFD Sender: Remove packet 82571 [13:40:17]ProducePacketName [13:40:17]name=ofd_packets/00082571 [13:40:17]NVStorageDeleteData [13:40:17]*** Cut start [13:40:17]*** Partial cut [13:40:17]*** CUTSNS_PIN = 1 [13:40:17]*** CUTSNS_PIN = 0 [13:40:17]OFD Sender: No OFD packet to send [13:40:17]*** Brake cut motor [13:40:18]Read from MH i2c: 01 [13:40:18]MH_I2C_Read... [13:40:18]*** Stop cut motor [13:40:18]*** Cut end [13:40:18]Read from MH i2c: 01 07 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [13:40:18]process_action close_receipt done [13:40:18]requested_data is exist [13:40:18]produce_requested_data [13:40:18]requested_item fm.sn is exist - process it [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 11 00 00 [13:40:18]Write to MH i2c: E2 08 00 F0 07 80 11 00 00 00 00 00 00 71 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 F0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C3 [13:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:40:18]wFMCommunicate OK [13:40:18]requested_item fd.num is exist - process it [13:40:18]SAM_PROTO_GetFieldsCounters [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 13 00 00 [13:40:18]Write to MH i2c: E2 08 00 F1 07 80 13 00 00 00 00 00 00 74 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 62 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 62 00 F1 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8B 42 01 00 0E 04 04 00 0F 02 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 3E [13:40: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8B 42 01 00 0E 04 04 00 0F 02 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 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_GetFieldsCounters done [13:40:18]requested_item shift.num is exist - process it [13:40:18]requested_item shift.opened is exist - process it [13:40:18]req_shift_opened [13:40:18]FM_GetShiftState [13:40:18]SAM_PROTO_GetShiftState [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 13 01 00 [13:40:18]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 78 [13:40:18]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_GetShiftState done [13:40:18]FM_GetShiftState done [13:40:18]req_shift_opened done [13:40:18]requested_item shift.open_date is exist - process it [13:40:18]req_shift_open_date [13:40:18]req_shift_open_date done [13:40:18]produce_requested_data done [13:40:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82571,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [13:40:18]process_action_free close_receipt [13:40:18]json_value_free [13:40:18]json_value_free done [13:40:18]process_json_proto returns [13:40:18]Send response to host [13:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82571,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [13:40:18]free response buf [13:40:18]execute_script done [13:40:18]execute_script returns [13:40:18]free content buf [13:40:18]Sock 7.Close socket [13:40:18]Sock 7.Thread stoped [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]recv_with_timeout no data received [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]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: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:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:57]accept exits with 10 [13:55:57]New connection [13:55:57]New thread 3066744164 created [13:55:57]Thread 3066887524 joined [13:55:57]Waiting for new connection... [13:55:57] Sock 10.Parse request [13:55:57]Sock 10.Check first char [13:55:57]Sock 10.First char is OK [13:55:57]request: POST /json_proto HTTP/1.0 [13:55:57]Method: POST [13:55:57]URL: /json_proto [13:55:57]Method is POST - this is cgi request [13:55:57]url: /json_proto [13:55:57]query_string will be loaded in cgi processing [13:55:57]execute_cgi json_proto POST (null) [13:55:57]execute_cgi path=json_proto method=POST [13:55:57]POST find Content-Length [13:55:57]Host: 172.17.44.67:8080 [13:55:57]Content-Length: 754 [13:55:57]Content-Type: application/json [13:55:57] [13:55:57]POST finish read [13:55:57]Found Content-Length = 754 [13:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100889", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:57]execute_script... [13:55: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 : (1)919060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100889", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:57]POST & json_proto [13:55:57]process_json_proto [13:55:57]json parsed OK: [13:55:57]protocol is kg_v1.0 [13:55:57]action value=close_receipt [13:55:57]process_action close_receipt [13:55:57]cmd_close_receipt [13:55:57]MH_GetDate [13:55:57]Write to MH i2c: F0 00 00 F3 07 E9 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 09 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: F0 09 00 F3 07 00 6E BA 13 67 F1 C7 6B 64 1B [13:55:57]GetLastDocTimeStamp 1729345215 [13:55:57]current date 1729346158 [13:55:57]FM_GetShiftState [13:55:57]SAM_PROTO_GetShiftState [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 01 00 [13:55:57]Write to MH i2c: E2 08 00 F4 07 80 13 01 00 00 00 00 00 78 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 F4 07 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 7A [13:55:57]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetShiftState done [13:55:57]FM_GetShiftState done [13:55:57]opened in 1729298811 [13:55:57]opened+sec_in_day 1729385211 [13:55:57]quantity*price = 0 [13:55:57]sum+1 = 1 [13:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 69 19.10.2024 13:55 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100889 ФМ: 0000000000871843 ФД: 82572 ФПД: 145148870722913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T135558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82572&fm=145148870722913&tin=02508201610067®Number=0000000000091680&sum=0 [13:55:58]StoreToDocumentArchive [13:55:58]shift 527 fd 82572 [13:55:58]save to /storage/0527/doc_00082572 [13:55:58]save last doc name /storage/0527/doc_00082572 to /storage/kkm_last_doc_name [13:55:58]save OK [13:55:58]Clear old archive folders... [13:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:58]tlvbuf is 0054F510 [13:55:58]SAM_PROTO_ClearQueue [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 09 00 00 [13:55:58]Write to MH i2c: E2 08 00 01 08 80 09 00 00 00 00 00 00 7B [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]SAM_PROTO_ClearQueue done [13:55:58]KKMCreateOFDPacket [13:55:58]OFDProtocolAddRootSTLVToBuf [13:55:58]FM_MakeSignedData [13:55:58]FM_MakeSignedData [13:55:58]SAM_PROTO_SignData [13:55:58]wFMCommunicate request_size=4 [13:55:58]MH_SAM_APDU [13:55:58]CAPDU: 80 0D 01 02 [13:55:58]Write to MH i2c: E2 08 00 02 08 80 0D 01 02 00 00 00 00 83 [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:58]Read from MH i2c: E2 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 [13:55:58]MH_I2C_Read... [13:55:58]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [13:55:58]RAPDU: 90 00 [13:55:58]wFMCommunicate OK [13:55:58]wFMCommunicate request_size=255 [13:55:58]MH_SAM_APDU [13:55:58]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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6E BA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 42 01 00 35 04 06 00 84 [13:55:58]Write to MH i2c: E2 02 01 03 08 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6E BA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 42 01 00 35 04 06 00 84 00 00 7A [13:55:58]Write i2c OK [13:55:58]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 03 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [13:55:59]RAPDU: 90 00 [13:55:59]wFMCommunicate OK [13:55:59]wFMCommunicate request_size=10 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 0D 02 02 05 03 1A E1 05 61 [13:55:59]Write to MH i2c: E2 0D 00 04 08 80 0D 02 02 05 00 03 1A E1 05 61 00 00 F4 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 03 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [13:55:59]RAPDU: 90 00 [13:55:59]wFMCommunicate OK [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 0D 03 02 [13:55:59]Write to MH i2c: E2 08 00 05 08 80 0D 03 02 00 00 00 00 88 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0B 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0B 00 05 08 00 59 98 2B B9 BC 6A 2C DD 90 00 8D [13:55:59]RAPDU: 59 98 2B B9 BC 6A 2C DD 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_SignData done [13:55:59]FM_MakeSignedData done [13:55:59]CreateOFDProtocolMessage [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 11 00 00 [13:55:59]Write to MH i2c: E2 08 00 06 08 80 11 00 00 00 00 00 00 88 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]OFD Sender: No OFD packet to send [13:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 06 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [13:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:55:59]wFMCommunicate OK [13:55:59]CreateOFDProtocolMessage done [13:55:59]OFDSenderStorePacket 82572 [13:55:59]StoreOFDPacket docnum=82572 [13:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 69 51 07 01 94 5A 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6E BA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 42 01 00 35 04 06 00 84 03 1A E1 05 61 59 98 2B B9 BC 6A 2C DD [13:55:59]CheckFolder [13:55:59]dirname=/storage/ofd_packets [13:55:59]CheckFolder done [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00082572 [13:55:59]NVStorageSaveData ofd_packets/00082572 [13:55:59]File name is /storage/ofd_packets/00082572 [13:55:59]Write 301 bytes [13:55:59]NVStorageSaveData done [13:55:59]OFDSenderStorePacket done [13:55:59]KKMCreateOFDPacket done [13:55:59]NVStorageSaveData kkm_last_timestamp [13:55:59]File name is /storage/kkm_last_timestamp [13:55:59]Write 4 bytes [13:55:59]NVStorageSaveData done [13:55:59]ExternCall_PrintAddStr [13:55:59]wPrintStart [13:55:59]Write to MH i2c: 01 00 00 07 08 0F [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 FF 0F 24 [13:55:59]RasterBufferAndPrint [13:55:59]line Счет N : (1)919060 [13:55:59]line ИНН: 02508201610067 [13:55:59]line Контрольно-Кассовый Чек [13:55:59]line ПРОДАЖА [13:55:59]line ТРК (МРК, ГНК) : 22 [13:55:59]line Товар: 2710124130 [13:55:59]line Аи-92-К-4 [13:55:59]line 30.000 * 0.00 [13:55:59]line = 0.00 [13:55:59]line НДС 12% НСП 1% [13:55:59]line > о реализуемом товаре [13:55:59]line ИТОГО: 0.00 [13:55:59]line НСП 1% : 0.00 [13:55:59]line НДС 12% : 0.00 [13:55:59]line Наличными: 0.00 [13:55:59]line Безнал.: 0.00 [13:55:59]line Место: АЗС № 114 "Партнер Нефть" [13:55:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:55:59]line СНО: Общий режим [13:55:59]line Чек 69 19.10.2024 13:55 [13:55:59]line Смена: 527 ФФД: 1.0 [13:55:59]line ЗНМ: 0300000086 [13:55:59]line РНМ: 0000000000091680 [13:55:59]line Версия ККМ: 001 [13:55:59]line Талоны: ТК ГПНА Online [13:55:59]line 30100889 [13:55:59]line ФМ: 0000000000871843 [13:55:59]line ФД: 82572 [13:55:59]line ФПД: 145148870722913 [13:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T135558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82572&fm=145148870722913&tin=02508201610067®Number=0000000000091680&sum=0 [13:55:59]OFD Sender: Processing packet 82572 [packets to send 254, broken 253] [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00082572 [13:55:59]OFD Sender: To server: pG, [13:55:59]CommunicateWithHost lk.salyk.kg:30040 [13:55:59]ConnectInit lk.salyk.kg [13:55:59]written 0, free lines is 4095 [13:55:59]Connected sock=9 [13:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 69 51 07 01 94 5A 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 6E BA 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 42 01 00 35 04 06 00 84 03 1A E1 05 61 59 98 2B B9 BC 6A 2C DD [13:55:59]Write to MH i2c: 01 00 00 31 08 39 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 F3 0C 3F [13:55:59]RasterBufferAndPrint [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]line [13:55:59]written 0, free lines is 3320 [13:55:59]MH_Cut [13:55:59]Write to MH i2c: D1 01 00 38 08 01 12 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 01 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: D1 01 00 38 08 00 11 [13:55:59]Write to MH i2c: 01 00 00 39 08 41 [13:56:00]Write i2c OK [13:56:00]MH_I2C_Read... [13:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 69 51 47 00 B6 DC 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 31 38 34 33 10 04 04 00 8C 42 01 00 F4 03 04 00 A5 5F 13 67 B6 04 01 00 00 6D A6 0E 48 92 CA 24 5A [13:56:00]CommunicateWithHost err = 0 [13:56:00]CheckOFDResponse [13:56:00]1017 (14) - 77093643461234 [13:56:00]1041 (16) - 0000000000871843 [13:56:00]1040 (4) - 82572 [13:56:00]1012 (4) - 19.10.2024 07:28 [13:56:00]1206 (1) - 0 [13:56:00]OFD Sender: Remove packet 82572 [13:56:00]ProducePacketName [13:56:00]name=ofd_packets/00082572 [13:56:00]NVStorageDeleteData [13:56:00]*** Cut start [13:56:00]*** Partial cut [13:56:00]*** CUTSNS_PIN = 1 [13:56:00]*** CUTSNS_PIN = 0 [13:56:00]OFD Sender: No OFD packet to send [13:56:00]*** Brake cut motor [13:56:01]Read from MH i2c: 01 [13:56:01]MH_I2C_Read... [13:56:01]*** Stop cut motor [13:56:01]*** Cut end [13:56:01]Read from MH i2c: 01 07 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [13:56:01]process_action close_receipt done [13:56:01]requested_data is exist [13:56:01]produce_requested_data [13:56:01]requested_item fm.sn is exist - process it [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 11 00 00 [13:56:01]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 17 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0E [13:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:56:01]wFMCommunicate OK [13:56:01]requested_item fd.num is exist - process it [13:56:01]SAM_PROTO_GetFieldsCounters [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 13 00 00 [13:56:01]Write to MH i2c: E2 08 00 3B 08 80 13 00 00 00 00 00 00 BF [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 62 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 62 00 3B 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8C 42 01 00 0E 04 04 00 0F 02 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 8D [13:56: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8C 42 01 00 0E 04 04 00 0F 02 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 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_GetFieldsCounters done [13:56:01]requested_item shift.num is exist - process it [13:56:01]requested_item shift.opened is exist - process it [13:56:01]req_shift_opened [13:56:01]FM_GetShiftState [13:56:01]SAM_PROTO_GetShiftState [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 13 01 00 [13:56:01]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 0E 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C3 [13:56:01]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_GetShiftState done [13:56:01]FM_GetShiftState done [13:56:01]req_shift_opened done [13:56:01]requested_item shift.open_date is exist - process it [13:56:01]req_shift_open_date [13:56:01]req_shift_open_date done [13:56:01]produce_requested_data done [13:56:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82572,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [13:56:01]process_action_free close_receipt [13:56:01]json_value_free [13:56:01]json_value_free done [13:56:01]process_json_proto returns [13:56:01]Send response to host [13:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82572,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [13:56:01]free response buf [13:56:01]execute_script done [13:56:01]execute_script returns [13:56:01]free content buf [13:56:01]Sock 10.Close socket [13:56:01]Sock 10.Thread stoped [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:14]recv_with_timeout no data received [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:24]recv_with_timeout no data received [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:17]recv_with_timeout no data received [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [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:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]accept exits with 7 [14:06:11]New connection [14:06:11]New thread 3066887524 created [14:06:11]Thread 3066744164 joined [14:06:11]Waiting for new connection... [14:06:11] Sock 7.Parse request [14:06:11]Sock 7.Check first char [14:06:11]Sock 7.First char is OK [14:06:11]request: POST /json_proto HTTP/1.0 [14:06:11]Method: POST [14:06:11]URL: /json_proto [14:06:11]Method is POST - this is cgi request [14:06:11]url: /json_proto [14:06:11]query_string will be loaded in cgi processing [14:06:11]execute_cgi json_proto POST (null) [14:06:11]execute_cgi path=json_proto method=POST [14:06:11]POST find Content-Length [14:06:11]Host: 172.17.44.67:8080 [14:06:11]Content-Length: 620 [14:06:11]Content-Type: application/json [14:06:11] [14:06:11]POST finish read [14:06:11]Found Content-Length = 620 [14:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10601", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:11]execute_script... [14:06: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)10601", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:11]POST & json_proto [14:06:11]process_json_proto [14:06:11]json parsed OK: [14:06:11]protocol is kg_v1.0 [14:06:11]action value=close_receipt [14:06:11]process_action close_receipt [14:06:11]cmd_close_receipt [14:06:11]MH_GetDate [14:06:11]Write to MH i2c: F0 00 00 3D 08 34 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: F0 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: F0 09 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: F0 09 00 3D 08 00 D5 BC 13 67 F1 C7 6B 64 CF [14:06:11]GetLastDocTimeStamp 1729346158 [14:06:11]current date 1729346773 [14:06:11]FM_GetShiftState [14:06:11]SAM_PROTO_GetShiftState [14:06:11]wFMCommunicate request_size=4 [14:06:11]MH_SAM_APDU [14:06:11]CAPDU: 80 13 01 00 [14:06:11]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:11]Read from MH i2c: E2 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 0E 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C5 [14:06:11]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:06:11]wFMCommunicate OK [14:06:11]SAM_PROTO_GetShiftState done [14:06:11]FM_GetShiftState done [14:06:11]opened in 1729298811 [14:06:11]opened+sec_in_day 1729385211 [14:06:11]quantity*price = 13500 [14:06:11]sum+1 = 13501 [14:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 70 19.10.2024 14:06 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82573 ФПД: 177636507837332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140613&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82573&fm=177636507837332&tin=02508201610067®Number=0000000000091680&sum=13500 0 [14:06:13]StoreToDocumentArchive [14:06:13]shift 527 fd 82573 [14:06:13]save to /storage/0527/doc_00082573 [14:06:13]save last doc name /storage/0527/doc_00082573 to /storage/kkm_last_doc_name [14:06:13]save OK [14:06:13]Clear old archive folders... [14:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:06:13]tlvbuf is 00514AC0 [14:06:13]SAM_PROTO_ClearQueue [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 09 00 00 [14:06:13]Write to MH i2c: E2 08 00 4B 08 80 09 00 00 00 00 00 00 C5 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]SAM_PROTO_ClearQueue done [14:06:13]KKMCreateOFDPacket [14:06:13]OFDProtocolAddRootSTLVToBuf [14:06:13]FM_MakeSignedData [14:06:13]FM_MakeSignedData [14:06:13]SAM_PROTO_SignData [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 01 02 [14:06:13]Write to MH i2c: E2 08 00 4C 08 80 0D 01 02 00 00 00 00 CD [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=255 [14:06:13]MH_SAM_APDU [14:06:13]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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 D5 BC 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 [14:06:13]Write to MH i2c: E2 02 01 4D 08 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 D5 BC 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 00 00 11 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=32 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 42 01 00 35 04 06 00 A1 8F 38 F2 E3 94 [14:06:13]Write to MH i2c: E2 23 00 4E 08 80 0D 02 02 1B 00 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 42 01 00 35 04 06 00 A1 8F 38 F2 E3 94 00 00 CD [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 03 02 [14:06:13]Write to MH i2c: E2 08 00 4F 08 80 0D 03 02 00 00 00 00 D2 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 0B 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 0B 00 4F 08 00 9C 7B 50 71 82 5A 41 6C 90 00 34 [14:06:13]RAPDU: 9C 7B 50 71 82 5A 41 6C 90 00 [14:06:13]wFMCommunicate OK [14:06:13]SAM_PROTO_SignData done [14:06:13]FM_MakeSignedData done [14:06:13]CreateOFDProtocolMessage [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 11 00 00 [14:06:13]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 17 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [14:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:13]wFMCommunicate OK [14:06:13]CreateOFDProtocolMessage done [14:06:13]OFDSenderStorePacket 82573 [14:06:13]StoreOFDPacket docnum=82573 [14:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 25 01 00 00 5B 4F 1D 01 F8 15 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 D5 BC 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 42 01 00 35 04 06 00 A1 8F 38 F2 E3 94 9C 7B 50 71 82 5A 41 6C [14:06:13]CheckFolder [14:06:13]dirname=/storage/ofd_packets [14:06:13]CheckFolder done [14:06:13]ProducePacketName [14:06:13]name=ofd_packets/00082573 [14:06:13]NVStorageSaveData ofd_packets/00082573 [14:06:13]File name is /storage/ofd_packets/00082573 [14:06:13]Write 323 bytes [14:06:13]NVStorageSaveData done [14:06:13]OFDSenderStorePacket done [14:06:13]KKMCreateOFDPacket done [14:06:13]NVStorageSaveData kkm_last_timestamp [14:06:13]File name is /storage/kkm_last_timestamp [14:06:13]Write 4 bytes [14:06:13]NVStorageSaveData done [14:06:13]OFD Sender: Processing packet 82573 [packets to send 254, broken 253] [14:06:13]ProducePacketName [14:06:13]name=ofd_packets/00082573 [14:06:13]ExternCall_PrintAddStr [14:06:13]wPrintStart [14:06:13]Write to MH i2c: 01 00 00 51 08 59 [14:06:13]OFD Sender: To server: pG, [14:06:13]CommunicateWithHost lk.salyk.kg:30040 [14:06:13]ConnectInit lk.salyk.kg [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 07 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 FF 0F 6E [14:06:13]RasterBufferAndPrint [14:06:13]line Счет N : (3)10601 [14:06:13]line ИНН: 02508201610067 [14:06:13]line Контрольно-Кассовый Чек [14:06:13]line ПРОДАЖА [14:06:13]line Товар: 48743570 [14:06:13]line Сигареты Winston XStyle Blue [14:06:13]line 1.000 * 135.00 [14:06:13]line = 135.00 [14:06:13]line НДС 12% НСП 1% [14:06:13]line > о реализуемом товаре [14:06:13]line ИТОГО: 135.00 [14:06:13]line НСП 1% : 1.19 [14:06:13]line НДС 12% : 14.34 [14:06:13]line Наличными: 135.00 [14:06:13]line Безнал.: 0.00 [14:06:13]line Место: АЗС № 114 "Партнер Нефть" [14:06:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:06:13]line СНО: Общий режим [14:06:13]line Чек 70 19.10.2024 14:06 [14:06:13]line Смена: 527 ФФД: 1.0 [14:06:13]line ЗНМ: 0300000086 [14:06:13]line РНМ: 0000000000091680 [14:06:13]line Версия ККМ: 001 [14:06:13]line ФМ: 0000000000871843 [14:06:13]line ФД: 82573 [14:06:13]line ФПД: 177636507837332 [14:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140613&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82573&fm=177636507837332&tin=02508201610067®Number=0000000000091680&sum=13500 [14:06:13]line 0 [14:06:13]written 0, free lines is 4095 [14:06:14]Write to MH i2c: 01 00 00 79 08 81 [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 EC 0C 80 [14:06:14]RasterBufferAndPrint [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]written 0, free lines is 3314 [14:06:14]MH_Cut [14:06:14]Write to MH i2c: D1 01 00 80 08 01 5A [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 01 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 01 00 80 08 00 59 [14:06:14]Write to MH i2c: 01 00 00 81 08 89 [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:15]*** Cut start [14:06:15]*** Partial cut [14:06:15]*** CUTSNS_PIN = 1 [14:06:15]*** CUTSNS_PIN = 0 [14:06:15]*** Brake cut motor [14:06:15]Read from MH i2c: 01 [14:06:15]MH_I2C_Read... [14:06:15]*** Stop cut motor [14:06:15]*** Cut end [14:06:15]Read from MH i2c: 01 07 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 FF 0F 9E [14:06:15]process_action close_receipt done [14:06:15]requested_data is exist [14:06:15]produce_requested_data [14:06:15]requested_item fm.sn is exist - process it [14:06:15]wFMCommunicate request_size=4 [14:06:15]MH_SAM_APDU [14:06:15]CAPDU: 80 11 00 00 [14:06:15]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:15]Read from MH i2c: E2 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 17 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 56 [14:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:15]wFMCommunicate OK [14:06:15]requested_item fd.num is exist - process it [14:06:15]SAM_PROTO_GetFieldsCounters [14:06:15]wFMCommunicate request_size=4 [14:06:15]MH_SAM_APDU [14:06:15]CAPDU: 80 13 00 00 [14:06:15]Write to MH i2c: E2 08 00 83 08 80 13 00 00 00 00 00 00 07 [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:15]Read from MH i2c: E2 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 62 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 62 00 83 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8D 42 01 00 0E 04 04 00 0F 02 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 D9 [14:06: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8D 42 01 00 0E 04 04 00 0F 02 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 [14:06:15]wFMCommunicate OK [14:06:15]SAM_PROTO_GetFieldsCounters done [14:06:16]requested_item shift.num is exist - process it [14:06:16]requested_item shift.opened is exist - process it [14:06:16]req_shift_opened [14:06:16]FM_GetShiftState [14:06:16]SAM_PROTO_GetShiftState [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 13 01 00 [14:06:16]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0E 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 0B [14:06:16]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_GetShiftState done [14:06:16]FM_GetShiftState done [14:06:16]req_shift_opened done [14:06:16]requested_item shift.open_date is exist - process it [14:06:16]req_shift_open_date [14:06:16]req_shift_open_date done [14:06:16]produce_requested_data done [14:06:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82573,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:06:16]process_action_free close_receipt [14:06:16]json_value_free [14:06:16]json_value_free done [14:06:16]process_json_proto returns [14:06:16]Send response to host [14:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82573,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:06:16]free response buf [14:06:16]execute_script done [14:06:16]execute_script returns [14:06:16]free content buf [14:06:16]Sock 7.Close socket [14:06:16]Sock 7.Thread stoped [14:08:24]ConnectInit Can't connect to host [14:08:24]CommunicateWithHost connect error [14:08:24]CommunicateWithHost err = -1 [14:08:24]OFD Sender: Server communicate error [14:08:29]OFD Sender: Processing packet 82573 [packets to send 254, broken 253] [14:08:29]ProducePacketName [14:08:29]name=ofd_packets/00082573 [14:08:29]OFD Sender: To server: pG, [14:08:29]CommunicateWithHost lk.salyk.kg:30040 [14:08:29]ConnectInit lk.salyk.kg [14:08:29]Connected sock=7 [14:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 25 01 00 00 5B 4F 1D 01 F8 15 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 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 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 D5 BC 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 42 01 00 35 04 06 00 A1 8F 38 F2 E3 94 9C 7B 50 71 82 5A 41 6C [14:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 78 E3 47 00 C9 1D 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 31 38 34 33 10 04 04 00 8D 42 01 00 F4 03 04 00 93 62 13 67 B6 04 01 00 00 64 B1 02 D2 8F A7 05 0B [14:08:30]CommunicateWithHost err = 0 [14:08:30]CheckOFDResponse [14:08:30]1017 (14) - 77093643461234 [14:08:30]1041 (16) - 0000000000871843 [14:08:30]1040 (4) - 82573 [14:08:30]1012 (4) - 19.10.2024 07:41 [14:08:30]1206 (1) - 0 [14:08:30]OFD Sender: Remove packet 82573 [14:08:30]ProducePacketName [14:08:30]name=ofd_packets/00082573 [14:08:30]NVStorageDeleteData [14:08:31]OFD Sender: No OFD packet to send [14:08:31]accept exits with 9 [14:08:31]New connection [14:08:31]New thread 3066744164 created [14:08:31]Thread 3066887524 joined [14:08:31]Waiting for new connection... [14:08:31] Sock 9.Parse request [14:08:31]Sock 9.Check first char [14:08:31]Sock 9.First char is OK [14:08:31]request: POST /json_proto HTTP/1.0 [14:08:31]Method: POST [14:08:31]URL: /json_proto [14:08:31]Method is POST - this is cgi request [14:08:31]url: /json_proto [14:08:31]query_string will be loaded in cgi processing [14:08:31]execute_cgi json_proto POST (null) [14:08:31]execute_cgi path=json_proto method=POST [14:08:31]POST find Content-Length [14:08:31]Host: 172.17.44.67:8080 [14:08:31]Content-Length: 682 [14:08:31]Content-Type: application/json [14:08:31] [14:08:31]POST finish read [14:08:31]Found Content-Length = 682 [14:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:31]execute_script... [14:08: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 : (1)919061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:31]POST & json_proto [14:08:31]process_json_proto [14:08:31]json parsed OK: [14:08:31]protocol is kg_v1.0 [14:08:31]action value=close_receipt [14:08:31]process_action close_receipt [14:08:31]cmd_close_receipt [14:08:31]MH_GetDate [14:08:31]Write to MH i2c: F0 00 00 85 08 7C [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 09 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 09 00 85 08 00 60 BD 13 67 F1 C7 6B 64 A3 [14:08:31]GetLastDocTimeStamp 1729346773 [14:08:31]current date 1729346912 [14:08:31]FM_GetShiftState [14:08:31]SAM_PROTO_GetShiftState [14:08:31]wFMCommunicate request_size=4 [14:08:31]MH_SAM_APDU [14:08:31]CAPDU: 80 13 01 00 [14:08:31]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:31]Read from MH i2c: E2 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: E2 0E 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 0D [14:08:31]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:08:31]wFMCommunicate OK [14:08:31]SAM_PROTO_GetShiftState done [14:08:31]FM_GetShiftState done [14:08:31]opened in 1729298811 [14:08:31]opened+sec_in_day 1729385211 [14:08:31]quantity*price = 120018 [14:08:31]sum+1 = 120020 [14:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 71 19.10.2024 14:08 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82574 ФПД: 122758811748669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140832&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82574&fm=122758811748669&tin=02508201610067®Number=0000000000091680&sum=120000 [14:08:32]StoreToDocumentArchive [14:08:32]shift 527 fd 82574 [14:08:32]save to /storage/0527/doc_00082574 [14:08:32]save last doc name /storage/0527/doc_00082574 to /storage/kkm_last_doc_name [14:08:32]save OK [14:08:32]Clear old archive folders... [14:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:32]tlvbuf is 0050C580 [14:08:32]SAM_PROTO_ClearQueue [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 09 00 00 [14:08:32]Write to MH i2c: E2 08 00 93 08 80 09 00 00 00 00 00 00 0D [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]SAM_PROTO_ClearQueue done [14:08:32]KKMCreateOFDPacket [14:08:32]OFDProtocolAddRootSTLVToBuf [14:08:32]FM_MakeSignedData [14:08:32]FM_MakeSignedData [14:08:32]SAM_PROTO_SignData [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 0D 01 02 [14:08:32]Write to MH i2c: E2 08 00 94 08 80 0D 01 02 00 00 00 00 15 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]wFMCommunicate request_size=255 [14:08:32]MH_SAM_APDU [14:08:32]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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 60 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 42 01 00 35 04 06 00 6F [14:08:32]Write to MH i2c: E2 02 01 95 08 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 60 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 42 01 00 35 04 06 00 6F 00 00 D7 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 03 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [14:08:33]RAPDU: 90 00 [14:08:33]wFMCommunicate OK [14:08:33]wFMCommunicate request_size=10 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 0D 02 02 05 A6 03 5E 09 3D [14:08:33]Write to MH i2c: E2 0D 00 96 08 80 0D 02 02 05 00 A6 03 5E 09 3D 00 00 6F [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 03 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [14:08:33]RAPDU: 90 00 [14:08:33]wFMCommunicate OK [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 0D 03 02 [14:08:33]Write to MH i2c: E2 08 00 97 08 80 0D 03 02 00 00 00 00 1A [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0B 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0B 00 97 08 00 6C 4B DA 67 E8 E7 78 F4 90 00 4E [14:08:33]RAPDU: 6C 4B DA 67 E8 E7 78 F4 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_SignData done [14:08:33]FM_MakeSignedData done [14:08:33]CreateOFDProtocolMessage [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 11 00 00 [14:08:33]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 17 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6C [14:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:08:33]wFMCommunicate OK [14:08:33]CreateOFDProtocolMessage done [14:08:33]OFDSenderStorePacket 82574 [14:08:33]StoreOFDPacket docnum=82574 [14:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EE 62 07 01 35 48 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 60 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 42 01 00 35 04 06 00 6F A6 03 5E 09 3D 6C 4B DA 67 E8 E7 78 F4 [14:08:33]CheckFolder [14:08:33]dirname=/storage/ofd_packets [14:08:33]CheckFolder done [14:08:33]ProducePacketName [14:08:33]name=ofd_packets/00082574 [14:08:33]NVStorageSaveData ofd_packets/00082574 [14:08:33]File name is /storage/ofd_packets/00082574 [14:08:33]Write 301 bytes [14:08:33]NVStorageSaveData done [14:08:33]OFDSenderStorePacket done [14:08:33]KKMCreateOFDPacket done [14:08:33]NVStorageSaveData kkm_last_timestamp [14:08:33]File name is /storage/kkm_last_timestamp [14:08:33]Write 4 bytes [14:08:33]NVStorageSaveData done [14:08:33]ExternCall_PrintAddStr [14:08:33]wPrintStart [14:08:33]Write to MH i2c: 01 00 00 99 08 A1 [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 07 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [14:08:33]RasterBufferAndPrint [14:08:33]line Счет N : (1)919061 [14:08:33]line ИНН: 02508201610067 [14:08:33]line Контрольно-Кассовый Чек [14:08:33]line ПРОДАЖА [14:08:33]line ТРК (МРК, ГНК) : 22 [14:08:33]line Товар: 2710124130 [14:08:33]line Аи-92-К-4 [14:08:33]line 17.940 * 66.90 [14:08:33]line = 1200.19 [14:08:33]line НДС 12% НСП 1% [14:08:33]line > о реализуемом товаре [14:08:33]line ОКРУГЛЕНИЕ: -0.19 [14:08:33]line ИТОГО: 1200.00 [14:08:33]line Внесено: 1200.00 [14:08:33]line СДАЧА: 0.00 [14:08:33]line НСП 1% : 10.62 [14:08:33]line НДС 12% : 127.45 [14:08:33]line Наличными: 1200.00 [14:08:33]line Безнал.: 0.00 [14:08:33]line Место: АЗС № 114 "Партнер Нефть" [14:08:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:08:33]line СНО: Общий режим [14:08:33]line Чек 71 19.10.2024 14:08 [14:08:33]line Смена: 527 ФФД: 1.0 [14:08:33]line ЗНМ: 0300000086 [14:08:33]line РНМ: 0000000000091680 [14:08:33]line Версия ККМ: 001 [14:08:33]line ФМ: 0000000000871843 [14:08:33]line ФД: 82574 [14:08:33]line ФПД: 122758811748669 [14:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140832&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82574&fm=122758811748669&tin=02508201610067®Number=0000000000091680&sum=120000 [14:08:33]OFD Sender: Processing packet 82574 [packets to send 254, broken 253] [14:08:33]ProducePacketName [14:08:33]name=ofd_packets/00082574 [14:08:33]OFD Sender: To server: pG, [14:08:33]CommunicateWithHost lk.salyk.kg:30040 [14:08:33]ConnectInit lk.salyk.kg [14:08:33]written 0, free lines is 4095 [14:08:33]Connected sock=7 [14:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EE 62 07 01 35 48 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 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 60 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 42 01 00 35 04 06 00 6F A6 03 5E 09 3D 6C 4B DA 67 E8 E7 78 F4 [14:08:34]Write to MH i2c: 01 00 00 C4 08 CC [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 07 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 E1 0C C0 [14:08:34]RasterBufferAndPrint [14:08:34]line [14:08:34]line [14:08:34]line [14:08:34]line [14:08:34]line [14:08:34]written 0, free lines is 3302 [14:08:34]MH_Cut [14:08:34]Write to MH i2c: D1 01 00 CB 08 01 A5 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: D1 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: D1 01 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: D1 01 00 CB 08 00 A4 [14:08:34]Write to MH i2c: 01 00 00 CC 08 D4 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4A 4E 47 00 53 5E 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 31 38 34 33 10 04 04 00 8E 42 01 00 F4 03 04 00 97 62 13 67 B6 04 01 00 00 B0 BC 65 54 6B 5F 76 E7 [14:08:34]CommunicateWithHost err = 0 [14:08:34]CheckOFDResponse [14:08:34]1017 (14) - 77093643461234 [14:08:34]1041 (16) - 0000000000871843 [14:08:34]1040 (4) - 82574 [14:08:34]1012 (4) - 19.10.2024 07:41 [14:08:34]1206 (1) - 0 [14:08:34]OFD Sender: Remove packet 82574 [14:08:34]ProducePacketName [14:08:34]name=ofd_packets/00082574 [14:08:34]NVStorageDeleteData [14:08:34]*** Cut start [14:08:34]*** Partial cut [14:08:34]*** CUTSNS_PIN = 1 [14:08:34]*** CUTSNS_PIN = 0 [14:08:34]OFD Sender: No OFD packet to send [14:08:35]*** Brake cut motor [14:08:35]Read from MH i2c: 01 [14:08:35]MH_I2C_Read... [14:08:35]*** Stop cut motor [14:08:35]*** Cut end [14:08:35]Read from MH i2c: 01 07 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 FF 0F E9 [14:08:35]process_action close_receipt done [14:08:35]requested_data is exist [14:08:35]produce_requested_data [14:08:35]requested_item fm.sn is exist - process it [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 11 00 00 [14:08:35]Write to MH i2c: E2 08 00 CD 08 80 11 00 00 00 00 00 00 4F [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 CD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A1 [14:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:08:35]wFMCommunicate OK [14:08:35]requested_item fd.num is exist - process it [14:08:35]SAM_PROTO_GetFieldsCounters [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 13 00 00 [14:08:35]Write to MH i2c: E2 08 00 CE 08 80 13 00 00 00 00 00 00 52 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 62 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 62 00 CE 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8E 42 01 00 0E 04 04 00 0F 02 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 28 [14:08: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8E 42 01 00 0E 04 04 00 0F 02 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 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_GetFieldsCounters done [14:08:35]requested_item shift.num is exist - process it [14:08:35]requested_item shift.opened is exist - process it [14:08:35]req_shift_opened [14:08:35]FM_GetShiftState [14:08:35]SAM_PROTO_GetShiftState [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 13 01 00 [14:08:35]Write to MH i2c: E2 08 00 CF 08 80 13 01 00 00 00 00 00 54 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0E 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0E 00 CF 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 56 [14:08:35]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_GetShiftState done [14:08:35]FM_GetShiftState done [14:08:35]req_shift_opened done [14:08:35]requested_item shift.open_date is exist - process it [14:08:35]req_shift_open_date [14:08:35]req_shift_open_date done [14:08:35]produce_requested_data done [14:08:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82574,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:08:35]process_action_free close_receipt [14:08:35]json_value_free [14:08:35]json_value_free done [14:08:35]process_json_proto returns [14:08:35]Send response to host [14:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82574,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:08:35]free response buf [14:08:35]execute_script done [14:08:35]execute_script returns [14:08:35]free content buf [14:08:35]Sock 9.Close socket [14:08:35]Sock 9.Thread stoped [14:08:39]OFD Sender: No OFD packet to send [14:08:43]recv_with_timeout no data received [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:55]accept exits with 10 [14:08:55]New connection [14:08:55]New thread 3066887524 created [14:08:55]Thread 3066744164 joined [14:08:55]Waiting for new connection... [14:08:55] Sock 10.Parse request [14:08:55]Sock 10.Check first char [14:08:55]Sock 10.First char is OK [14:08:55]request: POST /json_proto HTTP/1.0 [14:08:55]Method: POST [14:08:55]URL: /json_proto [14:08:55]Method is POST - this is cgi request [14:08:55]url: /json_proto [14:08:55]query_string will be loaded in cgi processing [14:08:55]execute_cgi json_proto POST (null) [14:08:55]execute_cgi path=json_proto method=POST [14:08:55]POST find Content-Length [14:08:55]Host: 172.17.44.67:8080 [14:08:55]Content-Length: 677 [14:08:55]Content-Type: application/json [14:08:55] [14:08:55]POST finish read [14:08:55]Found Content-Length = 677 [14:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:08:55]execute_script... [14:08: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 : (1)919062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:08:55]POST & json_proto [14:08:55]process_json_proto [14:08:55]json parsed OK: [14:08:55]protocol is kg_v1.0 [14:08:55]action value=close_receipt [14:08:55]process_action close_receipt [14:08:55]cmd_close_receipt [14:08:55]MH_GetDate [14:08:55]Write to MH i2c: F0 00 00 D0 08 C7 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: F0 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: F0 09 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: F0 09 00 D0 08 00 78 BD 13 67 F1 C7 6B 64 06 [14:08:55]GetLastDocTimeStamp 1729346912 [14:08:55]current date 1729346936 [14:08:55]FM_GetShiftState [14:08:55]SAM_PROTO_GetShiftState [14:08:55]wFMCommunicate request_size=4 [14:08:55]MH_SAM_APDU [14:08:55]CAPDU: 80 13 01 00 [14:08:55]Write to MH i2c: E2 08 00 D1 08 80 13 01 00 00 00 00 00 56 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:55]Read from MH i2c: E2 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 0E 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 0E 00 D1 08 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 58 [14:08:55]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:08:55]wFMCommunicate OK [14:08:55]SAM_PROTO_GetShiftState done [14:08:55]FM_GetShiftState done [14:08:55]opened in 1729298811 [14:08:55]opened+sec_in_day 1729385211 [14:08:55]quantity*price = 50041 [14:08:55]sum+1 = 50042 [14:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 72 19.10.2024 14:08 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82575 ФПД: 72701376236772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140856&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82575&fm=72701376236772&tin=02508201610067®Number=0000000000091680&sum=50000 [14:08:56]StoreToDocumentArchive [14:08:56]shift 527 fd 82575 [14:08:56]save to /storage/0527/doc_00082575 [14:08:56]save last doc name /storage/0527/doc_00082575 to /storage/kkm_last_doc_name [14:08:56]save OK [14:08:56]Clear old archive folders... [14:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:56]tlvbuf is 0050C530 [14:08:56]SAM_PROTO_ClearQueue [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 09 00 00 [14:08:56]Write to MH i2c: E2 08 00 DE 08 80 09 00 00 00 00 00 00 58 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]SAM_PROTO_ClearQueue done [14:08:56]KKMCreateOFDPacket [14:08:56]OFDProtocolAddRootSTLVToBuf [14:08:56]FM_MakeSignedData [14:08:56]FM_MakeSignedData [14:08:56]SAM_PROTO_SignData [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 0D 01 02 [14:08:56]Write to MH i2c: E2 08 00 DF 08 80 0D 01 02 00 00 00 00 60 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]wFMCommunicate request_size=255 [14:08:56]MH_SAM_APDU [14:08:56]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 48 00 00 00 F4 03 04 00 78 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 42 01 00 35 04 06 00 42 [14:08:56]Write to MH i2c: E2 02 01 E0 08 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 48 00 00 00 F4 03 04 00 78 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 42 01 00 35 04 06 00 42 00 00 08 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]wFMCommunicate request_size=10 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 0D 02 02 05 1F 1B B4 8C E4 [14:08:56]Write to MH i2c: E2 0D 00 E1 08 80 0D 02 02 05 00 1F 1B B4 8C E4 00 00 CB [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [14:08:56]RAPDU: 90 00 [14:08:56]wFMCommunicate OK [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 0D 03 02 [14:08:56]Write to MH i2c: E2 08 00 E2 08 80 0D 03 02 00 00 00 00 65 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0B 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 0B 00 E2 08 00 D5 52 D2 18 58 8B 07 40 90 00 A1 [14:08:56]RAPDU: D5 52 D2 18 58 8B 07 40 90 00 [14:08:56]wFMCommunicate OK [14:08:56]SAM_PROTO_SignData done [14:08:56]FM_MakeSignedData done [14:08:56]CreateOFDProtocolMessage [14:08:56]wFMCommunicate request_size=4 [14:08:56]MH_SAM_APDU [14:08:56]CAPDU: 80 11 00 00 [14:08:56]Write to MH i2c: E2 08 00 E3 08 80 11 00 00 00 00 00 00 65 [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:56]Read from MH i2c: E2 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: E2 17 00 E3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B7 [14:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:08:56]wFMCommunicate OK [14:08:56]CreateOFDProtocolMessage done [14:08:56]OFDSenderStorePacket 82575 [14:08:56]StoreOFDPacket docnum=82575 [14:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0F A8 07 01 74 9E 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 48 00 00 00 F4 03 04 00 78 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 42 01 00 35 04 06 00 42 1F 1B B4 8C E4 D5 52 D2 18 58 8B 07 40 [14:08:56]CheckFolder [14:08:56]dirname=/storage/ofd_packets [14:08:56]CheckFolder done [14:08:56]ProducePacketName [14:08:56]name=ofd_packets/00082575 [14:08:56]NVStorageSaveData ofd_packets/00082575 [14:08:56]File name is /storage/ofd_packets/00082575 [14:08:56]Write 301 bytes [14:08:56]NVStorageSaveData done [14:08:56]OFDSenderStorePacket done [14:08:56]KKMCreateOFDPacket done [14:08:56]NVStorageSaveData kkm_last_timestamp [14:08:56]File name is /storage/kkm_last_timestamp [14:08:56]Write 4 bytes [14:08:56]NVStorageSaveData done [14:08:56]ExternCall_PrintAddStr [14:08:56]wPrintStart [14:08:56]Write to MH i2c: 01 00 00 E4 08 EC [14:08:56]Write i2c OK [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 [14:08:56]MH_I2C_Read... [14:08:56]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [14:08:56]RasterBufferAndPrint [14:08:56]line Счет N : (1)919062 [14:08:56]line ИНН: 02508201610067 [14:08:56]line Контрольно-Кассовый Чек [14:08:56]line ПРОДАЖА [14:08:56]line ТРК (МРК, ГНК) : 11 [14:08:56]line Товар: 2710124130 [14:08:56]line Аи-92-К-4 [14:08:56]line 7.480 * 66.90 [14:08:56]line = 500.41 [14:08:56]line НДС 12% НСП 1% [14:08:56]line > о реализуемом товаре [14:08:56]line ОКРУГЛЕНИЕ: -0.41 [14:08:56]line ИТОГО: 500.00 [14:08:56]line Внесено: 500.00 [14:08:56]line СДАЧА: 0.00 [14:08:56]line НСП 1% : 4.43 [14:08:56]line НДС 12% : 53.14 [14:08:56]line Наличными: 500.00 [14:08:56]line Безнал.: 0.00 [14:08:56]line Место: АЗС № 114 "Партнер Нефть" [14:08:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:08:56]line СНО: Общий режим [14:08:56]line Чек 72 19.10.2024 14:08 [14:08:56]line Смена: 527 ФФД: 1.0 [14:08:56]line ЗНМ: 0300000086 [14:08:56]line РНМ: 0000000000091680 [14:08:56]line Версия ККМ: 001 [14:08:56]line ФМ: 0000000000871843 [14:08:56]line ФД: 82575 [14:08:56]line ФПД: 72701376236772 [14:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T140856&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82575&fm=72701376236772&tin=02508201610067®Number=0000000000091680&sum=50000 [14:08:56]written 0, free lines is 4095 [14:08:56]OFD Sender: Processing packet 82575 [packets to send 254, broken 253] [14:08:56]ProducePacketName [14:08:56]name=ofd_packets/00082575 [14:08:56]OFD Sender: To server: pG, [14:08:56]CommunicateWithHost lk.salyk.kg:30040 [14:08:56]ConnectInit lk.salyk.kg [14:08:57]Write to MH i2c: 01 00 00 0F 09 18 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: 01 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: 01 07 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: 01 07 00 0F 09 00 00 00 00 00 D5 0C 00 [14:08:57]RasterBufferAndPrint [14:08:57]line [14:08:57]line [14:08:57]line [14:08:57]line [14:08:57]line [14:08:57]written 0, free lines is 3292 [14:08:57]MH_Cut [14:08:57]Write to MH i2c: D1 01 00 16 09 01 F1 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 01 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: D1 01 00 16 09 00 F0 [14:08:57]Write to MH i2c: 01 00 00 17 09 20 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:58]*** Cut start [14:08:58]*** Partial cut [14:08:58]*** CUTSNS_PIN = 1 [14:08:58]*** CUTSNS_PIN = 0 [14:08:58]*** Brake cut motor [14:08:58]Read from MH i2c: 01 [14:08:58]MH_I2C_Read... [14:08:58]*** Stop cut motor [14:08:58]*** Cut end [14:08:58]Read from MH i2c: 01 07 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: 01 07 00 17 09 00 00 00 00 00 FF 0F 35 [14:08:58]process_action close_receipt done [14:08:58]requested_data is exist [14:08:58]produce_requested_data [14:08:58]requested_item fm.sn is exist - process it [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 11 00 00 [14:08:58]Write to MH i2c: E2 08 00 18 09 80 11 00 00 00 00 00 00 9B [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 17 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 17 00 18 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 ED [14:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:08:58]wFMCommunicate OK [14:08:58]requested_item fd.num is exist - process it [14:08:58]SAM_PROTO_GetFieldsCounters [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 13 00 00 [14:08:58]Write to MH i2c: E2 08 00 19 09 80 13 00 00 00 00 00 00 9E [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]Connected sock=9 [14:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0F A8 07 01 74 9E 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 48 00 00 00 F4 03 04 00 78 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 42 01 00 35 04 06 00 42 1F 1B B4 8C E4 D5 52 D2 18 58 8B 07 40 [14:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 62 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 62 00 19 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8F 42 01 00 0E 04 04 00 0F 02 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 78 [14:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8F 42 01 00 0E 04 04 00 0F 02 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 [14:08:58]wFMCommunicate OK [14:08:58]SAM_PROTO_GetFieldsCounters done [14:08:58]requested_item shift.num is exist - process it [14:08:58]requested_item shift.opened is exist - process it [14:08:58]req_shift_opened [14:08:58]FM_GetShiftState [14:08:58]SAM_PROTO_GetShiftState [14:08:58]wFMCommunicate request_size=4 [14:08:58]MH_SAM_APDU [14:08:58]CAPDU: 80 13 01 00 [14:08:58]Write to MH i2c: E2 08 00 1A 09 80 13 01 00 00 00 00 00 A0 [14:08:58]Write i2c OK [14:08:58]MH_I2C_Read... [14:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:58]Read from MH i2c: E2 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 0E 00 [14:08:58]MH_I2C_Read... [14:08:58]Read from MH i2c: E2 0E 00 1A 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 A2 [14:08:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:08:58]wFMCommunicate OK [14:08:58]SAM_PROTO_GetShiftState done [14:08:58]FM_GetShiftState done [14:08:58]req_shift_opened done [14:08:58]requested_item shift.open_date is exist - process it [14:08:58]req_shift_open_date [14:08:58]req_shift_open_date done [14:08:58]produce_requested_data done [14:08:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82575,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:08:58]process_action_free close_receipt [14:08:58]json_value_free [14:08:58]json_value_free done [14:08:58]process_json_proto returns [14:08:58]Send response to host [14:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82575,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:08:58]free response buf [14:08:58]execute_script done [14:08:58]execute_script returns [14:08:58]free content buf [14:08:58]Sock 10.Close socket [14:08:58]Sock 10.Thread stoped [14:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 88 2C 47 00 90 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 31 38 34 33 10 04 04 00 8F 42 01 00 F4 03 04 00 B0 62 13 67 B6 04 01 00 00 BD 77 21 5D A2 57 9A A6 [14:08:59]CommunicateWithHost err = 0 [14:08:59]CheckOFDResponse [14:08:59]1017 (14) - 77093643461234 [14:08:59]1041 (16) - 0000000000871843 [14:08:59]1040 (4) - 82575 [14:08:59]1012 (4) - 19.10.2024 07:41 [14:08:59]1206 (1) - 0 [14:08:59]OFD Sender: Remove packet 82575 [14:08:59]ProducePacketName [14:08:59]name=ofd_packets/00082575 [14:08:59]NVStorageDeleteData [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:20]recv_with_timeout no data received [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [14:10:09]RAPDU: 90 00 [14:10:09]wFMCommunicate OK [14:10:09]wFMCommunicate request_size=13 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 15 02 00 08 F4 03 04 00 C2 BD 13 67 [14:10:09]Write to MH i2c: E2 10 00 25 09 80 15 02 00 08 00 F4 03 04 00 C2 BD 13 67 00 00 B2 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=25 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [14:10:10]Write to MH i2c: E2 1C 00 26 09 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 10 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 15 03 00 [14:10:10]Write to MH i2c: E2 08 00 27 09 80 15 03 00 00 00 00 00 B1 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 40 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 40 00 27 09 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 49 00 00 00 35 04 06 00 89 3A C1 36 12 24 90 00 C3 [14:10:10]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 49 00 00 00 35 04 06 00 89 3A C1 36 12 24 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_ProcessDocument answer len = 59 [14:10:10]SAM_PROTO_ProcessDocument done [14:10:10]SetTLVBufToDocument [14:10:10]Processing tag 1209 (04B9) [14:10:10]Malloc new data [14:10:10]Processing tag 1041 (0411) [14:10:10]Processing tag 1040 (0410) [14:10:10]Malloc new data [14:10:10]Processing tag 1038 (040E) [14:10:10]Malloc new data [14:10:10]Processing tag 1042 (0412) [14:10:10]Malloc new data [14:10:10]Processing tag 1077 (0435) [14:10:10]Malloc new data [14:10:10]SetTLVBufToDocument err=0 [14:10:10]KKMLoadAndSignReceiptData store KKM data [14:10:10]KKMLoadAndSignReceiptData err=0 [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 11 00 00 [14:10:10]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FD [14:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:10:10]wFMCommunicate OK [14:10:10]Счет N : (1)919063 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710194800 D-Energy ДТ-К-2 30.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 73 19.10.2024 14:10 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203028 ФМ: 0000000000871843 ФД: 82576 ФПД: 150885442654756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141010&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82576&fm=150885442654756&tin=02508201610067®Number=0000000000091680&sum=0 [14:10:10]StoreToDocumentArchive [14:10:10]shift 527 fd 82576 [14:10:10]save to /storage/0527/doc_00082576 [14:10:10]save last doc name /storage/0527/doc_00082576 to /storage/kkm_last_doc_name [14:10:10]save OK [14:10:10]Clear old archive folders... [14:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:10:10]tlvbuf is 005A76A0 [14:10:10]SAM_PROTO_ClearQueue [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 09 00 00 [14:10:10]Write to MH i2c: E2 08 00 29 09 80 09 00 00 00 00 00 00 A4 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_ClearQueue done [14:10:10]KKMCreateOFDPacket [14:10:10]OFDProtocolAddRootSTLVToBuf [14:10:10]FM_MakeSignedData [14:10:10]FM_MakeSignedData [14:10:10]SAM_PROTO_SignData [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 01 02 [14:10:10]Write to MH i2c: E2 08 00 2A 09 80 0D 01 02 00 00 00 00 AC [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=255 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 [14:10:10]Write to MH i2c: E2 02 01 2B 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 00 00 AC [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=16 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 89 3A C1 36 12 24 [14:10:10]Write to MH i2c: E2 13 00 2C 09 80 0D 02 02 0B 00 00 35 04 06 00 89 3A C1 36 12 24 00 00 F4 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 03 02 [14:10:10]Write to MH i2c: E2 08 00 2D 09 80 0D 03 02 00 00 00 00 B1 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 2D 09 00 57 AC A2 6A 48 68 8B F4 90 00 F0 [14:10:10]RAPDU: 57 AC A2 6A 48 68 8B F4 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_SignData done [14:10:10]FM_MakeSignedData done [14:10:10]CreateOFDProtocolMessage [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 11 00 00 [14:10:10]Write to MH i2c: E2 08 00 2E 09 80 11 00 00 00 00 00 00 B1 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 2E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 03 [14:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:10:10]wFMCommunicate OK [14:10:10]CreateOFDProtocolMessage done [14:10:10]OFDSenderStorePacket 82576 [14:10:10]StoreOFDPacket docnum=82576 [14:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 03 DE 0D 01 D6 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 00 35 04 06 00 89 3A C1 36 12 24 57 AC A2 6A 48 68 8B F4 [14:10:10]CheckFolder [14:10:10]dirname=/storage/ofd_packets [14:10:10]CheckFolder done [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00082576 [14:10:10]NVStorageSaveData ofd_packets/00082576 [14:10:10]File name is /storage/ofd_packets/00082576 [14:10:10]Write 307 bytes [14:10:10]NVStorageSaveData done [14:10:10]OFDSenderStorePacket done [14:10:10]KKMCreateOFDPacket done [14:10:10]NVStorageSaveData kkm_last_timestamp [14:10:10]File name is /storage/kkm_last_timestamp [14:10:10]Write 4 bytes [14:10:10]NVStorageSaveData done [14:10:10]ExternCall_PrintAddStr [14:10:10]wPrintStart [14:10:10]Write to MH i2c: 01 00 00 2F 09 38 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [14:10:10]RasterBufferAndPrint [14:10:10]line Счет N : (1)919063 [14:10:10]line ИНН: 02508201610067 [14:10:10]line Контрольно-Кассовый Чек [14:10:10]line ПРОДАЖА [14:10:10]line ТРК (МРК, ГНК) : 21 [14:10:10]line Товар: 2710194800 [14:10:10]line D-Energy ДТ-К-2 [14:10:10]line 30.000 * 0.00 [14:10:10]line = 0.00 [14:10:10]line НДС 12% НСП 1% [14:10:10]line > о реализуемом товаре [14:10:10]line ИТОГО: 0.00 [14:10:10]line НСП 1% : 0.00 [14:10:10]line НДС 12% : 0.00 [14:10:10]line Наличными: 0.00 [14:10:10]line Безнал.: 0.00 [14:10:10]line Место: АЗС № 114 "Партнер Нефть" [14:10:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:10:10]line СНО: Общий режим [14:10:10]line Чек 73 19.10.2024 14:10 [14:10:10]line Смена: 527 ФФД: 1.0 [14:10:10]line ЗНМ: 0300000086 [14:10:10]line РНМ: 0000000000091680 [14:10:10]line Версия ККМ: 001 [14:10:10]line Талоны: Топливные Талоны [14:10:10]line 2203028 [14:10:10]line ФМ: 0000000000871843 [14:10:10]line ФД: 82576 [14:10:10]line ФПД: 150885442654756 [14:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141010&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82576&fm=150885442654756&tin=02508201610067®Number=0000000000091680&sum=0 [14:10:11]OFD Sender: Processing packet 82576 [packets to send 254, broken 253] [14:10:11]ProducePacketName [14:10:11]name=ofd_packets/00082576 [14:10:11]OFD Sender: To server: pG, [14:10:11]CommunicateWithHost lk.salyk.kg:30040 [14:10:11]ConnectInit lk.salyk.kg [14:10:11]written 0, free lines is 4095 [14:10:11]Write to MH i2c: 01 00 00 59 09 62 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 59 09 00 00 00 00 00 FB 0C 70 [14:10:11]RasterBufferAndPrint [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]written 0, free lines is 3329 [14:10:11]MH_Cut [14:10:11]Write to MH i2c: D1 01 00 60 09 01 3B [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 01 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 01 00 60 09 00 3A [14:10:11]Write to MH i2c: 01 00 00 61 09 6A [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:12]*** Cut start [14:10:12]*** Partial cut [14:10:12]*** CUTSNS_PIN = 1 [14:10:12]*** CUTSNS_PIN = 0 [14:10:12]*** Brake cut motor [14:10:12]Connected sock=10 [14:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 03 DE 0D 01 D6 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 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 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C2 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 42 01 00 35 04 06 00 89 3A C1 36 12 24 57 AC A2 6A 48 68 8B F4 [14:10:13]Read from MH i2c: 01 [14:10:13]MH_I2C_Read... [14:10:13]*** Stop cut motor [14:10:13]*** Cut end [14:10:13]Read from MH i2c: 01 07 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 FF 0F 7F [14:10:13]process_action close_receipt done [14:10:13]requested_data is exist [14:10:13]produce_requested_data [14:10:13]requested_item fm.sn is exist - process it [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 11 00 00 [14:10:13]Write to MH i2c: E2 08 00 62 09 80 11 00 00 00 00 00 00 E5 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 62 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 37 [14:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:10:13]wFMCommunicate OK [14:10:13]requested_item fd.num is exist - process it [14:10:13]SAM_PROTO_GetFieldsCounters [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 13 00 00 [14:10:13]Write to MH i2c: E2 08 00 63 09 80 13 00 00 00 00 00 00 E8 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 62 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 62 00 63 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 90 42 01 00 0E 04 04 00 0F 02 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 C6 [14:10:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 90 42 01 00 0E 04 04 00 0F 02 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 [14:10:13]wFMCommunicate OK [14:10:13]SAM_PROTO_GetFieldsCounters done [14:10:13]requested_item shift.num is exist - process it [14:10:13]requested_item shift.opened is exist - process it [14:10:13]req_shift_opened [14:10:13]FM_GetShiftState [14:10:13]SAM_PROTO_GetShiftState [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 13 01 00 [14:10:13]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 EC [14:10:13]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:10:13]wFMCommunicate OK [14:10:13]SAM_PROTO_GetShiftState done [14:10:13]FM_GetShiftState done [14:10:13]req_shift_opened done [14:10:13]requested_item shift.open_date is exist - process it [14:10:13]req_shift_open_date [14:10:13]req_shift_open_date done [14:10:13]produce_requested_data done [14:10:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82576,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:10:13]process_action_free close_receipt [14:10:13]json_value_free [14:10:13]json_value_free done [14:10:13]process_json_proto returns [14:10:13]Send response to host [14:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82576,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:10:13]free response buf [14:10:13]execute_script done [14:10:13]execute_script returns [14:10:13]free content buf [14:10:13]Sock 7.Close socket [14:10:13]Sock 7.Thread stoped [14:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DA 35 47 00 D1 36 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 31 38 34 33 10 04 04 00 90 42 01 00 F4 03 04 00 FA 62 13 67 B6 04 01 00 00 73 D7 A0 02 B8 60 01 D7 [14:10:15]CommunicateWithHost err = 0 [14:10:15]CheckOFDResponse [14:10:15]1017 (14) - 77093643461234 [14:10:15]1041 (16) - 0000000000871843 [14:10:15]1040 (4) - 82576 [14:10:15]1012 (4) - 19.10.2024 07:42 [14:10:15]1206 (1) - 0 [14:10:15]OFD Sender: Remove packet 82576 [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00082576 [14:10:15]NVStorageDeleteData [14:10:15]OFD Sender: No OFD packet to send [14:10:20]recv_with_timeout no data received [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:30]recv_with_timeout no data received [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:42]recv_with_timeout no data received [14:10:42]accept exits with 9 [14:10:42]New connection [14:10:42]New thread 3066887524 created [14:10:42]Thread 3066744164 joined [14:10:42]Waiting for new connection... [14:10:42] Sock 9.Parse request [14:10:42]Sock 9.Check first char [14:10:42]Sock 9.First char is OK [14:10:42]request: POST /json_proto HTTP/1.0 [14:10:42]Method: POST [14:10:42]URL: /json_proto [14:10:42]Method is POST - this is cgi request [14:10:42]url: /json_proto [14:10:42]query_string will be loaded in cgi processing [14:10:42]execute_cgi json_proto POST (null) [14:10:42]execute_cgi path=json_proto method=POST [14:10:42]POST find Content-Length [14:10:42]Host: 172.17.44.67:8080 [14:10:42]Content-Length: 683 [14:10:42]Content-Type: application/json [14:10:42] [14:10:42]POST finish read [14:10:42]Found Content-Length = 683 [14:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 2.390, "sum" : 184.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 184.00, "total" : 184.00, "payments": [ { "type": 0, "sum" : 184.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:42]execute_script... [14: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 : (1)919064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 2.390, "sum" : 184.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 184.00, "total" : 184.00, "payments": [ { "type": 0, "sum" : 184.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:42]POST & json_proto [14:10:42]process_json_proto [14:10:42]json parsed OK: [14:10:42]protocol is kg_v1.0 [14:10:42]action value=close_receipt [14:10:42]process_action close_receipt [14:10:42]cmd_close_receipt [14:10:42]MH_GetDate [14:10:42]Write to MH i2c: F0 00 00 65 09 5D [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: F0 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: F0 09 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: F0 09 00 65 09 00 E4 BD 13 67 F1 C7 6B 64 08 [14:10:42]GetLastDocTimeStamp 1729347010 [14:10:42]current date 1729347044 [14:10:42]FM_GetShiftState [14:10:42]SAM_PROTO_GetShiftState [14:10:42]wFMCommunicate request_size=4 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 13 01 00 [14:10:42]Write to MH i2c: E2 08 00 66 09 80 13 01 00 00 00 00 00 EC [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:43]Read from MH i2c: E2 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: E2 0E 00 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: E2 0E 00 66 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 EE [14:10:43]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:10:43]wFMCommunicate OK [14:10:43]SAM_PROTO_GetShiftState done [14:10:43]FM_GetShiftState done [14:10:43]opened in 1729298811 [14:10:43]opened+sec_in_day 1729385211 [14:10:43]quantity*price = 18450 [14:10:43]sum+1 = 18452 [14:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 184.00 Внесено: 184.00 СДАЧА: 0.00 НСП 1% : 1.63 НДС 12% : 19.59 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 74 19.10.2024 14:10 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82577 ФПД: 91203883141183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141044&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82577&fm=91203883141183&tin=02508201610067®Number=0000000000091680&sum=18400 [14:10:44]StoreToDocumentArchive [14:10:44]shift 527 fd 82577 [14:10:44]save to /storage/0527/doc_00082577 [14:10:44]save last doc name /storage/0527/doc_00082577 to /storage/kkm_last_doc_name [14:10:44]save OK [14:10:44]Clear old archive folders... [14:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:10:44]tlvbuf is 00516C90 [14:10:44]SAM_PROTO_ClearQueue [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 09 00 00 [14:10:44]Write to MH i2c: E2 08 00 73 09 80 09 00 00 00 00 00 00 EE [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [14:10:44]RAPDU: 90 00 [14:10:44]wFMCommunicate OK [14:10:44]SAM_PROTO_ClearQueue done [14:10:44]KKMCreateOFDPacket [14:10:44]OFDProtocolAddRootSTLVToBuf [14:10:44]FM_MakeSignedData [14:10:44]FM_MakeSignedData [14:10:44]SAM_PROTO_SignData [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 0D 01 02 [14:10:44]Write to MH i2c: E2 08 00 74 09 80 0D 01 02 00 00 00 00 F6 [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [14:10:44]RAPDU: 90 00 [14:10:44]wFMCommunicate OK [14:10:44]wFMCommunicate request_size=255 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 56 09 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 13 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 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 E4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 42 01 [14:10:44]Write to MH i2c: E2 02 01 75 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 56 09 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 13 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 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 E4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 42 01 00 00 14 [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [14:10:44]RAPDU: 90 00 [14:10:44]wFMCommunicate OK [14:10:44]wFMCommunicate request_size=16 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 F3 0F 0E 88 3F [14:10:44]Write to MH i2c: E2 13 00 76 09 80 0D 02 02 0B 00 00 35 04 06 00 52 F3 0F 0E 88 3F 00 00 77 [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [14:10:44]RAPDU: 90 00 [14:10:44]wFMCommunicate OK [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 0D 03 02 [14:10:44]Write to MH i2c: E2 08 00 77 09 80 0D 03 02 00 00 00 00 FB [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 0B 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 0B 00 77 09 00 65 7E 93 13 02 F3 6F 53 90 00 3C [14:10:44]RAPDU: 65 7E 93 13 02 F3 6F 53 90 00 [14:10:44]wFMCommunicate OK [14:10:44]SAM_PROTO_SignData done [14:10:44]FM_MakeSignedData done [14:10:44]CreateOFDProtocolMessage [14:10:44]wFMCommunicate request_size=4 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:10:47]wFMCommunicate OK [14:10:47]SAM_PROTO_GetShiftState done [14:10:47]FM_GetShiftState done [14:10:47]req_shift_opened done [14:10:47]requested_item shift.open_date is exist - process it [14:10:47]req_shift_open_date [14:10:47]req_shift_open_date done [14:10:47]produce_requested_data done [14:10:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82577,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:10:47]process_action_free close_receipt [14:10:47]json_value_free [14:10:47]json_value_free done [14:10:47]process_json_proto returns [14:10:47]Send response to host [14:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82577,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:10:47]free response buf [14:10:47]execute_script done [14:10:47]execute_script returns [14:10:47]free content buf [14:10:47]Sock 9.Close socket [14:10:47]Sock 9.Thread stoped [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:10:58]accept exits with 7 [14:10:58]New connection [14:10:58]New thread 3066744164 created [14:10:58]Thread 3066887524 joined [14:10:58]Waiting for new connection... [14:10:58] Sock 7.Parse request [14:10:58]Sock 7.Check first char [14:10:58]Sock 7.First char is OK [14:10:58]request: POST /json_proto HTTP/1.0 [14:10:58]Method: POST [14:10:58]URL: /json_proto [14:10:58]Method is POST - this is cgi request [14:10:58]url: /json_proto [14:10:58]query_string will be loaded in cgi processing [14:10:58]execute_cgi json_proto POST (null) [14:10:58]execute_cgi path=json_proto method=POST [14:10:58]POST find Content-Length [14:10:58]Host: 172.17.44.67:8080 [14:10:58]Content-Length: 688 [14:10:58]Content-Type: application/json [14:10:58] [14:10:58]POST finish read [14:10:58]Found Content-Length = 688 [14:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:58]execute_script... [14:10: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 : (1)919065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:58]POST & json_proto [14:10:58]process_json_proto [14:10:58]json parsed OK: [14:10:58]protocol is kg_v1.0 [14:10:58]action value=close_receipt [14:10:58]process_action close_receipt [14:10:58]cmd_close_receipt [14:10:58]MH_GetDate [14:10:58]Write to MH i2c: F0 00 00 B0 09 A8 [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 09 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: F0 09 00 B0 09 00 F4 BD 13 67 F1 C7 6B 64 63 [14:10:58]GetLastDocTimeStamp 1729347044 [14:10:58]current date 1729347060 [14:10:58]FM_GetShiftState [14:10:58]SAM_PROTO_GetShiftState [14:10:58]wFMCommunicate request_size=4 [14:10:58]MH_SAM_APDU [14:10:58]CAPDU: 80 13 01 00 [14:10:58]Write to MH i2c: E2 08 00 B1 09 80 13 01 00 00 00 00 00 37 [14:10:58]Write i2c OK [14:10:58]MH_I2C_Read... [14:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:58]Read from MH i2c: E2 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: E2 0E 00 [14:10:58]MH_I2C_Read... [14:10:58]Read from MH i2c: E2 0E 00 B1 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 39 [14:10:58]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:10:58]wFMCommunicate OK [14:10:58]SAM_PROTO_GetShiftState done [14:10:58]FM_GetShiftState done [14:10:58]opened in 1729298811 [14:10:58]opened+sec_in_day 1729385211 [14:10:58]quantity*price = 300076 [14:10:58]sum+1 = 300077 [14:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре [14:10:44]line ОКРУГЛЕНИЕ: -0.51 [14:10:44]line ИТОГО: 184.00 [14:10:44]line Внесено: 184.00 [14:10:44]line СДАЧА: 0.00 [14:10:44]line НСП 1% : 1.63 [14:10:44]line НДС 12% : 19.59 [14:10:44]line Наличными: 184.00 [14:10:44]line Безнал.: 0.00 [14:10:44]line Место: АЗС № 114 "Партнер Нефть" [14:10:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:10:44]line СНО: Общий режим [14:10:44]line Чек 74 19.10.2024 14:10 [14:10:44]line Смена: 527 ФФД: 1.0 [14:10:44]line ЗНМ: 0300000086 [14:10:44]line РНМ: 0000000000091680 [14:10:44]line Версия ККМ: 001 [14:10:44]line ФМ: 0000000000871843 [14:10:44]line ФД: 82577 [14:10:44]line ФПД: 91203883141183 [14:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141044&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82577&fm=91203883141183&tin=02508201610067®Number=0000000000091680&sum=18400 [14:10:45]OFD Sender: Processing packet 82577 [packets to send 254, broken 253] [14:10:45]ProducePacketName [14:10:45]name=ofd_packets/00082577 [14:10:45]OFD Sender: To server: pG, [14:10:45]CommunicateWithHost lk.salyk.kg:30040 [14:10:45]ConnectInit lk.salyk.kg [14:10:45]written 0, free lines is 4095 [14:10:45]Write to MH i2c: 01 00 00 A4 09 AD [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: 01 07 00 A4 09 00 00 00 00 00 E4 0C A4 [14:10:45]RasterBufferAndPrint [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]line [14:10:45]written 0, free lines is 3306 [14:10:45]MH_Cut [14:10:45]Write to MH i2c: D1 01 00 AB 09 01 86 [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: D1 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: D1 01 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: D1 01 00 AB 09 00 85 [14:10:45]Write to MH i2c: 01 00 00 AC 09 B5 [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:46]*** Cut start [14:10:46]*** Partial cut [14:10:46]*** CUTSNS_PIN = 1 [14:10:46]*** CUTSNS_PIN = 0 [14:10:46]Connected sock=10 [14:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 09 8D 0D 01 84 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 56 09 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 13 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 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 E4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 42 01 00 35 04 06 00 52 F3 0F 0E 88 3F 65 7E 93 13 02 F3 6F 53 [14:10:46]*** Brake cut motor [14:10:46]Read from MH i2c: 01 [14:10:46]MH_I2C_Read... [14:10:46]*** Stop cut motor [14:10:46]*** Cut end [14:10:46]Read from MH i2c: 01 07 00 [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 FF 0F CA [14:10:46]process_action close_receipt done [14:10:46]requested_data is exist [14:10:46]produce_requested_data [14:10:46]requested_item fm.sn is exist - process it [14:10:46]wFMCommunicate request_size=4 [14:10:46]MH_SAM_APDU [14:10:46]CAPDU: 80 11 00 00 [14:10:46]Write to MH i2c: E2 08 00 AD 09 80 11 00 00 00 00 00 00 30 [14:10:46]Write i2c OK [14:10:46]MH_I2C_Read... [14:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:46]Read from MH i2c: E2 [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: E2 17 00 [14:10:46]MH_I2C_Read... [14:10:46]Read from MH i2c: E2 17 00 AD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 82 [14:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:10:46]wFMCommunicate OK [14:10:46]requested_item fd.num is exist - process it [14:10:46]SAM_PROTO_GetFieldsCounters [14:10:46]wFMCommunicate request_size=4 [14:10:46]MH_SAM_APDU [14:10:46]CAPDU: 80 13 00 00 [14:10:46]Write to MH i2c: E2 08 00 AE 09 80 13 00 00 00 00 00 00 33 [14:10:46]Write i2c OK [14:10:46]MH_I2C_Read... [14:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FD A3 47 00 DA 90 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 31 38 34 33 10 04 04 00 91 42 01 00 F4 03 04 00 1C 63 13 67 B6 04 01 00 00 86 06 08 B2 2B 1F 4A 8F [14:10:46]CommunicateWithHost err = 0 [14:10:46]CheckOFDResponse [14:10:46]1017 (14) - 77093643461234 [14:10:46]1041 (16) - 0000000000871843 [14:10:46]1040 (4) - 82577 [14:10:46]1012 (4) - 19.10.2024 07:43 [14:10:46]1206 (1) - 0 [14:10:46]OFD Sender: Remove packet 82577 [14:10:46]ProducePacketName [14:10:46]name=ofd_packets/00082577 [14:10:46]NVStorageDeleteData [14:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:47]Read from MH i2c: E2 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 62 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 62 00 AE 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 91 42 01 00 0E 04 04 00 0F 02 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 15 [14:10: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 91 42 01 00 0E 04 04 00 0F 02 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 [14:10:47]wFMCommunicate OK [14:10:47]SAM_PROTO_GetFieldsCounters done [14:10:47]requested_item shift.num is exist - process it [14:10:47]requested_item shift.opened is exist - process it [14:10:47]req_shift_opened [14:10:47]FM_GetShiftState [14:10:47]SAM_PROTO_GetShiftState [14:10:47]wFMCommunicate request_size=4 [14:10:47]MH_SAM_APDU [14:10:47]CAPDU: 80 13 01 00 [14:10:47]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [14:10:47]Write i2c OK [14:10:47]MH_I2C_Read... [14:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:47]Read from MH i2c: E2 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 0E 00 [14:10:47]MH_I2C_Read... [14:10:47]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 37 [14:10:47]RAPDU: [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [14:10:59]Write to MH i2c: E2 12 00 B8 09 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 98 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [14:10:59]RAPDU: 90 00 [14:10:59]wFMCommunicate OK [14:10:59]wFMCommunicate request_size=11 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [14:10:59]Write to MH i2c: E2 0E 00 B9 09 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 74 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [14:10:59]RAPDU: 90 00 [14:10:59]wFMCommunicate OK [14:10:59]wFMCommunicate request_size=13 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 15 02 00 08 F4 03 04 00 F4 BD 13 67 [14:10:59]Write to MH i2c: E2 10 00 BA 09 80 15 02 00 08 00 F4 03 04 00 F4 BD 13 67 00 00 79 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [14:10:59]RAPDU: 90 00 [14:10:59]wFMCommunicate OK [14:10:59]wFMCommunicate request_size=25 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [14:10:59]Write to MH i2c: E2 1C 00 BB 09 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 A5 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:10:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:10:59]Read from MH i2c: E2 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 [14:10:59]MH_I2C_Read... [14:10:59]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [14:10:59]RAPDU: 90 00 [14:10:59]wFMCommunicate OK [14:10:59]wFMCommunicate request_size=4 [14:10:59]MH_SAM_APDU [14:10:59]CAPDU: 80 15 03 00 [14:10:59]Write to MH i2c: E2 08 00 BC 09 80 15 03 00 00 00 00 00 46 [14:10:59]Write i2c OK [14:10:59]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 40 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 40 00 BC 09 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 4B 00 00 00 35 04 06 00 89 61 18 82 01 AD 90 00 9E [14:11:00]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 4B 00 00 00 35 04 06 00 89 61 18 82 01 AD 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_ProcessDocument answer len = 59 [14:11:00]SAM_PROTO_ProcessDocument done [14:11:00]SetTLVBufToDocument [14:11:00]Processing tag 1209 (04B9) [14:11:00]Malloc new data [14:11:00]Processing tag 1041 (0411) [14:11:00]Processing tag 1040 (0410) [14:11:00]Malloc new data [14:11:00]Processing tag 1038 (040E) [14:11:00]Malloc new data [14:11:00]Processing tag 1042 (0412) [14:11:00]Malloc new data [14:11:00]Processing tag 1077 (0435) [14:11:00]Malloc new data [14:11:00]SetTLVBufToDocument err=0 [14:11:00]KKMLoadAndSignReceiptData store KKM data [14:11:00]KKMLoadAndSignReceiptData err=0 [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 BD 09 80 11 00 00 00 00 00 00 40 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 BD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 92 [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:11:00]wFMCommunicate OK [14:11:00]Счет N : (1)919065 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710194800 D-Energy ДТ-К-2 38.870 * 77.20 = 3000.76 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 75 19.10.2024 14:11 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82578 ФПД: 151050116006317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141100&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82578&fm=151050116006317&tin=02508201610067®Number=0000000000091680&sum=300000 [14:11:00]StoreToDocumentArchive [14:11:00]shift 527 fd 82578 [14:11:00]save to /storage/0527/doc_00082578 [14:11:00]save last doc name /storage/0527/doc_00082578 to /storage/kkm_last_doc_name [14:11:00]save OK [14:11:00]Clear old archive folders... [14:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:11:00]tlvbuf is 00550010 [14:11:00]SAM_PROTO_ClearQueue [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 09 00 00 [14:11:00]Write to MH i2c: E2 08 00 BE 09 80 09 00 00 00 00 00 00 39 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_ClearQueue done [14:11:00]KKMCreateOFDPacket [14:11:00]OFDProtocolAddRootSTLVToBuf [14:11:00]FM_MakeSignedData [14:11:00]FM_MakeSignedData [14:11:00]SAM_PROTO_SignData [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 01 02 [14:11:00]Write to MH i2c: E2 08 00 BF 09 80 0D 01 02 00 00 00 00 41 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=255 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 [14:11:00]Write to MH i2c: E2 02 01 C0 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 00 00 96 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=16 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 89 61 18 82 01 AD [14:11:00]Write to MH i2c: E2 13 00 C1 09 80 0D 02 02 0B 00 00 35 04 06 00 89 61 18 82 01 AD 00 00 CB [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 03 00 C1 09 00 90 00 3E [14:11:00]RAPDU: 90 00 [14:11:00]wFMCommunicate OK [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 0D 03 02 [14:11:00]Write to MH i2c: E2 08 00 C2 09 80 0D 03 02 00 00 00 00 46 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0B 00 C2 09 00 7C 6A 95 7D E3 2A 46 C9 90 00 5B [14:11:00]RAPDU: 7C 6A 95 7D E3 2A 46 C9 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_SignData done [14:11:00]FM_MakeSignedData done [14:11:00]CreateOFDProtocolMessage [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 11 00 00 [14:11:00]Write to MH i2c: E2 08 00 C3 09 80 11 00 00 00 00 00 00 46 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 17 00 C3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [14:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:11:00]wFMCommunicate OK [14:11:00]CreateOFDProtocolMessage done [14:11:00]OFDSenderStorePacket 82578 [14:11:00]StoreOFDPacket docnum=82578 [14:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 74 27 0D 01 68 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 00 35 04 06 00 89 61 18 82 01 AD 7C 6A 95 7D E3 2A 46 C9 [14:11:00]CheckFolder [14:11:00]dirname=/storage/ofd_packets [14:11:00]CheckFolder done [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00082578 [14:11:00]NVStorageSaveData ofd_packets/00082578 [14:11:00]File name is /storage/ofd_packets/00082578 [14:11:00]Write 307 bytes [14:11:00]NVStorageSaveData done [14:11:00]OFDSenderStorePacket done [14:11:00]KKMCreateOFDPacket done [14:11:00]NVStorageSaveData kkm_last_timestamp [14:11:00]File name is /storage/kkm_last_timestamp [14:11:00]Write 4 bytes [14:11:00]NVStorageSaveData done [14:11:00]ExternCall_PrintAddStr [14:11:00]wPrintStart [14:11:00]Write to MH i2c: 01 00 00 C4 09 CD [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [14:11:00]RasterBufferAndPrint [14:11:00]line Счет N : (1)919065 [14:11:00]line ИНН: 02508201610067 [14:11:00]line Контрольно-Кассовый Чек [14:11:00]line ПРОДАЖА [14:11:00]line ТРК (МРК, ГНК) : 21 [14:11:00]line Товар: 2710194800 [14:11:00]line D-Energy ДТ-К-2 [14:11:00]line 38.870 * 77.20 [14:11:00]line = 3000.76 [14:11:00]line НДС 12% НСП 1% [14:11:00]line > о реализуемом товаре [14:11:00]line ОКРУГЛЕНИЕ: -0.76 [14:11:00]line ИТОГО: 3000.00 [14:11:00]line Внесено: 3000.00 [14:11:00]line СДАЧА: 0.00 [14:11:00]line НСП 1% : 26.55 [14:11:00]line НДС 12% : 318.66 [14:11:00]line Наличными: 3000.00 [14:11:00]line Безнал.: 0.00 [14:11:00]line Место: АЗС № 114 "Партнер Нефть" [14:11:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:11:00]line СНО: Общий режим [14:11:00]line Чек 75 19.10.2024 14:11 [14:11:00]line Смена: 527 ФФД: 1.0 [14:11:00]line ЗНМ: 0300000086 [14:11:00]line РНМ: 0000000000091680 [14:11:00]line Версия ККМ: 001 [14:11:00]line ФМ: 0000000000871843 [14:11:00]line ФД: 82578 [14:11:00]line ФПД: 151050116006317 [14:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141100&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82578&fm=151050116006317&tin=02508201610067®Number=0000000000091680&sum=300000 [14:11:00]written 0, free lines is 4095 [14:11:00]OFD Sender: Processing packet 82578 [packets to send 254, broken 253] [14:11:00]ProducePacketName [14:11:00]name=ofd_packets/00082578 [14:11:00]OFD Sender: To server: pG, [14:11:00]CommunicateWithHost lk.salyk.kg:30040 [14:11:00]ConnectInit lk.salyk.kg [14:11:01]Write to MH i2c: 01 00 00 EF 09 F8 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: 01 07 00 EF 09 00 00 00 00 00 F3 0C FE [14:11:01]RasterBufferAndPrint [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]line [14:11:01]written 0, free lines is 3324 [14:11:01]MH_Cut [14:11:01]Write to MH i2c: D1 01 00 F6 09 01 D1 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: D1 01 00 F6 09 00 D0 [14:11:01]Write to MH i2c: 01 00 00 F7 09 00 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]Connected sock=11 [14:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 74 27 0D 01 68 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 42 01 00 35 04 06 00 89 61 18 82 01 AD 7C 6A 95 7D E3 2A 46 C9 [14:11:01]*** Cut start [14:11:01]*** Partial cut [14:11:01]*** CUTSNS_PIN = 1 [14:11:01]*** CUTSNS_PIN = 0 [14:11:02]recv_with_timeout no data received [14:11:02]*** Brake cut motor [14:11:02]Read from MH i2c: 01 [14:11:02]MH_I2C_Read... [14:11:02]*** Stop cut motor [14:11:02]*** Cut end [14:11:02]Read from MH i2c: 01 07 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 FF 0F 15 [14:11:02]process_action close_receipt done [14:11:02]requested_data is exist [14:11:02]produce_requested_data [14:11:02]requested_item fm.sn is exist - process it [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 11 00 00 [14:11:02]Write to MH i2c: E2 08 00 F8 09 80 11 00 00 00 00 00 00 7B [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7D 92 47 00 CC 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 31 38 34 33 10 04 04 00 92 42 01 00 F4 03 04 00 2B 63 13 67 B6 04 01 00 00 41 E8 5A 0E D2 3D 5A 84 [14:11:02]CommunicateWithHost err = 0 [14:11:02]CheckOFDResponse [14:11:02]1017 (14) - 77093643461234 [14:11:02]1041 (16) - 0000000000871843 [14:11:02]1040 (4) - 82578 [14:11:02]1012 (4) - 19.10.2024 07:43 [14:11:02]1206 (1) - 0 [14:11:02]OFD Sender: Remove packet 82578 [14:11:02]ProducePacketName [14:11:02]name=ofd_packets/00082578 [14:11:02]NVStorageDeleteData [14:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 F8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CD [14:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:11:02]wFMCommunicate OK [14:11:02]requested_item fd.num is exist - process it [14:11:02]SAM_PROTO_GetFieldsCounters [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 00 00 [14:11:02]Write to MH i2c: E2 08 00 F9 09 80 13 00 00 00 00 00 00 7E [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 62 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 62 00 F9 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 92 42 01 00 0E 04 04 00 0F 02 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 64 [14:11: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 92 42 01 00 0E 04 04 00 0F 02 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 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_GetFieldsCounters done [14:11:02]requested_item shift.num is exist - process it [14:11:02]requested_item shift.opened is exist - process it [14:11:02]req_shift_opened [14:11:02]FM_GetShiftState [14:11:02]SAM_PROTO_GetShiftState [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 01 00 [14:11:02]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 82 [14:11:02]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_GetShiftState done [14:11:02]FM_GetShiftState done [14:11:02]req_shift_opened done [14:11:02]requested_item shift.open_date is exist - process it [14:11:02]req_shift_open_date [14:11:02]req_shift_open_date done [14:11:02]produce_requested_data done [14:11:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82578,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:11:02]process_action_free close_receipt [14:11:02]json_value_free [14:11:02]json_value_free done [14:11:02]process_json_proto returns [14:11:02]Send response to host [14:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82578,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:11:02]free response buf [14:11:02]execute_script done [14:11:02]execute_script returns [14:11:02]free content buf [14:11:02]Sock 7.Close socket [14:11:02]Sock 7.Thread stoped [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:10]accept exits with 10 [14:11:10]New connection [14:11:10]New thread 3066887524 created [14:11:10]Thread 3066744164 joined [14:11:10]Waiting for new connection... [14:11:10] Sock 10.Parse request [14:11:10]Sock 10.Check first char [14:11:10]Sock 10.First char is OK [14:11:10]request: POST /json_proto HTTP/1.0 [14:11:10]Method: POST [14:11:10]URL: /json_proto [14:11:10]Method is POST - this is cgi request [14:11:10]url: /json_proto [14:11:10]query_string will be loaded in cgi processing [14:11:10]execute_cgi json_proto POST (null) [14:11:10]execute_cgi path=json_proto method=POST [14:11:10]POST find Content-Length [14:11:10]Host: 172.17.44.67:8080 [14:11:10]Content-Length: 744 [14:11:10]Content-Type: application/json [14:11:10] [14:11:10]POST finish read [14:11:10]Found Content-Length = 744 [14:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82578, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:10]execute_script... [14:11:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82578, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:10]POST & json_proto [14:11:10]process_json_proto [14:11:10]json parsed OK: [14:11:10]protocol is kg_v1.0 [14:11:10]action value=close_receipt [14:11:10]process_action close_receipt [14:11:10]cmd_close_receipt [14:11:10]MH_GetDate [14:11:10]Write to MH i2c: F0 00 00 FB 09 F3 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 09 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: F0 09 00 FB 09 00 FF BD 13 67 F1 C7 6B 64 B9 [14:11:10]GetLastDocTimeStamp 1729347060 [14:11:10]current date 1729347071 [14:11:10]FM_GetShiftState [14:11:10]SAM_PROTO_GetShiftState [14:11:10]wFMCommunicate request_size=4 [14:11:10]MH_SAM_APDU [14:11:10]CAPDU: 80 13 01 00 [14:11:10]Write to MH i2c: E2 08 00 FC 09 80 13 01 00 00 00 00 00 82 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0E 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0E 00 FC 09 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 84 [14:11:10]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:11:10]wFMCommunicate OK [14:11:10]SAM_PROTO_GetShiftState done [14:11:10]FM_GetShiftState done [14:11:10]opened in 1729298811 [14:11:10]opened+sec_in_day 1729385211 [14:11:10]quantity*price = 300076 [14:11:10]sum+1 = 300077 [14:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 76 19.10.2024 14:11 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82578 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82579 ФПД: 235985034315339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141111&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82579&fm=235985034315339&tin=02508201610067®Number=0000000000091680&sum=300000 [14:11:11]StoreToDocumentArchive [14:11:11]shift 527 fd 82579 [14:11:11]save to /storage/0527/doc_00082579 [14:11:11]save last doc name /storage/0527/doc_00082579 to /storage/kkm_last_doc_name [14:11:11]save OK [14:11:11]Clear old archive folders... [14:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=285 [14:11:11]tlvbuf is 00525DE0 [14:11:11]SAM_PROTO_ClearQueue [14:11:11]wFMCommunicate request_size=4 [14:11:11]MH_SAM_APDU [14:11:11]CAPDU: 80 09 00 00 [14:11:11]Write to MH i2c: E2 08 00 0B 0A 80 09 00 00 00 00 00 00 87 [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:11]Read from MH i2c: E2 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 03 00 [14:11:11]MH_I2C_Read... [14:11:11]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [14:11:11]RAPDU: 90 00 [14:11:11]wFMCommunicate OK [14:11:11]SAM_PROTO_ClearQueue done [14:11:11]KKMCreateOFDPacket [14:11:11]OFDProtocolAddRootSTLVToBuf [14:11:11]FM_MakeSignedData [14:11:11]FM_MakeSignedData [14:11:11]SAM_PROTO_SignData [14:11:11]wFMCommunicate request_size=4 [14:11:11]MH_SAM_APDU [14:11:11]CAPDU: 80 0D 01 02 [14:11:11]Write to MH i2c: E2 08 00 0C 0A 80 0D 01 02 00 00 00 00 8F [14:11:11]Write i2c OK [14:11:11]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=255 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 FF BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 92 42 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 [14:11:12]Write to MH i2c: E2 02 01 0D 0A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 FF BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 92 42 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 00 00 08 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=44 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 42 01 00 35 04 06 00 D6 A0 8C 24 86 4B [14:11:12]Write to MH i2c: E2 2F 00 0E 0A 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 42 01 00 35 04 06 00 D6 A0 8C 24 86 4B 00 00 7B [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [14:11:12]RAPDU: 90 00 [14:11:12]wFMCommunicate OK [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 0D 03 02 [14:11:12]Write to MH i2c: E2 08 00 0F 0A 80 0D 03 02 00 00 00 00 94 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0B 00 0F 0A 00 AD 40 26 A9 88 45 FA C4 90 00 DC [14:11:12]RAPDU: AD 40 26 A9 88 45 FA C4 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_SignData done [14:11:12]FM_MakeSignedData done [14:11:12]CreateOFDProtocolMessage [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 11 00 00 [14:11:12]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E6 [14:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:11:12]wFMCommunicate OK [14:11:12]CreateOFDProtocolMessage done [14:11:12]OFDSenderStorePacket 82579 [14:11:12]StoreOFDPacket docnum=82579 [14:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 F3 55 29 01 BD E8 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 FF BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 92 42 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 42 01 00 35 04 06 00 D6 A0 8C 24 86 4B AD 40 26 A9 88 45 FA C4 [14:11:12]CheckFolder [14:11:12]dirname=/storage/ofd_packets [14:11:12]CheckFolder done [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00082579 [14:11:12]NVStorageSaveData ofd_packets/00082579 [14:11:12]File name is /storage/ofd_packets/00082579 [14:11:12]Write 335 bytes [14:11:12]NVStorageSaveData done [14:11:12]OFDSenderStorePacket done [14:11:12]KKMCreateOFDPacket done [14:11:12]NVStorageSaveData kkm_last_timestamp [14:11:12]File name is /storage/kkm_last_timestamp [14:11:12]Write 4 bytes [14:11:12]NVStorageSaveData done [14:11:12]ExternCall_PrintAddStr [14:11:12]wPrintStart [14:11:12]Write to MH i2c: 01 00 00 11 0A 1B [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [14:11:12]RasterBufferAndPrint [14:11:12]line Счет N : (1)919065 [14:11:12]line ИНН: 02508201610067 [14:11:12]line Контрольно-Кассовый Чек [14:11:12]line ВОЗВРАТ ПРОДАЖИ [14:11:12]line ТРК (МРК, ГНК) : 21 [14:11:12]line Товар: 2710194800 [14:11:12]line D-Energy ДТ-К-2 [14:11:12]line 38.870 * 77.20 [14:11:12]line = 3000.76 [14:11:12]line НДС 12% НСП 1% [14:11:12]line > о реализуемом товаре [14:11:12]line ОКРУГЛЕНИЕ: -0.76 [14:11:12]line ИТОГО: 3000.00 [14:11:12]line НСП 1% : 26.55 [14:11:12]line НДС 12% : 318.66 [14:11:12]line Наличными: 3000.00 [14:11:12]line Безнал.: 0.00 [14:11:12]line Место: АЗС № 114 "Партнер Нефть" [14:11:12]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:11:12]line СНО: Общий режим [14:11:12]line Чек 76 19.10.2024 14:11 [14:11:12]line Смена: 527 ФФД: 1.0 [14:11:12]line ЗНМ: 0300000086 [14:11:12]line РНМ: 0000000000091680 [14:11:12]line Версия ККМ: 001 [14:11:12]line ФД осн.: 82578 [14:11:12]line ФМ осн.: 0000000000871843 [14:11:12]line ФМ: 0000000000871843 [14:11:12]line ФД: 82579 [14:11:12]line ФПД: 235985034315339 [14:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141111&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82579&fm=235985034315339&tin=02508201610067®Number=0000000000091680&sum=300000 [14:11:12]OFD Sender: Processing packet 82579 [packets to send 254, broken 253] [14:11:12]ProducePacketName [14:11:12]name=ofd_packets/00082579 [14:11:12]written 0, free lines is 4095 [14:11:12]OFD Sender: To server: pG, [14:11:12]CommunicateWithHost lk.salyk.kg:30040 [14:11:12]ConnectInit lk.salyk.kg [14:11:13]recv_with_timeout no data received [14:11:13]Write to MH i2c: 01 00 00 3C 0A 46 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 05 0D 5F [14:11:13]RasterBufferAndPrint [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]line [14:11:13]written 0, free lines is 3348 [14:11:13]MH_Cut [14:11:13]Write to MH i2c: D1 01 00 43 0A 01 1F [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: D1 01 00 43 0A 00 1E [14:11:13]Write to MH i2c: 01 00 00 44 0A 4E [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** Cut start [14:11:13]*** Partial cut [14:11:13]*** CUTSNS_PIN = 1 [14:11:13]*** CUTSNS_PIN = 0 [14:11:14]*** Brake cut motor [14:11:14]Read from MH i2c: 01 [14:11:14]MH_I2C_Read... [14:11:14]*** Stop cut motor [14:11:14]*** Cut end [14:11:14]Read from MH i2c: 01 07 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [14:11:14]process_action close_receipt done [14:11:14]requested_data is exist [14:11:14]produce_requested_data [14:11:14]requested_item fm.sn is exist - process it [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 11 00 00 [14:11:14]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1B [14:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:11:14]wFMCommunicate OK [14:11:14]requested_item fd.num is exist - process it [14:11:14]SAM_PROTO_GetFieldsCounters [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 13 00 00 [14:11:14]Write to MH i2c: E2 08 00 46 0A 80 13 00 00 00 00 00 00 CC [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 62 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 62 00 46 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 93 42 01 00 0E 04 04 00 0F 02 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 B6 [14: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 93 42 01 00 0E 04 04 00 0F 02 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 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_GetFieldsCounters done [14:12:36]OFD Sender: No OFD packet to send [14:12:41]recv_with_timeout no data received [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]accept exits with 7 [14:10:09]New connection [14:10:09]New thread 3066744164 created [14:10:09]Thread 3066887524 joined [14:10:09]Waiting for new connection... [14:10:09] Sock 7.Parse request [14:10:09]Sock 7.Check first char [14:10:09]Sock 7.First char is OK [14:10:09]request: POST /json_proto HTTP/1.0 [14:10:09]Method: POST [14:10:09]URL: /json_proto [14:10:09]Method is POST - this is cgi request [14:10:09]url: /json_proto [14:10:09]query_string will be loaded in cgi processing [14:10:09]execute_cgi json_proto POST (null) [14:10:09]execute_cgi path=json_proto method=POST [14:10:09]POST find Content-Length [14:10:09]Host: 172.17.44.67:8080 [14:10:09]Content-Length: 806 [14:10:09]Content-Type: application/json [14:10:09] [14:10:09]POST finish read [14:10:09]Found Content-Length = 806 [14:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203028", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:09]execute_script... [14:10: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 : (1)919063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203028", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shif[14:15:16]OFD Sender: No OFD packet to send [14:15:20]recv_with_timeout no data received [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:09]recv_with_timeout no data received [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:11:14]requested_item shift.num is exist - process it [14:11:14]requested_item shift.opened is exist - process it [14:11:14]req_shift_opened [14:11:14]FM_GetShiftState [14:11:14]SAM_PROTO_GetShiftState [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 13 01 00 [14:11:14]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D0 [14:11:14]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_GetShiftState done [14:11:14]FM_GetShiftState done [14:11:14]req_shift_opened done [14:11:14]requested_item shift.open_date is exist - process it [14:11:14]req_shift_open_date [14:11:14]req_shift_open_date done [14:11:14]produce_requested_data done [14:11:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82579,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:11:14]process_action_free close_receipt [14:11:14]json_value_free [14:11:14]json_value_free done [14:11:14]process_json_proto returns [14:11:14]Send response to host [14:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82579,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:11:14]free response buf [14:11:14]execute_script done [14:11:14]execute_script returns [14:11:14]free content buf [14:11:14]Sock 10.Close socket [14:11:14]Sock 10.Thread stoped [14:11:16]Connected sock=11 [14:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 F3 55 29 01 BD E8 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 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 FF BD 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:56]accept exits with 9 [14:18:56]New connection [14:18:56]New thread 3066744164 created [14:18:56]Thread 3066887524 joined [14:18:56]Waiting for new connection... [14:18:56] Sock 9.Parse request [14:18:56]Sock 9.Check first char [14:18:56]Sock 9.First char is OK [14:18:56]request: POST /json_proto HTTP/1.0 [14:18:56]Method: POST [14:18:56]URL: /json_proto [14:18:56]Method is POST - this is cgi request [14:18:56]url: /json_proto [14:18:56]query_string will be loaded in cgi processing [14:18:56]execute_cgi json_proto POST (null) [14:18:56]execute_cgi path=json_proto method=POST [14:18:56]POST find Content-Length [14:18:56]Host: 172.17.44.67:8080 [14:18:56]Content-Length: 683 [14:18:56]Content-Type: application/json [14:18:56] [14:18:56]POST finish read [14:18:56]Found Content-Length = 683 [14:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)919066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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" ] } } [14:18:56]execute_script... [14: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 : (1)919066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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" ] } } [14:18:56]POST & json_proto [14:18:56]process_json_proto [14:18:56]json parsed OK: [14:18:56]protocol is kg_v1.0 [14:18:56]action value=close_receipt [14:18:56]process_action close_receipt [14:18:56]cmd_close_receipt [14:18:56]MH_GetDate [14:18:56]Write to MH i2c: F0 00 00 48 0A 41 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: F0 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: F0 09 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: F0 09 00 48 0A 00 D1 BF 13 67 F1 C7 6B 64 DB [14:18:56]GetLastDocTimeStamp 1729347071 [14:18:56]current date 1729347537 [14:18:56]FM_GetShiftState [14:18:56]SAM_PROTO_GetShiftState [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 13 01 00 [14:18:56]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 0E 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D2 [14:18:56]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:18:56]wFMCommunicate OK [14:18:56]SAM_PROTO_GetShiftState done [14:18:56]FM_GetShiftState done [14:18:56]opened in 1729298811 [14:18:56]opened+sec_in_day 1729385211 [14:18:56]quantity*price = 50025 [14:18:56]sum+1 = 50027 [14:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 77 19.10.2024 14:18 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82580 ФПД: 237051764820623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141857&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82580&fm=237051764820623&tin=02508201610067®Number=0000000000091680&sum=50000 [14:18:57]StoreToDocumentArchive [14:18:57]shift 527 fd 82580 [14:18:57]save to /storage/0527/doc_00082580 [14:18:57]save last doc name /storage/0527/doc_00082580 to /storage/kkm_last_doc_name [14:18:57]save OK [14:18:57]Clear old archive folders... [14:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:18:57]tlvbuf is 00506E20 [14:18:57]SAM_PROTO_ClearQueue [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 09 00 00 [14:18:57]Write to MH i2c: E2 08 00 56 0A 80 09 00 00 00 00 00 00 D2 [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [14:18:57]RAPDU: 90 00 [14:18:57]wFMCommunicate OK [14:18:57]SAM_PROTO_ClearQueue done [14:18:57]KKMCreateOFDPacket [14:18:57]OFDProtocolAddRootSTLVToBuf [14:18:57]FM_MakeSignedData [14:18:57]FM_MakeSignedData [14:18:57]SAM_PROTO_SignData [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 0D 01 02 [14:18:57]Write to MH i2c: E2 08 00 57 0A 80 0D 01 02 00 00 00 00 DA [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [14:18:57]RAPDU: 90 00 [14:18:57]wFMCommunicate OK [14:18:57]wFMCommunicate request_size=255 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 4D 00 00 00 F4 03 04 00 D1 BF 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 42 01 [14:18:57]Write to MH i2c: E2 02 01 58 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 4D 00 00 00 F4 03 04 00 D1 BF 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 42 01 00 00 E0 [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=16 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D7 98 EA 3C 4A 8F [14:18:58]Write to MH i2c: E2 13 00 59 0A 80 0D 02 02 0B 00 00 35 04 06 00 D7 98 EA 3C 4A 8F 00 00 A0 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 03 02 [14:18:58]Write to MH i2c: E2 08 00 5A 0A 80 0D 03 02 00 00 00 00 DF [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 5A 0A 00 C8 14 D7 2D DA F6 1C 32 90 00 DE [14:18:58]RAPDU: C8 14 D7 2D DA F6 1C 32 90 00 [14:18:58]wFMCommunicate OK [14:18:58]SAM_PROTO_SignData done [14:18:58]FM_MakeSignedData done [14:18:58]CreateOFDProtocolMessage [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 11 00 00 [14:18:58]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [14:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:18:58]wFMCommunicate OK [14:18:58]CreateOFDProtocolMessage done [14:18:58]OFDSenderStorePacket 82580 [14:18:58]StoreOFDPacket docnum=82580 [14:19:01]CheckOFDResponse [14:19:01]1017 (14) - 77093643461234 [14:19:01]1041 (16) - 0000000000871843 [14:19:01]1040 (4) - 82580 [14:19:01]1012 (4) - 19.10.2024 07:51 [14:19:01]1206 (1) - 0 [14:19:01]OFD Sender: Remove packet 82580 [14:19:01]ProducePacketName [14:19:01]name=ofd_packets/00082580 [14:19:01]NVStorageDeleteData [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:15]recv_with_timeout no data received [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:26]recv_with_timeout no data received [14:19:31]OFD Sender: No OFD packet to send [14:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 61 C2 0D 01 20 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 4D 00 00 00 F4 03 04 00 D1 BF 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 42 01 00 35 04 06 00 D7 98 EA 3C 4A 8F C8 14 D7 2D DA F6 1C 32 [14:18:58]CheckFolder [14:18:58]dirname=/storage/ofd_packets [14:18:58]CheckFolder done [14:18:58]ProducePacketName [14:18:58]name=ofd_packets/00082580 [14:18:58]NVStorageSaveData ofd_packets/00082580 [14:18:58]File name is /storage/ofd_packets/00082580 [14:18:58]Write 307 bytes [14:18:58]NVStorageSaveData done [14:18:58]OFDSenderStorePacket done [14:18:58]KKMCreateOFDPacket done [14:18:58]NVStorageSaveData kkm_last_timestamp [14:18:58]File name is /storage/kkm_last_timestamp [14:18:58]Write 4 bytes [14:18:58]NVStorageSaveData done [14:18:58]ExternCall_PrintAddStr [14:18:58]wPrintStart [14:18:58]Write to MH i2c: 01 00 00 5C 0A 66 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [14:18:58]RasterBufferAndPrint [14:18:58]line Счет N : (1)919066 [14:18:58]line ИНН: 02508201610067 [14:18:58]line Контрольно-Кассовый Чек [14:18:58]line ПРОДАЖА [14:18:58]line ТРК (МРК, ГНК) : 21 [14:18:58]line Товар: 2710194800 [14:18:58]line D-Energy ДТ-К-2 [14:18:58]line 6.480 * 77.20 [14:18:58]line = 500.26 [14:18:58]line НДС 12% НСП 1% [14:18:58]line > о реализуемом товаре [14:18:58]line ОКРУГЛЕНИЕ: -0.26 [14:18:58]line ИТОГО: 500.00 [14:18:58]line Внесено: 500.00 [14:18:58]line СДАЧА: 0.00 [14:18:58]line НСП 1% : 4.43 [14:18:58]line НДС 12% : 53.12 [14:18:58]line Наличными: 500.00 [14:18:58]line Безнал.: 0.00 [14:18:58]line Место: АЗС № 114 "Партнер Нефть" [14:18:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:18:58]line СНО: Общий режим [14:18:58]line Чек 77 19.10.2024 14:18 [14:18:58]line Смена: 527 ФФД: 1.0 [14:18:58]line ЗНМ: 0300000086 [14:18:58]line РНМ: 0000000000091680 [14:18:58]line Версия ККМ: 001 [14:18:58]line ФМ: 0000000000871843 [14:18:58]line ФД: 82580 [14:18:58]line ФПД: 237051764820623 [14:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T141857&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82580&fm=237051764820623&tin=02508201610067®Number=0000000000091680&sum=50000 [14:18:58]OFD Sender: Processing packet 82580 [packets to send 254, broken 253] [14:18:58]ProducePacketName [14:18:58]name=ofd_packets/00082580 [14:18:58]OFD Sender: To server: pG, [14:18:58]CommunicateWithHost lk.salyk.kg:30040 [14:18:58]ConnectInit lk.salyk.kg [14:18:58]written 0, free lines is 4095 [14:18:59]Write to MH i2c: 01 00 00 87 0A 91 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 87 0A 00 00 00 00 00 E6 0C 8A [14:18:59]RasterBufferAndPrint [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]written 0, free lines is 3308 [14:18:59]MH_Cut [14:18:59]Write to MH i2c: D1 01 00 8E 0A 01 6A [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 8E 0A 00 69 [14:18:59]Write to MH i2c: 01 00 00 8F 0A 99 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Connected sock=10 [14: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 31 38 34 33 15 01 00 00 61 C2 0D 01 20 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 4D 00 00 00 F4 03 04 00 D1 BF 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 42 01 00 35 04 06 00 D7 98 EA 3C 4A 8F C8 14 D7 2D DA F6 1C 32 [14:18:59]*** Cut start [14:18:59]*** Partial cut [14:18:59]*** CUTSNS_PIN = 1 [14:18:59]*** CUTSNS_PIN = 0 [14:19:00]*** Brake cut motor [14:19:00]Read from MH i2c: 01 [14:19:00]MH_I2C_Read... [14:19:00]*** Stop cut motor [14:19:00]*** Cut end [14:19:00]Read from MH i2c: 01 07 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 8F 0A 00 00 00 00 00 FF 0F AE [14:19:00]process_action close_receipt done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item fm.sn is exist - process it [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 11 00 00 [14:19:00]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 66 [14:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:19:00]wFMCommunicate OK [14:19:00]requested_item fd.num is exist - process it [14:19:00]SAM_PROTO_GetFieldsCounters [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 00 00 [14:19:00]Write to MH i2c: E2 08 00 91 0A 80 13 00 00 00 00 00 00 17 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 91 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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 94 42 01 00 0E 04 04 00 0F 02 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 05 [14:19: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 94 42 01 00 0E 04 04 00 0F 02 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 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetFieldsCounters done [14:19:00]requested_item shift.num is exist - process it [14:19:00]requested_item shift.opened is exist - process it [14:19:00]req_shift_opened [14:19:00]FM_GetShiftState [14:19:00]SAM_PROTO_GetShiftState [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 01 00 [14:19:00]Write to MH i2c: E2 08 00 92 0A 80 13 01 00 00 00 00 00 19 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 92 0A 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 1B [14:19:00]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetShiftState done [14:19:00]FM_GetShiftState done [14:19:00]req_shift_opened done [14:19:00]requested_item shift.open_date is exist - process it [14:19:00]req_shift_open_date [14:19:00]req_shift_open_date done [14:19:00]produce_requested_data done [14:19:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82580,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [14:19:00]process_action_free close_receipt [14:19:00]json_value_free [14:19:00]json_value_free done [14:19:00]process_json_proto returns [14:19:00]Send response to host [14:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82580,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [14:19:00]free response buf [14:19:00]execute_script done [14:19:00]execute_script returns [14:19:00]free content buf [14:19:00]Sock 9.Close socket [14:19:00]Sock 9.Thread stoped [14:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3D 39 47 00 10 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 31 38 34 33 10 04 04 00 94 42 01 00 F4 03 04 00 09 65 13 67 B6 04 01 00 00 F1 8A 41 11 74 C4 C9 AB [14:19:01]CommunicateWithHost err = 0 [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send