[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: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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 720490+1723749199=1724469689 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 BA 51 C9 66 4F 53 BE 66 FF [03:21:30]Current date/time: 24.08.2024 03:21 [03:21:30]FM_Init [03:21:30]wFMConnect [03:21:30]MH_SAM_On [03:21:30]Write to MH i2c: E0 00 00 08 00 E7 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_init finished! [03:21:30]*** atr: [03:21:30]*** 0F 3B D5 18 FF 81 91 FE [03:21:30]*** 1F C3 80 73 C8 21 10 0A [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]*** 00 00 00 00 00 00 00 00 [03:21:30]Read from MH i2c: E0 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E0 10 00 [03:21:30]MH_I2C_Read... [03:21:30]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 [03:21:30]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [03:21:30]wFMCommunicate request_size=10 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [03:21:30]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [03:21:30]RAPDU: 90 00 [03:21:30]wFMCommunicate OK [03:21:30]wFMCommunicate request_size=4 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 11 00 00 [03:21:30]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 17 00 [03:21:30]MH_I2C_Read... [03:21:30]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 37 37 38 90 00 DD [03:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:21:30]wFMCommunicate OK [03:21:30]Detected FM SN is 0000000000871778 [03:21:30]Stored FM SN is 0000000000871778 [03:21:30]wFMCommunicate request_size=9 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 16 00 00 04 D9 BA 00 00 [03:21:30]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [03:21:30]RAPDU: 90 00 [03:21:30]wFMCommunicate OK [03:21:30]FM PIN OK [03:21:30]wFMCommunicate request_size=8 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 14 04 00 03 02 00 01 [03:21:30]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [03:21:30]RAPDU: 90 00 [03:21:30]wFMCommunicate OK [03:21:30]wFMCommunicate request_size=13 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [03:21:30]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 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [03:21:30]RAPDU: 90 00 [03:21:30]wFMCommunicate OK [03:21:30]wFMCommunicate request_size=4 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 11 00 00 [03:21:30]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:30]Read from MH i2c: E2 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: E2 17 00 [03:21:30]MH_I2C_Read... [03:21:30]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 37 37 38 90 00 E1 [03:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:21:30]wFMCommunicate OK [03:21:30]DocumentArchiveInit [03:21:30]Start Httpd... [03:21:30]Httpd thread 3066879332 created [03:21:30]Write to MH i2c: 01 00 00 0F 00 0F [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: 01 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: 01 07 00 [03:21:30]MH_I2C_Read... [03:21:30]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [03:21:30]MH Int Process started [03:21:30]Allocated Socket 8 [03:21:30]Bind OK [03:21:30]Listen OK [03:21:30]httpd running on port 8080 [03:21:30]Waiting for new connection... [03:21:30]accept exits with 9 [03:21:30]New connection [03:21:30]New thread 3066592612 created [03:21:30]Waiting for new connection... [03:21:30] Sock 9.Parse request [03:21:30]Sock 9.Check first char [03:21:30]Sock 9.First char is OK [03:21:30]request: POST /json_proto HTTP/1.0 [03:21:30]Method: POST [03:21:30]URL: /json_proto [03:21:30]Method is POST - this is cgi request [03:21:30]url: /json_proto [03:21:30]query_string will be loaded in cgi processing [03:21:30]execute_cgi json_proto POST (null) [03:21:30]execute_cgi path=json_proto method=POST [03:21:30]POST find Content-Length [03:21:30]Host: 172.17.44.131:8080 [03:21:30]Content-Length: 215 [03:21:30]Content-Type: application/json [03:21:30] [03:21:30]POST finish read [03:21:30]Found Content-Length = 215 [03:21:30]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" ] } } [03:21:30]execute_script... [03:21:30]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" ] } } [03:21:30]POST & json_proto [03:21:30]process_json_proto [03:21:30]json parsed OK: [03:21:30]protocol is kg_v1.0 [03:21:30]action value=get_value [03:21:30]process_action get_value [03:21:30]cmd_get_value [03:21:30]process_action get_value done [03:21:30]requested_data is exist [03:21:30]produce_requested_data [03:21:30]requested_item kkm.sn is exist - process it [03:21:30]requested_item kkm.ver is exist - process it [03:21:30]requested_item fm.sn is exist - process it [03:21:30]wFMCommunicate request_size=4 [03:21:30]MH_SAM_APDU [03:21:30]CAPDU: 80 11 00 00 [03:21:30]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [03:21:30]Write i2c OK [03:21:30]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 17 00 [03:21:31]MH_I2C_Read... [03:21:31]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 37 37 38 90 00 E3 [03:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:21:31]wFMCommunicate OK [03:21:31]requested_item fd.num is exist - process it [03:21:31]SAM_PROTO_GetFieldsCounters [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 13 00 00 [03:21:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]OFD Sender: Processing packet 178793 [packets to send 500, broken 499] [03:21:31]ProducePacketName [03:21:31]name=ofd_packets/00178793 [03:21:31]Read from MH i2c: E2 62 00 [03:21:31]MH_I2C_Read... [03:21:31]OFD Sender: To server: pG, [03:21:31]CommunicateWithHost lk.salyk.kg:30040 [03:21:31]ConnectInit lk.salyk.kg [03:21:31]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 69 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [03:21: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 69 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:21:31]wFMCommunicate OK [03:21:31]SAM_PROTO_GetFieldsCounters done [03:21:31]requested_item shift.num is exist - process it [03:21:31]requested_item shift.opened is exist - process it [03:21:31]req_shift_opened [03:21:31]FM_GetShiftState [03:21:31]SAM_PROTO_GetShiftState [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 13 01 00 [03:21:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 0E 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [03:21:31]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:21:31]wFMCommunicate OK [03:21:31]SAM_PROTO_GetShiftState done [03:21:31]FM_GetShiftState done [03:21:31]req_shift_opened done [03:21:31]requested_item shift.open_date is exist - process it [03:21:31]req_shift_open_date [03:21:31]req_shift_open_date done [03:21:31]produce_requested_data done [03:21:31]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178793,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:21:31]process_action_free get_value [03:21:31]json_value_free [03:21:31]json_value_free done [03:21:31]process_json_proto returns [03:21:31]Send response to host [03:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178793,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:21:31]free response buf [03:21:31]execute_script done [03:21:31]execute_script returns [03:21:31]free content buf [03:21:31]Sock 9.Close socket [03:21:31]Sock 9.Thread stoped [03:21:31]accept exits with 10 [03:21:31]New connection [03:21:31]New thread 3066449252 created [03:21:31]Thread 3066592612 joined [03:21:31]Waiting for new connection... [03:21:31] Sock 10.Parse request [03:21:31]Sock 10.Check first char [03:21:31]Sock 10.First char is OK [03:21:31]request: POST /json_proto HTTP/1.0 [03:21:31]Method: POST [03:21:31]URL: /json_proto [03:21:31]Method is POST - this is cgi request [03:21:31]url: /json_proto [03:21:31]query_string will be loaded in cgi processing [03:21:31]execute_cgi json_proto POST (null) [03:21:31]execute_cgi path=json_proto method=POST [03:21:31]POST find Content-Length [03:21:31]Host: 172.17.44.131:8080 [03:21:31]Content-Length: 331 [03:21:31]Content-Type: application/json [03:21:31] [03:21:31]POST finish read [03:21:31]Found Content-Length = 331 [03:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [03:21:31]execute_script... [03:21:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [03:21:31]POST & json_proto [03:21:31]process_json_proto [03:21:31]json parsed OK: [03:21:31]protocol is kg_v1.0 [03:21:31]action value=get_value [03:21:31]process_action get_value [03:21:31]cmd_get_value [03:21:31]process_action get_value done [03:21:31]requested_data is exist [03:21:31]produce_requested_data [03:21:31]requested_item fm.sale.total is exist - process it [03:21:31]SAM_PROTO_GetFMData [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 13 03 00 [03:21:31]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 FD 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 BB B6 02 00 69 04 A4 00 6F 04 04 00 24 B5 02 00 B1 04 05 00 6F 8B CF 2B 05 70 04 05 00 1F 40 13 15 04 72 04 05 00 50 4B BC 16 01 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 23 54 9D 8C 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 A8 94 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 36 [03:21:31]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 BB B6 02 00 69 04 A4 00 6F 04 04 00 24 B5 02 00 B1 04 05 00 6F 8B CF 2B 05 70 04 05 00 1F 40 13 15 04 72 04 05 00 50 4B BC 16 01 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 23 54 9D 8C 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 A8 94 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [03:21:31]wFMCommunicate OK [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 17 00 00 [03:21:31]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 FD 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [03:21:31]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [03:21:31]wFMCommunicate OK [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 17 00 00 [03:21:31]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 FD 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [03:21:32]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [03:21:32]wFMCommunicate OK [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 17 00 00 [03:21:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 FD 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [03:21:32]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [03:21:32]wFMCommunicate OK [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 17 00 00 [03:21:32]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 E3 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 E3 00 17 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 76 [03:21:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [03:21:32]wFMCommunicate OK [03:21:32]SAM_PROTO_GetFMData done [03:21:32]requested_item fm.sale_refund.total is exist - process it [03:21:32]requested_item fm.buy.total is exist - process it [03:21:32]requested_item shift.sale.total is exist - process it [03:21:32]SAM_PROTO_GetShiftData [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 13 02 00 [03:21:32]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 4D 3F 25 70 04 03 00 78 CD 19 72 04 03 00 D5 71 0B 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 CC F4 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 65 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [03:21:33]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 13 00 00 00 69 04 9B 00 6F 04 04 00 13 00 00 00 B1 04 03 00 4D 3F 25 70 04 03 00 78 CD 19 72 04 03 00 D5 71 0B 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 CC F4 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 65 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=4 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 17 00 00 [03:21:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [03:21:33]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 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=4 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 17 00 00 [03:21:33]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [03:21:33]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 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=4 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 17 00 00 [03:21:33]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:21:34]Read from MH i2c: E2 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: E2 FD 00 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [03:21:34]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 [03:21:34]wFMCommunicate OK [03:21:34]wFMCommunicate request_size=4 [03:21:34]MH_SAM_APDU [03:21:34]CAPDU: 80 17 00 00 [03:21:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [03:21:34]Read from MH i2c: E2 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: E2 CB 00 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [03:21:34]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 [03:21:34]wFMCommunicate OK [03:21:34]SAM_PROTO_GetShiftData done [03:21:34]requested_item shift.sale.total_cash is exist - process it [03:21:34]requested_item shift.sale_refund.total is exist - process it [03:21:34]requested_item shift.sale_refund.total_cash is exist - process it [03:21:34]requested_item shift.buy.total is exist - process it [03:21:34]requested_item shift.buy.total_cash is exist - process it [03:21:34]produce_requested_data done [03:21:34]produce_requested_data return {"fm.sale.total":222098584.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":24410.37,"shift.sale.total_cash":16910.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} [03:21:34]process_action_free get_value [03:21:34]json_value_free [03:21:34]json_value_free done [03:21:34]process_json_proto returns [03:21:34]Send response to host [03:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222098584.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":24410.37,"shift.sale.total_cash":16910.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}}} [03:21:34]free response buf [03:21:34]execute_script done [03:21:34]execute_script returns [03:21:34]free content buf [03:21:34]Sock 10.Close socket [03:21:34]Sock 10.Thread stoped [03:21:34]accept exits with 9 [03:21:34]New connection [03:21:34]New thread 3066592612 created [03:21:34]Thread 3066449252 joined [03:21:34]Waiting for new connection... [03:21:34] Sock 9.Parse request [03:21:34]Sock 9.Check first char [03:21:34]Sock 9.First char is OK [03:21:34]request: POST /json_proto HTTP/1.0 [03:21:34]Method: POST [03:21:34]URL: /json_proto [03:21:34]Method is POST - this is cgi request [03:21:34]url: /json_proto [03:21:34]query_string will be loaded in cgi processing [03:21:34]execute_cgi json_proto POST (null) [03:21:34]execute_cgi path=json_proto method=POST [03:21:34]POST find Content-Length [03:21:34]Host: 172.17.44.131:8080 [03:21:34]Content-Length: 816 [03:21:34]Content-Type: application/json [03:21:34] [03:21:34]POST finish read [03:21:34]Found Content-Length = 816 [03:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:34]execute_script... [03:21:34]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)294939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:34]POST & json_proto [03:21:34]process_json_proto [03:21:34]json parsed OK: [03:21:34]protocol is kg_v1.0 [03:21:34]action value=close_receipt [03:21:34]process_action close_receipt [03:21:34]cmd_close_receipt [03:21:34]MH_GetDate [03:21:34]Write to MH i2c: F0 00 00 1D 00 0C [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: F0 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: F0 09 00 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: F0 09 00 1D 00 00 BF 51 C9 66 4F 53 BE 66 1A [03:21:34]GetLastDocTimeStamp 1724468292 [03:21:34]current date 1724469695 [03:21:34]FM_GetShiftState [03:21:34]SAM_PROTO_GetShiftState [03:21:34]wFMCommunicate request_size=4 [03:21:34]MH_SAM_APDU [03:21:34]CAPDU: 80 13 01 00 [03:21:34]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:35]Read from MH i2c: E2 [03:21:35]MH_I2C_Read... [03:21:35]Read from MH i2c: E2 0E 00 [03:21:35]MH_I2C_Read... [03:21:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [03:21:35]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:21:35]wFMCommunicate OK [03:21:35]SAM_PROTO_GetShiftState done [03:21:35]FM_GetShiftState done [03:21:35]opened in 1724458079 [03:21:35]opened+sec_in_day 1724544479 [03:21:35]quantity*price = 30035 [03:21:35]sum+1 = 30036 [03:21:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.35 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.35 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 20 24.08.2024 03:21 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178794 ФПД: 4863022996127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032135&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178794&fm=4863022996127&tin=02508201610067®Number=0000000000092561&sum=30035 [03:21:36]StoreToDocumentArchive [03:21:36]shift 471 fd 178794 [03:21:36]save to /storage/0471/doc_00178794 [03:21:36]save last doc name /storage/0471/doc_00178794 to /storage/kkm_last_doc_name [03:21:36]save OK [03:21:36]Clear old archive folders... [03:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:21:36]tlvbuf is 00CBC590 [03:21:36]SAM_PROTO_ClearQueue [03:21:36]wFMCommunicate request_size=4 [03:21:36]MH_SAM_APDU [03:21:36]CAPDU: 80 09 00 00 [03:21:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [03:21:36]RAPDU: 90 00 [03:21:36]wFMCommunicate OK [03:21:36]SAM_PROTO_ClearQueue done [03:21:36]KKMCreateOFDPacket [03:21:36]OFDProtocolAddRootSTLVToBuf [03:21:36]FM_MakeSignedData [03:21:36]FM_MakeSignedData [03:21:36]SAM_PROTO_SignData [03:21:36]wFMCommunicate request_size=4 [03:21:36]MH_SAM_APDU [03:21:36]CAPDU: 80 0D 01 02 [03:21:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:21:36]ConnectInit Can't take IP for lk.salyk.kg [03:21:36]CommunicateWithHost connect error [03:21:36]CommunicateWithHost err = -1 [03:21:36]OFD Sender: Server communicate error [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [03:21:36]RAPDU: 90 00 [03:21:36]wFMCommunicate OK [03:21:36]wFMCommunicate request_size=255 [03:21:36]MH_SAM_APDU [03:21:36]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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 51 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6A BA 02 00 35 04 06 00 04 [03:21:36]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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 51 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6A BA 02 00 35 04 06 00 04 00 00 E2 [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [03:21:36]RAPDU: 90 00 [03:21:36]wFMCommunicate OK [03:21:36]wFMCommunicate request_size=10 [03:21:36]MH_SAM_APDU [03:21:36]CAPDU: 80 0D 02 02 05 6C 42 C2 1A 9F [03:21:36]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 6C 42 C2 1A 9F 00 00 DB [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [03:21:36]RAPDU: 90 00 [03:21:36]wFMCommunicate OK [03:21:36]wFMCommunicate request_size=4 [03:21:36]MH_SAM_APDU [03:21:36]CAPDU: 80 0D 03 02 [03:21:36]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 0B 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 0B 00 2F 00 00 85 1E D7 72 A9 4E 24 91 90 00 43 [03:21:36]RAPDU: 85 1E D7 72 A9 4E 24 91 90 00 [03:21:36]wFMCommunicate OK [03:21:36]SAM_PROTO_SignData done [03:21:36]FM_MakeSignedData done [03:21:36]CreateOFDProtocolMessage [03:21:36]wFMCommunicate request_size=4 [03:21:36]MH_SAM_APDU [03:21:36]CAPDU: 80 11 00 00 [03:21:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:36]Read from MH i2c: E2 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: E2 17 00 [03:21:36]MH_I2C_Read... [03:21:36]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 37 37 38 90 00 03 [03:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:21:36]wFMCommunicate OK [03:21:36]CreateOFDProtocolMessage done [03:21:36]OFDSenderStorePacket 178794 [03:21:36]StoreOFDPacket docnum=178794 [03:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 36 4D 07 01 2B 5D 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 51 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6A BA 02 00 35 04 06 00 04 6C 42 C2 1A 9F 85 1E D7 72 A9 4E 24 91 [03:21:36]CheckFolder [03:21:36]dirname=/storage/ofd_packets [03:21:36]CheckFolder done [03:21:36]ProducePacketName [03:21:36]name=ofd_packets/00178794 [03:21:36]NVStorageSaveData ofd_packets/00178794 [03:21:36]File name is /storage/ofd_packets/00178794 [03:21:36]Write 301 bytes [03:21:36]NVStorageSaveData done [03:21:36]OFDSenderStorePacket done [03:21:36]KKMCreateOFDPacket done [03:21:36]NVStorageSaveData kkm_last_timestamp [03:21:36]File name is /storage/kkm_last_timestamp [03:21:36]Write 4 bytes [03:21:36]NVStorageSaveData done [03:21:36]ExternCall_PrintAddStr [03:21:36]wPrintStart [03:21:36]Write to MH i2c: 01 00 00 31 00 31 [03:21:36]Write i2c OK [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: 01 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: 01 07 00 [03:21:36]MH_I2C_Read... [03:21:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [03:21:36]RasterBufferAndPrint [03:21:36]line Счет N : (1)294939 [03:21:36]line ИНН: 02508201610067 [03:21:36]line Контрольно-Кассовый Чек [03:21:36]line ПРОДАЖА [03:21:36]line ТРК (МРК, ГНК) : 52 [03:21:36]line Товар: 2710124130 [03:21:36]line Аи-92-К-5 [03:21:36]line 4.430 * 67.80 [03:21:36]line = 300.35 [03:21:36]line НДС 12% НСП 1% [03:21:36]line > о реализуемом товаре [03:21:36]line ИТОГО: 300.35 [03:21:36]line НСП 1% : 2.66 [03:21:36]line НДС 12% : 31.90 [03:21:36]line Наличными: 0.00 [03:21:36]line Безнал.: 300.35 [03:21:36]line Место: АЗС № 130 "Партнер Нефть" [03:21:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:21:36]line СНО: Общий режим [03:21:36]line Чек 20 24.08.2024 03:21 [03:21:36]line Смена: 471 ФФД: 1.0 [03:21:36]line ЗНМ: 0300000071 [03:21:36]line РНМ: 0000000000092561 [03:21:36]line Версия ККМ: 001 [03:21:36]line Платежная система: Бакай Банк [03:21:36]line ФМ: 0000000000871778 [03:21:36]line ФД: 178794 [03:21:36]line ФПД: 4863022996127 [03:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032135&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178794&fm=4863022996127&tin=02508201610067®Number=0000000000092561&sum=30035 [03:21:37]OFD Sender: Processing packet 178793 [packets to send 501, broken 499] [03:21:37]ProducePacketName [03:21:37]name=ofd_packets/00178793 [03:21:37]OFD Sender: To server: pG, [03:21:37]CommunicateWithHost lk.salyk.kg:30040 [03:21:37]ConnectInit lk.salyk.kg [03:21:37]written 0, free lines is 4095 [03:21:37]Write to MH i2c: 01 00 00 5B 00 5B [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: 01 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: 01 07 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E1 0C 4F [03:21:37]RasterBufferAndPrint [03:21:37]line [03:21:37]line [03:21:37]line [03:21:37]line [03:21:37]line [03:21:37]written 0, free lines is 3320 [03:21:37]MH_Cut [03:21:37]Write to MH i2c: D1 01 00 62 00 01 34 [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: D1 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: D1 01 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: D1 01 00 62 00 00 33 [03:21:37]Write to MH i2c: 01 00 00 63 00 63 [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:38]*** Cut start [03:21:38]*** Partial cut [03:21:38]*** CUTSNS_PIN = 1 [03:21:38]*** CUTSNS_PIN = 0 [03:21:38]*** Brake cut motor [03:21:39]Read from MH i2c: 01 [03:21:39]MH_I2C_Read... [03:21:39]*** Stop cut motor [03:21:39]*** Cut end [03:21:39]Read from MH i2c: 01 07 00 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [03:21:39]process_action close_receipt done [03:21:39]requested_data is exist [03:21:39]produce_requested_data [03:21:39]requested_item fm.sn is exist - process it [03:21:39]wFMCommunicate request_size=4 [03:21:39]MH_SAM_APDU [03:21:39]CAPDU: 80 11 00 00 [03:21:39]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [03:21:39]Write i2c OK [03:21:39]MH_I2C_Read... [03:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:39]Read from MH i2c: E2 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 17 00 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [03:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:21:39]wFMCommunicate OK [03:21:39]requested_item fd.num is exist - process it [03:21:39]SAM_PROTO_GetFieldsCounters [03:21:39]wFMCommunicate request_size=4 [03:21:39]MH_SAM_APDU [03:21:39]CAPDU: 80 13 00 00 [03:21:39]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [03:21:39]Write i2c OK [03:21:39]MH_I2C_Read... [03:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:39]Read from MH i2c: E2 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 62 00 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 62 00 65 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [03:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:21:39]wFMCommunicate OK [03:21:39]SAM_PROTO_GetFieldsCounters done [03:21:39]requested_item shift.num is exist - process it [03:21:39]requested_item shift.opened is exist - process it [03:21:39]req_shift_opened [03:21:39]FM_GetShiftState [03:21:39]SAM_PROTO_GetShiftState [03:21:39]wFMCommunicate request_size=4 [03:21:39]MH_SAM_APDU [03:21:39]CAPDU: 80 13 01 00 [03:21:39]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [03:21:39]Write i2c OK [03:21:39]MH_I2C_Read... [03:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:39]Read from MH i2c: E2 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 0E 00 [03:21:39]MH_I2C_Read... [03:21:39]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A1 [03:21:39]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:21:39]wFMCommunicate OK [03:21:39]SAM_PROTO_GetShiftState done [03:21:39]FM_GetShiftState done [03:21:39]req_shift_opened done [03:21:39]requested_item shift.open_date is exist - process it [03:21:39]req_shift_open_date [03:21:39]req_shift_open_date done [03:21:39]produce_requested_data done [03:21:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178794,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:21:39]process_action_free close_receipt [03:21:39]json_value_free [03:21:39]json_value_free done [03:21:39]process_json_proto returns [03:21:39]Send response to host [03:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178794,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:21:39]free response buf [03:21:39]execute_script done [03:21:39]execute_script returns [03:21:39]free content buf [03:21:39]Sock 9.Close socket [03:21:39]Sock 9.Thread stoped [03:21:42]ConnectInit Can't take IP for lk.salyk.kg [03:21:42]CommunicateWithHost connect error [03:21:42]CommunicateWithHost err = -1 [03:21:42]OFD Sender: Server communicate error [03:21:47]OFD Sender: Processing packet 178793 [packets to send 501, broken 499] [03:21:47]ProducePacketName [03:21:47]name=ofd_packets/00178793 [03:21:47]OFD Sender: To server: pG, [03:21:47]CommunicateWithHost lk.salyk.kg:30040 [03:21:47]ConnectInit lk.salyk.kg [03:21:49]recv_with_timeout no data received [03:21:52]ConnectInit Can't take IP for lk.salyk.kg [03:21:52]CommunicateWithHost connect error [03:21:52]CommunicateWithHost err = -1 [03:21:52]OFD Sender: Server communicate error [03:21:57]OFD Sender: Processing packet 178793 [packets to send 501, broken 499] [03:21:57]ProducePacketName [03:21:57]name=ofd_packets/00178793 [03:21:57]OFD Sender: To server: pG, [03:21:57]CommunicateWithHost lk.salyk.kg:30040 [03:21:57]ConnectInit lk.salyk.kg [03:22:02]ConnectInit Can't take IP for lk.salyk.kg [03:22:02]CommunicateWithHost connect error [03:22:02]CommunicateWithHost err = -1 [03:22:02]OFD Sender: Server communicate error [03:22:07]OFD Sender: Processing packet 178793 [packets to send 501, broken 499] [03:22:07]ProducePacketName [03:22:07]name=ofd_packets/00178793 [03:22:07]OFD Sender: To server: pG, [03:22:07]CommunicateWithHost lk.salyk.kg:30040 [03:22:07]ConnectInit lk.salyk.kg [03:22:14]recv_with_timeout no data received [03:22:19]Connected sock=9 [03:22: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 37 37 38 0D 01 00 00 DC A9 05 01 B4 43 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 44 4C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 69 BA 02 00 35 04 06 00 08 23 AE 70 BC FC 39 15 F3 F1 37 D9 5A D3 [03:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 99 A0 47 00 B0 D9 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 37 37 38 10 04 04 00 69 BA 02 00 F4 03 04 00 90 FD C8 66 B6 04 01 00 00 FE FE 5D AB FC 3A A3 DD [03:22:20]CommunicateWithHost err = 0 [03:22:20]CheckOFDResponse [03:22:20]1017 (14) - 77093643461234 [03:22:20]1041 (16) - 0000000000871778 [03:22:20]1040 (4) - 178793 [03:22:20]1012 (4) - 23.08.2024 21:22 [03:22:20]1206 (1) - 0 [03:22:20]OFD Sender: Remove packet 178793 [03:22:20]ProducePacketName [03:22:20]name=ofd_packets/00178793 [03:22:20]NVStorageDeleteData [03:22:20]OFD Sender: Processing packet 178794 [packets to send 500, broken 499] [03:22:20]ProducePacketName [03:22:20]name=ofd_packets/00178794 [03:22:20]OFD Sender: To server: pG, [03:22:20]CommunicateWithHost lk.salyk.kg:30040 [03:22:20]ConnectInit lk.salyk.kg [03:22:21]Connected sock=9 [03:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 36 4D 07 01 2B 5D 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BF 51 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6A BA 02 00 35 04 06 00 04 6C 42 C2 1A 9F 85 1E D7 72 A9 4E 24 91 [03:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 49 F2 47 00 0C D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6A BA 02 00 F4 03 04 00 92 FD C8 66 B6 04 01 00 00 AB A2 24 5D 26 F7 7C E6 [03:22:21]CommunicateWithHost err = 0 [03:22:21]CheckOFDResponse [03:22:21]1017 (14) - 77093643461234 [03:22:21]1041 (16) - 0000000000871778 [03:22:21]1040 (4) - 178794 [03:22:21]1012 (4) - 23.08.2024 21:22 [03:22:21]1206 (1) - 0 [03:22:21]OFD Sender: Remove packet 178794 [03:22:21]ProducePacketName [03:22:21]name=ofd_packets/00178794 [03:22:21]NVStorageDeleteData [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:00]accept exits with 10 [03:23:00]New connection [03:23:00]New thread 3066449252 created [03:23:00]Thread 3066592612 joined [03:23:00]Waiting for new connection... [03:23:00] Sock 10.Parse request [03:23:00]Sock 10.Check first char [03:23:00]Sock 10.First char is OK [03:23:00]request: POST /json_proto HTTP/1.0 [03:23:00]Method: POST [03:23:00]URL: /json_proto [03:23:00]Method is POST - this is cgi request [03:23:00]url: /json_proto [03:23:00]query_string will be loaded in cgi processing [03:23:00]execute_cgi json_proto POST (null) [03:23:00]execute_cgi path=json_proto method=POST [03:23:00]POST find Content-Length [03:23:00]Host: 172.17.44.131:8080 [03:23:00]Content-Length: 801 [03:23:00]Content-Type: application/json [03:23:00] [03:23:00]POST finish read [03:23:00]Found Content-Length = 801 [03:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:00]execute_script... [03:23:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:00]POST & json_proto [03:23:00]process_json_proto [03:23:00]json parsed OK: [03:23:00]protocol is kg_v1.0 [03:23:00]action value=close_receipt [03:23:00]process_action close_receipt [03:23:00]cmd_close_receipt [03:23:00]MH_GetDate [03:23:00]Write to MH i2c: F0 00 00 67 00 56 [03:23:00]Write i2c OK [03:23:00]MH_I2C_Read... [03:23:00]Read from MH i2c: F0 [03:23:00]MH_I2C_Read... [03:23:00]Read from MH i2c: F0 09 00 [03:23:00]MH_I2C_Read... [03:23:00]Read from MH i2c: F0 09 00 67 00 00 14 52 C9 66 4F 53 BE 66 BA [03:23:00]GetLastDocTimeStamp 1724469695 [03:23:00]current date 1724469780 [03:23:00]FM_GetShiftState [03:23:00]SAM_PROTO_GetShiftState [03:23:00]wFMCommunicate request_size=4 [03:23:00]MH_SAM_APDU [03:23:00]CAPDU: 80 13 01 00 [03:23:00]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [03:23:00]Write i2c OK [03:23:00]MH_I2C_Read... [03:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:00]Read from MH i2c: E2 [03:23:00]MH_I2C_Read... [03:23:00]Read from MH i2c: E2 0E 00 [03:23:00]MH_I2C_Read... [03:23:00]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A3 [03:23:00]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:23:00]wFMCommunicate OK [03:23:00]SAM_PROTO_GetShiftState done [03:23:00]FM_GetShiftState done [03:23:00]opened in 1724458079 [03:23:00]opened+sec_in_day 1724544479 [03:23:00]quantity*price = 998982 [03:23:00]sum+1 = 998983 [03:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 21 24.08.2024 03:23 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178795 ФПД: 90110709693703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032300&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178795&fm=90110709693703&tin=02508201610067®Number=0000000000092561&sum=998982 [03:23:01]StoreToDocumentArchive [03:23:01]shift 471 fd 178795 [03:23:01]save to /storage/0471/doc_00178795 [03:23:01]save last doc name /storage/0471/doc_00178795 to /storage/kkm_last_doc_name [03:23:01]save OK [03:23:01]Clear old archive folders... [03:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:23:01]tlvbuf is 00C47480 [03:23:01]SAM_PROTO_ClearQueue [03:23:01]wFMCommunicate request_size=4 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 09 00 00 [03:23:01]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [03:23:01]RAPDU: 90 00 [03:23:01]wFMCommunicate OK [03:23:01]SAM_PROTO_ClearQueue done [03:23:01]KKMCreateOFDPacket [03:23:01]OFDProtocolAddRootSTLVToBuf [03:23:01]FM_MakeSignedData [03:23:01]FM_MakeSignedData [03:23:01]SAM_PROTO_SignData [03:23:01]wFMCommunicate request_size=4 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 0D 01 02 [03:23:01]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [03:23:01]RAPDU: 90 00 [03:23:01]wFMCommunicate OK [03:23:01]wFMCommunicate request_size=255 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 14 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6B BA 02 00 35 04 06 00 51 F4 88 D7 [03:23:01]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 14 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6B BA 02 00 35 04 06 00 51 F4 88 D7 00 00 0A [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [03:23:01]RAPDU: 90 00 [03:23:01]wFMCommunicate OK [03:23:01]wFMCommunicate request_size=7 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 0D 02 02 02 7D 07 [03:23:01]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 7D 07 00 00 7A [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [03:23:01]RAPDU: 90 00 [03:23:01]wFMCommunicate OK [03:23:01]wFMCommunicate request_size=4 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 0D 03 02 [03:23:01]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 0B 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 0B 00 79 00 00 45 E5 16 B4 01 ED 5A 83 90 00 B4 [03:23:01]RAPDU: 45 E5 16 B4 01 ED 5A 83 90 00 [03:23:01]wFMCommunicate OK [03:23:01]SAM_PROTO_SignData done [03:23:01]FM_MakeSignedData done [03:23:01]CreateOFDProtocolMessage [03:23:01]wFMCommunicate request_size=4 [03:23:01]MH_SAM_APDU [03:23:01]CAPDU: 80 11 00 00 [03:23:01]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:01]Read from MH i2c: E2 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 17 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [03:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:23:01]wFMCommunicate OK [03:23:01]CreateOFDProtocolMessage done [03:23:01]OFDSenderStorePacket 178795 [03:23:01]StoreOFDPacket docnum=178795 [03:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 9A 7D 04 01 69 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 14 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6B BA 02 00 35 04 06 00 51 F4 88 D7 7D 07 45 E5 16 B4 01 ED 5A 83 [03:23:01]CheckFolder [03:23:01]dirname=/storage/ofd_packets [03:23:01]CheckFolder done [03:23:01]ProducePacketName [03:23:01]name=ofd_packets/00178795 [03:23:01]NVStorageSaveData ofd_packets/00178795 [03:23:01]File name is /storage/ofd_packets/00178795 [03:23:01]Write 298 bytes [03:23:01]NVStorageSaveData done [03:23:01]OFDSenderStorePacket done [03:23:01]KKMCreateOFDPacket done [03:23:01]NVStorageSaveData kkm_last_timestamp [03:23:01]File name is /storage/kkm_last_timestamp [03:23:01]Write 4 bytes [03:23:01]NVStorageSaveData done [03:23:01]ExternCall_PrintAddStr [03:23:01]wPrintStart [03:23:01]Write to MH i2c: 01 00 00 7B 00 7B [03:23:01]Write i2c OK [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: 01 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: 01 07 00 [03:23:01]MH_I2C_Read... [03:23:01]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [03:23:01]RasterBufferAndPrint [03:23:01]line Счет N : (1)294941 [03:23:01]line ИНН: 02508201610067 [03:23:01]line Контрольно-Кассовый Чек [03:23:01]line ПРОДАЖА [03:23:01]line ТРК (МРК, ГНК) : 21 [03:23:01]line Товар: 2710194800 [03:23:01]line ДТ-К-5 [03:23:01]line 131.100 * 76.20 [03:23:01]line = 9989.82 [03:23:01]line НДС 12% НСП 1% [03:23:01]line > о реализуемом товаре [03:23:01]line ИТОГО: 9989.82 [03:23:01]line НСП 1% : 88.40 [03:23:01]line НДС 12% : 1060.87 [03:23:01]line Наличными: 0.00 [03:23:01]line Безнал.: 9989.82 [03:23:01]line Место: АЗС № 130 "Партнер Нефть" [03:23:01]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:23:01]line СНО: Общий режим [03:23:01]line Чек 21 24.08.2024 03:23 [03:23:01]line Смена: 471 ФФД: 1.0 [03:23:01]line ЗНМ: 0300000071 [03:23:01]line РНМ: 0000000000092561 [03:23:01]line Версия ККМ: 001 [03:23:01]line Платежная система: O! деньги [03:23:01]line ФМ: 0000000000871778 [03:23:01]line ФД: 178795 [03:23:01]line ФПД: 90110709693703 [03:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032300&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178795&fm=90110709693703&tin=02508201610067®Number=0000000000092561&sum=998982 [03:23:01]written 0, free lines is 4095 [03:23:01]OFD Sender: Processing packet 178795 [packets to send 500, broken 499] [03:23:01]ProducePacketName [03:23:01]name=ofd_packets/00178795 [03:23:01]OFD Sender: To server: pG, [03:23:01]CommunicateWithHost lk.salyk.kg:30040 [03:23:01]ConnectInit lk.salyk.kg [03:23:02]Write to MH i2c: 01 00 00 A5 00 A5 [03:23:02]Write i2c OK [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: 01 [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: 01 07 00 [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E8 0C A0 [03:23:02]RasterBufferAndPrint [03:23:02]line [03:23:02]line [03:23:02]line [03:23:02]line [03:23:02]line [03:23:02]written 0, free lines is 3310 [03:23:02]MH_Cut [03:23:02]Write to MH i2c: D1 01 00 AC 00 01 7E [03:23:02]Write i2c OK [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: D1 [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: D1 01 00 [03:23:02]MH_I2C_Read... [03:23:02]Read from MH i2c: D1 01 00 AC 00 00 7D [03:23:02]Write to MH i2c: 01 00 00 AD 00 AD [03:23:02]Write i2c OK [03:23:02]MH_I2C_Read... [03:23:02]Connected sock=9 [03:23: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 37 37 38 0C 01 00 00 9A 7D 04 01 69 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 14 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6B BA 02 00 35 04 06 00 51 F4 88 D7 7D 07 45 E5 16 B4 01 ED 5A 83 [03:23:03]*** Cut start [03:23:03]*** Partial cut [03:23:03]*** CUTSNS_PIN = 1 [03:23:03]*** CUTSNS_PIN = 0 [03:23:03]*** Brake cut motor [03:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 41 EB 47 00 77 42 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 37 37 38 10 04 04 00 6B BA 02 00 F4 03 04 00 BB FD C8 66 B6 04 01 00 00 EB 23 95 E7 1F 85 3D 08 [03:23:03]CommunicateWithHost err = 0 [03:23:03]CheckOFDResponse [03:23:03]1017 (14) - 77093643461234 [03:23:03]1041 (16) - 0000000000871778 [03:23:03]1040 (4) - 178795 [03:23:03]1012 (4) - 23.08.2024 21:23 [03:23:03]1206 (1) - 0 [03:23:03]OFD Sender: Remove packet 178795 [03:23:03]ProducePacketName [03:23:03]name=ofd_packets/00178795 [03:23:03]NVStorageDeleteData [03:23:03]Read from MH i2c: 01 [03:23:03]MH_I2C_Read... [03:23:03]*** Stop cut motor [03:23:03]*** Cut end [03:23:03]Read from MH i2c: 01 07 00 [03:23:03]MH_I2C_Read... [03:23:03]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [03:23:03]process_action close_receipt done [03:23:03]requested_data is exist [03:23:03]produce_requested_data [03:23:03]requested_item fm.sn is exist - process it [03:23:03]wFMCommunicate request_size=4 [03:23:03]MH_SAM_APDU [03:23:03]CAPDU: 80 11 00 00 [03:23:03]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [03:23:03]Write i2c OK [03:23:03]MH_I2C_Read... [03:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:03]Read from MH i2c: E2 [03:23:03]MH_I2C_Read... [03:23:03]Read from MH i2c: E2 17 00 [03:23:03]MH_I2C_Read... [03:23:03]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 37 37 38 90 00 81 [03:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:23:03]wFMCommunicate OK [03:23:03]requested_item fd.num is exist - process it [03:23:03]SAM_PROTO_GetFieldsCounters [03:23:03]wFMCommunicate request_size=4 [03:23:03]MH_SAM_APDU [03:23:03]CAPDU: 80 13 00 00 [03:23:03]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [03:23:03]Write i2c OK [03:23:03]MH_I2C_Read... [03:23:03]OFD Sender: No OFD packet to send [03:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:23:03]Read from MH i2c: E2 [03:23:03]MH_I2C_Read... [03:23:03]Read from MH i2c: E2 62 00 [03:23:03]MH_I2C_Read... [03:23:03]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [03:23: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:23:03]wFMCommunicate OK [03:23:03]SAM_PROTO_GetFieldsCounters done [03:23:03]requested_item shift.num is exist - process it [03:23:03]requested_item shift.opened is exist - process it [03:23:03]req_shift_opened [03:23:03]FM_GetShiftState [03:23:03]SAM_PROTO_GetShiftState [03:23:03]wFMCommunicate request_size=4 [03:23:03]MH_SAM_APDU [03:23:03]CAPDU: 80 13 01 00 [03:23:03]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [03:23:03]Write i2c OK [03:23:03]MH_I2C_Read... [03:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:03]Read from MH i2c: E2 [03:23:03]MH_I2C_Read... [03:23:03]Read from MH i2c: E2 0E 00 [03:23:03]MH_I2C_Read... [03:23:03]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EB [03:23:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:23:03]wFMCommunicate OK [03:23:03]SAM_PROTO_GetShiftState done [03:23:03]FM_GetShiftState done [03:23:03]req_shift_opened done [03:23:03]requested_item shift.open_date is exist - process it [03:23:03]req_shift_open_date [03:23:03]req_shift_open_date done [03:23:03]produce_requested_data done [03:23:03]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178795,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:23:03]process_action_free close_receipt [03:23:03]json_value_free [03:23:03]json_value_free done [03:23:03]process_json_proto returns [03:23:03]Send response to host [03:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178795,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:23:03]free response buf [03:23:03]execute_script done [03:23:03]execute_script returns [03:23:03]free content buf [03:23:03]Sock 10.Close socket [03:23:03]Sock 10.Thread stoped [03:23:08]OFD Sender: No OFD packet to send [03:23:08]recv_with_timeout no data received [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:20]recv_with_timeout no data received [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:47]recv_with_timeout no data received [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:30]recv_with_timeout no data received [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:53]accept exits with 7 [03:25:53]New connection [03:25:53]New thread 3066592612 created [03:25:53]Thread 3066449252 joined [03:25:53]Waiting for new connection... [03:25:53] Sock 7.Parse request [03:25:53]Sock 7.Check first char [03:25:53]Sock 7.First char is OK [03:25:53]request: POST /json_proto HTTP/1.0 [03:25:53]Method: POST [03:25:53]URL: /json_proto [03:25:53]Method is POST - this is cgi request [03:25:53]url: /json_proto [03:25:53]query_string will be loaded in cgi processing [03:25:53]execute_cgi json_proto POST (null) [03:25:53]execute_cgi path=json_proto method=POST [03:25:53]POST find Content-Length [03:25:53]Host: 172.17.44.131:8080 [03:25:53]Content-Length: 817 [03:25:53]Content-Type: application/json [03:25:53] [03:25:53]POST finish read [03:25:53]Found Content-Length = 817 [03:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:53]execute_script... [03:25: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)294942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "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" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:53]POST & json_proto [03:25:53]process_json_proto [03:25:53]json parsed OK: [03:25:53]protocol is kg_v1.0 [03:25:53]action value=close_receipt [03:25:53]process_action close_receipt [03:25:53]cmd_close_receipt [03:25:53]MH_GetDate [03:25:53]Write to MH i2c: F0 00 00 B1 00 A0 [03:25:53]Write i2c OK [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: F0 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: F0 09 00 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: F0 09 00 B1 00 00 C2 52 C9 66 4F 53 BE 66 B2 [03:25:53]GetLastDocTimeStamp 1724469780 [03:25:53]current date 1724469954 [03:25:53]FM_GetShiftState [03:25:53]SAM_PROTO_GetShiftState [03:25:53]wFMCommunicate request_size=4 [03:25:53]MH_SAM_APDU [03:25:53]CAPDU: 80 13 01 00 [03:25:53]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [03:25:53]Write i2c OK [03:25:53]MH_I2C_Read... [03:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:53]Read from MH i2c: E2 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: E2 0E 00 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [03:25:53]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:25:53]wFMCommunicate OK [03:25:53]SAM_PROTO_GetShiftState done [03:25:53]FM_GetShiftState done [03:25:53]opened in 1724458079 [03:25:53]opened+sec_in_day 1724544479 [03:25:53]quantity*price = 998982 [03:25:53]sum+1 = 998983 [03:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 22 24.08.2024 03:25 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178796 ФПД: 71467568160567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032554&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178796&fm=71467568160567&tin=02508201610067®Number=0000000000092561&sum=998982 [03:25:54]StoreToDocumentArchive [03:25:54]shift 471 fd 178796 [03:25:54]save to /storage/0471/doc_00178796 [03:25:54]save last doc name /storage/0471/doc_00178796 to /storage/kkm_last_doc_name [03:25:54]save OK [03:25:54]Clear old archive folders... [03:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:25:54]tlvbuf is 00C47350 [03:25:54]SAM_PROTO_ClearQueue [03:25:54]wFMCommunicate request_size=4 [03:25:54]MH_SAM_APDU [03:25:54]CAPDU: 80 09 00 00 [03:25:54]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [03:25:54]Write i2c OK [03:25:54]MH_I2C_Read... [03:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:25:54]Read from MH i2c: E2 [03:25:54]MH_I2C_Read... [03:25:54]Read from MH i2c: E2 03 00 [03:25:54]MH_I2C_Read... [03:25:54]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [03:25:54]RAPDU: 90 00 [03:25:54]wFMCommunicate OK [03:25:54]SAM_PROTO_ClearQueue done [03:25:54]KKMCreateOFDPacket [03:25:54]OFDProtocolAddRootSTLVToBuf [03:25:54]FM_MakeSignedData [03:25:54]FM_MakeSignedData [03:25:54]SAM_PROTO_SignData [03:25:54]wFMCommunicate request_size=4 [03:25:54]MH_SAM_APDU [03:25:54]CAPDU: 80 0D 01 02 [03:25:54]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [03:25:54]Write i2c OK [03:25:54]MH_I2C_Read... [03:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:25:54]Read from MH i2c: E2 [03:25:54]MH_I2C_Read... [03:25:54]Read from MH i2c: E2 03 00 [03:25:54]MH_I2C_Read... [03:25:54]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [03:25:54]RAPDU: 90 00 [03:25:54]wFMCommunicate OK [03:25:54]wFMCommunicate request_size=255 [03:25:54]MH_SAM_APDU [03:25:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C2 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6C BA 02 00 35 04 06 00 40 FF D7 03 [03:25:54]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C2 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6C BA 02 00 35 04 06 00 40 FF D7 03 00 00 79 [03:25:54]Write i2c OK [03:25:54]MH_I2C_Read... [03:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:55]Read from MH i2c: E2 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 03 00 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [03:25:55]RAPDU: 90 00 [03:25:55]wFMCommunicate OK [03:25:55]wFMCommunicate request_size=7 [03:25:55]MH_SAM_APDU [03:25:55]CAPDU: 80 0D 02 02 02 5F 37 [03:25:55]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 5F 37 00 00 D6 [03:25:55]Write i2c OK [03:25:55]MH_I2C_Read... [03:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:55]Read from MH i2c: E2 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 03 00 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [03:25:55]RAPDU: 90 00 [03:25:55]wFMCommunicate OK [03:25:55]wFMCommunicate request_size=4 [03:25:55]MH_SAM_APDU [03:25:55]CAPDU: 80 0D 03 02 [03:25:55]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [03:25:55]Write i2c OK [03:25:55]MH_I2C_Read... [03:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:25:55]Read from MH i2c: E2 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 0B 00 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 0B 00 C3 00 00 39 89 8E 91 04 6B 3A 54 90 00 1D [03:25:55]RAPDU: 39 89 8E 91 04 6B 3A 54 90 00 [03:25:55]wFMCommunicate OK [03:25:55]SAM_PROTO_SignData done [03:25:55]FM_MakeSignedData done [03:25:55]CreateOFDProtocolMessage [03:25:55]wFMCommunicate request_size=4 [03:25:55]MH_SAM_APDU [03:25:55]CAPDU: 80 11 00 00 [03:25:55]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [03:25:55]Write i2c OK [03:25:55]MH_I2C_Read... [03:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:55]Read from MH i2c: E2 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: E2 17 00 [03:25:55]MH_I2C_Read... [03:25:55]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 37 37 38 90 00 97 [03:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:25:55]wFMCommunicate OK [03:25:55]CreateOFDProtocolMessage done [03:25:55]OFDSenderStorePacket 178796 [03:25:55]StoreOFDPacket docnum=178796 [03:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 4C 29 04 01 8E 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C2 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6C BA 02 00 35 04 06 00 40 FF D7 03 5F 37 39 89 8E 91 04 6B 3A 54 [03:25:55]CheckFolder [03:25:55]dirname=/storage/ofd_packets [03:25:55]CheckFolder done [03:25:55]ProducePacketName [03:25:55]name=ofd_packets/00178796 [03:25:55]NVStorageSaveData ofd_packets/00178796 [03:25:55]File name is /storage/ofd_packets/00178796 [03:25:55]Write 298 bytes [03:25:55]NVStorageSaveData done [03:25:55]OFDSenderStorePacket done [03:25:55]KKMCreateOFDPacket done [03:25:55]NVStorageSaveData kkm_last_timestamp [03:25:55]File name is /storage/kkm_last_timestamp [03:25:55]Write 4 bytes [03:25:55]NVStorageSaveData done [03:25:55]ExternCall_PrintAddStr [03:25:55]wPrintStart [03:25:55]Write to MH i2c: 01 00 00 C5 00 C5 [03:25:55]Write i2c OK [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: 01 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: 01 07 00 [03:25:55]MH_I2C_Read... [03:25:55]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [03:25:55]RasterBufferAndPrint [03:25:55]line Счет N : (1)294942 [03:25:55]line ИНН: 02508201610067 [03:25:55]line Контрольно-Кассовый Чек [03:25:55]line ПРОДАЖА [03:25:55]line ТРК (МРК, ГНК) : 11 [03:25:55]line Товар: 2710194800 [03:25:55]line ДТ-К-5 [03:25:55]line 131.100 * 76.20 [03:25:55]line = 9989.82 [03:25:55]line НДС 12% НСП 1% [03:25:55]line > о реализуемом товаре [03:25:55]line ИТОГО: 9989.82 [03:25:55]line НСП 1% : 88.40 [03:25:55]line НДС 12% : 1060.87 [03:25:55]line Наличными: 0.00 [03:25:55]line Безнал.: 9989.82 [03:25:55]line Место: АЗС № 130 "Партнер Нефть" [03:25:55]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:25:55]line СНО: Общий режим [03:25:55]line Чек 22 24.08.2024 03:25 [03:25:55]line Смена: 471 ФФД: 1.0 [03:25:55]line ЗНМ: 0300000071 [03:25:55]line РНМ: 0000000000092561 [03:25:55]line Версия ККМ: 001 [03:25:55]line Платежная система: Бакай Банк [03:25:55]line ФМ: 0000000000871778 [03:25:55]line ФД: 178796 [03:25:55]line ФПД: 71467568160567 [03:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032554&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178796&fm=71467568160567&tin=02508201610067®Number=0000000000092561&sum=998982 [03:25:55]OFD Sender: Processing packet 178796 [packets to send 500, broken 499] [03:25:55]ProducePacketName [03:25:55]name=ofd_packets/00178796 [03:25:55]OFD Sender: To server: pG, [03:25:55]CommunicateWithHost lk.salyk.kg:30040 [03:25:55]ConnectInit lk.salyk.kg [03:25:55]written 0, free lines is 4095 [03:25:56]Write to MH i2c: 01 00 00 EF 00 EF [03:25:56]Write i2c OK [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: 01 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: 01 07 00 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E1 0C E3 [03:25:56]RasterBufferAndPrint [03:25:56]line [03:25:56]line [03:25:56]line [03:25:56]line [03:25:56]line [03:25:56]written 0, free lines is 3303 [03:25:56]MH_Cut [03:25:56]Write to MH i2c: D1 01 00 F6 00 01 C8 [03:25:56]Write i2c OK [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: D1 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: D1 01 00 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: D1 01 00 F6 00 00 C7 [03:25:56]Write to MH i2c: 01 00 00 F7 00 F7 [03:25:56]Write i2c OK [03:25:56]MH_I2C_Read... [03:25:56]*** Cut start [03:25:56]*** Partial cut [03:25:56]*** CUTSNS_PIN = 1 [03:25:56]*** CUTSNS_PIN = 0 [03:25:57]*** Brake cut motor [03:25:57]Connected sock=9 [03:25: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 37 37 38 0C 01 00 00 4C 29 04 01 8E 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C2 52 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6C BA 02 00 35 04 06 00 40 FF D7 03 5F 37 39 89 8E 91 04 6B 3A 54 [03:25:57]Read from MH i2c: 01 [03:25:57]MH_I2C_Read... [03:25:57]*** Stop cut motor [03:25:57]*** Cut end [03:25:57]Read from MH i2c: 01 07 00 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [03:25:57]process_action close_receipt done [03:25:57]requested_data is exist [03:25:57]produce_requested_data [03:25:57]requested_item fm.sn is exist - process it [03:25:57]wFMCommunicate request_size=4 [03:25:57]MH_SAM_APDU [03:25:57]CAPDU: 80 11 00 00 [03:25:57]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [03:25:57]Write i2c OK [03:25:57]MH_I2C_Read... [03:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:57]Read from MH i2c: E2 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 17 00 [03:25:57]MH_I2C_Read... [03:25: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 37 37 38 90 00 CB [03:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:25:57]wFMCommunicate OK [03:25:57]requested_item fd.num is exist - process it [03:25:57]SAM_PROTO_GetFieldsCounters [03:25:57]wFMCommunicate request_size=4 [03:25:57]MH_SAM_APDU [03:25:57]CAPDU: 80 13 00 00 [03:25:57]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [03:25:57]Write i2c OK [03:25:57]MH_I2C_Read... [03:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:25:57]Read from MH i2c: E2 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 62 00 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 62 00 F9 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [03:25: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:25:57]wFMCommunicate OK [03:25:57]SAM_PROTO_GetFieldsCounters done [03:25:57]requested_item shift.num is exist - process it [03:25:57]requested_item shift.opened is exist - process it [03:25:57]req_shift_opened [03:25:57]FM_GetShiftState [03:25:57]SAM_PROTO_GetShiftState [03:25:57]wFMCommunicate request_size=4 [03:25:57]MH_SAM_APDU [03:25:57]CAPDU: 80 13 01 00 [03:25:57]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [03:25:57]Write i2c OK [03:25:57]MH_I2C_Read... [03:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 49 13 47 00 84 C3 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 37 37 38 10 04 04 00 6C BA 02 00 F4 03 04 00 69 FE C8 66 B6 04 01 00 00 2D 3A 81 B8 7B 8F 73 BB [03:25:57]CommunicateWithHost err = 0 [03:25:57]CheckOFDResponse [03:25:57]1017 (14) - 77093643461234 [03:25:57]1041 (16) - 0000000000871778 [03:25:57]1040 (4) - 178796 [03:25:57]1012 (4) - 23.08.2024 21:26 [03:25:57]1206 (1) - 0 [03:25:57]OFD Sender: Remove packet 178796 [03:25:57]ProducePacketName [03:25:57]name=ofd_packets/00178796 [03:25:57]NVStorageDeleteData [03:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:57]Read from MH i2c: E2 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 0E 00 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 35 [03:25:57]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:25:57]wFMCommunicate OK [03:25:57]SAM_PROTO_GetShiftState done [03:25:57]FM_GetShiftState done [03:25:57]req_shift_opened done [03:25:57]requested_item shift.open_date is exist - process it [03:25:57]req_shift_open_date [03:25:57]req_shift_open_date done [03:25:57]produce_requested_data done [03:25:57]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178796,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:25:57]process_action_free close_receipt [03:25:57]json_value_free [03:25:57]json_value_free done [03:25:57]process_json_proto returns [03:25:57]Send response to host [03:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178796,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:25:57]free response buf [03:25:57]execute_script done [03:25:57]execute_script returns [03:25:57]free content buf [03:25:57]Sock 7.Close socket [03:25:57]Sock 7.Thread stoped [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:22]recv_with_timeout no data received [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:13]recv_with_timeout no data received [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:46]accept exits with 10 [03:28:46]New connection [03:28:46]New thread 3066449252 created [03:28:46]Thread 3066592612 joined [03:28:46]Waiting for new connection... [03:28:46] Sock 10.Parse request [03:28:46]Sock 10.Check first char [03:28:46]Sock 10.First char is OK [03:28:46]request: POST /json_proto HTTP/1.0 [03:28:46]Method: POST [03:28:46]URL: /json_proto [03:28:46]Method is POST - this is cgi request [03:28:46]url: /json_proto [03:28:46]query_string will be loaded in cgi processing [03:28:46]execute_cgi json_proto POST (null) [03:28:46]execute_cgi path=json_proto method=POST [03:28:46]POST find Content-Length [03:28:46]Host: 172.17.44.131:8080 [03:28:46]Content-Length: 816 [03:28:46]Content-Type: application/json [03:28:46] [03:28:46]POST finish read [03:28:46]Found Content-Length = 816 [03:28:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "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" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:28:46]execute_script... [03:28: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)294944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "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" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:28:46]POST & json_proto [03:28:46]process_json_proto [03:28:46]json parsed OK: [03:28:46]protocol is kg_v1.0 [03:28:46]action value=close_receipt [03:28:46]process_action close_receipt [03:28:46]cmd_close_receipt [03:28:46]MH_GetDate [03:28:46]Write to MH i2c: F0 00 00 FB 00 EA [03:28:46]Write i2c OK [03:28:46]MH_I2C_Read... [03:28:46]Read from MH i2c: F0 [03:28:46]MH_I2C_Read... [03:28:46]Read from MH i2c: F0 09 00 [03:28:46]MH_I2C_Read... [03:28:46]Read from MH i2c: F0 09 00 FB 00 00 6E 53 C9 66 4F 53 BE 66 A9 [03:28:46]GetLastDocTimeStamp 1724469954 [03:28:46]current date 1724470126 [03:28:46]FM_GetShiftState [03:28:46]SAM_PROTO_GetShiftState [03:28:46]wFMCommunicate request_size=4 [03:28:46]MH_SAM_APDU [03:28:46]CAPDU: 80 13 01 00 [03:28:46]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [03:28:46]Write i2c OK [03:28:46]MH_I2C_Read... [03:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:46]Read from MH i2c: E2 [03:28:46]MH_I2C_Read... [03:28:46]Read from MH i2c: E2 0E 00 [03:28:46]MH_I2C_Read... [03:28:46]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 37 [03:28:46]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:28:46]wFMCommunicate OK [03:28:46]SAM_PROTO_GetShiftState done [03:28:46]FM_GetShiftState done [03:28:46]opened in 1724458079 [03:28:46]opened+sec_in_day 1724544479 [03:28:46]quantity*price = 500024 [03:28:46]sum+1 = 500025 [03:28:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 23 24.08.2024 03:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178797 ФПД: 67399733570703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032846&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178797&fm=67399733570703&tin=02508201610067®Number=0000000000092561&sum=500024 [03:28:47]StoreToDocumentArchive [03:28:47]shift 471 fd 178797 [03:28:47]save to /storage/0471/doc_00178797 [03:28:47]save last doc name /storage/0471/doc_00178797 to /storage/kkm_last_doc_name [03:28:47]save OK [03:28:47]Clear old archive folders... [03:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:28:47]tlvbuf is 00C4B4C0 [03:28:47]SAM_PROTO_ClearQueue [03:28:47]wFMCommunicate request_size=4 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 09 00 00 [03:28:47]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [03:28:47]RAPDU: 90 00 [03:28:47]wFMCommunicate OK [03:28:47]SAM_PROTO_ClearQueue done [03:28:47]KKMCreateOFDPacket [03:28:47]OFDProtocolAddRootSTLVToBuf [03:28:47]FM_MakeSignedData [03:28:47]FM_MakeSignedData [03:28:47]SAM_PROTO_SignData [03:28:47]wFMCommunicate request_size=4 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 0D 01 02 [03:28:47]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [03:28:47]RAPDU: 90 00 [03:28:47]wFMCommunicate OK [03:28:47]wFMCommunicate request_size=255 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6D BA 02 00 35 04 06 00 3D 4C B9 2D [03:28:47]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6D BA 02 00 35 04 06 00 3D 4C B9 2D 00 00 CC [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [03:28:47]RAPDU: 90 00 [03:28:47]wFMCommunicate OK [03:28:47]wFMCommunicate request_size=7 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 0D 02 02 02 6C 8F [03:28:47]Write to MH i2c: E2 0A 00 0C 01 80 0D 02 02 02 00 6C 8F 00 00 86 [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [03:28:47]RAPDU: 90 00 [03:28:47]wFMCommunicate OK [03:28:47]wFMCommunicate request_size=4 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 0D 03 02 [03:28:47]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 0B 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 0B 00 0D 01 00 9C A9 CB 58 A6 B3 6A 7E 90 00 33 [03:28:47]RAPDU: 9C A9 CB 58 A6 B3 6A 7E 90 00 [03:28:47]wFMCommunicate OK [03:28:47]SAM_PROTO_SignData done [03:28:47]FM_MakeSignedData done [03:28:47]CreateOFDProtocolMessage [03:28:47]wFMCommunicate request_size=4 [03:28:47]MH_SAM_APDU [03:28:47]CAPDU: 80 11 00 00 [03:28:47]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:47]Read from MH i2c: E2 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 17 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E2 [03:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:28:47]wFMCommunicate OK [03:28:47]CreateOFDProtocolMessage done [03:28:47]OFDSenderStorePacket 178797 [03:28:47]StoreOFDPacket docnum=178797 [03:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DA 6B 04 01 35 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6D BA 02 00 35 04 06 00 3D 4C B9 2D 6C 8F 9C A9 CB 58 A6 B3 6A 7E [03:28:47]CheckFolder [03:28:47]dirname=/storage/ofd_packets [03:28:47]CheckFolder done [03:28:47]ProducePacketName [03:28:47]name=ofd_packets/00178797 [03:28:47]NVStorageSaveData ofd_packets/00178797 [03:28:47]File name is /storage/ofd_packets/00178797 [03:28:47]Write 298 bytes [03:28:47]NVStorageSaveData done [03:28:47]OFDSenderStorePacket done [03:28:47]KKMCreateOFDPacket done [03:28:47]NVStorageSaveData kkm_last_timestamp [03:28:47]File name is /storage/kkm_last_timestamp [03:28:47]Write 4 bytes [03:28:47]NVStorageSaveData done [03:28:47]ExternCall_PrintAddStr [03:28:47]wPrintStart [03:28:47]Write to MH i2c: 01 00 00 0F 01 10 [03:28:47]Write i2c OK [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: 01 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: 01 07 00 [03:28:47]MH_I2C_Read... [03:28:47]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [03:28:47]RasterBufferAndPrint [03:28:47]line Счет N : (1)294944 [03:28:47]line ИНН: 02508201610067 [03:28:47]line Контрольно-Кассовый Чек [03:28:47]line ПРОДАЖА [03:28:47]line ТРК (МРК, ГНК) : 11 [03:28:47]line Товар: 2710194800 [03:28:47]line ДТ-К-5 [03:28:47]line 65.620 * 76.20 [03:28:47]line = 5000.24 [03:28:47]line НДС 12% НСП 1% [03:28:47]line > о реализуемом товаре [03:28:47]line ИТОГО: 5000.24 [03:28:47]line НСП 1% : 44.25 [03:28:47]line НДС 12% : 531.00 [03:28:47]line Наличными: 0.00 [03:28:47]line Безнал.: 5000.24 [03:28:47]line Место: АЗС № 130 "Партнер Нефть" [03:28:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:28:47]line СНО: Общий режим [03:28:47]line Чек 23 24.08.2024 03:28 [03:28:47]line Смена: 471 ФФД: 1.0 [03:28:47]line ЗНМ: 0300000071 [03:28:47]line РНМ: 0000000000092561 [03:28:47]line Версия ККМ: 001 [03:28:47]line Платежная система: Бакай Банк [03:28:47]line ФМ: 0000000000871778 [03:28:47]line ФД: 178797 [03:28:47]line ФПД: 67399733570703 [03:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032846&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178797&fm=67399733570703&tin=02508201610067®Number=0000000000092561&sum=500024 [03:28:47]written 0, free lines is 4095 [03:28:48]OFD Sender: Processing packet 178797 [packets to send 500, broken 499] [03:28:48]ProducePacketName [03:28:48]name=ofd_packets/00178797 [03:28:48]OFD Sender: To server: pG, [03:28:48]CommunicateWithHost lk.salyk.kg:30040 [03:28:48]ConnectInit lk.salyk.kg [03:28:48]Write to MH i2c: 01 00 00 39 01 3A [03:28:48]Write i2c OK [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: 01 [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: 01 07 00 [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 DC 0C 29 [03:28:48]RasterBufferAndPrint [03:28:48]line [03:28:48]line [03:28:48]line [03:28:48]line [03:28:48]line [03:28:48]written 0, free lines is 3299 [03:28:48]MH_Cut [03:28:48]Write to MH i2c: D1 01 00 40 01 01 13 [03:28:48]Write i2c OK [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: D1 [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: D1 01 00 [03:28:48]MH_I2C_Read... [03:28:48]Read from MH i2c: D1 01 00 40 01 00 12 [03:28:48]Write to MH i2c: 01 00 00 41 01 42 [03:28:48]Write i2c OK [03:28:48]MH_I2C_Read... [03:28:49]*** Cut start [03:28:49]*** Partial cut [03:28:49]*** CUTSNS_PIN = 1 [03:28:49]*** CUTSNS_PIN = 0 [03:28:49]*** Brake cut motor [03:28:49]Read from MH i2c: 01 [03:28:49]MH_I2C_Read... [03:28:49]*** Stop cut motor [03:28:49]*** Cut end [03:28:49]Read from MH i2c: 01 07 00 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [03:28:49]process_action close_receipt done [03:28:49]requested_data is exist [03:28:49]produce_requested_data [03:28:49]requested_item fm.sn is exist - process it [03:28:49]wFMCommunicate request_size=4 [03:28:49]MH_SAM_APDU [03:28:49]CAPDU: 80 11 00 00 [03:28:49]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [03:28:49]Write i2c OK [03:28:49]MH_I2C_Read... [03:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:49]Read from MH i2c: E2 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 17 00 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 16 [03:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:28:49]wFMCommunicate OK [03:28:49]requested_item fd.num is exist - process it [03:28:49]SAM_PROTO_GetFieldsCounters [03:28:49]wFMCommunicate request_size=4 [03:28:49]MH_SAM_APDU [03:28:49]CAPDU: 80 13 00 00 [03:28:49]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [03:28:49]Write i2c OK [03:28:49]MH_I2C_Read... [03:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:28:49]Read from MH i2c: E2 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 62 00 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 62 00 43 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [03:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:28:49]wFMCommunicate OK [03:28:49]SAM_PROTO_GetFieldsCounters done [03:28:49]requested_item shift.num is exist - process it [03:28:49]requested_item shift.opened is exist - process it [03:28:49]req_shift_opened [03:28:49]FM_GetShiftState [03:28:49]SAM_PROTO_GetShiftState [03:28:49]wFMCommunicate request_size=4 [03:28:49]MH_SAM_APDU [03:28:49]CAPDU: 80 13 01 00 [03:28:49]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [03:28:49]Write i2c OK [03:28:49]MH_I2C_Read... [03:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:49]Read from MH i2c: E2 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 0E 00 [03:28:49]MH_I2C_Read... [03:28:49]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 80 [03:28:49]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:28:49]wFMCommunicate OK [03:28:49]SAM_PROTO_GetShiftState done [03:28:49]FM_GetShiftState done [03:28:49]req_shift_opened done [03:28:49]requested_item shift.open_date is exist - process it [03:28:49]req_shift_open_date [03:28:49]req_shift_open_date done [03:28:49]produce_requested_data done [03:28:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178797,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:28:49]process_action_free close_receipt [03:28:49]json_value_free [03:28:49]json_value_free done [03:28:49]process_json_proto returns [03:28:49]Send response to host [03:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178797,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:28:49]free response buf [03:28:49]execute_script done [03:28:49]execute_script returns [03:28:49]free content buf [03:28:49]Sock 10.Close socket [03:28:49]Sock 10.Thread stoped [03:28:52]Connected sock=11 [03:28:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DA 6B 04 01 35 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 6E 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6D BA 02 00 35 04 06 00 3D 4C B9 2D 6C 8F 9C A9 CB 58 A6 B3 6A 7E [03:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 79 3D 47 00 2E 05 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 37 37 38 10 04 04 00 6D BA 02 00 F4 03 04 00 19 FF C8 66 B6 04 01 00 00 65 84 CE F3 6D 4F 2F 62 [03:28:53]CommunicateWithHost err = 0 [03:28:53]CheckOFDResponse [03:28:53]1017 (14) - 77093643461234 [03:28:53]1041 (16) - 0000000000871778 [03:28:53]1040 (4) - 178797 [03:28:53]1012 (4) - 23.08.2024 21:28 [03:28:53]1206 (1) - 0 [03:28:53]OFD Sender: Remove packet 178797 [03:28:53]ProducePacketName [03:28:53]name=ofd_packets/00178797 [03:28:53]NVStorageDeleteData [03:28:53]OFD Sender: No OFD packet to send [03:28:54]accept exits with 7 [03:28:54]New connection [03:28:54]New thread 3066592612 created [03:28:54]Thread 3066449252 joined [03:28:54]Waiting for new connection... [03:28:54] Sock 7.Parse request [03:28:54]Sock 7.Check first char [03:28:54]Sock 7.First char is OK [03:28:54]request: POST /json_proto HTTP/1.0 [03:28:54]Method: POST [03:28:54]URL: /json_proto [03:28:54]Method is POST - this is cgi request [03:28:54]url: /json_proto [03:28:54]query_string will be loaded in cgi processing [03:28:54]execute_cgi json_proto POST (null) [03:28:54]execute_cgi path=json_proto method=POST [03:28:54]POST find Content-Length [03:28:54]Host: 172.17.44.131:8080 [03:28:54]Content-Length: 679 [03:28:54]Content-Type: application/json [03:28:54] [03:28:54]POST finish read [03:28:54]Found Content-Length = 679 [03:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [03:28:54]execute_script... [03:28: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)294945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [03:28:54]POST & json_proto [03:28:54]process_json_proto [03:28:54]json parsed OK: [03:28:54]protocol is kg_v1.0 [03:28:54]action value=close_receipt [03:28:54]process_action close_receipt [03:28:54]cmd_close_receipt [03:28:54]MH_GetDate [03:28:54]Write to MH i2c: F0 00 00 45 01 35 [03:28:54]Write i2c OK [03:28:54]MH_I2C_Read... [03:28:54]Read from MH i2c: F0 [03:28:54]MH_I2C_Read... [03:28:54]Read from MH i2c: F0 09 00 [03:28:54]MH_I2C_Read... [03:28:54]Read from MH i2c: F0 09 00 45 01 00 76 53 C9 66 4F 53 BE 66 FC [03:28:54]GetLastDocTimeStamp 1724470126 [03:28:54]current date 1724470134 [03:28:54]FM_GetShiftState [03:28:54]SAM_PROTO_GetShiftState [03:28:54]wFMCommunicate request_size=4 [03:28:54]MH_SAM_APDU [03:28:54]CAPDU: 80 13 01 00 [03:28:54]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [03:28:54]Write i2c OK [03:28:54]MH_I2C_Read... [03:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:54]Read from MH i2c: E2 [03:28:54]MH_I2C_Read... [03:28:54]Read from MH i2c: E2 0E 00 [03:28:54]MH_I2C_Read... [03:28:54]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 82 [03:28:54]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:28:54]wFMCommunicate OK [03:28:54]SAM_PROTO_GetShiftState done [03:28:54]FM_GetShiftState done [03:28:54]opened in 1724458079 [03:28:54]opened+sec_in_day 1724544479 [03:28:54]quantity*price = 200025 [03:28:54]sum+1 = 200026 [03:28:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 24 24.08.2024 03:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178798 ФПД: 77569892829040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178798&fm=77569892829040&tin=02508201610067®Number=0000000000092561&sum=200000 [03:28:55]StoreToDocumentArchive [03:28:55]shift 471 fd 178798 [03:28:55]save to /storage/0471/doc_00178798 [03:28:55]save last doc name /storage/0471/doc_00178798 to /storage/kkm_last_doc_name [03:28:55]save OK [03:28:55]Clear old archive folders... [03:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:28:55]tlvbuf is 00C696E0 [03:28:55]SAM_PROTO_ClearQueue [03:28:55]wFMCommunicate request_size=4 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 09 00 00 [03:28:55]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [03:28:55]RAPDU: 90 00 [03:28:55]wFMCommunicate OK [03:28:55]SAM_PROTO_ClearQueue done [03:28:55]KKMCreateOFDPacket [03:28:55]OFDProtocolAddRootSTLVToBuf [03:28:55]FM_MakeSignedData [03:28:55]FM_MakeSignedData [03:28:55]SAM_PROTO_SignData [03:28:55]wFMCommunicate request_size=4 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 0D 01 02 [03:28:55]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [03:28:55]RAPDU: 90 00 [03:28:55]wFMCommunicate OK [03:28:55]wFMCommunicate request_size=255 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 18 00 00 00 F4 03 04 00 76 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6E BA 02 00 35 04 06 00 46 8C A5 E8 [03:28:55]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 18 00 00 00 F4 03 04 00 76 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6E BA 02 00 35 04 06 00 46 8C A5 E8 00 00 BB [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [03:28:55]RAPDU: 90 00 [03:28:55]wFMCommunicate OK [03:28:55]wFMCommunicate request_size=7 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 0D 02 02 02 47 70 [03:28:55]Write to MH i2c: E2 0A 00 56 01 80 0D 02 02 02 00 47 70 00 00 8C [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [03:28:55]RAPDU: 90 00 [03:28:55]wFMCommunicate OK [03:28:55]wFMCommunicate request_size=4 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 0D 03 02 [03:28:55]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 0B 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 0B 00 57 01 00 79 87 56 93 7C A0 7D 6C 90 00 C2 [03:28:55]RAPDU: 79 87 56 93 7C A0 7D 6C 90 00 [03:28:55]wFMCommunicate OK [03:28:55]SAM_PROTO_SignData done [03:28:55]FM_MakeSignedData done [03:28:55]CreateOFDProtocolMessage [03:28:55]wFMCommunicate request_size=4 [03:28:55]MH_SAM_APDU [03:28:55]CAPDU: 80 11 00 00 [03:28:55]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [03:28:55]Write i2c OK [03:28:55]MH_I2C_Read... [03:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:55]Read from MH i2c: E2 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 17 00 [03:28:55]MH_I2C_Read... [03:28:55]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2C [03:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:28:56]wFMCommunicate OK [03:28:56]CreateOFDProtocolMessage done [03:28:56]OFDSenderStorePacket 178798 [03:28:56]StoreOFDPacket docnum=178798 [03:28:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 8C 6D 04 01 99 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 18 00 00 00 F4 03 04 00 76 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6E BA 02 00 35 04 06 00 46 8C A5 E8 47 70 79 87 56 93 7C A0 7D 6C [03:28:56]CheckFolder [03:28:56]dirname=/storage/ofd_packets [03:28:56]CheckFolder done [03:28:56]ProducePacketName [03:28:56]name=ofd_packets/00178798 [03:28:56]NVStorageSaveData ofd_packets/00178798 [03:28:56]File name is /storage/ofd_packets/00178798 [03:28:56]Write 298 bytes [03:28:56]NVStorageSaveData done [03:28:56]OFDSenderStorePacket done [03:28:56]KKMCreateOFDPacket done [03:28:56]NVStorageSaveData kkm_last_timestamp [03:28:56]File name is /storage/kkm_last_timestamp [03:28:56]Write 4 bytes [03:28:56]NVStorageSaveData done [03:28:56]ExternCall_PrintAddStr [03:28:56]wPrintStart [03:28:56]Write to MH i2c: 01 00 00 59 01 5A [03:28:56]Write i2c OK [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 07 00 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [03:28:56]RasterBufferAndPrint [03:28:56]line Счет N : (1)294945 [03:28:56]line ИНН: 02508201610067 [03:28:56]line Контрольно-Кассовый Чек [03:28:56]line ПРОДАЖА [03:28:56]line ТРК (МРК, ГНК) : 44 [03:28:56]line Товар: 2710194800 [03:28:56]line ДТ-К-5 [03:28:56]line 26.250 * 76.20 [03:28:56]line = 2000.25 [03:28:56]line НДС 12% НСП 1% [03:28:56]line > о реализуемом товаре [03:28:56]line ОКРУГЛЕНИЕ: -0.25 [03:28:56]line ИТОГО: 2000.00 [03:28:56]line Внесено: 2000.00 [03:28:56]line СДАЧА: 0.00 [03:28:56]line НСП 1% : 17.70 [03:28:56]line НДС 12% : 212.42 [03:28:56]line Наличными: 2000.00 [03:28:56]line Безнал.: 0.00 [03:28:56]line Место: АЗС № 130 "Партнер Нефть" [03:28:56]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:28:56]line СНО: Общий режим [03:28:56]line Чек 24 24.08.2024 03:28 [03:28:56]line Смена: 471 ФФД: 1.0 [03:28:56]line ЗНМ: 0300000071 [03:28:56]line РНМ: 0000000000092561 [03:28:56]line Версия ККМ: 001 [03:28:56]line ФМ: 0000000000871778 [03:28:56]line ФД: 178798 [03:28:56]line ФПД: 77569892829040 [03:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T032854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178798&fm=77569892829040&tin=02508201610067®Number=0000000000092561&sum=200000 [03:28:56]OFD Sender: Processing packet 178798 [packets to send 500, broken 499] [03:28:56]ProducePacketName [03:28:56]name=ofd_packets/00178798 [03:28:56]OFD Sender: To server: pG, [03:28:56]CommunicateWithHost lk.salyk.kg:30040 [03:28:56]ConnectInit lk.salyk.kg [03:28:56]written 0, free lines is 4095 [03:28:56]Write to MH i2c: 01 00 00 84 01 85 [03:28:56]Write i2c OK [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 07 00 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 D0 0C 68 [03:28:56]RasterBufferAndPrint [03:28:56]line [03:28:56]line [03:28:56]line [03:28:56]line [03:28:56]line [03:28:56]written 0, free lines is 3292 [03:28:56]MH_Cut [03:28:56]Write to MH i2c: D1 01 00 8B 01 01 5E [03:28:56]Write i2c OK [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: D1 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: D1 01 00 [03:28:56]MH_I2C_Read... [03:28:56]Read from MH i2c: D1 01 00 8B 01 00 5D [03:28:56]Write to MH i2c: 01 00 00 8C 01 8D [03:28:56]Write i2c OK [03:28:56]MH_I2C_Read... [03:28:57]*** Cut start [03:28:57]*** Partial cut [03:28:57]*** CUTSNS_PIN = 1 [03:28:57]*** CUTSNS_PIN = 0 [03:28:57]*** Brake cut motor [03:28:57]Read from MH i2c: 01 [03:28:57]MH_I2C_Read... [03:28:57]*** Stop cut motor [03:28:57]*** Cut end [03:28:57]Read from MH i2c: 01 07 00 [03:28:57]MH_I2C_Read... [03:28:57]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [03:28:57]process_action close_receipt done [03:28:57]requested_data is exist [03:28:57]produce_requested_data [03:28:57]requested_item fm.sn is exist - process it [03:28:57]wFMCommunicate request_size=4 [03:28:57]MH_SAM_APDU [03:28:57]CAPDU: 80 11 00 00 [03:28:57]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [03:28:57]Write i2c OK [03:28:57]MH_I2C_Read... [03:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:57]Read from MH i2c: E2 [03:28:57]MH_I2C_Read... [03:28:57]Read from MH i2c: E2 17 00 [03:28:57]MH_I2C_Read... [03:28:57]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 61 [03:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:28:57]wFMCommunicate OK [03:28:57]requested_item fd.num is exist - process it [03:28:57]SAM_PROTO_GetFieldsCounters [03:28:57]wFMCommunicate request_size=4 [03:28:57]MH_SAM_APDU [03:28:57]CAPDU: 80 13 00 00 [03:28:57]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [03:28:57]Write i2c OK [03:28:57]MH_I2C_Read... [03:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:28:58]Read from MH i2c: E2 [03:28:58]MH_I2C_Read... [03:28:58]Read from MH i2c: E2 62 00 [03:28:58]MH_I2C_Read... [03:28:58]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [03:28: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:28:58]wFMCommunicate OK [03:28:58]SAM_PROTO_GetFieldsCounters done [03:28:58]requested_item shift.num is exist - process it [03:28:58]requested_item shift.opened is exist - process it [03:28:58]req_shift_opened [03:28:58]FM_GetShiftState [03:28:58]SAM_PROTO_GetShiftState [03:28:58]wFMCommunicate request_size=4 [03:28:58]MH_SAM_APDU [03:28:58]CAPDU: 80 13 01 00 [03:28:58]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [03:28:58]Write i2c OK [03:28:58]MH_I2C_Read... [03:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:58]Read from MH i2c: E2 [03:28:58]MH_I2C_Read... [03:28:58]Read from MH i2c: E2 0E 00 [03:28:58]MH_I2C_Read... [03:28:58]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CB [03:28:58]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:28:58]wFMCommunicate OK [03:28:58]SAM_PROTO_GetShiftState done [03:28:58]FM_GetShiftState done [03:28:58]req_shift_opened done [03:28:58]requested_item shift.open_date is exist - process it [03:28:58]req_shift_open_date [03:28:58]req_shift_open_date done [03:28:58]produce_requested_data done [03:28:58]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178798,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:28:58]process_action_free close_receipt [03:28:58]json_value_free [03:28:58]json_value_free done [03:28:58]process_json_proto returns [03:28:58]Send response to host [03:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178798,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:28:58]free response buf [03:28:58]execute_script done [03:28:58]execute_script returns [03:28:58]free content buf [03:28:58]Sock 7.Close socket [03:28:58]Sock 7.Thread stoped [03:29:04]Connected sock=10 [03:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 8C 6D 04 01 99 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 18 00 00 00 F4 03 04 00 76 53 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6E BA 02 00 35 04 06 00 46 8C A5 E8 47 70 79 87 56 93 7C A0 7D 6C [03:29:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A5 56 47 00 2E 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 37 37 38 10 04 04 00 6E BA 02 00 F4 03 04 00 25 FF C8 66 B6 04 01 00 00 6A 08 B2 FE 2E B1 06 F4 [03:29:06]CommunicateWithHost err = 0 [03:29:06]CheckOFDResponse [03:29:06]1017 (14) - 77093643461234 [03:29:06]1041 (16) - 0000000000871778 [03:29:06]1040 (4) - 178798 [03:29:06]1012 (4) - 23.08.2024 21:29 [03:29:06]1206 (1) - 0 [03:29:06]OFD Sender: Remove packet 178798 [03:29:06]ProducePacketName [03:29:06]name=ofd_packets/00178798 [03:29:06]NVStorageDeleteData [03:29:06]OFD Sender: No OFD packet to send [03:29:09]recv_with_timeout no data received [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:26]recv_with_timeout no data received [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:38]recv_with_timeout no data received [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:55]recv_with_timeout no data received [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:07]recv_with_timeout no data received [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]recv_with_timeout no data received [03:30:46]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:33]recv_with_timeout no data received [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:16]recv_with_timeout no data received [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:35]recv_with_timeout no data received [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:47]recv_with_timeout no data received [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:25]accept exits with 9 [03:40:25]New connection [03:40:25]New thread 3066449252 created [03:40:25]Thread 3066592612 joined [03:40:25]Waiting for new connection... [03:40:25] Sock 9.Parse request [03:40:25]Sock 9.Check first char [03:40:25]Sock 9.First char is OK [03:40:25]request: POST /json_proto HTTP/1.0 [03:40:25]Method: POST [03:40:25]URL: /json_proto [03:40:25]Method is POST - this is cgi request [03:40:25]url: /json_proto [03:40:25]query_string will be loaded in cgi processing [03:40:25]execute_cgi json_proto POST (null) [03:40:25]execute_cgi path=json_proto method=POST [03:40:25]POST find Content-Length [03:40:25]Host: 172.17.44.131:8080 [03:40:25]Content-Length: 685 [03:40:25]Content-Type: application/json [03:40:25] [03:40:25]POST finish read [03:40:25]Found Content-Length = 685 [03:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [03:40:25]execute_script... [03:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [03:40:25]POST & json_proto [03:40:25]process_json_proto [03:40:25]json parsed OK: [03:40:25]protocol is kg_v1.0 [03:40:25]action value=close_receipt [03:40:25]process_action close_receipt [03:40:25]cmd_close_receipt [03:40:25]MH_GetDate [03:40:25]Write to MH i2c: F0 00 00 90 01 80 [03:40:25]Write i2c OK [03:40:25]MH_I2C_Read... [03:40:25]Read from MH i2c: F0 [03:40:25]MH_I2C_Read... [03:40:25]Read from MH i2c: F0 09 00 [03:40:25]MH_I2C_Read... [03:40:25]Read from MH i2c: F0 09 00 90 01 00 2A 56 C9 66 4F 53 BE 66 FE [03:40:25]GetLastDocTimeStamp 1724470134 [03:40:25]current date 1724470826 [03:40:25]FM_GetShiftState [03:40:25]SAM_PROTO_GetShiftState [03:40:25]wFMCommunicate request_size=4 [03:40:25]MH_SAM_APDU [03:40:25]CAPDU: 80 13 01 00 [03:40:25]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [03:40:25]Write i2c OK [03:40:25]MH_I2C_Read... [03:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:25]Read from MH i2c: E2 [03:40:25]MH_I2C_Read... [03:40:25]Read from MH i2c: E2 0E 00 [03:40:25]MH_I2C_Read... [03:40:25]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CD [03:40:25]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:40:25]wFMCommunicate OK [03:40:25]SAM_PROTO_GetShiftState done [03:40:25]FM_GetShiftState done [03:40:25]opened in 1724458079 [03:40:25]opened+sec_in_day 1724544479 [03:40:25]quantity*price = 120016 [03:40:25]sum+1 = 120018 [03:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 25 24.08.2024 03:40 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178799 ФПД: 113983989167940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034026&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178799&fm=113983989167940&tin=02508201610067®Number=0000000000092561&sum=120000 [03:40:26]StoreToDocumentArchive [03:40:26]shift 471 fd 178799 [03:40:26]save to /storage/0471/doc_00178799 [03:40:26]save last doc name /storage/0471/doc_00178799 to /storage/kkm_last_doc_name [03:40:26]save OK [03:40:26]Clear old archive folders... [03:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:40:26]tlvbuf is 00C4A820 [03:40:26]SAM_PROTO_ClearQueue [03:40:26]wFMCommunicate request_size=4 [03:40:26]MH_SAM_APDU [03:40:26]CAPDU: 80 09 00 00 [03:40:26]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [03:40:26]Write i2c OK [03:40:26]MH_I2C_Read... [03:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:26]Read from MH i2c: E2 [03:40:26]MH_I2C_Read... [03:40:26]Read from MH i2c: E2 03 00 [03:40:26]MH_I2C_Read... [03:40:26]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [03:40:26]RAPDU: 90 00 [03:40:26]wFMCommunicate OK [03:40:26]SAM_PROTO_ClearQueue done [03:40:26]KKMCreateOFDPacket [03:40:26]OFDProtocolAddRootSTLVToBuf [03:40:26]FM_MakeSignedData [03:40:26]FM_MakeSignedData [03:40:26]SAM_PROTO_SignData [03:40:26]wFMCommunicate request_size=4 [03:40:26]MH_SAM_APDU [03:40:26]CAPDU: 80 0D 01 02 [03:40:26]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [03:40:26]Write i2c OK [03:40:26]MH_I2C_Read... [03:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:26]Read from MH i2c: E2 [03:40:26]MH_I2C_Read... [03:40:26]Read from MH i2c: E2 03 00 [03:40:26]MH_I2C_Read... [03:40:26]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [03:40:26]RAPDU: 90 00 [03:40:26]wFMCommunicate OK [03:40:26]wFMCommunicate request_size=255 [03:40:26]MH_SAM_APDU [03:40:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 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 19 00 00 00 F4 03 04 00 2A 56 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6F BA 02 00 35 04 06 00 67 AA [03:40:26]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 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 19 00 00 00 F4 03 04 00 2A 56 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6F BA 02 00 35 04 06 00 67 AA 00 00 28 [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:27]Read from MH i2c: E2 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 03 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [03:40:27]RAPDU: 90 00 [03:40:27]wFMCommunicate OK [03:40:27]wFMCommunicate request_size=9 [03:40:27]MH_SAM_APDU [03:40:27]CAPDU: 80 0D 02 02 04 F7 2F 37 44 [03:40:27]Write to MH i2c: E2 0C 00 A1 01 80 0D 02 02 04 00 F7 2F 37 44 00 00 C5 [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:27]Read from MH i2c: E2 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 03 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [03:40:27]RAPDU: 90 00 [03:40:27]wFMCommunicate OK [03:40:27]wFMCommunicate request_size=4 [03:40:27]MH_SAM_APDU [03:40:27]CAPDU: 80 0D 03 02 [03:40:27]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:27]Read from MH i2c: E2 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 0B 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 0B 00 A2 01 00 9E 21 60 03 C1 5F B4 23 90 00 38 [03:40:27]RAPDU: 9E 21 60 03 C1 5F B4 23 90 00 [03:40:27]wFMCommunicate OK [03:40:27]SAM_PROTO_SignData done [03:40:27]FM_MakeSignedData done [03:40:27]CreateOFDProtocolMessage [03:40:27]wFMCommunicate request_size=4 [03:40:27]MH_SAM_APDU [03:40:27]CAPDU: 80 11 00 00 [03:40:27]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:27]Read from MH i2c: E2 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 17 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 77 [03:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:40:27]wFMCommunicate OK [03:40:27]CreateOFDProtocolMessage done [03:40:27]OFDSenderStorePacket 178799 [03:40:27]StoreOFDPacket docnum=178799 [03:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 A7 3C 06 01 67 43 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 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 19 00 00 00 F4 03 04 00 2A 56 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6F BA 02 00 35 04 06 00 67 AA F7 2F 37 44 9E 21 60 03 C1 5F B4 23 [03:40:27]CheckFolder [03:40:27]dirname=/storage/ofd_packets [03:40:27]CheckFolder done [03:40:27]ProducePacketName [03:40:27]name=ofd_packets/00178799 [03:40:27]NVStorageSaveData ofd_packets/00178799 [03:40:27]File name is /storage/ofd_packets/00178799 [03:40:27]Write 300 bytes [03:40:27]NVStorageSaveData done [03:40:27]OFDSenderStorePacket done [03:40:27]KKMCreateOFDPacket done [03:40:27]NVStorageSaveData kkm_last_timestamp [03:40:27]File name is /storage/kkm_last_timestamp [03:40:27]Write 4 bytes [03:40:27]NVStorageSaveData done [03:40:27]ExternCall_PrintAddStr [03:40:27]wPrintStart [03:40:27]Write to MH i2c: 01 00 00 A4 01 A5 [03:40:27]Write i2c OK [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: 01 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: 01 07 00 [03:40:27]MH_I2C_Read... [03:40:27]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [03:40:27]RasterBufferAndPrint [03:40:27]line Счет N : (1)294946 [03:40:27]line ИНН: 02508201610067 [03:40:27]line Контрольно-Кассовый Чек [03:40:27]line ПРОДАЖА [03:40:27]line ТРК (МРК, ГНК) : 71 [03:40:27]line Товар: 2711129700 [03:40:27]line ГАЗ-К-5 [03:40:27]line 32.090 * 37.40 [03:40:27]line = 1200.17 [03:40:27]line НДС 12% НСП 1% [03:40:27]line > о реализуемом товаре [03:40:27]line ОКРУГЛЕНИЕ: -0.17 [03:40:27]line ИТОГО: 1200.00 [03:40:27]line Внесено: 1200.00 [03:40:27]line СДАЧА: 0.00 [03:40:27]line НСП 1% : 10.62 [03:40:27]line НДС 12% : 127.45 [03:40:27]line Наличными: 1200.00 [03:40:27]line Безнал.: 0.00 [03:40:27]line Место: АЗС № 130 "Партнер Нефть" [03:40:27]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:40:27]line СНО: Общий режим [03:40:27]line Чек 25 24.08.2024 03:40 [03:40:27]line Смена: 471 ФФД: 1.0 [03:40:27]line ЗНМ: 0300000071 [03:40:27]line РНМ: 0000000000092561 [03:40:27]line Версия ККМ: 001 [03:40:27]line ФМ: 0000000000871778 [03:40:27]line ФД: 178799 [03:40:27]line ФПД: 113983989167940 [03:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034026&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178799&fm=113983989167940&tin=02508201610067®Number=0000000000092561&sum=120000 [03:40:27]OFD Sender: Processing packet 178799 [packets to send 500, broken 499] [03:40:27]ProducePacketName [03:40:27]name=ofd_packets/00178799 [03:40:27]OFD Sender: To server: pG, [03:40:27]CommunicateWithHost lk.salyk.kg:30040 [03:40:27]ConnectInit lk.salyk.kg [03:40:27]written 0, free lines is 4095 [03:40:28]Write to MH i2c: 01 00 00 CF 01 D0 [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: 01 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: 01 07 00 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 BB 0C 9E [03:40:28]RasterBufferAndPrint [03:40:28]line [03:40:28]line [03:40:28]line [03:40:28]line [03:40:28]line [03:40:28]written 0, free lines is 3266 [03:40:28]MH_Cut [03:40:28]Write to MH i2c: D1 01 00 D6 01 01 A9 [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: D1 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: D1 01 00 [03:40:28]MH_I2C_Read... [03:40:28]Read from MH i2c: D1 01 00 D6 01 00 A8 [03:40:28]Write to MH i2c: 01 00 00 D7 01 D8 [03:40:28]Write i2c OK [03:40:28]MH_I2C_Read... [03:40:28]*** Cut start [03:40:28]*** Partial cut [03:40:28]*** CUTSNS_PIN = 1 [03:40:29]*** CUTSNS_PIN = 0 [03:40:29]*** Brake cut motor [03:40:29]Read from MH i2c: 01 [03:40:29]MH_I2C_Read... [03:40:29]*** Stop cut motor [03:40:29]*** Cut end [03:40:29]Read from MH i2c: 01 07 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [03:40:29]process_action close_receipt done [03:40:29]requested_data is exist [03:40:29]produce_requested_data [03:40:29]requested_item fm.sn is exist - process it [03:40:29]wFMCommunicate request_size=4 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 11 00 00 [03:40:29]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 17 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AC [03:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:40:29]wFMCommunicate OK [03:40:29]requested_item fd.num is exist - process it [03:40:29]SAM_PROTO_GetFieldsCounters [03:40:29]wFMCommunicate request_size=4 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 13 00 00 [03:40:29]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 62 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 62 00 D9 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [03:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 6F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:40:29]wFMCommunicate OK [03:40:29]SAM_PROTO_GetFieldsCounters done [03:40:29]requested_item shift.num is exist - process it [03:40:29]requested_item shift.opened is exist - process it [03:40:29]req_shift_opened [03:40:29]FM_GetShiftState [03:40:29]SAM_PROTO_GetShiftState [03:40:29]wFMCommunicate request_size=4 [03:40:29]MH_SAM_APDU [03:40:29]CAPDU: 80 13 01 00 [03:40:29]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [03:40:29]Write i2c OK [03:40:29]MH_I2C_Read... [03:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:29]Read from MH i2c: E2 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 0E 00 [03:40:29]MH_I2C_Read... [03:40:29]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 16 [03:40:29]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:40:29]wFMCommunicate OK [03:40:29]SAM_PROTO_GetShiftState done [03:40:29]FM_GetShiftState done [03:40:29]req_shift_opened done [03:40:29]requested_item shift.open_date is exist - process it [03:40:29]req_shift_open_date [03:40:29]req_shift_open_date done [03:40:29]produce_requested_data done [03:40:29]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178799,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:40:29]process_action_free close_receipt [03:40:29]json_value_free [03:40:29]json_value_free done [03:40:29]process_json_proto returns [03:40:29]Send response to host [03:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178799,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:40:29]free response buf [03:40:29]execute_script done [03:40:29]execute_script returns [03:40:29]free content buf [03:40:29]Sock 9.Close socket [03:40:29]Sock 9.Thread stoped [03:40:30]Connected sock=7 [03:40: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 37 37 38 0E 01 00 00 A7 3C 06 01 67 43 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 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 19 00 00 00 F4 03 04 00 2A 56 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 6F BA 02 00 35 04 06 00 67 AA F7 2F 37 44 9E 21 60 03 C1 5F B4 23 [03:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AB 25 47 00 53 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 37 37 38 10 04 04 00 6F BA 02 00 F4 03 04 00 D3 01 C9 66 B6 04 01 00 00 B4 97 66 52 A5 51 9E AF [03:40:34]CommunicateWithHost err = 0 [03:40:34]CheckOFDResponse [03:40:34]1017 (14) - 77093643461234 [03:40:34]1041 (16) - 0000000000871778 [03:40:34]1040 (4) - 178799 [03:40:34]1012 (4) - 23.08.2024 21:40 [03:40:34]1206 (1) - 0 [03:40:34]OFD Sender: Remove packet 178799 [03:40:34]ProducePacketName [03:40:34]name=ofd_packets/00178799 [03:40:34]NVStorageDeleteData [03:40:34]OFD Sender: No OFD packet to send [03:40:39]recv_with_timeout no data received [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:55]recv_with_timeout no data received [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:05]recv_with_timeout no data received [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:16]recv_with_timeout no data received [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:17]recv_with_timeout no data received [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:51]recv_with_timeout no data received [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:03]accept exits with 10 [03:44:03]New connection [03:44:03]New thread 3066592612 created [03:44:03]Thread 3066449252 joined [03:44:03]Waiting for new connection... [03:44:03] Sock 10.Parse request [03:44:03]Sock 10.Check first char [03:44:03]Sock 10.First char is OK [03:44:03]request: POST /json_proto HTTP/1.0 [03:44:03]Method: POST [03:44:03]URL: /json_proto [03:44:03]Method is POST - this is cgi request [03:44:03]url: /json_proto [03:44:03]query_string will be loaded in cgi processing [03:44:03]execute_cgi json_proto POST (null) [03:44:03]execute_cgi path=json_proto method=POST [03:44:03]POST find Content-Length [03:44:03]Host: 172.17.44.131:8080 [03:44:03]Content-Length: 803 [03:44:03]Content-Type: application/json [03:44:03] [03:44:03]POST finish read [03:44:03]Found Content-Length = 803 [03:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:03]execute_script... [03:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:03]POST & json_proto [03:44:03]process_json_proto [03:44:03]json parsed OK: [03:44:03]protocol is kg_v1.0 [03:44:03]action value=close_receipt [03:44:03]process_action close_receipt [03:44:03]cmd_close_receipt [03:44:03]MH_GetDate [03:44:03]Write to MH i2c: F0 00 00 DB 01 CB [03:44:03]Write i2c OK [03:44:03]MH_I2C_Read... [03:44:03]Read from MH i2c: F0 [03:44:03]MH_I2C_Read... [03:44:03]Read from MH i2c: F0 09 00 [03:44:03]MH_I2C_Read... [03:44:03]Read from MH i2c: F0 09 00 DB 01 00 04 57 C9 66 4F 53 BE 66 24 [03:44:03]GetLastDocTimeStamp 1724470826 [03:44:03]current date 1724471044 [03:44:03]FM_GetShiftState [03:44:03]SAM_PROTO_GetShiftState [03:44:03]wFMCommunicate request_size=4 [03:44:03]MH_SAM_APDU [03:44:03]CAPDU: 80 13 01 00 [03:44:03]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [03:44:03]Write i2c OK [03:44:03]MH_I2C_Read... [03:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:03]Read from MH i2c: E2 [03:44:03]MH_I2C_Read... [03:44:03]Read from MH i2c: E2 0E 00 [03:44:03]MH_I2C_Read... [03:44:03]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 18 [03:44:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:44:03]wFMCommunicate OK [03:44:03]SAM_PROTO_GetShiftState done [03:44:03]FM_GetShiftState done [03:44:03]opened in 1724458079 [03:44:03]opened+sec_in_day 1724544479 [03:44:03]quantity*price = 100005 [03:44:03]sum+1 = 100006 [03:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 26 24.08.2024 03:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178800 ФПД: 176099088041098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034404&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178800&fm=176099088041098&tin=02508201610067®Number=0000000000092561&sum=100005 [03:44:04]StoreToDocumentArchive [03:44:04]shift 471 fd 178800 [03:44:04]save to /storage/0471/doc_00178800 [03:44:04]save last doc name /storage/0471/doc_00178800 to /storage/kkm_last_doc_name [03:44:04]save OK [03:44:04]Clear old archive folders... [03:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:44:04]tlvbuf is 00C50C60 [03:44:04]SAM_PROTO_ClearQueue [03:44:04]wFMCommunicate request_size=4 [03:44:04]MH_SAM_APDU [03:44:04]CAPDU: 80 09 00 00 [03:44:04]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [03:44:04]Write i2c OK [03:44:04]MH_I2C_Read... [03:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:04]Read from MH i2c: E2 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 03 00 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [03:44:04]RAPDU: 90 00 [03:44:04]wFMCommunicate OK [03:44:04]SAM_PROTO_ClearQueue done [03:44:04]KKMCreateOFDPacket [03:44:04]OFDProtocolAddRootSTLVToBuf [03:44:04]FM_MakeSignedData [03:44:04]FM_MakeSignedData [03:44:04]SAM_PROTO_SignData [03:44:04]wFMCommunicate request_size=4 [03:44:04]MH_SAM_APDU [03:44:04]CAPDU: 80 0D 01 02 [03:44:04]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [03:44:04]Write i2c OK [03:44:04]MH_I2C_Read... [03:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:04]Read from MH i2c: E2 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 03 00 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [03:44:04]RAPDU: 90 00 [03:44:04]wFMCommunicate OK [03:44:04]wFMCommunicate request_size=255 [03:44:04]MH_SAM_APDU [03:44:04]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 04 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 70 BA 02 00 35 04 06 00 A0 [03:44:04]Write to MH i2c: E2 02 01 EB 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 04 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 70 BA 02 00 35 04 06 00 A0 00 00 C8 [03:44:04]Write i2c OK [03:44:04]MH_I2C_Read... [03:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [03:44:05]RAPDU: 90 00 [03:44:05]wFMCommunicate OK [03:44:05]wFMCommunicate request_size=10 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 0D 02 02 05 29 43 96 84 8A [03:44:05]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 29 43 96 84 8A 00 00 81 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [03:44:05]RAPDU: 90 00 [03:44:05]wFMCommunicate OK [03:44:05]wFMCommunicate request_size=4 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 0D 03 02 [03:44:05]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 0B 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 0B 00 ED 01 00 76 35 0D D2 CA 4A FD 54 90 00 59 [03:44:05]RAPDU: 76 35 0D D2 CA 4A FD 54 90 00 [03:44:05]wFMCommunicate OK [03:44:05]SAM_PROTO_SignData done [03:44:05]FM_MakeSignedData done [03:44:05]CreateOFDProtocolMessage [03:44:05]wFMCommunicate request_size=4 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 11 00 00 [03:44:05]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]OFD Sender: No OFD packet to send [03:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 17 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C2 [03:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:44:05]wFMCommunicate OK [03:44:05]CreateOFDProtocolMessage done [03:44:05]OFDSenderStorePacket 178800 [03:44:05]StoreOFDPacket docnum=178800 [03:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C4 97 07 01 FD E2 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 04 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 70 BA 02 00 35 04 06 00 A0 29 43 96 84 8A 76 35 0D D2 CA 4A FD 54 [03:44:05]CheckFolder [03:44:05]dirname=/storage/ofd_packets [03:44:05]CheckFolder done [03:44:05]ProducePacketName [03:44:05]name=ofd_packets/00178800 [03:44:05]NVStorageSaveData ofd_packets/00178800 [03:44:05]File name is /storage/ofd_packets/00178800 [03:44:05]Write 301 bytes [03:44:05]NVStorageSaveData done [03:44:05]OFDSenderStorePacket done [03:44:05]KKMCreateOFDPacket done [03:44:05]NVStorageSaveData kkm_last_timestamp [03:44:05]File name is /storage/kkm_last_timestamp [03:44:05]Write 4 bytes [03:44:05]NVStorageSaveData done [03:44:05]ExternCall_PrintAddStr [03:44:05]wPrintStart [03:44:05]Write to MH i2c: 01 00 00 EF 01 F0 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 07 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [03:44:05]RasterBufferAndPrint [03:44:05]line Счет N : (1)294948 [03:44:05]line ИНН: 02508201610067 [03:44:05]line Контрольно-Кассовый Чек [03:44:05]line ПРОДАЖА [03:44:05]line ТРК (МРК, ГНК) : 42 [03:44:05]line Товар: 2710124130 [03:44:05]line Аи-92-К-5 [03:44:05]line 14.750 * 67.80 [03:44:05]line = 1000.05 [03:44:05]line НДС 12% НСП 1% [03:44:05]line > о реализуемом товаре [03:44:05]line ИТОГО: 1000.05 [03:44:05]line НСП 1% : 8.85 [03:44:05]line НДС 12% : 106.20 [03:44:05]line Наличными: 0.00 [03:44:05]line Безнал.: 1000.05 [03:44:05]line Место: АЗС № 130 "Партнер Нефть" [03:44:05]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:44:05]line СНО: Общий режим [03:44:05]line Чек 26 24.08.2024 03:44 [03:44:05]line Смена: 471 ФФД: 1.0 [03:44:05]line ЗНМ: 0300000071 [03:44:05]line РНМ: 0000000000092561 [03:44:05]line Версия ККМ: 001 [03:44:05]line Платежная система: O! деньги [03:44:05]line ФМ: 0000000000871778 [03:44:05]line ФД: 178800 [03:44:05]line ФПД: 176099088041098 [03:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034404&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178800&fm=176099088041098&tin=02508201610067®Number=0000000000092561&sum=100005 [03:44:05]written 0, free lines is 4095 [03:44:05]OFD Sender: Processing packet 178800 [packets to send 500, broken 499] [03:44:05]ProducePacketName [03:44:05]name=ofd_packets/00178800 [03:44:05]OFD Sender: To server: pG, [03:44:05]CommunicateWithHost lk.salyk.kg:30040 [03:44:05]ConnectInit lk.salyk.kg [03:44:05]Write to MH i2c: 01 00 00 19 02 1B [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 07 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 D0 0C FE [03:44:05]RasterBufferAndPrint [03:44:05]line [03:44:05]line [03:44:05]line [03:44:05]line [03:44:05]line [03:44:05]written 0, free lines is 3286 [03:44:05]MH_Cut [03:44:05]Write to MH i2c: D1 01 00 20 02 01 F4 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: D1 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: D1 01 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: D1 01 00 20 02 00 F3 [03:44:05]Write to MH i2c: 01 00 00 21 02 23 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:06]*** Cut start [03:44:06]*** Partial cut [03:44:06]*** CUTSNS_PIN = 1 [03:44:06]*** CUTSNS_PIN = 0 [03:44:06]*** Brake cut motor [03:44:07]Read from MH i2c: 01 [03:44:07]MH_I2C_Read... [03:44:07]*** Stop cut motor [03:44:07]*** Cut end [03:44:07]Read from MH i2c: 01 07 00 [03:44:07]MH_I2C_Read... [03:44:07]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [03:44:07]process_action close_receipt done [03:44:07]requested_data is exist [03:44:07]produce_requested_data [03:44:07]requested_item fm.sn is exist - process it [03:44:07]wFMCommunicate request_size=4 [03:44:07]MH_SAM_APDU [03:44:07]CAPDU: 80 11 00 00 [03:44:07]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [03:44:07]Write i2c OK [03:44:07]MH_I2C_Read... [03:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:07]Read from MH i2c: E2 [03:44:07]MH_I2C_Read... [03:44:07]Read from MH i2c: E2 17 00 [03:44:07]MH_I2C_Read... [03:44:07]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 37 37 38 90 00 F7 [03:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:44:07]wFMCommunicate OK [03:44:07]requested_item fd.num is exist - process it [03:44:07]SAM_PROTO_GetFieldsCounters [03:44:07]wFMCommunicate request_size=4 [03:44:07]MH_SAM_APDU [03:44:07]CAPDU: 80 13 00 00 [03:44:07]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [03:44:07]Write i2c OK [03:44:07]MH_I2C_Read... [03:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:07]Read from MH i2c: E2 [03:44:07]MH_I2C_Read... [03:44:07]Read from MH i2c: E2 62 00 [03:44:07]MH_I2C_Read... [03:44:07]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 70 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [03:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 70 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:44:07]wFMCommunicate OK [03:44:07]SAM_PROTO_GetFieldsCounters done [03:44:07]requested_item shift.num is exist - process it [03:44:07]requested_item shift.opened is exist - process it [03:44:07]req_shift_opened [03:44:07]FM_GetShiftState [03:44:07]SAM_PROTO_GetShiftState [03:44:07]wFMCommunicate request_size=4 [03:44:07]MH_SAM_APDU [03:44:07]CAPDU: 80 13 01 00 [03:44:07]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [03:44:07]Write i2c OK [03:44:07]MH_I2C_Read... [03:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:07]Read from MH i2c: E2 [03:44:07]MH_I2C_Read... [03:44:07]Read from MH i2c: E2 0E 00 [03:44:07]MH_I2C_Read... [03:44:07]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 61 [03:44:07]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:44:07]wFMCommunicate OK [03:44:07]SAM_PROTO_GetShiftState done [03:44:07]FM_GetShiftState done [03:44:07]req_shift_opened done [03:44:07]requested_item shift.open_date is exist - process it [03:44:07]req_shift_open_date [03:44:07]req_shift_open_date done [03:44:07]produce_requested_data done [03:44:07]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178800,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:44:07]process_action_free close_receipt [03:44:07]json_value_free [03:44:07]json_value_free done [03:44:07]process_json_proto returns [03:44:07]Send response to host [03:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178800,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:44:07]free response buf [03:44:07]execute_script done [03:44:07]execute_script returns [03:44:07]free content buf [03:44:07]Sock 10.Close socket [03:44:07]Sock 10.Thread stoped [03:44:10]ConnectInit Can't take IP for lk.salyk.kg [03:44:10]CommunicateWithHost connect error [03:44:10]CommunicateWithHost err = -1 [03:44:10]OFD Sender: Server communicate error [03:44:13]recv_with_timeout no data received [03:44:15]OFD Sender: Processing packet 178800 [packets to send 500, broken 499] [03:44:15]ProducePacketName [03:44:15]name=ofd_packets/00178800 [03:44:15]OFD Sender: To server: pG, [03:44:15]CommunicateWithHost lk.salyk.kg:30040 [03:44:15]ConnectInit lk.salyk.kg [03:44:24]recv_with_timeout no data received [03:45:43]accept exits with 9 [03:45:43]New connection [03:45:43]New thread 3066449252 created [03:45:43]Thread 3066592612 joined [03:45:43]Waiting for new connection... [03:45:43] Sock 9.Parse request [03:45:43]Sock 9.Check first char [03:45:43]Sock 9.First char is OK [03:45:43]request: POST /json_proto HTTP/1.0 [03:45:43]Method: POST [03:45:43]URL: /json_proto [03:45:43]Method is POST - this is cgi request [03:45:43]url: /json_proto [03:45:43]query_string will be loaded in cgi processing [03:45:43]execute_cgi json_proto POST (null) [03:45:43]execute_cgi path=json_proto method=POST [03:45:43]POST find Content-Length [03:45:43]Host: 172.17.44.131:8080 [03:45:43]Content-Length: 679 [03:45:43]Content-Type: application/json [03:45:43] [03:45:43]POST finish read [03:45:43]Found Content-Length = 679 [03:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [03:45:43]execute_script... [03:45: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)294949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [03:45:43]POST & json_proto [03:45:43]process_json_proto [03:45:43]json parsed OK: [03:45:43]protocol is kg_v1.0 [03:45:43]action value=close_receipt [03:45:43]process_action close_receipt [03:45:43]cmd_close_receipt [03:45:43]MH_GetDate [03:45:43]Write to MH i2c: F0 00 00 25 02 16 [03:45:43]Write i2c OK [03:45:43]MH_I2C_Read... [03:45:43]Read from MH i2c: F0 [03:45:43]MH_I2C_Read... [03:45:43]Read from MH i2c: F0 09 00 [03:45:43]MH_I2C_Read... [03:45:43]Read from MH i2c: F0 09 00 25 02 00 68 57 C9 66 4F 53 BE 66 D3 [03:45:43]GetLastDocTimeStamp 1724471044 [03:45:43]current date 1724471144 [03:45:43]FM_GetShiftState [03:45:43]SAM_PROTO_GetShiftState [03:45:43]wFMCommunicate request_size=4 [03:45:43]MH_SAM_APDU [03:45:43]CAPDU: 80 13 01 00 [03:45:43]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [03:45:43]Write i2c OK [03:45:43]MH_I2C_Read... [03:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:43]Read from MH i2c: E2 [03:45:43]MH_I2C_Read... [03:45:43]Read from MH i2c: E2 0E 00 [03:45:43]MH_I2C_Read... [03:45:43]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 63 [03:45:43]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:45:43]wFMCommunicate OK [03:45:43]SAM_PROTO_GetShiftState done [03:45:43]FM_GetShiftState done [03:45:43]opened in 1724458079 [03:45:43]opened+sec_in_day 1724544479 [03:45:43]quantity*price = 200025 [03:45:43]sum+1 = 200026 [03:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 27 24.08.2024 03:45 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178801 ФПД: 14488663982862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034544&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178801&fm=14488663982862&tin=02508201610067®Number=0000000000092561&sum=200000 [03:45:44]StoreToDocumentArchive [03:45:44]shift 471 fd 178801 [03:45:44]save to /storage/0471/doc_00178801 [03:45:44]save last doc name /storage/0471/doc_00178801 to /storage/kkm_last_doc_name [03:45:44]save OK [03:45:44]Clear old archive folders... [03:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:45:44]tlvbuf is 00C6EC60 [03:45:44]SAM_PROTO_ClearQueue [03:45:44]wFMCommunicate request_size=4 [03:45:44]MH_SAM_APDU [03:45:44]CAPDU: 80 09 00 00 [03:45:44]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [03:45:44]Write i2c OK [03:45:44]MH_I2C_Read... [03:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:45:44]Read from MH i2c: E2 [03:45:44]MH_I2C_Read... [03:45:44]Read from MH i2c: E2 03 00 [03:45:44]MH_I2C_Read... [03:45:44]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [03:45:44]RAPDU: 90 00 [03:45:44]wFMCommunicate OK [03:45:44]SAM_PROTO_ClearQueue done [03:45:44]KKMCreateOFDPacket [03:45:44]OFDProtocolAddRootSTLVToBuf [03:45:44]FM_MakeSignedData [03:45:44]FM_MakeSignedData [03:45:44]SAM_PROTO_SignData [03:45:44]wFMCommunicate request_size=4 [03:45:44]MH_SAM_APDU [03:45:44]CAPDU: 80 0D 01 02 [03:45:44]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [03:45:44]Write i2c OK [03:45:44]MH_I2C_Read... [03:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:45:44]Read from MH i2c: E2 [03:45:44]MH_I2C_Read... [03:45:44]Read from MH i2c: E2 03 00 [03:45:44]MH_I2C_Read... [03:45:44]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [03:45:44]RAPDU: 90 00 [03:45:44]wFMCommunicate OK [03:45:44]wFMCommunicate request_size=255 [03:45:44]MH_SAM_APDU [03:45:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 1B 00 00 00 F4 03 04 00 68 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 71 BA 02 00 35 04 06 00 0D 2D 67 AB [03:45:44]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 1B 00 00 00 F4 03 04 00 68 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 71 BA 02 00 35 04 06 00 0D 2D 67 AB 00 00 85 [03:45:44]Write i2c OK [03:45:44]MH_I2C_Read... [03:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:45]Read from MH i2c: E2 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 03 00 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [03:45:45]RAPDU: 90 00 [03:45:45]wFMCommunicate OK [03:45:45]wFMCommunicate request_size=7 [03:45:45]MH_SAM_APDU [03:45:45]CAPDU: 80 0D 02 02 02 83 0E [03:45:45]Write to MH i2c: E2 0A 00 36 02 80 0D 02 02 02 00 83 0E 00 00 47 [03:45:45]Write i2c OK [03:45:45]MH_I2C_Read... [03:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:45]Read from MH i2c: E2 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 03 00 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [03:45:45]RAPDU: 90 00 [03:45:45]wFMCommunicate OK [03:45:45]wFMCommunicate request_size=4 [03:45:45]MH_SAM_APDU [03:45:45]CAPDU: 80 0D 03 02 [03:45:45]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [03:45:45]Write i2c OK [03:45:45]MH_I2C_Read... [03:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:45:45]Read from MH i2c: E2 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 0B 00 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 0B 00 37 02 00 BF 55 BA 24 4A 3F 7C 9C 90 00 48 [03:45:45]RAPDU: BF 55 BA 24 4A 3F 7C 9C 90 00 [03:45:45]wFMCommunicate OK [03:45:45]SAM_PROTO_SignData done [03:45:45]FM_MakeSignedData done [03:45:45]CreateOFDProtocolMessage [03:45:45]wFMCommunicate request_size=4 [03:45:45]MH_SAM_APDU [03:45:45]CAPDU: 80 11 00 00 [03:45:45]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [03:45:45]Write i2c OK [03:45:45]MH_I2C_Read... [03:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:45]Read from MH i2c: E2 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: E2 17 00 [03:45:45]MH_I2C_Read... [03:45:45]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 37 37 38 90 00 0D [03:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:45:45]wFMCommunicate OK [03:45:45]CreateOFDProtocolMessage done [03:45:45]OFDSenderStorePacket 178801 [03:45:45]StoreOFDPacket docnum=178801 [03:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A3 2D 04 01 0C F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 1B 00 00 00 F4 03 04 00 68 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 71 BA 02 00 35 04 06 00 0D 2D 67 AB 83 0E BF 55 BA 24 4A 3F 7C 9C [03:45:45]CheckFolder [03:45:45]dirname=/storage/ofd_packets [03:45:45]CheckFolder done [03:45:45]ProducePacketName [03:45:45]name=ofd_packets/00178801 [03:45:45]NVStorageSaveData ofd_packets/00178801 [03:45:45]File name is /storage/ofd_packets/00178801 [03:45:45]Write 298 bytes [03:45:45]NVStorageSaveData done [03:45:45]OFDSenderStorePacket done [03:45:45]KKMCreateOFDPacket done [03:45:45]NVStorageSaveData kkm_last_timestamp [03:45:45]File name is /storage/kkm_last_timestamp [03:45:45]Write 4 bytes [03:45:45]NVStorageSaveData done [03:45:45]ExternCall_PrintAddStr [03:45:45]wPrintStart [03:45:45]Write to MH i2c: 01 00 00 39 02 3B [03:45:45]Write i2c OK [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: 01 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: 01 07 00 [03:45:45]MH_I2C_Read... [03:45:45]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [03:45:45]RasterBufferAndPrint [03:45:45]line Счет N : (1)294949 [03:45:45]line ИНН: 02508201610067 [03:45:45]line Контрольно-Кассовый Чек [03:45:45]line ПРОДАЖА [03:45:45]line ТРК (МРК, ГНК) : 21 [03:45:45]line Товар: 2710194800 [03:45:45]line ДТ-К-5 [03:45:45]line 26.250 * 76.20 [03:45:45]line = 2000.25 [03:45:45]line НДС 12% НСП 1% [03:45:45]line > о реализуемом товаре [03:45:45]line ОКРУГЛЕНИЕ: -0.25 [03:45:45]line ИТОГО: 2000.00 [03:45:45]line Внесено: 2000.00 [03:45:45]line СДАЧА: 0.00 [03:45:45]line НСП 1% : 17.70 [03:45:45]line НДС 12% : 212.42 [03:45:45]line Наличными: 2000.00 [03:45:45]line Безнал.: 0.00 [03:45:45]line Место: АЗС № 130 "Партнер Нефть" [03:45:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:45:45]line СНО: Общий режим [03:45:45]line Чек 27 24.08.2024 03:45 [03:45:45]line Смена: 471 ФФД: 1.0 [03:45:45]line ЗНМ: 0300000071 [03:45:45]line РНМ: 0000000000092561 [03:45:45]line Версия ККМ: 001 [03:45:45]line ФМ: 0000000000871778 [03:45:45]line ФД: 178801 [03:45:45]line ФПД: 14488663982862 [03:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T034544&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178801&fm=14488663982862&tin=02508201610067®Number=0000000000092561&sum=200000 [03:45:45]written 0, free lines is 4095 [03:45:46]Write to MH i2c: 01 00 00 64 02 66 [03:45:46]Write i2c OK [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: 01 [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: 01 07 00 [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 CF 0C 48 [03:45:46]RasterBufferAndPrint [03:45:46]line [03:45:46]line [03:45:46]line [03:45:46]line [03:45:46]line [03:45:46]written 0, free lines is 3285 [03:45:46]MH_Cut [03:45:46]Write to MH i2c: D1 01 00 6B 02 01 3F [03:45:46]Write i2c OK [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: D1 [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: D1 01 00 [03:45:46]MH_I2C_Read... [03:45:46]Read from MH i2c: D1 01 00 6B 02 00 3E [03:45:46]Write to MH i2c: 01 00 00 6C 02 6E [03:45:46]Write i2c OK [03:45:46]MH_I2C_Read... [03:45:46]*** Cut start [03:45:46]*** Partial cut [03:45:46]*** CUTSNS_PIN = 1 [03:45:46]*** CUTSNS_PIN = 0 [03:45:47]*** Brake cut motor [03:45:47]Read from MH i2c: 01 [03:45:47]MH_I2C_Read... [03:45:47]*** Stop cut motor [03:45:47]*** Cut end [03:45:47]Read from MH i2c: 01 07 00 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [03:45:47]process_action close_receipt done [03:45:47]requested_data is exist [03:45:47]produce_requested_data [03:45:47]requested_item fm.sn is exist - process it [03:45:47]wFMCommunicate request_size=4 [03:45:47]MH_SAM_APDU [03:45:47]CAPDU: 80 11 00 00 [03:45:47]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [03:45:47]Write i2c OK [03:45:47]MH_I2C_Read... [03:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:47]Read from MH i2c: E2 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 17 00 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 42 [03:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:45:47]wFMCommunicate OK [03:45:47]requested_item fd.num is exist - process it [03:45:47]SAM_PROTO_GetFieldsCounters [03:45:47]wFMCommunicate request_size=4 [03:45:47]MH_SAM_APDU [03:45:47]CAPDU: 80 13 00 00 [03:45:47]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [03:45:47]Write i2c OK [03:45:47]MH_I2C_Read... [03:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:45:47]Read from MH i2c: E2 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 62 00 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 62 00 6E 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 71 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [03:45: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 71 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:45:47]wFMCommunicate OK [03:45:47]SAM_PROTO_GetFieldsCounters done [03:45:47]requested_item shift.num is exist - process it [03:45:47]requested_item shift.opened is exist - process it [03:45:47]req_shift_opened [03:45:47]FM_GetShiftState [03:45:47]SAM_PROTO_GetShiftState [03:45:47]wFMCommunicate request_size=4 [03:45:47]MH_SAM_APDU [03:45:47]CAPDU: 80 13 01 00 [03:45:47]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [03:45:47]Write i2c OK [03:45:47]MH_I2C_Read... [03:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:47]Read from MH i2c: E2 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 0E 00 [03:45:47]MH_I2C_Read... [03:45:47]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 AC [03:45:47]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:45:47]wFMCommunicate OK [03:45:47]SAM_PROTO_GetShiftState done [03:45:47]FM_GetShiftState done [03:45:47]req_shift_opened done [03:45:47]requested_item shift.open_date is exist - process it [03:45:47]req_shift_open_date [03:45:47]req_shift_open_date done [03:45:47]produce_requested_data done [03:45:47]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178801,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [03:45:47]process_action_free close_receipt [03:45:47]json_value_free [03:45:47]json_value_free done [03:45:47]process_json_proto returns [03:45:47]Send response to host [03:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178801,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [03:45:47]free response buf [03:45:47]execute_script done [03:45:47]execute_script returns [03:45:47]free content buf [03:45:47]Sock 9.Close socket [03:45:47]Sock 9.Thread stoped [03:46:11]recv_with_timeout no data received [03:46:29]ConnectInit Can't connect to host [03:46:29]CommunicateWithHost connect error [03:46:29]CommunicateWithHost err = -1 [03:46:29]OFD Sender: Server communicate error [03:46:29]OFD Sender: Processing packet 178800 [packets to send 501, broken 499] [03:46:29]ProducePacketName [03:46:29]name=ofd_packets/00178800 [03:46:29]OFD Sender: To server: pG, [03:46:29]CommunicateWithHost lk.salyk.kg:30040 [03:46:29]ConnectInit lk.salyk.kg [03:48:47]ConnectInit Can't connect to host [03:48:47]CommunicateWithHost connect error [03:48:47]CommunicateWithHost err = -1 [03:48:47]OFD Sender: Server communicate error [03:48:53]OFD Sender: Processing packet 178800 [packets to send 501, broken 499] [03:48:53]ProducePacketName [03:48:53]name=ofd_packets/00178800 [03:48:53]OFD Sender: To server: pG, [03:48:53]CommunicateWithHost lk.salyk.kg:30040 [03:48:53]ConnectInit lk.salyk.kg [03:51:11]ConnectInit Can't connect to host [03:51:11]CommunicateWithHost connect error [03:51:11]CommunicateWithHost err = -1 [03:51:11]OFD Sender: Server communicate error [03:51:16]OFD Sender: Processing packet 178800 [packets to send 501, broken 499] [03:51:16]ProducePacketName [03:51:16]name=ofd_packets/00178800 [03:51:16]OFD Sender: To server: pG, [03:51:16]CommunicateWithHost lk.salyk.kg:30040 [03:51:16]ConnectInit lk.salyk.kg [03:51:16]Connected sock=7 [03:51: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 37 37 38 0F 01 00 00 C4 97 07 01 FD E2 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 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 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 04 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 70 BA 02 00 35 04 06 00 A0 29 43 96 84 8A 76 35 0D D2 CA 4A FD 54 [03:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DF 7A 47 00 CD 57 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 37 37 38 10 04 04 00 70 BA 02 00 F4 03 04 00 59 04 C9 66 B6 04 01 00 00 0C 37 B0 40 6D 80 41 EA [03:51:17]CommunicateWithHost err = 0 [03:51:17]CheckOFDResponse [03:51:17]1017 (14) - 77093643461234 [03:51:17]1041 (16) - 0000000000871778 [03:51:17]1040 (4) - 178800 [03:51:17]1012 (4) - 23.08.2024 21:51 [03:51:17]1206 (1) - 0 [03:51:17]OFD Sender: Remove packet 178800 [03:51:17]ProducePacketName [03:51:17]name=ofd_packets/00178800 [03:51:17]NVStorageDeleteData [03:51:17]OFD Sender: Processing packet 178801 [packets to send 500, broken 499] [03:51:17]ProducePacketName [03:51:17]name=ofd_packets/00178801 [03:51:17]OFD Sender: To server: pG, [03:51:17]CommunicateWithHost lk.salyk.kg:30040 [03:51:17]ConnectInit lk.salyk.kg [03:51:19]Connected sock=7 [03:51: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 37 37 38 0C 01 00 00 A3 2D 04 01 0C F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 1B 00 00 00 F4 03 04 00 68 57 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 71 BA 02 00 35 04 06 00 0D 2D 67 AB 83 0E BF 55 BA 24 4A 3F 7C 9C [03:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 78 E2 47 00 15 EB 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 37 37 38 10 04 04 00 71 BA 02 00 F4 03 04 00 5C 04 C9 66 B6 04 01 00 00 28 43 20 CF FF B0 E4 15 [03:51:20]CommunicateWithHost err = 0 [03:51:20]CheckOFDResponse [03:51:20]1017 (14) - 77093643461234 [03:51:20]1041 (16) - 0000000000871778 [03:51:20]1040 (4) - 178801 [03:51:20]1012 (4) - 23.08.2024 21:51 [03:51:20]1206 (1) - 0 [03:51:20]OFD Sender: Remove packet 178801 [03:51:20]ProducePacketName [03:51:20]name=ofd_packets/00178801 [03:51:20]NVStorageDeleteData [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:16]recv_with_timeout no data received [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:28]recv_with_timeout no data received [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]recv_with_timeout no data received [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:38]recv_with_timeout no data received [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:27]recv_with_timeout no data received [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:46]recv_with_timeout no data received [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:02]recv_with_timeout no data received [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:13]accept exits with 10 [03:59:13]New connection [03:59:13]New thread 3066592612 created [03:59:13]Thread 3066449252 joined [03:59:13]Waiting for new connection... [03:59:13] Sock 10.Parse request [03:59:13]Sock 10.Check first char [03:59:13]Sock 10.First char is OK [03:59:13]request: POST /json_proto HTTP/1.0 [03:59:13]Method: POST [03:59:13]URL: /json_proto [03:59:13]Method is POST - this is cgi request [03:59:13]url: /json_proto [03:59:13]query_string will be loaded in cgi processing [03:59:13]execute_cgi json_proto POST (null) [03:59:13]execute_cgi path=json_proto method=POST [03:59:13]POST find Content-Length [03:59:13]Host: 172.17.44.131:8080 [03:59:13]Content-Length: 677 [03:59:13]Content-Type: application/json [03:59:13] [03:59:13]POST finish read [03:59:13]Found Content-Length = 677 [03:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [03:59:13]execute_script... [03:59:13]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)294951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [03:59:13]POST & json_proto [03:59:13]process_json_proto [03:59:13]json parsed OK: [03:59:13]protocol is kg_v1.0 [03:59:13]action value=close_receipt [03:59:13]process_action close_receipt [03:59:13]cmd_close_receipt [03:59:13]MH_GetDate [03:59:13]Write to MH i2c: F0 00 00 70 02 61 [03:59:13]Write i2c OK [03:59:13]MH_I2C_Read... [03:59:13]Read from MH i2c: F0 [03:59:13]MH_I2C_Read... [03:59:13]Read from MH i2c: F0 09 00 [03:59:13]MH_I2C_Read... [03:59:13]Read from MH i2c: F0 09 00 70 02 00 92 5A C9 66 4F 53 BE 66 4B [03:59:13]GetLastDocTimeStamp 1724471144 [03:59:13]current date 1724471954 [03:59:13]FM_GetShiftState [03:59:13]SAM_PROTO_GetShiftState [03:59:13]wFMCommunicate request_size=4 [03:59:13]MH_SAM_APDU [03:59:13]CAPDU: 80 13 01 00 [03:59:13]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [03:59:13]Write i2c OK [03:59:13]MH_I2C_Read... [03:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:13]Read from MH i2c: E2 [03:59:13]MH_I2C_Read... [03:59:13]Read from MH i2c: E2 0E 00 [03:59:13]MH_I2C_Read... [03:59:13]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 AE [03:59:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [03:59:13]wFMCommunicate OK [03:59:13]SAM_PROTO_GetShiftState done [03:59:13]FM_GetShiftState done [03:59:13]opened in 1724458079 [03:59:13]opened+sec_in_day 1724544479 [03:59:13]quantity*price = 40002 [03:59:13]sum+1 = 40003 [03:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 28 24.08.2024 03:59 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178802 ФПД: 221369026735672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T035914&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178802&fm=221369026735672&tin=02508201610067®Number=0000000000092561&sum=40000 [03:59:14]StoreToDocumentArchive [03:59:14]shift 471 fd 178802 [03:59:14]save to /storage/0471/doc_00178802 [03:59:14]save last doc name /storage/0471/doc_00178802 to /storage/kkm_last_doc_name [03:59:14]save OK [03:59:14]Clear old archive folders... [03:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:59:14]tlvbuf is 00C705E0 [03:59:14]SAM_PROTO_ClearQueue [03:59:14]wFMCommunicate request_size=4 [03:59:14]MH_SAM_APDU [03:59:14]CAPDU: 80 09 00 00 [03:59:14]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [03:59:14]Write i2c OK [03:59:14]MH_I2C_Read... [03:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:59:14]Read from MH i2c: E2 [03:59:14]MH_I2C_Read... [03:59:14]Read from MH i2c: E2 03 00 [03:59:14]MH_I2C_Read... [03:59:14]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [03:59:14]RAPDU: 90 00 [03:59:14]wFMCommunicate OK [03:59:14]SAM_PROTO_ClearQueue done [03:59:14]KKMCreateOFDPacket [03:59:14]OFDProtocolAddRootSTLVToBuf [03:59:14]FM_MakeSignedData [03:59:14]FM_MakeSignedData [03:59:14]SAM_PROTO_SignData [03:59:14]wFMCommunicate request_size=4 [03:59:14]MH_SAM_APDU [03:59:14]CAPDU: 80 0D 01 02 [03:59:14]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [03:59:14]Write i2c OK [03:59:14]MH_I2C_Read... [03:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:59:14]Read from MH i2c: E2 [03:59:14]MH_I2C_Read... [03:59:14]Read from MH i2c: E2 03 00 [03:59:14]MH_I2C_Read... [03:59:14]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [03:59:14]RAPDU: 90 00 [03:59:14]wFMCommunicate OK [03:59:14]wFMCommunicate request_size=255 [03:59:14]MH_SAM_APDU [03:59: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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1C 00 00 00 F4 03 04 00 92 5A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 72 BA 02 00 35 04 06 00 C9 [03:59:14]Write to MH i2c: E2 02 01 80 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1C 00 00 00 F4 03 04 00 92 5A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 72 BA 02 00 35 04 06 00 C9 00 00 68 [03:59:15]Write i2c OK [03:59:15]MH_I2C_Read... [03:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:15]Read from MH i2c: E2 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 03 00 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [03:59:15]RAPDU: 90 00 [03:59:15]wFMCommunicate OK [03:59:15]wFMCommunicate request_size=10 [03:59:15]MH_SAM_APDU [03:59:15]CAPDU: 80 0D 02 02 05 55 7E 33 EE 38 [03:59:15]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 55 7E 33 EE 38 00 00 33 [03:59:15]Write i2c OK [03:59:15]MH_I2C_Read... [03:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:15]Read from MH i2c: E2 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 03 00 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [03:59:15]RAPDU: 90 00 [03:59:15]wFMCommunicate OK [03:59:15]wFMCommunicate request_size=4 [03:59:15]MH_SAM_APDU [03:59:15]CAPDU: 80 0D 03 02 [03:59:15]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [03:59:15]Write i2c OK [03:59:15]MH_I2C_Read... [03:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:59:15]Read from MH i2c: E2 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 0B 00 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 0B 00 82 02 00 C3 8D 59 BA AA 1E 3F 69 90 00 D3 [03:59:15]RAPDU: C3 8D 59 BA AA 1E 3F 69 90 00 [03:59:15]wFMCommunicate OK [03:59:15]SAM_PROTO_SignData done [03:59:15]FM_MakeSignedData done [03:59:15]CreateOFDProtocolMessage [03:59:15]wFMCommunicate request_size=4 [03:59:15]MH_SAM_APDU [03:59:15]CAPDU: 80 11 00 00 [03:59:15]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [03:59:15]Write i2c OK [03:59:15]MH_I2C_Read... [03:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:15]Read from MH i2c: E2 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 17 00 [03:59:15]MH_I2C_Read... [03:59:15]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 58 [03:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:59:15]wFMCommunicate OK [03:59:15]CreateOFDProtocolMessage done [03:59:15]OFDSenderStorePacket 178802 [03:59:15]StoreOFDPacket docnum=178802 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 723012+1723749199=1724472211 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 94 5B C9 66 4F 53 BE 66 E3 [04:03:32]Current date/time: 24.08.2024 04:03 [04:03:32]FM_Init [04:03:32]wFMConnect [04:03:32]MH_SAM_On [04:03:32]Write to MH i2c: E0 00 00 08 00 E7 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_init finished! [04:03:32]*** atr: [04:03:32]*** 0F 3B D5 18 FF 81 91 FE [04:03:32]*** 1F C3 80 73 C8 21 10 0A [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]*** 00 00 00 00 00 00 00 00 [04:03:32]Read from MH i2c: E0 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E0 10 00 [04:03:32]MH_I2C_Read... [04:03:32]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:03:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:03:32]wFMCommunicate request_size=10 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:03:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:03:32]RAPDU: 90 00 [04:03:32]wFMCommunicate OK [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 11 00 00 [04:03:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 17 00 [04:03:32]MH_I2C_Read... [04:03:32]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 37 37 38 90 00 DD [04:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:03:32]wFMCommunicate OK [04:03:32]Detected FM SN is 0000000000871778 [04:03:32]Stored FM SN is 0000000000871778 [04:03:32]wFMCommunicate request_size=9 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 16 00 00 04 D9 BA 00 00 [04:03:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:03:32]RAPDU: 90 00 [04:03:32]wFMCommunicate OK [04:03:32]FM PIN OK [04:03:32]wFMCommunicate request_size=8 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 14 04 00 03 02 00 01 [04:03:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:03:32]RAPDU: 90 00 [04:03:32]wFMCommunicate OK [04:03:32]wFMCommunicate request_size=13 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:03:32]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:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:03:32]RAPDU: 90 00 [04:03:32]wFMCommunicate OK [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 11 00 00 [04:03:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 17 00 [04:03:32]MH_I2C_Read... [04:03:32]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 37 37 38 90 00 E1 [04:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:03:32]wFMCommunicate OK [04:03:32]DocumentArchiveInit [04:03:32]Start Httpd... [04:03:32]Httpd thread 3067858276 created [04:03:32]Write to MH i2c: 01 00 00 0F 00 0F [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: 01 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: 01 07 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:03:32]MH Int Process started [04:03:32]Allocated Socket 8 [04:03:32]Bind OK [04:03:32]Listen OK [04:03:32]httpd running on port 8080 [04:03:32]Waiting for new connection... [04:03:32]accept exits with 9 [04:03:32]New connection [04:03:32]New thread 3067571556 created [04:03:32]Waiting for new connection... [04:03:32] Sock 9.Parse request [04:03:32]Sock 9.Check first char [04:03:32]Sock 9.First char is OK [04:03:32]request: POST /json_proto HTTP/1.0 [04:03:32]Method: POST [04:03:32]URL: /json_proto [04:03:32]Method is POST - this is cgi request [04:03:32]url: /json_proto [04:03:32]query_string will be loaded in cgi processing [04:03:32]execute_cgi json_proto POST (null) [04:03:32]execute_cgi path=json_proto method=POST [04:03:32]POST find Content-Length [04:03:32]Host: 172.17.44.131:8080 [04:03:32]Content-Length: 215 [04:03:32]Content-Type: application/json [04:03:32] [04:03:32]POST finish read [04:03:32]Found Content-Length = 215 [04:03:32]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:03:32]execute_script... [04:03:32]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:03:32]POST & json_proto [04:03:32]process_json_proto [04:03:32]json parsed OK: [04:03:32]protocol is kg_v1.0 [04:03:32]action value=get_value [04:03:32]process_action get_value [04:03:32]cmd_get_value [04:03:32]process_action get_value done [04:03:32]requested_data is exist [04:03:32]produce_requested_data [04:03:32]requested_item kkm.sn is exist - process it [04:03:32]requested_item kkm.ver is exist - process it [04:03:32]requested_item fm.sn is exist - process it [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 11 00 00 [04:03:32]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 17 00 [04:03:32]MH_I2C_Read... [04:03:32]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 37 37 38 90 00 E3 [04:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:03:32]wFMCommunicate OK [04:03:32]requested_item fd.num is exist - process it [04:03:32]SAM_PROTO_GetFieldsCounters [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 13 00 00 [04:03:32]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 62 00 [04:03:32]MH_I2C_Read... [04:03:32]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 72 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [04:03: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 72 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:03:32]wFMCommunicate OK [04:03:32]SAM_PROTO_GetFieldsCounters done [04:03:32]requested_item shift.num is exist - process it [04:03:32]requested_item shift.opened is exist - process it [04:03:32]req_shift_opened [04:03:32]FM_GetShiftState [04:03:32]SAM_PROTO_GetShiftState [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 13 01 00 [04:03:32]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:32]Read from MH i2c: E2 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 0E 00 [04:03:32]MH_I2C_Read... [04:03:32]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [04:03:32]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:03:32]wFMCommunicate OK [04:03:32]SAM_PROTO_GetShiftState done [04:03:32]FM_GetShiftState done [04:03:32]req_shift_opened done [04:03:32]requested_item shift.open_date is exist - process it [04:03:32]req_shift_open_date [04:03:32]req_shift_open_date done [04:03:32]produce_requested_data done [04:03:32]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178802,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:03:32]process_action_free get_value [04:03:32]json_value_free [04:03:32]json_value_free done [04:03:32]process_json_proto returns [04:03:32]Send response to host [04:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178802,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:03:32]free response buf [04:03:32]execute_script done [04:03:32]execute_script returns [04:03:32]free content buf [04:03:32]Sock 9.Close socket [04:03:32]Sock 9.Thread stoped [04:03:32]accept exits with 10 [04:03:32]New connection [04:03:32]New thread 3067428196 created [04:03:32]Thread 3067571556 joined [04:03:32]Waiting for new connection... [04:03:32] Sock 10.Parse request [04:03:32]Sock 10.Check first char [04:03:32]Sock 10.First char is OK [04:03:32]request: POST /json_proto HTTP/1.0 [04:03:32]Method: POST [04:03:32]URL: /json_proto [04:03:32]Method is POST - this is cgi request [04:03:32]url: /json_proto [04:03:32]query_string will be loaded in cgi processing [04:03:32]execute_cgi json_proto POST (null) [04:03:32]execute_cgi path=json_proto method=POST [04:03:32]POST find Content-Length [04:03:32]Host: 172.17.44.131:8080 [04:03:32]Content-Length: 331 [04:03:32]Content-Type: application/json [04:03:32] [04:03:32]POST finish read [04:03:32]Found Content-Length = 331 [04:03:32]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:03:32]execute_script... [04:03:32]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:03:32]POST & json_proto [04:03:32]process_json_proto [04:03:32]json parsed OK: [04:03:32]protocol is kg_v1.0 [04:03:32]action value=get_value [04:03:32]process_action get_value [04:03:32]cmd_get_value [04:03:32]process_action get_value done [04:03:32]requested_data is exist [04:03:32]produce_requested_data [04:03:32]requested_item fm.sale.total is exist - process it [04:03:32]SAM_PROTO_GetFMData [04:03:32]wFMCommunicate request_size=4 [04:03:32]MH_SAM_APDU [04:03:32]CAPDU: 80 13 03 00 [04:03:32]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:03:32]Write i2c OK [04:03:32]MH_I2C_Read... [04:03:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:03:33]Read from MH i2c: E2 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 C4 B6 02 00 69 04 A4 00 6F 04 04 00 2D B5 02 00 B1 04 05 00 AB 30 00 2C 05 70 04 05 00 9F CB 1B 15 04 72 04 05 00 0C 65 E4 16 01 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 A4 7E A2 8C 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 DC 02 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 BF [04:03:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 C4 B6 02 00 69 04 A4 00 6F 04 04 00 2D B5 02 00 B1 04 05 00 AB 30 00 2C 05 70 04 05 00 9F CB 1B 15 04 72 04 05 00 0C 65 E4 16 01 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 A4 7E A2 8C 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 DC 02 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [04:03:33]wFMCommunicate OK [04:03:33]wFMCommunicate request_size=4 [04:03:33]MH_SAM_APDU [04:03:33]CAPDU: 80 17 00 00 [04:03:33]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:03:33]Write i2c OK [04:03:33]MH_I2C_Read... [04:03:33]OFD Sender: Processing packet 178802 [packets to send 500, broken 499] [04:03:33]ProducePacketName [04:03:33]name=ofd_packets/00178802 [04:03:33]OFD Sender: To server: pG, [04:03:33]CommunicateWithHost lk.salyk.kg:30040 [04:03:33]ConnectInit lk.salyk.kg [04:03:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:33]Read from MH i2c: E2 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [04:03:33]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [04:03:33]wFMCommunicate OK [04:03:33]wFMCommunicate request_size=4 [04:03:33]MH_SAM_APDU [04:03:33]CAPDU: 80 17 00 00 [04:03:33]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:03:33]Write i2c OK [04:03:33]MH_I2C_Read... [04:03:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:33]Read from MH i2c: E2 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 [04:03:33]MH_I2C_Read... [04:03:33]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [04:03:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:03:33]wFMCommunicate OK [04:03:33]wFMCommunicate request_size=4 [04:03:33]MH_SAM_APDU [04:03:33]CAPDU: 80 17 00 00 [04:03:33]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:03:33]Write i2c OK [04:03:33]MH_I2C_Read... [04:03:34]Connected sock=6 [04: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 37 37 38 0F 01 00 00 FC 6C 07 01 54 09 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 1C 00 00 00 F4 03 04 00 92 5A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 72 BA 02 00 35 04 06 00 C9 55 7E 33 EE 38 C3 8D 59 BA AA 1E 3F 69 [04:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:34]Read from MH i2c: E2 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 FD 00 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [04:03:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [04:03:34]wFMCommunicate OK [04:03:34]wFMCommunicate request_size=4 [04:03:34]MH_SAM_APDU [04:03:34]CAPDU: 80 17 00 00 [04:03:34]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:03:34]Write i2c OK [04:03:34]MH_I2C_Read... [04:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [04:03:34]Read from MH i2c: E2 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 E3 00 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 E3 00 17 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 76 [04:03:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:34]wFMCommunicate OK [04:03:34]SAM_PROTO_GetFMData done [04:03:34]requested_item fm.sale_refund.total is exist - process it [04:03:34]requested_item fm.buy.total is exist - process it [04:03:34]requested_item shift.sale.total is exist - process it [04:03:34]SAM_PROTO_GetShiftData [04:03:34]wFMCommunicate request_size=4 [04:03:34]MH_SAM_APDU [04:03:34]CAPDU: 80 13 02 00 [04:03:34]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04: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 37 37 38 4F 00 00 00 7A CB 47 00 DB 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 72 BA 02 00 F4 03 04 00 3A 07 C9 66 B6 04 01 00 00 1E C7 37 C7 76 09 8C 8B [04:03:34]CommunicateWithHost err = 0 [04:03:34]CheckOFDResponse [04:03:34]1017 (14) - 77093643461234 [04:03:34]1041 (16) - 0000000000871778 [04:03:34]1040 (4) - 178802 [04:03:34]1012 (4) - 23.08.2024 22:03 [04:03:34]1206 (1) - 0 [04:03:34]OFD Sender: Remove packet 178802 [04:03:34]ProducePacketName [04:03:34]name=ofd_packets/00178802 [04:03:34]NVStorageDeleteData [04:03:34]Write i2c OK [04:03:34]MH_I2C_Read... [04:03:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:03:34]Read from MH i2c: E2 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 FD 00 [04:03:34]MH_I2C_Read... [04:03:34]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 1C 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 89 E4 55 70 04 03 00 F8 58 22 72 04 03 00 91 8B 33 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 4D 1F 09 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 99 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [04:03:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1C 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 89 E4 55 70 04 03 00 F8 58 22 72 04 03 00 91 8B 33 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 4D 1F 09 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 99 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:03:35]wFMCommunicate OK [04:03:35]wFMCommunicate request_size=4 [04:03:35]MH_SAM_APDU [04:03:35]CAPDU: 80 17 00 00 [04:03:35]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:03:35]Write i2c OK [04:03:35]MH_I2C_Read... [04:03:35]OFD Sender: No OFD packet to send [04:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:35]Read from MH i2c: E2 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [04:03:35]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 [04:03:35]wFMCommunicate OK [04:03:35]wFMCommunicate request_size=4 [04:03:35]MH_SAM_APDU [04:03:35]CAPDU: 80 17 00 00 [04:03:35]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:03:35]Write i2c OK [04:03:35]MH_I2C_Read... [04:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:35]Read from MH i2c: E2 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [04:03:35]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 [04:03:35]wFMCommunicate OK [04:03:35]wFMCommunicate request_size=4 [04:03:35]MH_SAM_APDU [04:03:35]CAPDU: 80 17 00 00 [04:03:35]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:03:35]Write i2c OK [04:03:35]MH_I2C_Read... [04:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:03:35]Read from MH i2c: E2 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 [04:03:35]MH_I2C_Read... [04:03:35]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [04:03:36]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 [04:03:36]wFMCommunicate OK [04:03:36]wFMCommunicate request_size=4 [04:03:36]MH_SAM_APDU [04:03:36]CAPDU: 80 17 00 00 [04:03:36]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:03:36]Write i2c OK [04:03:36]MH_I2C_Read... [04:03:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [04:03:36]Read from MH i2c: E2 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: E2 CB 00 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [04:03:36]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 [04:03:36]wFMCommunicate OK [04:03:36]SAM_PROTO_GetShiftData done [04:03:36]requested_item shift.sale.total_cash is exist - process it [04:03:36]requested_item shift.sale_refund.total is exist - process it [04:03:36]requested_item shift.sale_refund.total_cash is exist - process it [04:03:36]requested_item shift.buy.total is exist - process it [04:03:36]requested_item shift.buy.total_cash is exist - process it [04:03:36]produce_requested_data done [04:03:36]produce_requested_data return {"fm.sale.total":222130464.43,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":56290.65,"shift.sale.total_cash":22510.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:03:36]process_action_free get_value [04:03:36]json_value_free [04:03:36]json_value_free done [04:03:36]process_json_proto returns [04:03:36]Send response to host [04:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222130464.43,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":56290.65,"shift.sale.total_cash":22510.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:03:36]free response buf [04:03:36]execute_script done [04:03:36]execute_script returns [04:03:36]free content buf [04:03:36]Sock 10.Close socket [04:03:36]Sock 10.Thread stoped [04:03:36]accept exits with 9 [04:03:36]New connection [04:03:36]New thread 3067571556 created [04:03:36]Thread 3067428196 joined [04:03:36]Waiting for new connection... [04:03:36] Sock 9.Parse request [04:03:36]Sock 9.Check first char [04:03:36]Sock 9.First char is OK [04:03:36]request: POST /json_proto HTTP/1.0 [04:03:36]Method: POST [04:03:36]URL: /json_proto [04:03:36]Method is POST - this is cgi request [04:03:36]url: /json_proto [04:03:36]query_string will be loaded in cgi processing [04:03:36]execute_cgi json_proto POST (null) [04:03:36]execute_cgi path=json_proto method=POST [04:03:36]POST find Content-Length [04:03:36]Host: 172.17.44.131:8080 [04:03:36]Content-Length: 682 [04:03:36]Content-Type: application/json [04:03:36] [04:03:36]POST finish read [04:03:36]Found Content-Length = 682 [04:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.020, "sum" : 1040.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:36]execute_script... [04:03:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.020, "sum" : 1040.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:36]POST & json_proto [04:03:36]process_json_proto [04:03:36]json parsed OK: [04:03:36]protocol is kg_v1.0 [04:03:36]action value=close_receipt [04:03:36]process_action close_receipt [04:03:36]cmd_close_receipt [04:03:36]MH_GetDate [04:03:36]Write to MH i2c: F0 00 00 1D 00 0C [04:03:36]Write i2c OK [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: F0 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: F0 09 00 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: F0 09 00 1D 00 00 98 5B C9 66 4F 53 BE 66 FD [04:03:36]GetLastDocTimeStamp 1724471954 [04:03:36]current date 1724472216 [04:03:36]FM_GetShiftState [04:03:36]SAM_PROTO_GetShiftState [04:03:36]wFMCommunicate request_size=4 [04:03:36]MH_SAM_APDU [04:03:36]CAPDU: 80 13 01 00 [04:03:36]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [04:03:36]Write i2c OK [04:03:36]MH_I2C_Read... [04:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:36]Read from MH i2c: E2 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: E2 0E 00 [04:03:36]MH_I2C_Read... [04:03:36]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [04:03:36]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:03:36]wFMCommunicate OK [04:03:36]SAM_PROTO_GetShiftState done [04:03:36]FM_GetShiftState done [04:03:36]opened in 1724458079 [04:03:36]opened+sec_in_day 1724544479 [04:03:36]quantity*price = 104028 [04:03:36]sum+1 = 104029 [04:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1040.00 Внесено: 1040.00 СДАЧА: 0.00 НСП 1% : 9.21 НДС 12% : 110.47 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 29 24.08.2024 04:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178803 ФПД: 103436567289365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T040336&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178803&fm=103436567289365&tin=02508201610067®Number=0000000000092561&sum=104000 [04:03:38]StoreToDocumentArchive [04:03:38]shift 471 fd 178803 [04:03:38]save to /storage/0471/doc_00178803 [04:03:38]save last doc name /storage/0471/doc_00178803 to /storage/kkm_last_doc_name [04:03:38]save OK [04:03:38]Clear old archive folders... [04:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:03:38]tlvbuf is 008D8DE0 [04:03:38]SAM_PROTO_ClearQueue [04:03:38]wFMCommunicate request_size=4 [04:03:38]MH_SAM_APDU [04:03:38]CAPDU: 80 09 00 00 [04:03:38]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:03:38]RAPDU: 90 00 [04:03:38]wFMCommunicate OK [04:03:38]SAM_PROTO_ClearQueue done [04:03:38]KKMCreateOFDPacket [04:03:38]OFDProtocolAddRootSTLVToBuf [04:03:38]FM_MakeSignedData [04:03:38]FM_MakeSignedData [04:03:38]SAM_PROTO_SignData [04:03:38]wFMCommunicate request_size=4 [04:03:38]MH_SAM_APDU [04:03:38]CAPDU: 80 0D 01 02 [04:03:38]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:03:38]RAPDU: 90 00 [04:03:38]wFMCommunicate OK [04:03:38]wFMCommunicate request_size=255 [04:03:38]MH_SAM_APDU [04:03:38]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 C4 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5C 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 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 98 5B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 73 BA 02 00 35 04 06 00 5E [04:03:38]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5C 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 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 98 5B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 73 BA 02 00 35 04 06 00 5E 00 00 FC [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:03:38]RAPDU: 90 00 [04:03:38]wFMCommunicate OK [04:03:38]wFMCommunicate request_size=10 [04:03:38]MH_SAM_APDU [04:03:38]CAPDU: 80 0D 02 02 05 13 33 D9 9E 15 [04:03:38]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 13 33 D9 9E 15 00 00 84 [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:03:38]RAPDU: 90 00 [04:03:38]wFMCommunicate OK [04:03:38]wFMCommunicate request_size=4 [04:03:38]MH_SAM_APDU [04:03:38]CAPDU: 80 0D 03 02 [04:03:38]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 0B 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 0B 00 2F 00 00 3C FB 49 B7 E4 20 3F C3 90 00 E8 [04:03:38]RAPDU: 3C FB 49 B7 E4 20 3F C3 90 00 [04:03:38]wFMCommunicate OK [04:03:38]SAM_PROTO_SignData done [04:03:38]FM_MakeSignedData done [04:03:38]CreateOFDProtocolMessage [04:03:38]wFMCommunicate request_size=4 [04:03:38]MH_SAM_APDU [04:03:38]CAPDU: 80 11 00 00 [04:03:38]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:38]Read from MH i2c: E2 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: E2 17 00 [04:03:38]MH_I2C_Read... [04:03:38]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 37 37 38 90 00 03 [04:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:03:38]wFMCommunicate OK [04:03:38]CreateOFDProtocolMessage done [04:03:38]OFDSenderStorePacket 178803 [04:03:38]StoreOFDPacket docnum=178803 [04:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 22 A9 07 01 1B 70 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 C4 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5C 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 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 98 5B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 73 BA 02 00 35 04 06 00 5E 13 33 D9 9E 15 3C FB 49 B7 E4 20 3F C3 [04:03:38]CheckFolder [04:03:38]dirname=/storage/ofd_packets [04:03:38]CheckFolder done [04:03:38]ProducePacketName [04:03:38]name=ofd_packets/00178803 [04:03:38]NVStorageSaveData ofd_packets/00178803 [04:03:38]File name is /storage/ofd_packets/00178803 [04:03:38]Write 301 bytes [04:03:38]NVStorageSaveData done [04:03:38]OFDSenderStorePacket done [04:03:38]KKMCreateOFDPacket done [04:03:38]NVStorageSaveData kkm_last_timestamp [04:03:38]File name is /storage/kkm_last_timestamp [04:03:38]Write 4 bytes [04:03:38]NVStorageSaveData done [04:03:38]ExternCall_PrintAddStr [04:03:38]wPrintStart [04:03:38]Write to MH i2c: 01 00 00 31 00 31 [04:03:38]Write i2c OK [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: 01 [04:03:38]MH_I2C_Read... [04:03:38]OFD Sender: Processing packet 178803 [packets to send 500, broken 499] [04:03:38]ProducePacketName [04:03:38]name=ofd_packets/00178803 [04:03:38]OFD Sender: To server: pG, [04:03:38]CommunicateWithHost lk.salyk.kg:30040 [04:03:38]Read from MH i2c: ConnectInit lk.salyk.kg [04:03:38]01 07 00 [04:03:38]MH_I2C_Read... [04:03:38]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:03:38]RasterBufferAndPrint [04:03:38]line Счет N : (1)294952 [04:03:38]line ИНН: 02508201610067 [04:03:38]line Контрольно-Кассовый Чек [04:03:38]line ПРОДАЖА [04:03:38]line ТРК (МРК, ГНК) : 63 [04:03:38]line Товар: 2710124500 [04:03:38]line Аи-95-К-5 [04:03:38]line 14.020 * 74.20 [04:03:38]line = 1040.28 [04:03:38]line НДС 12% НСП 1% [04:03:38]line > о реализуемом товаре [04:03:38]line ОКРУГЛЕНИЕ: -0.28 [04:03:38]line ИТОГО: 1040.00 [04:03:38]line Внесено: 1040.00 [04:03:38]line СДАЧА: 0.00 [04:03:38]line НСП 1% : 9.21 [04:03:38]line НДС 12% : 110.47 [04:03:38]line Наличными: 1040.00 [04:03:38]line Безнал.: 0.00 [04:03:38]line Место: АЗС № 130 "Партнер Нефть" [04:03:38]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:03:38]line СНО: Общий режим [04:03:38]line Чек 29 24.08.2024 04:03 [04:03:38]line Смена: 471 ФФД: 1.0 [04:03:38]line ЗНМ: 0300000071 [04:03:38]line РНМ: 0000000000092561 [04:03:38]line Версия ККМ: 001 [04:03:38]line ФМ: 0000000000871778 [04:03:38]line ФД: 178803 [04:03:38]line ФПД: 103436567289365 [04:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T040336&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178803&fm=103436567289365&tin=02508201610067®Number=0000000000092561&sum=104000 [04:03:38]written 0, free lines is 4095 [04:03:39]Write to MH i2c: 01 00 00 5C 00 5C [04:03:39]Write i2c OK [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: 01 [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: 01 07 00 [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 C9 0C 38 [04:03:39]RasterBufferAndPrint [04:03:39]line [04:03:39]line [04:03:39]line [04:03:39]line [04:03:39]line [04:03:39]written 0, free lines is 3297 [04:03:39]MH_Cut [04:03:39]Write to MH i2c: D1 01 00 63 00 01 35 [04:03:39]Write i2c OK [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: D1 [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: D1 01 00 [04:03:39]MH_I2C_Read... [04:03:39]Read from MH i2c: D1 01 00 63 00 00 34 [04:03:39]Write to MH i2c: 01 00 00 64 00 64 [04:03:39]Write i2c OK [04:03:39]MH_I2C_Read... [04:03:40]*** Cut start [04:03:40]*** Partial cut [04:03:40]*** CUTSNS_PIN = 1 [04:03:40]*** CUTSNS_PIN = 0 [04:03:40]*** Brake cut motor [04:03:40]Read from MH i2c: 01 *** Stop cut motor [04:03:40] [04:03:40]*** Cut end [04:03:40]MH_I2C_Read... [04:03:40]Read from MH i2c: 01 07 00 [04:03:40]MH_I2C_Read... [04:03:40]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [04:03:40]process_action close_receipt done [04:03:40]requested_data is exist [04:03:40]produce_requested_data [04:03:40]requested_item fm.sn is exist - process it [04:03:40]wFMCommunicate request_size=4 [04:03:40]MH_SAM_APDU [04:03:40]CAPDU: 80 11 00 00 [04:03:40]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [04:03:40]Write i2c OK [04:03:40]MH_I2C_Read... [04:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:40]Read from MH i2c: E2 [04:03:40]MH_I2C_Read... [04:03:40]Read from MH i2c: E2 17 00 [04:03:40]MH_I2C_Read... [04:03:40]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 37 37 38 90 00 38 [04:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:03:40]wFMCommunicate OK [04:03:40]requested_item fd.num is exist - process it [04:03:40]SAM_PROTO_GetFieldsCounters [04:03:40]wFMCommunicate request_size=4 [04:03:40]MH_SAM_APDU [04:03:40]CAPDU: 80 13 00 00 [04:03:40]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [04:03:40]Write i2c OK [04:03:40]MH_I2C_Read... [04:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:03:40]Read from MH i2c: E2 [04:03:40]MH_I2C_Read... [04:03:40]Read from MH i2c: E2 62 00 [04:03:41]MH_I2C_Read... [04:03:41]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 73 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [04:03: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 73 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:03:41]wFMCommunicate OK [04:03:41]SAM_PROTO_GetFieldsCounters done [04:03:41]requested_item shift.num is exist - process it [04:03:41]requested_item shift.opened is exist - process it [04:03:41]req_shift_opened [04:03:41]FM_GetShiftState [04:03:41]SAM_PROTO_GetShiftState [04:03:41]wFMCommunicate request_size=4 [04:03:41]MH_SAM_APDU [04:03:41]CAPDU: 80 13 01 00 [04:03:41]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [04:03:41]Write i2c OK [04:03:41]MH_I2C_Read... [04:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:41]Read from MH i2c: E2 [04:03:41]MH_I2C_Read... [04:03:41]Read from MH i2c: E2 0E 00 [04:03:41]MH_I2C_Read... [04:03:41]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A2 [04:03:41]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:03:41]wFMCommunicate OK [04:03:41]SAM_PROTO_GetShiftState done [04:03:41]FM_GetShiftState done [04:03:41]req_shift_opened done [04:03:41]requested_item shift.open_date is exist - process it [04:03:41]req_shift_open_date [04:03:41]req_shift_open_date done [04:03:41]produce_requested_data done [04:03:41]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178803,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:03:41]process_action_free close_receipt [04:03:41]json_value_free [04:03:41]json_value_free done [04:03:41]process_json_proto returns [04:03:41]Send response to host [04:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178803,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:03:41]free response buf [04:03:41]execute_script done [04:03:41]execute_script returns [04:03:41]free content buf [04:03:41]Sock 9.Close socket [04:03:41]Sock 9.Thread stoped [04:03:45]recv_with_timeout no data received [04:03:54]Connected sock=11 [04:03: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 37 37 38 0F 01 00 00 22 A9 07 01 1B 70 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 C4 36 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5C 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 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 98 5B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 73 BA 02 00 35 04 06 00 5E 13 33 D9 9E 15 3C FB 49 B7 E4 20 3F C3 [04:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 98 85 47 00 87 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 73 BA 02 00 F4 03 04 00 51 07 C9 66 B6 04 01 00 00 8B 4C 78 46 EF 1A 5C 08 [04:03:57]CommunicateWithHost err = 0 [04:03:57]CheckOFDResponse [04:03:57]1017 (14) - 77093643461234 [04:03:57]1041 (16) - 0000000000871778 [04:03:57]1040 (4) - 178803 [04:03:57]1012 (4) - 23.08.2024 22:04 [04:03:57]1206 (1) - 0 [04:03:57]OFD Sender: Remove packet 178803 [04:03:57]ProducePacketName [04:03:57]name=ofd_packets/00178803 [04:03:57]NVStorageDeleteData [04:03:57]OFD Sender: No OFD packet to send [04:04:00]recv_with_timeout no data received [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:18]recv_with_timeout no data received [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:33]recv_with_timeout no data received [04:04:37]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:50]recv_with_timeout no data received [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:05]recv_with_timeout no data received [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:20]recv_with_timeout no data received [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:35]recv_with_timeout no data received [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:46]recv_with_timeout no data received [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:14]accept exits with 10 [04:07:14]New connection [04:07:14]New thread 3067428196 created [04:07:14]Thread 3067571556 joined [04:07:14]Waiting for new connection... [04:07:14] Sock 10.Parse request [04:07:14]Sock 10.Check first char [04:07:14]Sock 10.First char is OK [04:07:14]request: POST /json_proto HTTP/1.0 [04:07:14]Method: POST [04:07:14]URL: /json_proto [04:07:14]Method is POST - this is cgi request [04:07:14]url: /json_proto [04:07:14]query_string will be loaded in cgi processing [04:07:14]execute_cgi json_proto POST (null) [04:07:14]execute_cgi path=json_proto method=POST [04:07:14]POST find Content-Length [04:07:14]Host: 172.17.44.131:8080 [04:07:14]Content-Length: 678 [04:07:14]Content-Type: application/json [04:07:14] [04:07:14]POST finish read [04:07:14]Found Content-Length = 678 [04:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:14]execute_script... [04:07: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)294954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.380, "sum" : 770.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:14]POST & json_proto [04:07:14]process_json_proto [04:07:14]json parsed OK: [04:07:14]protocol is kg_v1.0 [04:07:14]action value=close_receipt [04:07:14]process_action close_receipt [04:07:14]cmd_close_receipt [04:07:14]MH_GetDate [04:07:14]Write to MH i2c: F0 00 00 68 00 57 [04:07:14]Write i2c OK [04:07:14]MH_I2C_Read... [04:07:14]Read from MH i2c: F0 [04:07:14]MH_I2C_Read... [04:07:14]Read from MH i2c: F0 09 00 [04:07:14]MH_I2C_Read... [04:07:14]Read from MH i2c: F0 09 00 68 00 00 72 5C C9 66 4F 53 BE 66 23 [04:07:14]GetLastDocTimeStamp 1724472216 [04:07:14]current date 1724472434 [04:07:14]FM_GetShiftState [04:07:14]SAM_PROTO_GetShiftState [04:07:14]wFMCommunicate request_size=4 [04:07:14]MH_SAM_APDU [04:07:14]CAPDU: 80 13 01 00 [04:07:14]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [04:07:14]Write i2c OK [04:07:14]MH_I2C_Read... [04:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:14]Read from MH i2c: E2 [04:07:14]MH_I2C_Read... [04:07:14]Read from MH i2c: E2 0E 00 [04:07:14]MH_I2C_Read... [04:07:14]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [04:07:14]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:07:14]wFMCommunicate OK [04:07:14]SAM_PROTO_GetShiftState done [04:07:14]FM_GetShiftState done [04:07:14]opened in 1724458079 [04:07:14]opened+sec_in_day 1724544479 [04:07:14]quantity*price = 77019 [04:07:14]sum+1 = 77021 [04:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.79 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 30 24.08.2024 04:07 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178804 ФПД: 156243641754586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T040714&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178804&fm=156243641754586&tin=02508201610067®Number=0000000000092561&sum=77000 [04:07:15]StoreToDocumentArchive [04:07:15]shift 471 fd 178804 [04:07:15]save to /storage/0471/doc_00178804 [04:07:15]save last doc name /storage/0471/doc_00178804 to /storage/kkm_last_doc_name [04:07:15]save OK [04:07:15]Clear old archive folders... [04:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:07:15]tlvbuf is 008CC140 [04:07:15]SAM_PROTO_ClearQueue [04:07:15]wFMCommunicate request_size=4 [04:07:15]MH_SAM_APDU [04:07:15]CAPDU: 80 09 00 00 [04:07:15]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [04:07:15]Write i2c OK [04:07:15]MH_I2C_Read... [04:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:07:15]Read from MH i2c: E2 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:07:15]RAPDU: 90 00 [04:07:15]wFMCommunicate OK [04:07:15]SAM_PROTO_ClearQueue done [04:07:15]KKMCreateOFDPacket [04:07:15]OFDProtocolAddRootSTLVToBuf [04:07:15]FM_MakeSignedData [04:07:15]FM_MakeSignedData [04:07:15]SAM_PROTO_SignData [04:07:15]wFMCommunicate request_size=4 [04:07:15]MH_SAM_APDU [04:07:15]CAPDU: 80 0D 01 02 [04:07:15]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [04:07:15]Write i2c OK [04:07:15]MH_I2C_Read... [04:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:07:15]Read from MH i2c: E2 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [04:07:15]RAPDU: 90 00 [04:07:15]wFMCommunicate OK [04:07:15]wFMCommunicate request_size=255 [04:07:15]MH_SAM_APDU [04:07:15]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 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 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 72 5C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 74 BA 02 00 35 04 06 00 8E [04:07:15]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 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 72 5C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 74 BA 02 00 35 04 06 00 8E 00 00 30 [04:07:15]Write i2c OK [04:07:15]MH_I2C_Read... [04:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:15]Read from MH i2c: E2 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [04:07:15]RAPDU: 90 00 [04:07:15]wFMCommunicate OK [04:07:15]wFMCommunicate request_size=10 [04:07:15]MH_SAM_APDU [04:07:15]CAPDU: 80 0D 02 02 05 1A 4E C3 E3 DA [04:07:15]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 1A 4E C3 E3 DA 00 00 E5 [04:07:15]Write i2c OK [04:07:15]MH_I2C_Read... [04:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:15]Read from MH i2c: E2 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 [04:07:15]MH_I2C_Read... [04:07:15]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [04:07:15]RAPDU: 90 00 [04:07:15]wFMCommunicate OK [04:07:15]wFMCommunicate request_size=4 [04:07:15]MH_SAM_APDU [04:07:15]CAPDU: 80 0D 03 02 [04:07:15]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [04:07:15]Write i2c OK [04:07:15]MH_I2C_Read... [04:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:07:16]Read from MH i2c: E2 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: E2 0B 00 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: E2 0B 00 7A 00 00 FB F4 75 09 1F E9 8E BF 90 00 B8 [04:07:16]RAPDU: FB F4 75 09 1F E9 8E BF 90 00 [04:07:16]wFMCommunicate OK [04:07:16]SAM_PROTO_SignData done [04:07:16]FM_MakeSignedData done [04:07:16]CreateOFDProtocolMessage [04:07:16]wFMCommunicate request_size=4 [04:07:16]MH_SAM_APDU [04:07:16]CAPDU: 80 11 00 00 [04:07:16]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [04:07:16]Write i2c OK [04:07:16]MH_I2C_Read... [04:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:16]Read from MH i2c: E2 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: E2 17 00 [04:07:16]MH_I2C_Read... [04:07:16]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 37 37 38 90 00 4E [04:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:07:16]wFMCommunicate OK [04:07:16]CreateOFDProtocolMessage done [04:07:16]OFDSenderStorePacket 178804 [04:07:16]StoreOFDPacket docnum=178804 [04:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D6 38 07 01 BE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 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 72 5C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 74 BA 02 00 35 04 06 00 8E 1A 4E C3 E3 DA FB F4 75 09 1F E9 8E BF [04:07:16]CheckFolder [04:07:16]dirname=/storage/ofd_packets [04:07:16]CheckFolder done [04:07:16]ProducePacketName [04:07:16]name=ofd_packets/00178804 [04:07:16]NVStorageSaveData ofd_packets/00178804 [04:07:16]File name is /storage/ofd_packets/00178804 [04:07:16]Write 301 bytes [04:07:16]NVStorageSaveData done [04:07:16]OFDSenderStorePacket done [04:07:16]KKMCreateOFDPacket done [04:07:16]NVStorageSaveData kkm_last_timestamp [04:07:16]File name is /storage/kkm_last_timestamp [04:07:16]Write 4 bytes [04:07:16]NVStorageSaveData done [04:07:16]ExternCall_PrintAddStr [04:07:16]wPrintStart [04:07:16]Write to MH i2c: 01 00 00 7C 00 7C [04:07:16]Write i2c OK [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 07 00 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [04:07:16]RasterBufferAndPrint [04:07:16]line Счет N : (1)294954 [04:07:16]line ИНН: 02508201610067 [04:07:16]line Контрольно-Кассовый Чек [04:07:16]line ПРОДАЖА [04:07:16]line ТРК (МРК, ГНК) : 43 [04:07:16]line Товар: 2710124500 [04:07:16]line Аи-95-К-5 [04:07:16]line 10.380 * 74.20 [04:07:16]line = 770.20 [04:07:16]line НДС 12% НСП 1% [04:07:16]line > о реализуемом товаре [04:07:16]line ОКРУГЛЕНИЕ: -0.20 [04:07:16]line ИТОГО: 770.00 [04:07:16]line Внесено: 770.00 [04:07:16]line СДАЧА: 0.00 [04:07:16]line НСП 1% : 6.82 [04:07:16]line НДС 12% : 81.79 [04:07:16]line Наличными: 770.00 [04:07:16]line Безнал.: 0.00 [04:07:16]line Место: АЗС № 130 "Партнер Нефть" [04:07:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:07:16]line СНО: Общий режим [04:07:16]line Чек 30 24.08.2024 04:07 [04:07:16]line Смена: 471 ФФД: 1.0 [04:07:16]line ЗНМ: 0300000071 [04:07:16]line РНМ: 0000000000092561 [04:07:16]line Версия ККМ: 001 [04:07:16]line ФМ: 0000000000871778 [04:07:16]line ФД: 178804 [04:07:16]line ФПД: 156243641754586 [04:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T040714&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178804&fm=156243641754586&tin=02508201610067®Number=0000000000092561&sum=77000 [04:07:16]written 0, free lines is 4095 [04:07:16]OFD Sender: Processing packet 178804 [packets to send 500, broken 499] [04:07:16]ProducePacketName [04:07:16]name=ofd_packets/00178804 [04:07:16]OFD Sender: To server: pG, [04:07:16]CommunicateWithHost lk.salyk.kg:30040 [04:07:16]ConnectInit lk.salyk.kg [04:07:16]Write to MH i2c: 01 00 00 A7 00 A7 [04:07:16]Write i2c OK [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 07 00 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 C3 0C 7D [04:07:16]RasterBufferAndPrint [04:07:16]line [04:07:16]line [04:07:16]line [04:07:16]line [04:07:16]line [04:07:16]written 0, free lines is 3273 [04:07:16]MH_Cut [04:07:16]Write to MH i2c: D1 01 00 AE 00 01 80 [04:07:16]Write i2c OK [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: D1 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: D1 01 00 [04:07:16]MH_I2C_Read... [04:07:16]Read from MH i2c: D1 01 00 AE 00 00 7F [04:07:16]Write to MH i2c: 01 00 00 AF 00 AF [04:07:16]Write i2c OK [04:07:16]MH_I2C_Read... [04:07:17]*** Cut start [04:07:17]*** Partial cut [04:07:17]*** CUTSNS_PIN = 1 [04:07:17]*** CUTSNS_PIN = 0 [04:07:17]*** Brake cut motor [04:07:17]Read from MH i2c: 01 [04:07:17]MH_I2C_Read... [04:07:17]*** Stop cut motor [04:07:17]*** Cut end [04:07:17]Read from MH i2c: 01 07 00 [04:07:17]MH_I2C_Read... [04:07:17]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [04:07:17]process_action close_receipt done [04:07:17]requested_data is exist [04:07:17]produce_requested_data [04:07:17]requested_item fm.sn is exist - process it [04:07:17]wFMCommunicate request_size=4 [04:07:17]MH_SAM_APDU [04:07:17]CAPDU: 80 11 00 00 [04:07:17]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [04:07:17]Write i2c OK [04:07:17]MH_I2C_Read... [04:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:17]Read from MH i2c: E2 [04:07:17]MH_I2C_Read... [04:07:17]Read from MH i2c: E2 17 00 [04:07:17]MH_I2C_Read... [04:07:17]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 37 37 38 90 00 83 [04:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:07:17]wFMCommunicate OK [04:07:17]requested_item fd.num is exist - process it [04:07:17]SAM_PROTO_GetFieldsCounters [04:07:17]wFMCommunicate request_size=4 [04:07:17]MH_SAM_APDU [04:07:17]CAPDU: 80 13 00 00 [04:07:17]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [04:07:17]Write i2c OK [04:07:17]MH_I2C_Read... [04:07:18]Connected sock=7 [04:07: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 37 37 38 0F 01 00 00 D6 38 07 01 BE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 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 72 5C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 74 BA 02 00 35 04 06 00 8E 1A 4E C3 E3 DA FB F4 75 09 1F E9 8E BF [04:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:07:18]Read from MH i2c: E2 [04:07:18]MH_I2C_Read... [04:07:18]Read from MH i2c: E2 62 00 [04:07:18]MH_I2C_Read... [04:07:18]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 74 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [04:07: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 74 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:07:18]wFMCommunicate OK [04:07:18]SAM_PROTO_GetFieldsCounters done [04:07:18]requested_item shift.num is exist - process it [04:07:18]requested_item shift.opened is exist - process it [04:07:18]req_shift_opened [04:07:18]FM_GetShiftState [04:07:18]SAM_PROTO_GetShiftState [04:07:18]wFMCommunicate request_size=4 [04:07:18]MH_SAM_APDU [04:07:18]CAPDU: 80 13 01 00 [04:07:18]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [04:07:18]Write i2c OK [04:07:18]MH_I2C_Read... [04:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:18]Read from MH i2c: E2 [04:07:18]MH_I2C_Read... [04:07:18]Read from MH i2c: E2 0E 00 [04:07:18]MH_I2C_Read... [04:07:18]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [04:07:18]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:07:18]wFMCommunicate OK [04:07:18]SAM_PROTO_GetShiftState done [04:07:18]FM_GetShiftState done [04:07:18]req_shift_opened done [04:07:18]requested_item shift.open_date is exist - process it [04:07:18]req_shift_open_date [04:07:18]req_shift_open_date done [04:07:18]produce_requested_data done [04:07:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178804,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:07:18]process_action_free close_receipt [04:07:18]json_value_free [04:07:18]json_value_free done [04:07:18]process_json_proto returns [04:07:18]Send response to host [04:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178804,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:07:18]free response buf [04:07:18]execute_script done [04:07:18]execute_script returns [04:07:18]free content buf [04:07:18]Sock 10.Close socket [04:07:18]Sock 10.Thread stoped [04:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CB 70 47 00 46 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 74 BA 02 00 F4 03 04 00 1A 08 C9 66 B6 04 01 00 00 45 1D 5E 49 7E 12 A9 51 [04:07:18]CommunicateWithHost err = 0 [04:07:18]CheckOFDResponse [04:07:18]1017 (14) - 77093643461234 [04:07:18]1041 (16) - 0000000000871778 [04:07:18]1040 (4) - 178804 [04:07:18]1012 (4) - 23.08.2024 22:07 [04:07:18]1206 (1) - 0 [04:07:18]OFD Sender: Remove packet 178804 [04:07:18]ProducePacketName [04:07:18]name=ofd_packets/00178804 [04:07:18]NVStorageDeleteData [04:07:18]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:17]recv_with_timeout no data received [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:50]recv_with_timeout no data received [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]accept exits with 9 [04:13:24]New connection [04:13:24]New thread 3067571556 created [04:13:24]Thread 3067428196 joined [04:13:24]Waiting for new connection... [04:13:24] Sock 9.Parse request [04:13:24]Sock 9.Check first char [04:13:24]Sock 9.First char is OK [04:13:24]request: POST /json_proto HTTP/1.0 [04:13:24]Method: POST [04:13:24]URL: /json_proto [04:13:24]Method is POST - this is cgi request [04:13:24]url: /json_proto [04:13:24]query_string will be loaded in cgi processing [04:13:24]execute_cgi json_proto POST (null) [04:13:24]execute_cgi path=json_proto method=POST [04:13:24]POST find Content-Length [04:13:24]Host: 172.17.44.131:8080 [04:13:24]Content-Length: 685 [04:13:24]Content-Type: application/json [04:13:24] [04:13:24]POST finish read [04:13:24]Found Content-Length = 685 [04:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 53.480, "sum" : 2000.15, "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" ] } } [04:13:24]execute_script... [04:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 53.480, "sum" : 2000.15, "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" ] } } [04:13:24]POST & json_proto [04:13:24]process_json_proto [04:13:24]json parsed OK: [04:13:24]protocol is kg_v1.0 [04:13:24]action value=close_receipt [04:13:24]process_action close_receipt [04:13:24]cmd_close_receipt [04:13:24]MH_GetDate [04:13:24]Write to MH i2c: F0 00 00 B3 00 A2 [04:13:24]Write i2c OK [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 09 00 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 09 00 B3 00 00 E4 5D C9 66 4F 53 BE 66 E1 [04:13:24]GetLastDocTimeStamp 1724472434 [04:13:24]current date 1724472804 [04:13:24]FM_GetShiftState [04:13:24]SAM_PROTO_GetShiftState [04:13:24]wFMCommunicate request_size=4 [04:13:24]MH_SAM_APDU [04:13:24]CAPDU: 80 13 01 00 [04:13:24]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [04:13:24]Write i2c OK [04:13:24]MH_I2C_Read... [04:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:24]Read from MH i2c: E2 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: E2 0E 00 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EF [04:13:24]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:13:24]wFMCommunicate OK [04:13:24]SAM_PROTO_GetShiftState done [04:13:24]FM_GetShiftState done [04:13:24]opened in 1724458079 [04:13:24]opened+sec_in_day 1724544479 [04:13:24]quantity*price = 200015 [04:13:24]sum+1 = 200016 [04:13:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 31 24.08.2024 04:13 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178805 ФПД: 116154602875049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T041324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178805&fm=116154602875049&tin=02508201610067®Number=0000000000092561&sum=200000 [04:13:25]StoreToDocumentArchive [04:13:25]shift 471 fd 178805 [04:13:25]save to /storage/0471/doc_00178805 [04:13:25]save last doc name /storage/0471/doc_00178805 to /storage/kkm_last_doc_name [04:13:25]save OK [04:13:25]Clear old archive folders... [04:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:13:25]tlvbuf is 00908480 [04:13:25]SAM_PROTO_ClearQueue [04:13:25]wFMCommunicate request_size=4 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 09 00 00 [04:13:25]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:13:25]Read from MH i2c: E2 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [04:13:25]RAPDU: 90 00 [04:13:25]wFMCommunicate OK [04:13:25]SAM_PROTO_ClearQueue done [04:13:25]KKMCreateOFDPacket [04:13:25]OFDProtocolAddRootSTLVToBuf [04:13:25]FM_MakeSignedData [04:13:25]FM_MakeSignedData [04:13:25]SAM_PROTO_SignData [04:13:25]wFMCommunicate request_size=4 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 0D 01 02 [04:13:25]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:13:25]Read from MH i2c: E2 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [04:13:25]RAPDU: 90 00 [04:13:25]wFMCommunicate OK [04:13:25]wFMCommunicate request_size=255 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 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 F8 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 1F 00 00 00 F4 03 04 00 E4 5D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 75 BA 02 00 35 04 06 00 69 A4 [04:13:25]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 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 F8 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 1F 00 00 00 F4 03 04 00 E4 5D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 75 BA 02 00 35 04 06 00 69 A4 00 00 39 [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]wFMCommunicate request_size=9 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 02 02 04 59 D7 E8 A9 [04:13:26]Write to MH i2c: E2 0C 00 C4 00 80 0D 02 02 04 00 59 D7 E8 A9 00 00 07 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 03 02 [04:13:26]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 0B 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 0B 00 C5 00 00 23 9F 55 4E F6 F2 3E C1 90 00 8D [04:13:26]RAPDU: 23 9F 55 4E F6 F2 3E C1 90 00 [04:13:26]wFMCommunicate OK [04:13:26]SAM_PROTO_SignData done [04:13:26]FM_MakeSignedData done [04:13:26]CreateOFDProtocolMessage [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 11 00 00 [04:13:26]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 17 00 [04:13:26]MH_I2C_Read... [04:13:26]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 37 37 38 90 00 99 [04:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:13:26]wFMCommunicate OK [04:13:26]CreateOFDProtocolMessage done [04:13:26]OFDSenderStorePacket 178805 [04:13:26]StoreOFDPacket docnum=178805 [04:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 AB B7 06 01 78 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 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 F8 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 1F 00 00 00 F4 03 04 00 E4 5D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 75 BA 02 00 35 04 06 00 69 A4 59 D7 E8 A9 23 9F 55 4E F6 F2 3E C1 [04:13:26]CheckFolder [04:13:26]dirname=/storage/ofd_packets [04:13:26]CheckFolder done [04:13:26]ProducePacketName [04:13:26]name=ofd_packets/00178805 [04:13:26]NVStorageSaveData ofd_packets/00178805 [04:13:26]File name is /storage/ofd_packets/00178805 [04:13:26]Write 300 bytes [04:13:26]NVStorageSaveData done [04:13:26]OFDSenderStorePacket done [04:13:26]KKMCreateOFDPacket done [04:13:26]NVStorageSaveData kkm_last_timestamp [04:13:26]File name is /storage/kkm_last_timestamp [04:13:26]Write 4 bytes [04:13:26]NVStorageSaveData done [04:13:26]ExternCall_PrintAddStr [04:13:26]wPrintStart [04:13:26]Write to MH i2c: 01 00 00 C7 00 C7 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 07 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [04:13:26]RasterBufferAndPrint [04:13:26]line Счет N : (1)294953 [04:13:26]line ИНН: 02508201610067 [04:13:26]line Контрольно-Кассовый Чек [04:13:26]line ПРОДАЖА [04:13:26]line ТРК (МРК, ГНК) : 81 [04:13:26]line Товар: 2711129700 [04:13:26]line ГАЗ-К-5 [04:13:26]line 53.480 * 37.40 [04:13:26]line = 2000.15 [04:13:26]line НДС 12% НСП 1% [04:13:26]line > о реализуемом товаре [04:13:26]line ОКРУГЛЕНИЕ: -0.15 [04:13:26]line ИТОГО: 2000.00 [04:13:26]line Внесено: 2000.00 [04:13:26]line СДАЧА: 0.00 [04:13:26]line НСП 1% : 17.70 [04:13:26]line НДС 12% : 212.40 [04:13:26]line Наличными: 2000.00 [04:13:26]line Безнал.: 0.00 [04:13:26]line Место: АЗС № 130 "Партнер Нефть" [04:13:26]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:13:26]line СНО: Общий режим [04:13:26]line Чек 31 24.08.2024 04:13 [04:13:26]line Смена: 471 ФФД: 1.0 [04:13:26]line ЗНМ: 0300000071 [04:13:26]line РНМ: 0000000000092561 [04:13:26]line Версия ККМ: 001 [04:13:26]line ФМ: 0000000000871778 [04:13:26]line ФД: 178805 [04:13:26]line ФПД: 116154602875049 [04:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T041324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178805&fm=116154602875049&tin=02508201610067®Number=0000000000092561&sum=200000 [04:13:26]written 0, free lines is 4095 [04:13:26]OFD Sender: Processing packet 178805 [packets to send 500, broken 499] [04:13:26]ProducePacketName [04:13:26]name=ofd_packets/00178805 [04:13:26]OFD Sender: To server: pG, [04:13:26]CommunicateWithHost lk.salyk.kg:30040 [04:13:26]ConnectInit lk.salyk.kg [04:13:26]Write to MH i2c: 01 00 00 F2 00 F2 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 07 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 C3 0C C8 [04:13:26]RasterBufferAndPrint [04:13:26]line [04:13:26]line [04:13:26]line [04:13:26]line [04:13:26]line [04:13:26]written 0, free lines is 3273 [04:13:26]MH_Cut [04:13:26]Write to MH i2c: D1 01 00 F9 00 01 CB [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: D1 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: D1 01 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: D1 01 00 F9 00 00 CA [04:13:26]Write to MH i2c: 01 00 00 FA 00 FA [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]Connected sock=10 [04:13: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 37 37 38 0E 01 00 00 AB B7 06 01 78 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 D0 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 4F 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 F8 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 1F 00 00 00 F4 03 04 00 E4 5D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 75 BA 02 00 35 04 06 00 69 A4 59 D7 E8 A9 23 9F 55 4E F6 F2 3E C1 [04:13:27]*** Cut start [04:13:27]*** Partial cut [04:13:27]*** CUTSNS_PIN = 1 [04:13:27]*** CUTSNS_PIN = 0 [04:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 29 C8 47 00 68 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 37 37 38 10 04 04 00 75 BA 02 00 F4 03 04 00 8B 09 C9 66 B6 04 01 00 00 C9 C3 09 85 77 55 3B 51 [04:13:27]CommunicateWithHost err = 0 [04:13:27]CheckOFDResponse [04:13:27]1017 (14) - 77093643461234 [04:13:27]1041 (16) - 0000000000871778 [04:13:27]1040 (4) - 178805 [04:13:27]1012 (4) - 23.08.2024 22:13 [04:13:27]1206 (1) - 0 [04:13:27]OFD Sender: Remove packet 178805 [04:13:27]ProducePacketName [04:13:27]name=ofd_packets/00178805 [04:13:27]NVStorageDeleteData [04:13:27]*** Brake cut motor [04:13:28]Read from MH i2c: 01 [04:13:28]MH_I2C_Read... [04:13:28]*** Stop cut motor [04:13:28]*** Cut end [04:13:28]Read from MH i2c: 01 07 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [04:13:28]process_action close_receipt done [04:13:28]requested_data is exist [04:13:28]produce_requested_data [04:13:28]requested_item fm.sn is exist - process it [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 11 00 00 [04:13:28]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 17 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [04:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:13:28]wFMCommunicate OK [04:13:28]requested_item fd.num is exist - process it [04:13:28]SAM_PROTO_GetFieldsCounters [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 13 00 00 [04:13:28]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]OFD Sender: No OFD packet to send [04:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 62 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 62 00 FC 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 75 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [04:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 75 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:13:28]wFMCommunicate OK [04:13:28]SAM_PROTO_GetFieldsCounters done [04:13:28]requested_item shift.num is exist - process it [04:13:28]requested_item shift.opened is exist - process it [04:13:28]req_shift_opened [04:13:28]FM_GetShiftState [04:13:28]SAM_PROTO_GetShiftState [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 13 01 00 [04:13:28]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 0E 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 38 [04:13:28]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:13:28]wFMCommunicate OK [04:13:28]SAM_PROTO_GetShiftState done [04:13:28]FM_GetShiftState done [04:13:28]req_shift_opened done [04:13:28]requested_item shift.open_date is exist - process it [04:13:28]req_shift_open_date [04:13:28]req_shift_open_date done [04:13:28]produce_requested_data done [04:13:28]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178805,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:13:28]process_action_free close_receipt [04:13:28]json_value_free [04:13:28]json_value_free done [04:13:28]process_json_proto returns [04:13:28]Send response to host [04:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178805,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:13:28]free response buf [04:13:28]execute_script done [04:13:28]execute_script returns [04:13:28]free content buf [04:13:28]Sock 9.Close socket [04:13:28]Sock 9.Thread stoped [04:13:33]OFD Sender: No OFD packet to send [04:13:33]recv_with_timeout no data received [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:49]recv_with_timeout no data received [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:17]recv_with_timeout no data received [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:52]recv_with_timeout no data received [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:27]recv_with_timeout no data received [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:41]recv_with_timeout no data received [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:41]accept exits with 7 [04:23:41]New connection [04:23:41]New thread 3067428196 created [04:23:41]Thread 3067571556 joined [04:23:41]Waiting for new connection... [04:23:41] Sock 7.Parse request [04:23:41]Sock 7.Check first char [04:23:41]Sock 7.First char is OK [04:23:41]request: POST /json_proto HTTP/1.0 [04:23:41]Method: POST [04:23:41]URL: /json_proto [04:23:41]Method is POST - this is cgi request [04:23:41]url: /json_proto [04:23:41]query_string will be loaded in cgi processing [04:23:41]execute_cgi json_proto POST (null) [04:23:41]execute_cgi path=json_proto method=POST [04:23:41]POST find Content-Length [04:23:41]Host: 172.17.44.131:8080 [04:23:41]Content-Length: 679 [04:23:41]Content-Type: application/json [04:23:41] [04:23:41]POST finish read [04:23:41]Found Content-Length = 679 [04:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [04:23:41]execute_script... [04:23: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)294955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [04:23:41]POST & json_proto [04:23:41]process_json_proto [04:23:41]json parsed OK: [04:23:41]protocol is kg_v1.0 [04:23:41]action value=close_receipt [04:23:41]process_action close_receipt [04:23:41]cmd_close_receipt [04:23:41]MH_GetDate [04:23:41]Write to MH i2c: F0 00 00 FE 00 ED [04:23:41]Write i2c OK [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: F0 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: F0 09 00 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: F0 09 00 FE 00 00 4E 60 C9 66 4F 53 BE 66 99 [04:23:41]GetLastDocTimeStamp 1724472804 [04:23:41]current date 1724473422 [04:23:41]FM_GetShiftState [04:23:41]SAM_PROTO_GetShiftState [04:23:41]wFMCommunicate request_size=4 [04:23:41]MH_SAM_APDU [04:23:41]CAPDU: 80 13 01 00 [04:23:41]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [04:23:41]Write i2c OK [04:23:41]MH_I2C_Read... [04:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:41]Read from MH i2c: E2 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: E2 0E 00 [04:23:41]MH_I2C_Read... [04:23:41]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 3A [04:23:41]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:23:41]wFMCommunicate OK [04:23:41]SAM_PROTO_GetShiftState done [04:23:41]FM_GetShiftState done [04:23:41]opened in 1724458079 [04:23:41]opened+sec_in_day 1724544479 [04:23:41]quantity*price = 200025 [04:23:41]sum+1 = 200026 [04:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 32 24.08.2024 04:23 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178806 ФПД: 57020665731619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T042342&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178806&fm=57020665731619&tin=02508201610067®Number=0000000000092561&sum=200000 [04:23:43]StoreToDocumentArchive [04:23:43]shift 471 fd 178806 [04:23:43]save to /storage/0471/doc_00178806 [04:23:43]save last doc name /storage/0471/doc_00178806 to /storage/kkm_last_doc_name [04:23:43]save OK [04:23:43]Clear old archive folders... [04:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:23:43]tlvbuf is 0086D8C0 [04:23:43]SAM_PROTO_ClearQueue [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 09 00 00 [04:23:43]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_ClearQueue done [04:23:43]KKMCreateOFDPacket [04:23:43]OFDProtocolAddRootSTLVToBuf [04:23:43]FM_MakeSignedData [04:23:43]FM_MakeSignedData [04:23:43]SAM_PROTO_SignData [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 0D 01 02 [04:23:43]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]wFMCommunicate request_size=255 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 20 00 00 00 F4 03 04 00 4E 60 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 76 BA 02 00 35 04 06 00 33 DC 28 86 [04:23:43]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 20 00 00 00 F4 03 04 00 4E 60 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 76 BA 02 00 35 04 06 00 33 DC 28 86 00 00 C7 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]wFMCommunicate request_size=7 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 0D 02 02 02 9A 23 [04:23:43]Write to MH i2c: E2 0A 00 0F 01 80 0D 02 02 02 00 9A 23 00 00 4B [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [04:23:43]RAPDU: 90 00 [04:23:43]wFMCommunicate OK [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 0D 03 02 [04:23:43]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0B 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 0B 00 10 01 00 9C 7A 8D AA 8E B9 3F C7 90 00 27 [04:23:43]RAPDU: 9C 7A 8D AA 8E B9 3F C7 90 00 [04:23:43]wFMCommunicate OK [04:23:43]SAM_PROTO_SignData done [04:23:43]FM_MakeSignedData done [04:23:43]CreateOFDProtocolMessage [04:23:43]wFMCommunicate request_size=4 [04:23:43]MH_SAM_APDU [04:23:43]CAPDU: 80 11 00 00 [04:23:43]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:43]Read from MH i2c: E2 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 17 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [04:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:23:43]wFMCommunicate OK [04:23:43]CreateOFDProtocolMessage done [04:23:43]OFDSenderStorePacket 178806 [04:23:43]StoreOFDPacket docnum=178806 [04:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 22 42 04 01 15 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 20 00 00 00 F4 03 04 00 4E 60 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 76 BA 02 00 35 04 06 00 33 DC 28 86 9A 23 9C 7A 8D AA 8E B9 3F C7 [04:23:43]CheckFolder [04:23:43]dirname=/storage/ofd_packets [04:23:43]CheckFolder done [04:23:43]ProducePacketName [04:23:43]name=ofd_packets/00178806 [04:23:43]NVStorageSaveData ofd_packets/00178806 [04:23:43]File name is /storage/ofd_packets/00178806 [04:23:43]Write 298 bytes [04:23:43]NVStorageSaveData done [04:23:43]OFDSenderStorePacket done [04:23:43]KKMCreateOFDPacket done [04:23:43]NVStorageSaveData kkm_last_timestamp [04:23:43]File name is /storage/kkm_last_timestamp [04:23:43]Write 4 bytes [04:23:43]NVStorageSaveData done [04:23:43]ExternCall_PrintAddStr [04:23:43]wPrintStart [04:23:43]Write to MH i2c: 01 00 00 12 01 13 [04:23:43]Write i2c OK [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: 01 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: 01 07 00 [04:23:43]MH_I2C_Read... [04:23:43]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [04:23:43]RasterBufferAndPrint [04:23:43]line Счет N : (1)294955 [04:23:43]line ИНН: 02508201610067 [04:23:43]line Контрольно-Кассовый Чек [04:23:43]line ПРОДАЖА [04:23:43]line ТРК (МРК, ГНК) : 21 [04:23:43]line Товар: 2710194800 [04:23:43]line ДТ-К-5 [04:23:43]line 26.250 * 76.20 [04:23:43]line = 2000.25 [04:23:43]line НДС 12% НСП 1% [04:23:43]line > о реализуемом товаре [04:23:43]line ОКРУГЛЕНИЕ: -0.25 [04:23:43]line ИТОГО: 2000.00 [04:23:43]line Внесено: 2000.00 [04:23:43]line СДАЧА: 0.00 [04:23:43]line НСП 1% : 17.70 [04:23:43]line НДС 12% : 212.42 [04:23:43]line Наличными: 2000.00 [04:23:43]line Безнал.: 0.00 [04:23:43]line Место: АЗС № 130 "Партнер Нефть" [04:23:43]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:23:43]line СНО: Общий режим [04:23:43]line Чек 32 24.08.2024 04:23 [04:23:43]line Смена: 471 ФФД: 1.0 [04:23:43]line ЗНМ: 0300000071 [04:23:43]line РНМ: 0000000000092561 [04:23:43]line Версия ККМ: 001 [04:23:43]line ФМ: 0000000000871778 [04:23:43]line ФД: 178806 [04:23:43]line ФПД: 57020665731619 [04:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T042342&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178806&fm=57020665731619&tin=02508201610067®Number=0000000000092561&sum=200000 [04:23:43]OFD Sender: Processing packet 178806 [packets to send 500, broken 499] [04:23:43]ProducePacketName [04:23:43]name=ofd_packets/00178806 [04:23:43]OFD Sender: To server: pG, [04:23:43]CommunicateWithHost lk.salyk.kg:30040 [04:23:43]ConnectInit lk.salyk.kg [04:23:43]written 0, free lines is 4095 [04:23:44]Write to MH i2c: 01 00 00 3D 01 3E [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 D0 0C 21 [04:23:44]RasterBufferAndPrint [04:23:44]line [04:23:44]line [04:23:44]line [04:23:44]line [04:23:44]line [04:23:44]written 0, free lines is 3286 [04:23:44]MH_Cut [04:23:44]Write to MH i2c: D1 01 00 44 01 01 17 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: D1 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: D1 01 00 [04:23:44]MH_I2C_Read... [04:23:44]Read from MH i2c: D1 01 00 44 01 00 16 [04:23:44]Write to MH i2c: 01 00 00 45 01 46 [04:23:44]Write i2c OK [04:23:44]MH_I2C_Read... [04:23:44]Connected sock=10 [04:23: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 37 37 38 0C 01 00 00 22 42 04 01 15 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 20 00 00 00 F4 03 04 00 4E 60 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 76 BA 02 00 35 04 06 00 33 DC 28 86 9A 23 9C 7A 8D AA 8E B9 3F C7 [04:23:45]*** Cut start [04:23:45]*** Partial cut [04:23:45]*** CUTSNS_PIN = 1 [04:23:45]*** CUTSNS_PIN = 0 [04:23:45]*** Brake cut motor [04:23:45]Read from MH i2c: 01 [04:23:45]MH_I2C_Read... [04:23:45]*** Stop cut motor [04:23:45]*** Cut end [04:23:45]Read from MH i2c: 01 07 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [04:23:45]process_action close_receipt done [04:23:45]requested_data is exist [04:23:45]produce_requested_data [04:23:45]requested_item fm.sn is exist - process it [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 11 00 00 [04:23:45]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:45]Read from MH i2c: E2 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 17 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1A [04:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:23:45]wFMCommunicate OK [04:23:45]requested_item fd.num is exist - process it [04:23:45]SAM_PROTO_GetFieldsCounters [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 13 00 00 [04:23:45]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:45]Read from MH i2c: E2 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 62 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 76 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [04:23: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 76 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:45]wFMCommunicate OK [04:23:45]SAM_PROTO_GetFieldsCounters done [04:23:45]requested_item shift.num is exist - process it [04:23:45]requested_item shift.opened is exist - process it [04:23:45]req_shift_opened [04:23:45]FM_GetShiftState [04:23:45]SAM_PROTO_GetShiftState [04:23:45]wFMCommunicate request_size=4 [04:23:45]MH_SAM_APDU [04:23:45]CAPDU: 80 13 01 00 [04:23:45]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [04:23:45]Write i2c OK [04:23:45]MH_I2C_Read... [04:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:45]Read from MH i2c: E2 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 0E 00 [04:23:45]MH_I2C_Read... [04:23:45]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 84 [04:23:45]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:23:45]wFMCommunicate OK [04:23:45]SAM_PROTO_GetShiftState done [04:23:45]FM_GetShiftState done [04:23:45]req_shift_opened done [04:23:45]requested_item shift.open_date is exist - process it [04:23:45]req_shift_open_date [04:23:45]req_shift_open_date done [04:23:45]produce_requested_data done [04:23:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178806,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:23:45]process_action_free close_receipt [04:23:45]json_value_free [04:23:45]json_value_free done [04:23:45]process_json_proto returns [04:23:45]Send response to host [04:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178806,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:23:45]free response buf [04:23:45]execute_script done [04:23:45]execute_script returns [04:23:45]free content buf [04:23:45]Sock 7.Close socket [04:23:45]Sock 7.Thread stoped [04:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 42 F3 47 00 80 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 37 37 38 10 04 04 00 76 BA 02 00 F4 03 04 00 F4 0B C9 66 B6 04 01 00 00 84 C3 05 93 45 B8 29 4C [04:23:46]CommunicateWithHost err = 0 [04:23:46]CheckOFDResponse [04:23:46]1017 (14) - 77093643461234 [04:23:46]1041 (16) - 0000000000871778 [04:23:46]1040 (4) - 178806 [04:23:46]1012 (4) - 23.08.2024 22:23 [04:23:46]1206 (1) - 0 [04:23:46]OFD Sender: Remove packet 178806 [04:23:46]ProducePacketName [04:23:46]name=ofd_packets/00178806 [04:23:46]NVStorageDeleteData [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:09]recv_with_timeout no data received [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:05]recv_with_timeout no data received [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:37]recv_with_timeout no data received [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:17]recv_with_timeout no data received [04:35:18]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:31]recv_with_timeout no data received [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:18]recv_with_timeout no data received [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:41]accept exits with 9 [04:36:41]New connection [04:36:41]New thread 3067571556 created [04:36:41]Thread 3067428196 joined [04:36:41]Waiting for new connection... [04:36:41] Sock 9.Parse request [04:36:41]Sock 9.Check first char [04:36:41]Sock 9.First char is OK [04:36:41]request: POST /json_proto HTTP/1.0 [04:36:41]Method: POST [04:36:41]URL: /json_proto [04:36:41]Method is POST - this is cgi request [04:36:41]url: /json_proto [04:36:41]query_string will be loaded in cgi processing [04:36:41]execute_cgi json_proto POST (null) [04:36:41]execute_cgi path=json_proto method=POST [04:36:41]POST find Content-Length [04:36:41]Host: 172.17.44.131:8080 [04:36:41]Content-Length: 677 [04:36:41]Content-Type: application/json [04:36:41] [04:36:41]POST finish read [04:36:41]Found Content-Length = 677 [04:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [04:36:41]execute_script... [04:36: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)294956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [04:36:41]POST & json_proto [04:36:41]process_json_proto [04:36:41]json parsed OK: [04:36:41]protocol is kg_v1.0 [04:36:41]action value=close_receipt [04:36:41]process_action close_receipt [04:36:41]cmd_close_receipt [04:36:41]MH_GetDate [04:36:41]Write to MH i2c: F0 00 00 49 01 39 [04:36:41]Write i2c OK [04:36:41]MH_I2C_Read... [04:36:41]Read from MH i2c: F0 [04:36:41]MH_I2C_Read... [04:36:41]Read from MH i2c: F0 09 00 [04:36:41]MH_I2C_Read... [04:36:41]Read from MH i2c: F0 09 00 49 01 00 59 63 C9 66 4F 53 BE 66 F3 [04:36:41]GetLastDocTimeStamp 1724473422 [04:36:41]current date 1724474201 [04:36:41]FM_GetShiftState [04:36:41]SAM_PROTO_GetShiftState [04:36:41]wFMCommunicate request_size=4 [04:36:41]MH_SAM_APDU [04:36:41]CAPDU: 80 13 01 00 [04:36:41]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [04:36:41]Write i2c OK [04:36:41]MH_I2C_Read... [04:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:41]Read from MH i2c: E2 [04:36:41]MH_I2C_Read... [04:36:41]Read from MH i2c: E2 0E 00 [04:36:41]MH_I2C_Read... [04:36:41]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 86 [04:36:41]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:36:41]wFMCommunicate OK [04:36:41]SAM_PROTO_GetShiftState done [04:36:41]FM_GetShiftState done [04:36:41]opened in 1724458079 [04:36:41]opened+sec_in_day 1724544479 [04:36:41]quantity*price = 30035 [04:36:41]sum+1 = 30036 [04:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 33 24.08.2024 04:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178807 ФПД: 179376647191509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T043641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178807&fm=179376647191509&tin=02508201610067®Number=0000000000092561&sum=30000 [04:36:42]StoreToDocumentArchive [04:36:42]shift 471 fd 178807 [04:36:42]save to /storage/0471/doc_00178807 [04:36:42]save last doc name /storage/0471/doc_00178807 to /storage/kkm_last_doc_name [04:36:42]save OK [04:36:42]Clear old archive folders... [04:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:36:42]tlvbuf is 008756D0 [04:36:42]SAM_PROTO_ClearQueue [04:36:42]wFMCommunicate request_size=4 [04:36:42]MH_SAM_APDU [04:36:42]CAPDU: 80 09 00 00 [04:36:42]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [04:36:42]Write i2c OK [04:36:42]MH_I2C_Read... [04:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:36:42]Read from MH i2c: E2 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [04:36:42]RAPDU: 90 00 [04:36:42]wFMCommunicate OK [04:36:42]SAM_PROTO_ClearQueue done [04:36:42]KKMCreateOFDPacket [04:36:42]OFDProtocolAddRootSTLVToBuf [04:36:42]FM_MakeSignedData [04:36:42]FM_MakeSignedData [04:36:42]SAM_PROTO_SignData [04:36:42]wFMCommunicate request_size=4 [04:36:42]MH_SAM_APDU [04:36:42]CAPDU: 80 0D 01 02 [04:36:42]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [04:36:42]Write i2c OK [04:36:42]MH_I2C_Read... [04:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:36:42]Read from MH i2c: E2 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [04:36:42]RAPDU: 90 00 [04:36:42]wFMCommunicate OK [04:36:42]wFMCommunicate request_size=255 [04:36:42]MH_SAM_APDU [04:36:42]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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 59 63 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 77 BA 02 00 35 04 06 00 A3 [04:36:42]Write to MH i2c: E2 02 01 59 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 59 63 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 77 BA 02 00 35 04 06 00 A3 00 00 2E [04:36:42]Write i2c OK [04:36:42]MH_I2C_Read... [04:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:42]Read from MH i2c: E2 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [04:36:42]RAPDU: 90 00 [04:36:42]wFMCommunicate OK [04:36:42]wFMCommunicate request_size=10 [04:36:42]MH_SAM_APDU [04:36:42]CAPDU: 80 0D 02 02 05 24 61 56 3B D5 [04:36:42]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 24 61 56 3B D5 00 00 CA [04:36:42]Write i2c OK [04:36:42]MH_I2C_Read... [04:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:42]Read from MH i2c: E2 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 [04:36:42]MH_I2C_Read... [04:36:42]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [04:36:42]RAPDU: 90 00 [04:36:42]wFMCommunicate OK [04:36:42]wFMCommunicate request_size=4 [04:36:42]MH_SAM_APDU [04:36:42]CAPDU: 80 0D 03 02 [04:36:42]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [04:36:42]Write i2c OK [04:36:42]MH_I2C_Read... [04:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:36:43]Read from MH i2c: E2 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: E2 0B 00 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: E2 0B 00 5B 01 00 64 63 80 63 74 85 A7 A8 90 00 CA [04:36:43]RAPDU: 64 63 80 63 74 85 A7 A8 90 00 [04:36:43]wFMCommunicate OK [04:36:43]SAM_PROTO_SignData done [04:36:43]FM_MakeSignedData done [04:36:43]CreateOFDProtocolMessage [04:36:43]wFMCommunicate request_size=4 [04:36:43]MH_SAM_APDU [04:36:43]CAPDU: 80 11 00 00 [04:36:43]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [04:36:43]Write i2c OK [04:36:43]MH_I2C_Read... [04:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:43]Read from MH i2c: E2 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: E2 17 00 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 30 [04:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:36:43]wFMCommunicate OK [04:36:43]CreateOFDProtocolMessage done [04:36:43]OFDSenderStorePacket 178807 [04:36:43]StoreOFDPacket docnum=178807 [04:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A0 F0 07 01 9E 67 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 59 63 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 77 BA 02 00 35 04 06 00 A3 24 61 56 3B D5 64 63 80 63 74 85 A7 A8 [04:36:43]CheckFolder [04:36:43]dirname=/storage/ofd_packets [04:36:43]CheckFolder done [04:36:43]ProducePacketName [04:36:43]name=ofd_packets/00178807 [04:36:43]NVStorageSaveData ofd_packets/00178807 [04:36:43]File name is /storage/ofd_packets/00178807 [04:36:43]Write 301 bytes [04:36:43]NVStorageSaveData done [04:36:43]OFDSenderStorePacket done [04:36:43]KKMCreateOFDPacket done [04:36:43]NVStorageSaveData kkm_last_timestamp [04:36:43]File name is /storage/kkm_last_timestamp [04:36:43]Write 4 bytes [04:36:43]NVStorageSaveData done [04:36:43]ExternCall_PrintAddStr [04:36:43]wPrintStart [04:36:43]Write to MH i2c: 01 00 00 5D 01 5E [04:36:43]Write i2c OK [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 07 00 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [04:36:43]RasterBufferAndPrint [04:36:43]line Счет N : (1)294956 [04:36:43]line ИНН: 02508201610067 [04:36:43]line Контрольно-Кассовый Чек [04:36:43]line ПРОДАЖА [04:36:43]line ТРК (МРК, ГНК) : 32 [04:36:43]line Товар: 2710124130 [04:36:43]line Аи-92-К-5 [04:36:43]line 4.430 * 67.80 [04:36:43]line = 300.35 [04:36:43]line НДС 12% НСП 1% [04:36:43]line > о реализуемом товаре [04:36:43]line ОКРУГЛЕНИЕ: -0.35 [04:36:43]line ИТОГО: 300.00 [04:36:43]line Внесено: 300.00 [04:36:43]line СДАЧА: 0.00 [04:36:43]line НСП 1% : 2.66 [04:36:43]line НДС 12% : 31.90 [04:36:43]line Наличными: 300.00 [04:36:43]line Безнал.: 0.00 [04:36:43]line Место: АЗС № 130 "Партнер Нефть" [04:36:43]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:36:43]line СНО: Общий режим [04:36:43]line Чек 33 24.08.2024 04:36 [04:36:43]line Смена: 471 ФФД: 1.0 [04:36:43]line ЗНМ: 0300000071 [04:36:43]line РНМ: 0000000000092561 [04:36:43]line Версия ККМ: 001 [04:36:43]line ФМ: 0000000000871778 [04:36:43]line ФД: 178807 [04:36:43]line ФПД: 179376647191509 [04:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T043641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178807&fm=179376647191509&tin=02508201610067®Number=0000000000092561&sum=30000 [04:36:43]written 0, free lines is 4095 [04:36:43]OFD Sender: Processing packet 178807 [packets to send 500, broken 499] [04:36:43]ProducePacketName [04:36:43]name=ofd_packets/00178807 [04:36:43]OFD Sender: To server: pG, [04:36:43]CommunicateWithHost lk.salyk.kg:30040 [04:36:43]ConnectInit lk.salyk.kg [04:36:43]Write to MH i2c: 01 00 00 88 01 89 [04:36:43]Write i2c OK [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 07 00 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 C9 0C 65 [04:36:43]RasterBufferAndPrint [04:36:43]line [04:36:43]line [04:36:43]line [04:36:43]line [04:36:43]line [04:36:43]written 0, free lines is 3280 [04:36:43]MH_Cut [04:36:43]Write to MH i2c: D1 01 00 8F 01 01 62 [04:36:43]Write i2c OK [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: D1 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: D1 01 00 [04:36:43]MH_I2C_Read... [04:36:43]Read from MH i2c: D1 01 00 8F 01 00 61 [04:36:43]Write to MH i2c: 01 00 00 90 01 91 [04:36:43]Write i2c OK [04:36:43]MH_I2C_Read... [04:36:44]Connected sock=10 [04:36: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 37 37 38 0F 01 00 00 A0 F0 07 01 9E 67 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 59 63 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 77 BA 02 00 35 04 06 00 A3 24 61 56 3B D5 64 63 80 63 74 85 A7 A8 [04:36:44]*** Cut start [04:36:44]*** Partial cut [04:36:44]*** CUTSNS_PIN = 1 [04:36:44]*** CUTSNS_PIN = 0 [04:36:44]*** Brake cut motor [04:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AE B5 47 00 DE 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 77 BA 02 00 F4 03 04 00 00 0F C9 66 B6 04 01 00 00 98 0D 56 EF 17 57 E7 B3 [04:36:44]CommunicateWithHost err = 0 [04:36:44]CheckOFDResponse [04:36:44]1017 (14) - 77093643461234 [04:36:44]1041 (16) - 0000000000871778 [04:36:44]1040 (4) - 178807 [04:36:44]1012 (4) - 23.08.2024 22:36 [04:36:44]1206 (1) - 0 [04:36:44]OFD Sender: Remove packet 178807 [04:36:44]ProducePacketName [04:36:44]name=ofd_packets/00178807 [04:36:44]NVStorageDeleteData [04:36:44]Read from MH i2c: 01 [04:36:44]MH_I2C_Read... [04:36:44]*** Stop cut motor [04:36:44]*** Cut end [04:36:44]Read from MH i2c: 01 07 00 [04:36:44]MH_I2C_Read... [04:36:44]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [04:36:44]process_action close_receipt done [04:36:44]requested_data is exist [04:36:44]produce_requested_data [04:36:44]requested_item fm.sn is exist - process it [04:36:44]wFMCommunicate request_size=4 [04:36:44]MH_SAM_APDU [04:36:44]CAPDU: 80 11 00 00 [04:36:44]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [04:36:44]Write i2c OK [04:36:44]MH_I2C_Read... [04:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:44]Read from MH i2c: E2 [04:36:44]MH_I2C_Read... [04:36:44]Read from MH i2c: E2 17 00 [04:36:44]MH_I2C_Read... [04:36:44]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 65 [04:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:36:44]wFMCommunicate OK [04:36:44]requested_item fd.num is exist - process it [04:36:44]SAM_PROTO_GetFieldsCounters [04:36:44]wFMCommunicate request_size=4 [04:36:44]MH_SAM_APDU [04:36:44]CAPDU: 80 13 00 00 [04:36:44]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [04:36:44]Write i2c OK [04:36:44]MH_I2C_Read... [04:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:36:45]Read from MH i2c: E2 [04:36:45]MH_I2C_Read... [04:36:45]Read from MH i2c: E2 62 00 [04:36:45]MH_I2C_Read... [04:36:45]Read from MH i2c: E2 62 00 92 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 77 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [04:36: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 77 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:36:45]wFMCommunicate OK [04:36:45]SAM_PROTO_GetFieldsCounters done [04:36:45]requested_item shift.num is exist - process it [04:36:45]requested_item shift.opened is exist - process it [04:36:45]req_shift_opened [04:36:45]FM_GetShiftState [04:36:45]SAM_PROTO_GetShiftState [04:36:45]wFMCommunicate request_size=4 [04:36:45]MH_SAM_APDU [04:36:45]CAPDU: 80 13 01 00 [04:36:45]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [04:36:45]Write i2c OK [04:36:45]MH_I2C_Read... [04:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:45]Read from MH i2c: E2 [04:36:45]MH_I2C_Read... [04:36:45]Read from MH i2c: E2 0E 00 [04:36:45]MH_I2C_Read... [04:36:45]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CF [04:36:45]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:36:45]wFMCommunicate OK [04:36:45]SAM_PROTO_GetShiftState done [04:36:45]FM_GetShiftState done [04:36:45]req_shift_opened done [04:36:45]requested_item shift.open_date is exist - process it [04:36:45]req_shift_open_date [04:36:45]req_shift_open_date done [04:36:45]produce_requested_data done [04:36:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178807,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:36:45]process_action_free close_receipt [04:36:45]json_value_free [04:36:45]json_value_free done [04:36:45]process_json_proto returns [04:36:45]Send response to host [04:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178807,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:36:45]free response buf [04:36:45]execute_script done [04:36:45]execute_script returns [04:36:45]free content buf [04:36:45]Sock 9.Close socket [04:36:45]Sock 9.Thread stoped [04:36:45]OFD Sender: No OFD packet to send [04:36:49]recv_with_timeout no data received [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]recv_with_timeout no data received [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:18]recv_with_timeout no data received [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:53]recv_with_timeout no data received [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:39]recv_with_timeout no data received [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:02]recv_with_timeout no data received [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:54]recv_with_timeout no data received [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:55]recv_with_timeout no data received [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:55]recv_with_timeout no data received [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:15]accept exits with 7 [04:52:15]New connection [04:52:15]New thread 3067428196 created [04:52:15]Thread 3067571556 joined [04:52:15]Waiting for new connection... [04:52:15] Sock 7.Parse request [04:52:15]Sock 7.Check first char [04:52:15]Sock 7.First char is OK [04:52:15]request: POST /json_proto HTTP/1.0 [04:52:15]Method: POST [04:52:15]URL: /json_proto [04:52:15]Method is POST - this is cgi request [04:52:15]url: /json_proto [04:52:15]query_string will be loaded in cgi processing [04:52:15]execute_cgi json_proto POST (null) [04:52:15]execute_cgi path=json_proto method=POST [04:52:15]POST find Content-Length [04:52:15]Host: 172.17.44.131:8080 [04:52:15]Content-Length: 679 [04:52:15]Content-Type: application/json [04:52:15] [04:52:15]POST finish read [04:52:15]Found Content-Length = 679 [04:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\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:52:15]execute_script... [04:52:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\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:52:15]POST & json_proto [04:52:15]process_json_proto [04:52:15]json parsed OK: [04:52:15]protocol is kg_v1.0 [04:52:15]action value=close_receipt [04:52:15]process_action close_receipt [04:52:15]cmd_close_receipt [04:52:15]MH_GetDate [04:52:15]Write to MH i2c: F0 00 00 94 01 84 [04:52:15]Write i2c OK [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: F0 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: F0 09 00 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: F0 09 00 94 01 00 FF 66 C9 66 4F 53 BE 66 E7 [04:52:15]GetLastDocTimeStamp 1724474201 [04:52:15]current date 1724475135 [04:52:15]FM_GetShiftState [04:52:15]SAM_PROTO_GetShiftState [04:52:15]wFMCommunicate request_size=4 [04:52:15]MH_SAM_APDU [04:52:15]CAPDU: 80 13 01 00 [04:52:15]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [04:52:15]Write i2c OK [04:52:15]MH_I2C_Read... [04:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:15]Read from MH i2c: E2 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: E2 0E 00 [04:52:15]MH_I2C_Read... [04:52:15]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D1 [04:52:15]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:52:15]wFMCommunicate OK [04:52:15]SAM_PROTO_GetShiftState done [04:52:15]FM_GetShiftState done [04:52:15]opened in 1724458079 [04:52:15]opened+sec_in_day 1724544479 [04:52:15]quantity*price = 150037 [04:52:15]sum+1 = 150039 [04:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 34 24.08.2024 04:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178808 ФПД: 57523330014942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T045215&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178808&fm=57523330014942&tin=02508201610067®Number=0000000000092561&sum=150000 [04:52:16]StoreToDocumentArchive [04:52:16]shift 471 fd 178808 [04:52:16]save to /storage/0471/doc_00178808 [04:52:16]save last doc name /storage/0471/doc_00178808 to /storage/kkm_last_doc_name [04:52:16]save OK [04:52:16]Clear old archive folders... [04:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:52:16]tlvbuf is 00876FF0 [04:52:16]SAM_PROTO_ClearQueue [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 09 00 00 [04:52:16]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [04:52:16]RAPDU: 90 00 [04:52:16]wFMCommunicate OK [04:52:16]SAM_PROTO_ClearQueue done [04:52:16]KKMCreateOFDPacket [04:52:16]OFDProtocolAddRootSTLVToBuf [04:52:16]FM_MakeSignedData [04:52:16]FM_MakeSignedData [04:52:16]SAM_PROTO_SignData [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 0D 01 02 [04:52:16]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [04:52:16]RAPDU: 90 00 [04:52:16]wFMCommunicate OK [04:52:16]wFMCommunicate request_size=255 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 22 00 00 00 F4 03 04 00 FF 66 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 78 BA 02 00 35 04 06 00 34 51 31 A6 [04:52:16]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 22 00 00 00 F4 03 04 00 FF 66 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 78 BA 02 00 35 04 06 00 34 51 31 A6 00 00 40 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [04:52:16]RAPDU: 90 00 [04:52:16]wFMCommunicate OK [04:52:16]wFMCommunicate request_size=7 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 0D 02 02 02 DE DE [04:52:16]Write to MH i2c: E2 0A 00 A5 01 80 0D 02 02 02 00 DE DE 00 00 E0 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [04:52:16]RAPDU: 90 00 [04:52:16]wFMCommunicate OK [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 0D 03 02 [04:52:16]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 0B 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 0B 00 A6 01 00 D5 58 CD 65 2B 9B 99 27 90 00 08 [04:52:16]RAPDU: D5 58 CD 65 2B 9B 99 27 90 00 [04:52:16]wFMCommunicate OK [04:52:16]SAM_PROTO_SignData done [04:52:16]FM_MakeSignedData done [04:52:16]CreateOFDProtocolMessage [04:52:16]wFMCommunicate request_size=4 [04:52:16]MH_SAM_APDU [04:52:16]CAPDU: 80 11 00 00 [04:52:16]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:16]Read from MH i2c: E2 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 17 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7B [04:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:52:16]wFMCommunicate OK [04:52:16]CreateOFDProtocolMessage done [04:52:16]OFDSenderStorePacket 178808 [04:52:16]StoreOFDPacket docnum=178808 [04:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 84 B7 04 01 ED DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 22 00 00 00 F4 03 04 00 FF 66 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 78 BA 02 00 35 04 06 00 34 51 31 A6 DE DE D5 58 CD 65 2B 9B 99 27 [04:52:16]CheckFolder [04:52:16]dirname=/storage/ofd_packets [04:52:16]CheckFolder done [04:52:16]ProducePacketName [04:52:16]name=ofd_packets/00178808 [04:52:16]NVStorageSaveData ofd_packets/00178808 [04:52:16]File name is /storage/ofd_packets/00178808 [04:52:16]Write 298 bytes [04:52:16]NVStorageSaveData done [04:52:16]OFDSenderStorePacket done [04:52:16]KKMCreateOFDPacket done [04:52:16]NVStorageSaveData kkm_last_timestamp [04:52:16]File name is /storage/kkm_last_timestamp [04:52:16]Write 4 bytes [04:52:16]NVStorageSaveData done [04:52:16]ExternCall_PrintAddStr [04:52:16]wPrintStart [04:52:16]Write to MH i2c: 01 00 00 A8 01 A9 [04:52:16]Write i2c OK [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: 01 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: 01 07 00 [04:52:16]MH_I2C_Read... [04:52:16]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [04:52:16]RasterBufferAndPrint [04:52:16]line Счет N : (1)294958 [04:52:16]line ИНН: 02508201610067 [04:52:16]line Контрольно-Кассовый Чек [04:52:16]line ПРОДАЖА [04:52:16]line ТРК (МРК, ГНК) : 44 [04:52:16]line Товар: 2710194800 [04:52:16]line ДТ-К-5 [04:52:16]line 19.690 * 76.20 [04:52:16]line = 1500.38 [04:52:16]line НДС 12% НСП 1% [04:52:16]line > о реализуемом товаре [04:52:16]line ОКРУГЛЕНИЕ: -0.38 [04:52:16]line ИТОГО: 1500.00 [04:52:16]line Внесено: 1500.00 [04:52:16]line СДАЧА: 0.00 [04:52:16]line НСП 1% : 13.28 [04:52:16]line НДС 12% : 159.33 [04:52:16]line Наличными: 1500.00 [04:52:16]line Безнал.: 0.00 [04:52:16]line Место: АЗС № 130 "Партнер Нефть" [04:52:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:52:16]line СНО: Общий режим [04:52:16]line Чек 34 24.08.2024 04:52 [04:52:16]line Смена: 471 ФФД: 1.0 [04:52:16]line ЗНМ: 0300000071 [04:52:16]line РНМ: 0000000000092561 [04:52:16]line Версия ККМ: 001 [04:52:16]line ФМ: 0000000000871778 [04:52:16]line ФД: 178808 [04:52:16]line ФПД: 57523330014942 [04:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T045215&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178808&fm=57523330014942&tin=02508201610067®Number=0000000000092561&sum=150000 [04:52:17]OFD Sender: Processing packet 178808 [packets to send 500, broken 499] [04:52:17]ProducePacketName [04:52:17]name=ofd_packets/00178808 [04:52:17]OFD Sender: To server: pG, [04:52:17]CommunicateWithHost lk.salyk.kg:30040 [04:52:17]ConnectInit lk.salyk.kg [04:52:17]written 0, free lines is 4095 [04:52:17]Write to MH i2c: 01 00 00 D3 01 D4 [04:52:17]Write i2c OK [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: 01 [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: 01 07 00 [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 D1 0C B8 [04:52:17]RasterBufferAndPrint [04:52:17]line [04:52:17]line [04:52:17]line [04:52:17]line [04:52:17]line [04:52:17]written 0, free lines is 3287 [04:52:17]MH_Cut [04:52:17]Write to MH i2c: D1 01 00 DA 01 01 AD [04:52:17]Write i2c OK [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: D1 [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: D1 01 00 [04:52:17]MH_I2C_Read... [04:52:17]Read from MH i2c: D1 01 00 DA 01 00 AC [04:52:17]Write to MH i2c: 01 00 00 DB 01 DC [04:52:17]Write i2c OK [04:52:17]MH_I2C_Read... [04:52:18]*** Cut start [04:52:18]*** Partial cut [04:52:18]*** CUTSNS_PIN = 1 [04:52:18]*** CUTSNS_PIN = 0 [04:52:18]*** Brake cut motor [04:52:18]Read from MH i2c: 01 [04:52:18]MH_I2C_Read... [04:52:18]*** Stop cut motor [04:52:18]*** Cut end [04:52:18]Read from MH i2c: 01 07 00 [04:52:18]MH_I2C_Read... [04:52:18]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [04:52:18]process_action close_receipt done [04:52:18]requested_data is exist [04:52:18]produce_requested_data [04:52:18]requested_item fm.sn is exist - process it [04:52:18]wFMCommunicate request_size=4 [04:52:18]MH_SAM_APDU [04:52:18]CAPDU: 80 11 00 00 [04:52:18]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [04:52:18]Write i2c OK [04:52:18]MH_I2C_Read... [04:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:19]Read from MH i2c: E2 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 17 00 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B0 [04:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:52:19]wFMCommunicate OK [04:52:19]requested_item fd.num is exist - process it [04:52:19]SAM_PROTO_GetFieldsCounters [04:52:19]wFMCommunicate request_size=4 [04:52:19]MH_SAM_APDU [04:52:19]CAPDU: 80 13 00 00 [04:52:19]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [04:52:19]Write i2c OK [04:52:19]MH_I2C_Read... [04:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:19]Read from MH i2c: E2 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 62 00 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 62 00 DD 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 78 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [04:52: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 78 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:52:19]wFMCommunicate OK [04:52:19]SAM_PROTO_GetFieldsCounters done [04:52:19]requested_item shift.num is exist - process it [04:52:19]requested_item shift.opened is exist - process it [04:52:19]req_shift_opened [04:52:19]FM_GetShiftState [04:52:19]SAM_PROTO_GetShiftState [04:52:19]wFMCommunicate request_size=4 [04:52:19]MH_SAM_APDU [04:52:19]CAPDU: 80 13 01 00 [04:52:19]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [04:52:19]Write i2c OK [04:52:19]MH_I2C_Read... [04:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:19]Read from MH i2c: E2 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 0E 00 [04:52:19]MH_I2C_Read... [04:52:19]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 1A [04:52:19]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [04:52:19]wFMCommunicate OK [04:52:19]SAM_PROTO_GetShiftState done [04:52:19]FM_GetShiftState done [04:52:19]req_shift_opened done [04:52:19]requested_item shift.open_date is exist - process it [04:52:19]req_shift_open_date [04:52:19]req_shift_open_date done [04:52:19]produce_requested_data done [04:52:19]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178808,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [04:52:19]process_action_free close_receipt [04:52:19]json_value_free [04:52:19]json_value_free done [04:52:19]process_json_proto returns [04:52:19]Send response to host [04:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178808,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [04:52:19]free response buf [04:52:19]execute_script done [04:52:19]execute_script returns [04:52:19]free content buf [04:52:19]Sock 7.Close socket [04:52:19]Sock 7.Thread stoped [04:52:22]ConnectInit Can't take IP for lk.salyk.kg [04:52:22]CommunicateWithHost connect error [04:52:22]CommunicateWithHost err = -1 [04:52:22]OFD Sender: Server communicate error [04:52:27]OFD Sender: Processing packet 178808 [packets to send 500, broken 499] [04:52:27]ProducePacketName [04:52:27]name=ofd_packets/00178808 [04:52:27]OFD Sender: To server: pG, [04:52:27]CommunicateWithHost lk.salyk.kg:30040 [04:52:27]ConnectInit lk.salyk.kg [04:52:28]Connected sock=7 [04:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 84 B7 04 01 ED DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 22 00 00 00 F4 03 04 00 FF 66 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 78 BA 02 00 35 04 06 00 34 51 31 A6 DE DE D5 58 CD 65 2B 9B 99 27 [04:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 60 28 47 00 DA 48 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 37 37 38 10 04 04 00 78 BA 02 00 F4 03 04 00 B1 12 C9 66 B6 04 01 00 00 9D DF 2F D5 D5 24 55 BE [04:52:29]CommunicateWithHost err = 0 [04:52:29]CheckOFDResponse [04:52:29]1017 (14) - 77093643461234 [04:52:29]1041 (16) - 0000000000871778 [04:52:29]1040 (4) - 178808 [04:52:29]1012 (4) - 23.08.2024 22:52 [04:52:29]1206 (1) - 0 [04:52:29]OFD Sender: Remove packet 178808 [04:52:29]ProducePacketName [04:52:29]name=ofd_packets/00178808 [04:52:29]NVStorageDeleteData [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:38]recv_with_timeout no data received [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:01]recv_with_timeout no data received [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:29]recv_with_timeout no data received [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [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:07]recv_with_timeout no data received [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:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [05:00:13]ConnectInit Can't connect to host [05:00:14]ConnectInit Can't take IP for lk.salyk.kg [05:00:14]CommunicateWithHost connect error [05:00:14]CommunicateWithHost err = -1 [05:00:14]OFD Sender: Server communicate error [05:00:19]OFD Sender: Processing packet 178809 [packets to send 500, broken 499] [05:00:19]ProducePacketName [05:00:19]name=ofd_packets/00178809 [05:00:19]OFD Sender: To server: pG, [05:00:19]CommunicateWithHost lk.salyk.kg:30040 [05:00:19]ConnectInit lk.salyk.kg [05:00:20]Connected sock=10 [05:00: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 37 37 38 0C 01 00 00 9E A4 04 01 99 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 23 00 00 00 F4 03 04 00 A5 68 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 79 BA 02 00 35 04 06 00 72 E9 CF 09 42 7B 26 D1 02 D0 87 3B 23 B6 [05:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EF 1C 47 00 C6 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 79 BA 02 00 F4 03 04 00 88 14 C9 66 B6 04 01 00 00 81 92 D3 2F 4C 0E E3 DC [05:00:21]CommunicateWithHost err = 0 [05:00:21]CheckOFDResponse [05:00:21]1017 (14) - 77093643461234 [05:00:21]1041 (16) - 0000000000871778 [05:00:21]1040 (4) - 178809 [05:00:21]1012 (4) - 23.08.2024 23:00 [05:00:21]1206 (1) - 0 [05:00:21]OFD Sender: Remove packet 178809 [05:00:21]ProducePacketName [05:00:21]name=ofd_packets/00178809 [05:00:21]NVStorageDeleteData [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:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]recv_with_timeout no data received [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:40]recv_with_timeout no data received [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:39]recv_with_timeout no data received [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]recv_with_timeout no data received [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:49]recv_with_timeout no data received [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:24]accept exits with 9 [05:13:24]New connection [05:13:24]New thread 3067428196 created [05:13:24]Thread 3067571556 joined [05:13:24]Waiting for new connection... [05:13:24] Sock 9.Parse request [05:13:24]Sock 9.Check first char [05:13:24]Sock 9.First char is OK [05:13:24]request: POST /json_proto HTTP/1.0 [05:13:24]Method: POST [05:13:24]URL: /json_proto [05:13:24]Method is POST - this is cgi request [05:13:24]url: /json_proto [05:13:24]query_string will be loaded in cgi processing [05:13:24]execute_cgi json_proto POST (null) [05:13:24]execute_cgi path=json_proto method=POST [05:13:24]POST find Content-Length [05:13:24]Host: 172.17.44.131:8080 [05:13:24]Content-Length: 679 [05:13:24]Content-Type: application/json [05:13:24] [05:13:24]POST finish read [05:13:24]Found Content-Length = 679 [05:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [05:13:24]execute_script... [05:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [05:13:24]POST & json_proto [05:13:24]process_json_proto [05:13:24]json parsed OK: [05:13:24]protocol is kg_v1.0 [05:13:24]action value=close_receipt [05:13:24]process_action close_receipt [05:13:24]cmd_close_receipt [05:13:24]MH_GetDate [05:13:24]Write to MH i2c: F0 00 00 2A 02 1B [05:13:24]Write i2c OK [05:13:24]MH_I2C_Read... [05:13:24]Read from MH i2c: F0 [05:13:24]MH_I2C_Read... [05:13:24]Read from MH i2c: F0 09 00 [05:13:24]MH_I2C_Read... [05:13:24]Read from MH i2c: F0 09 00 2A 02 00 F4 6B C9 66 4F 53 BE 66 78 [05:13:24]GetLastDocTimeStamp 1724475557 [05:13:24]current date 1724476404 [05:13:24]FM_GetShiftState [05:13:24]SAM_PROTO_GetShiftState [05:13:24]wFMCommunicate request_size=4 [05:13:24]MH_SAM_APDU [05:13:24]CAPDU: 80 13 01 00 [05:13:24]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [05:13:24]Write i2c OK [05:13:24]MH_I2C_Read... [05:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:24]Read from MH i2c: E2 [05:13:24]MH_I2C_Read... [05:13:24]Read from MH i2c: E2 0E 00 [05:13:24]MH_I2C_Read... [05:13:24]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 68 [05:13:24]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:13:24]wFMCommunicate OK [05:13:24]SAM_PROTO_GetShiftState done [05:13:24]FM_GetShiftState done [05:13:24]opened in 1724458079 [05:13:24]opened+sec_in_day 1724544479 [05:13:24]quantity*price = 100050 [05:13:24]sum+1 = 100052 [05:13:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 36 24.08.2024 05:13 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178810 ФПД: 107637530246426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178810&fm=107637530246426&tin=02508201610067®Number=0000000000092561&sum=100000 [05:13:25]StoreToDocumentArchive [05:13:25]shift 471 fd 178810 [05:13:25]save to /storage/0471/doc_00178810 [05:13:25]save last doc name /storage/0471/doc_00178810 to /storage/kkm_last_doc_name [05:13:25]save OK [05:13:25]Clear old archive folders... [05:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:13:25]tlvbuf is 00873D70 [05:13:25]SAM_PROTO_ClearQueue [05:13:25]wFMCommunicate request_size=4 [05:13:25]MH_SAM_APDU [05:13:25]CAPDU: 80 09 00 00 [05:13:25]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [05:13:25]Write i2c OK [05:13:25]MH_I2C_Read... [05:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:25]Read from MH i2c: E2 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [05:13:25]RAPDU: 90 00 [05:13:25]wFMCommunicate OK [05:13:25]SAM_PROTO_ClearQueue done [05:13:25]KKMCreateOFDPacket [05:13:25]OFDProtocolAddRootSTLVToBuf [05:13:25]FM_MakeSignedData [05:13:25]FM_MakeSignedData [05:13:25]SAM_PROTO_SignData [05:13:25]wFMCommunicate request_size=4 [05:13:25]MH_SAM_APDU [05:13:25]CAPDU: 80 0D 01 02 [05:13:25]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [05:13:25]Write i2c OK [05:13:25]MH_I2C_Read... [05:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:25]Read from MH i2c: E2 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [05:13:25]RAPDU: 90 00 [05:13:25]wFMCommunicate OK [05:13:25]wFMCommunicate request_size=255 [05:13:25]MH_SAM_APDU [05:13:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 24 00 00 00 F4 03 04 00 F4 6B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7A BA 02 00 35 04 06 00 61 E5 50 C1 [05:13:25]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 24 00 00 00 F4 03 04 00 F4 6B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7A BA 02 00 35 04 06 00 61 E5 50 C1 00 00 59 [05:13:25]Write i2c OK [05:13:25]MH_I2C_Read... [05:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:25]Read from MH i2c: E2 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 [05:13:25]MH_I2C_Read... [05:13:25]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [05:13:25]RAPDU: 90 00 [05:13:25]wFMCommunicate OK [05:13:25]wFMCommunicate request_size=7 [05:13:25]MH_SAM_APDU [05:13:25]CAPDU: 80 0D 02 02 02 3D 1A [05:13:25]Write to MH i2c: E2 0A 00 3B 02 80 0D 02 02 02 00 3D 1A 00 00 12 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:26]Read from MH i2c: E2 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 03 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [05:13:26]RAPDU: 90 00 [05:13:26]wFMCommunicate OK [05:13:26]wFMCommunicate request_size=4 [05:13:26]MH_SAM_APDU [05:13:26]CAPDU: 80 0D 03 02 [05:13:26]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:26]Read from MH i2c: E2 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 0B 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 0B 00 3C 02 00 F5 40 ED FB 76 31 11 09 90 00 98 [05:13:26]RAPDU: F5 40 ED FB 76 31 11 09 90 00 [05:13:26]wFMCommunicate OK [05:13:26]SAM_PROTO_SignData done [05:13:26]FM_MakeSignedData done [05:13:26]CreateOFDProtocolMessage [05:13:26]wFMCommunicate request_size=4 [05:13:26]MH_SAM_APDU [05:13:26]CAPDU: 80 11 00 00 [05:13:26]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:26]Read from MH i2c: E2 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 17 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 12 [05:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:13:26]wFMCommunicate OK [05:13:26]CreateOFDProtocolMessage done [05:13:26]OFDSenderStorePacket 178810 [05:13:26]StoreOFDPacket docnum=178810 [05:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 80 D6 04 01 9D 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 24 00 00 00 F4 03 04 00 F4 6B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7A BA 02 00 35 04 06 00 61 E5 50 C1 3D 1A F5 40 ED FB 76 31 11 09 [05:13:26]CheckFolder [05:13:26]dirname=/storage/ofd_packets [05:13:26]CheckFolder done [05:13:26]ProducePacketName [05:13:26]name=ofd_packets/00178810 [05:13:26]NVStorageSaveData ofd_packets/00178810 [05:13:26]File name is /storage/ofd_packets/00178810 [05:13:26]Write 298 bytes [05:13:26]NVStorageSaveData done [05:13:26]OFDSenderStorePacket done [05:13:26]KKMCreateOFDPacket done [05:13:26]NVStorageSaveData kkm_last_timestamp [05:13:26]File name is /storage/kkm_last_timestamp [05:13:26]Write 4 bytes [05:13:26]NVStorageSaveData done [05:13:26]ExternCall_PrintAddStr [05:13:26]wPrintStart [05:13:26]Write to MH i2c: 01 00 00 3E 02 40 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 07 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [05:13:26]RasterBufferAndPrint [05:13:26]line Счет N : (1)294962 [05:13:26]line ИНН: 02508201610067 [05:13:26]line Контрольно-Кассовый Чек [05:13:26]line ПРОДАЖА [05:13:26]line ТРК (МРК, ГНК) : 44 [05:13:26]line Товар: 2710194800 [05:13:26]line ДТ-К-5 [05:13:26]line 13.130 * 76.20 [05:13:26]line = 1000.51 [05:13:26]line НДС 12% НСП 1% [05:13:26]line > о реализуемом товаре [05:13:26]line ОКРУГЛЕНИЕ: -0.51 [05:13:26]line ИТОГО: 1000.00 [05:13:26]line Внесено: 1000.00 [05:13:26]line СДАЧА: 0.00 [05:13:26]line НСП 1% : 8.85 [05:13:26]line НДС 12% : 106.25 [05:13:26]line Наличными: 1000.00 [05:13:26]line Безнал.: 0.00 [05:13:26]line Место: АЗС № 130 "Партнер Нефть" [05:13:26]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:13:26]line СНО: Общий режим [05:13:26]line Чек 36 24.08.2024 05:13 [05:13:26]line Смена: 471 ФФД: 1.0 [05:13:26]line ЗНМ: 0300000071 [05:13:26]line РНМ: 0000000000092561 [05:13:26]line Версия ККМ: 001 [05:13:26]line ФМ: 0000000000871778 [05:13:26]line ФД: 178810 [05:13:26]line ФПД: 107637530246426 [05:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178810&fm=107637530246426&tin=02508201610067®Number=0000000000092561&sum=100000 [05:13:26]OFD Sender: Processing packet 178810 [packets to send 500, broken 499] [05:13:26]ProducePacketName [05:13:26]name=ofd_packets/00178810 [05:13:26]OFD Sender: To server: pG, [05:13:26]CommunicateWithHost lk.salyk.kg:30040 [05:13:26]ConnectInit lk.salyk.kg [05:13:26]written 0, free lines is 4095 [05:13:26]Write to MH i2c: 01 00 00 69 02 6B [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 07 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 C7 0C 45 [05:13:26]RasterBufferAndPrint [05:13:26]line [05:13:26]line [05:13:26]line [05:13:26]line [05:13:26]line [05:13:26]written 0, free lines is 3277 [05:13:26]MH_Cut [05:13:26]Write to MH i2c: D1 01 00 70 02 01 44 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: D1 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: D1 01 00 [05:13:26]MH_I2C_Read... [05:13:26]Read from MH i2c: D1 01 00 70 02 00 43 [05:13:26]Write to MH i2c: 01 00 00 71 02 73 [05:13:26]Write i2c OK [05:13:26]MH_I2C_Read... [05:13:27]*** Cut start [05:13:27]*** Partial cut [05:13:27]*** CUTSNS_PIN = 1 [05:13:27]*** CUTSNS_PIN = 0 [05:13:27]*** Brake cut motor [05:13:28]Read from MH i2c: 01 [05:13:28]MH_I2C_Read... [05:13:28]*** Stop cut motor [05:13:28]Read from MH i2c: 01 07 00 [05:13:28]MH_I2C_Read... [05:13:28]*** Cut end [05:13:28]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [05:13:28]process_action close_receipt done [05:13:28]requested_data is exist [05:13:28]produce_requested_data [05:13:28]requested_item fm.sn is exist - process it [05:13:28]wFMCommunicate request_size=4 [05:13:28]MH_SAM_APDU [05:13:28]CAPDU: 80 11 00 00 [05:13:28]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [05:13:28]Write i2c OK [05:13:28]MH_I2C_Read... [05:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:28]Read from MH i2c: E2 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 17 00 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 47 [05:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:13:28]wFMCommunicate OK [05:13:28]requested_item fd.num is exist - process it [05:13:28]SAM_PROTO_GetFieldsCounters [05:13:28]wFMCommunicate request_size=4 [05:13:28]MH_SAM_APDU [05:13:28]CAPDU: 80 13 00 00 [05:13:28]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [05:13:28]Write i2c OK [05:13:28]MH_I2C_Read... [05:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:28]Read from MH i2c: E2 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 62 00 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 62 00 73 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [05:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:13:28]wFMCommunicate OK [05:13:28]SAM_PROTO_GetFieldsCounters done [05:13:28]requested_item shift.num is exist - process it [05:13:28]requested_item shift.opened is exist - process it [05:13:28]req_shift_opened [05:13:28]FM_GetShiftState [05:13:28]SAM_PROTO_GetShiftState [05:13:28]wFMCommunicate request_size=4 [05:13:28]MH_SAM_APDU [05:13:28]CAPDU: 80 13 01 00 [05:13:28]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [05:13:28]Write i2c OK [05:13:28]MH_I2C_Read... [05:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:28]Read from MH i2c: E2 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 0E 00 [05:13:28]MH_I2C_Read... [05:13:28]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B1 [05:13:28]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:13:28]wFMCommunicate OK [05:13:28]SAM_PROTO_GetShiftState done [05:13:28]FM_GetShiftState done [05:13:28]req_shift_opened done [05:13:28]requested_item shift.open_date is exist - process it [05:13:28]req_shift_open_date [05:13:28]req_shift_open_date done [05:13:28]produce_requested_data done [05:13:28]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178810,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:13:28]process_action_free close_receipt [05:13:28]json_value_free [05:13:28]json_value_free done [05:13:28]process_json_proto returns [05:13:28]Send response to host [05:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178810,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:13:28]free response buf [05:13:28]execute_script done [05:13:28]execute_script returns [05:13:28]free content buf [05:13:28]Sock 9.Close socket [05:13:28]Sock 9.Thread stoped [05:13:31]recv_with_timeout no data received [05:13:32]Connected sock=11 [05:13: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 37 37 38 0C 01 00 00 80 D6 04 01 9D 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 24 00 00 00 F4 03 04 00 F4 6B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7A BA 02 00 35 04 06 00 61 E5 50 C1 3D 1A F5 40 ED FB 76 31 11 09 [05:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 05 A9 47 00 BE 33 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 37 37 38 10 04 04 00 7A BA 02 00 F4 03 04 00 A0 17 C9 66 B6 04 01 00 00 D7 AD FE A6 32 D2 DE 9C [05:13:32]CommunicateWithHost err = 0 [05:13:32]CheckOFDResponse [05:13:32]1017 (14) - 77093643461234 [05:13:32]1041 (16) - 0000000000871778 [05:13:32]1040 (4) - 178810 [05:13:32]1012 (4) - 23.08.2024 23:13 [05:13:32]1206 (1) - 0 [05:13:32]OFD Sender: Remove packet 178810 [05:13:32]ProducePacketName [05:13:32]name=ofd_packets/00178810 [05:13:32]NVStorageDeleteData [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:52]recv_with_timeout no data received [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:02]accept exits with 7 [05:15:02]New connection [05:15:02]New thread 3067571556 created [05:15:02]Thread 3067428196 joined [05:15:02]Waiting for new connection... [05:15:02] Sock 7.Parse request [05:15:02]Sock 7.Check first char [05:15:02]Sock 7.First char is OK [05:15:02]request: POST /json_proto HTTP/1.0 [05:15:02]Method: POST [05:15:02]URL: /json_proto [05:15:02]Method is POST - this is cgi request [05:15:02]url: /json_proto [05:15:02]query_string will be loaded in cgi processing [05:15:02]execute_cgi json_proto POST (null) [05:15:02]execute_cgi path=json_proto method=POST [05:15:02]POST find Content-Length [05:15:02]Host: 172.17.44.131:8080 [05:15:02]Content-Length: 679 [05:15:02]Content-Type: application/json [05:15:02] [05:15:02]POST finish read [05:15:02]Found Content-Length = 679 [05:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [05:15:02]execute_script... [05:15: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)294963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [05:15:02]POST & json_proto [05:15:02]process_json_proto [05:15:02]json parsed OK: [05:15:02]protocol is kg_v1.0 [05:15:02]action value=close_receipt [05:15:02]process_action close_receipt [05:15:02]cmd_close_receipt [05:15:02]MH_GetDate [05:15:02]Write to MH i2c: F0 00 00 75 02 66 [05:15:02]Write i2c OK [05:15:02]MH_I2C_Read... [05:15:02]Read from MH i2c: F0 [05:15:02]MH_I2C_Read... [05:15:02]Read from MH i2c: F0 09 00 [05:15:02]MH_I2C_Read... [05:15:02]Read from MH i2c: F0 09 00 75 02 00 57 6C C9 66 4F 53 BE 66 27 [05:15:02]GetLastDocTimeStamp 1724476404 [05:15:02]current date 1724476503 [05:15:02]FM_GetShiftState [05:15:02]SAM_PROTO_GetShiftState [05:15:02]wFMCommunicate request_size=4 [05:15:02]MH_SAM_APDU [05:15:02]CAPDU: 80 13 01 00 [05:15:02]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [05:15:02]Write i2c OK [05:15:02]MH_I2C_Read... [05:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:02]Read from MH i2c: E2 [05:15:02]MH_I2C_Read... [05:15:02]Read from MH i2c: E2 0E 00 [05:15:02]MH_I2C_Read... [05:15:02]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B3 [05:15:02]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:15:02]wFMCommunicate OK [05:15:02]SAM_PROTO_GetShiftState done [05:15:02]FM_GetShiftState done [05:15:02]opened in 1724458079 [05:15:02]opened+sec_in_day 1724544479 [05:15:02]quantity*price = 150037 [05:15:02]sum+1 = 150039 [05:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 37 24.08.2024 05:15 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178811 ФПД: 207554695913184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051503&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178811&fm=207554695913184&tin=02508201610067®Number=0000000000092561&sum=150000 [05:15:03]StoreToDocumentArchive [05:15:03]shift 471 fd 178811 [05:15:03]save to /storage/0471/doc_00178811 [05:15:03]save last doc name /storage/0471/doc_00178811 to /storage/kkm_last_doc_name [05:15:03]save OK [05:15:03]Clear old archive folders... [05:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:15:03]tlvbuf is 00917420 [05:15:03]SAM_PROTO_ClearQueue [05:15:03]wFMCommunicate request_size=4 [05:15:03]MH_SAM_APDU [05:15:03]CAPDU: 80 09 00 00 [05:15:03]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [05:15:03]Write i2c OK [05:15:03]MH_I2C_Read... [05:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:03]Read from MH i2c: E2 [05:15:03]MH_I2C_Read... [05:15:03]Read from MH i2c: E2 03 00 [05:15:03]MH_I2C_Read... [05:15:03]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [05:15:03]RAPDU: 90 00 [05:15:03]wFMCommunicate OK [05:15:03]SAM_PROTO_ClearQueue done [05:15:03]KKMCreateOFDPacket [05:15:03]OFDProtocolAddRootSTLVToBuf [05:15:03]FM_MakeSignedData [05:15:03]FM_MakeSignedData [05:15:03]SAM_PROTO_SignData [05:15:03]wFMCommunicate request_size=4 [05:15:03]MH_SAM_APDU [05:15:03]CAPDU: 80 0D 01 02 [05:15:03]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [05:15:03]Write i2c OK [05:15:03]MH_I2C_Read... [05:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:03]Read from MH i2c: E2 [05:15:03]MH_I2C_Read... [05:15:03]Read from MH i2c: E2 03 00 [05:15:03]MH_I2C_Read... [05:15:03]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [05:15:03]RAPDU: 90 00 [05:15:03]wFMCommunicate OK [05:15:03]wFMCommunicate request_size=255 [05:15:03]MH_SAM_APDU [05:15:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 25 00 00 00 F4 03 04 00 57 6C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7B BA 02 00 35 04 06 00 BC C5 17 EB [05:15:03]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 25 00 00 00 F4 03 04 00 57 6C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7B BA 02 00 35 04 06 00 BC C5 17 EB 00 00 AD [05:15:04]Write i2c OK [05:15:04]MH_I2C_Read... [05:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:04]Read from MH i2c: E2 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 03 00 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [05:15:04]RAPDU: 90 00 [05:15:04]wFMCommunicate OK [05:15:04]wFMCommunicate request_size=7 [05:15:04]MH_SAM_APDU [05:15:04]CAPDU: 80 0D 02 02 02 DE E0 [05:15:04]Write to MH i2c: E2 0A 00 86 02 80 0D 02 02 02 00 DE E0 00 00 C4 [05:15:04]Write i2c OK [05:15:04]MH_I2C_Read... [05:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:04]Read from MH i2c: E2 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 03 00 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [05:15:04]RAPDU: 90 00 [05:15:04]wFMCommunicate OK [05:15:04]wFMCommunicate request_size=4 [05:15:04]MH_SAM_APDU [05:15:04]CAPDU: 80 0D 03 02 [05:15:04]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [05:15:04]Write i2c OK [05:15:04]MH_I2C_Read... [05:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:04]Read from MH i2c: E2 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 0B 00 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 0B 00 87 02 00 48 F5 84 B6 91 1B AE AD 90 00 83 [05:15:04]RAPDU: 48 F5 84 B6 91 1B AE AD 90 00 [05:15:04]wFMCommunicate OK [05:15:04]SAM_PROTO_SignData done [05:15:04]FM_MakeSignedData done [05:15:04]CreateOFDProtocolMessage [05:15:04]wFMCommunicate request_size=4 [05:15:04]MH_SAM_APDU [05:15:04]CAPDU: 80 11 00 00 [05:15:04]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [05:15:04]Write i2c OK [05:15:04]MH_I2C_Read... [05:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:04]Read from MH i2c: E2 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 17 00 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5D [05:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:15:04]wFMCommunicate OK [05:15:04]CreateOFDProtocolMessage done [05:15:04]OFDSenderStorePacket 178811 [05:15:04]StoreOFDPacket docnum=178811 [05:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 55 04 01 84 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 25 00 00 00 F4 03 04 00 57 6C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7B BA 02 00 35 04 06 00 BC C5 17 EB DE E0 48 F5 84 B6 91 1B AE AD [05:15:04]CheckFolder [05:15:04]dirname=/storage/ofd_packets [05:15:04]CheckFolder done [05:15:04]ProducePacketName [05:15:04]name=ofd_packets/00178811 [05:15:04]NVStorageSaveData ofd_packets/00178811 [05:15:04]File name is /storage/ofd_packets/00178811 [05:15:04]Write 298 bytes [05:15:04]NVStorageSaveData done [05:15:04]OFDSenderStorePacket done [05:15:04]KKMCreateOFDPacket done [05:15:04]NVStorageSaveData kkm_last_timestamp [05:15:04]File name is /storage/kkm_last_timestamp [05:15:04]Write 4 bytes [05:15:04]NVStorageSaveData done [05:15:04]ExternCall_PrintAddStr [05:15:04]wPrintStart [05:15:04]Write to MH i2c: 01 00 00 89 02 8B [05:15:04]Write i2c OK [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: 01 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: 01 07 00 [05:15:04]MH_I2C_Read... [05:15:04]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [05:15:04]RasterBufferAndPrint [05:15:04]line Счет N : (1)294963 [05:15:04]line ИНН: 02508201610067 [05:15:04]line Контрольно-Кассовый Чек [05:15:04]line ПРОДАЖА [05:15:04]line ТРК (МРК, ГНК) : 34 [05:15:04]line Товар: 2710194800 [05:15:04]line ДТ-К-5 [05:15:04]line 19.690 * 76.20 [05:15:04]line = 1500.38 [05:15:04]line НДС 12% НСП 1% [05:15:04]line > о реализуемом товаре [05:15:04]line ОКРУГЛЕНИЕ: -0.38 [05:15:04]line ИТОГО: 1500.00 [05:15:04]line Внесено: 1500.00 [05:15:04]line СДАЧА: 0.00 [05:15:04]line НСП 1% : 13.28 [05:15:04]line НДС 12% : 159.33 [05:15:04]line Наличными: 1500.00 [05:15:04]line Безнал.: 0.00 [05:15:04]line Место: АЗС № 130 "Партнер Нефть" [05:15:04]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:15:04]line СНО: Общий режим [05:15:04]line Чек 37 24.08.2024 05:15 [05:15:04]line Смена: 471 ФФД: 1.0 [05:15:04]line ЗНМ: 0300000071 [05:15:04]line РНМ: 0000000000092561 [05:15:04]line Версия ККМ: 001 [05:15:04]line ФМ: 0000000000871778 [05:15:04]line ФД: 178811 [05:15:04]line ФПД: 207554695913184 [05:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051503&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178811&fm=207554695913184&tin=02508201610067®Number=0000000000092561&sum=150000 [05:15:04]OFD Sender: Processing packet 178811 [packets to send 500, broken 499] [05:15:04]ProducePacketName [05:15:04]name=ofd_packets/00178811 [05:15:04]OFD Sender: To server: pG, [05:15:04]CommunicateWithHost lk.salyk.kg:30040 [05:15:04]ConnectInit lk.salyk.kg [05:15:04]written 0, free lines is 4095 [05:15:05]Connected sock=10 [05:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 55 04 01 84 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 25 00 00 00 F4 03 04 00 57 6C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7B BA 02 00 35 04 06 00 BC C5 17 EB DE E0 48 F5 84 B6 91 1B AE AD [05:15:05]Write to MH i2c: 01 00 00 B4 02 B6 [05:15:05]Write i2c OK [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: 01 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: 01 07 00 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 C8 0C 91 [05:15:05]RasterBufferAndPrint [05:15:05]line [05:15:05]line [05:15:05]line [05:15:05]line [05:15:05]line [05:15:05]written 0, free lines is 3278 [05:15:05]MH_Cut [05:15:05]Write to MH i2c: D1 01 00 BB 02 01 8F [05:15:05]Write i2c OK [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: D1 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: D1 01 00 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: D1 01 00 BB 02 00 8E [05:15:05]Write to MH i2c: 01 00 00 BC 02 BE [05:15:05]Write i2c OK [05:15:05]MH_I2C_Read... [05:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9C 1B 47 00 B0 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7B BA 02 00 F4 03 04 00 FD 17 C9 66 B6 04 01 00 00 DC FF B9 FD 54 7D 85 9D [05:15:05]CommunicateWithHost err = 0 [05:15:05]CheckOFDResponse [05:15:05]1017 (14) - 77093643461234 [05:15:05]1041 (16) - 0000000000871778 [05:15:05]1040 (4) - 178811 [05:15:05]1012 (4) - 23.08.2024 23:15 [05:15:05]1206 (1) - 0 [05:15:05]OFD Sender: Remove packet 178811 [05:15:05]ProducePacketName [05:15:05]name=ofd_packets/00178811 [05:15:05]NVStorageDeleteData [05:15:05]OFD Sender: No OFD packet to send [05:15:05]*** Cut start [05:15:05]*** Partial cut [05:15:05]*** CUTSNS_PIN = 1 [05:15:06]*** CUTSNS_PIN = 0 [05:15:06]*** Brake cut motor [05:15:06]Read from MH i2c: 01 [05:15:06]MH_I2C_Read... [05:15:06]*** Stop cut motor [05:15:06]*** Cut end [05:15:06]Read from MH i2c: 01 07 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [05:15:06]process_action close_receipt done [05:15:06]requested_data is exist [05:15:06]produce_requested_data [05:15:06]requested_item fm.sn is exist - process it [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 11 00 00 [05:15:06]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 17 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 92 [05:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:15:06]wFMCommunicate OK [05:15:06]requested_item fd.num is exist - process it [05:15:06]SAM_PROTO_GetFieldsCounters [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 13 00 00 [05:15:06]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 62 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 62 00 BE 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [05:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:15:06]wFMCommunicate OK [05:15:06]SAM_PROTO_GetFieldsCounters done [05:15:06]requested_item shift.num is exist - process it [05:15:06]requested_item shift.opened is exist - process it [05:15:06]req_shift_opened [05:15:06]FM_GetShiftState [05:15:06]SAM_PROTO_GetShiftState [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 13 01 00 [05:15:06]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 0E 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FC [05:15:06]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:15:06]wFMCommunicate OK [05:15:06]SAM_PROTO_GetShiftState done [05:15:06]FM_GetShiftState done [05:15:06]req_shift_opened done [05:15:06]requested_item shift.open_date is exist - process it [05:15:06]req_shift_open_date [05:15:06]req_shift_open_date done [05:15:06]produce_requested_data done [05:15:06]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178811,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:15:06]process_action_free close_receipt [05:15:06]json_value_free [05:15:06]json_value_free done [05:15:06]process_json_proto returns [05:15:06]Send response to host [05:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178811,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:15:06]free response buf [05:15:06]execute_script done [05:15:06]execute_script returns [05:15:06]free content buf [05:15:06]Sock 7.Close socket [05:15:06]Sock 7.Thread stoped [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:26]recv_with_timeout no data received [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:00]recv_with_timeout no data received [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:24]recv_with_timeout no data received [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:18:58]accept exits with 9 [05:18:58]New connection [05:18:58]New thread 3067428196 created [05:18:58]Thread 3067571556 joined [05:18:58]Waiting for new connection... [05:18:58] Sock 9.Parse request [05:18:58]Sock 9.Check first char [05:18:58]Sock 9.First char is OK [05:18:58]request: POST /json_proto HTTP/1.0 [05:18:58]Method: POST [05:18:58]URL: /json_proto [05:18:58]Method is POST - this is cgi request [05:18:58]url: /json_proto [05:18:58]query_string will be loaded in cgi processing [05:18:58]execute_cgi json_proto POST (null) [05:18:58]execute_cgi path=json_proto method=POST [05:18:58]POST find Content-Length [05:18:58]Host: 172.17.44.131:8080 [05:18:58]Content-Length: 667 [05:18:58]Content-Type: application/json [05:18:58] [05:18:58]POST finish read [05:18:58]Found Content-Length = 667 [05:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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" ] } } [05:18:58]execute_script... [05:18: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)294965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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" ] } } [05:18:58]POST & json_proto [05:18:58]process_json_proto [05:18:58]json parsed OK: [05:18:58]protocol is kg_v1.0 [05:18:58]action value=close_receipt [05:18:58]process_action close_receipt [05:18:58]cmd_close_receipt [05:18:58]MH_GetDate [05:18:58]Write to MH i2c: F0 00 00 C0 02 B1 [05:18:58]Write i2c OK [05:18:58]MH_I2C_Read... [05:18:58]Read from MH i2c: F0 [05:18:58]MH_I2C_Read... [05:18:58]Read from MH i2c: F0 09 00 [05:18:58]MH_I2C_Read... [05:18:58]Read from MH i2c: F0 09 00 C0 02 00 42 6D C9 66 4F 53 BE 66 5E [05:18:58]GetLastDocTimeStamp 1724476503 [05:18:58]current date 1724476738 [05:18:58]FM_GetShiftState [05:18:58]SAM_PROTO_GetShiftState [05:18:58]wFMCommunicate request_size=4 [05:18:58]MH_SAM_APDU [05:18:58]CAPDU: 80 13 01 00 [05:18:58]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [05:18:58]Write i2c OK [05:18:58]MH_I2C_Read... [05:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:58]Read from MH i2c: E2 [05:18:58]MH_I2C_Read... [05:18:58]Read from MH i2c: E2 0E 00 [05:18:58]MH_I2C_Read... [05:18:58]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FE [05:18:58]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:18:58]wFMCommunicate OK [05:18:58]SAM_PROTO_GetShiftState done [05:18:58]FM_GetShiftState done [05:18:58]opened in 1724458079 [05:18:58]opened+sec_in_day 1724544479 [05:18:58]quantity*price = 50017 [05:18:58]sum+1 = 50019 [05:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 38 24.08.2024 05:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178812 ФПД: 19516503802103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051858&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178812&fm=19516503802103&tin=02508201610067®Number=0000000000092561&sum=50000 [05:18:59]StoreToDocumentArchive [05:18:59]shift 471 fd 178812 [05:18:59]save to /storage/0471/doc_00178812 [05:18:59]save last doc name /storage/0471/doc_00178812 to /storage/kkm_last_doc_name [05:18:59]save OK [05:18:59]Clear old archive folders... [05:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=249 [05:18:59]tlvbuf is 0086CB10 [05:18:59]SAM_PROTO_ClearQueue [05:18:59]wFMCommunicate request_size=4 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 09 00 00 [05:18:59]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [05:18:59]RAPDU: 90 00 [05:18:59]wFMCommunicate OK [05:18:59]SAM_PROTO_ClearQueue done [05:18:59]KKMCreateOFDPacket [05:18:59]OFDProtocolAddRootSTLVToBuf [05:18:59]FM_MakeSignedData [05:18:59]FM_MakeSignedData [05:18:59]SAM_PROTO_SignData [05:18:59]wFMCommunicate request_size=4 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 0D 01 02 [05:18:59]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [05:18:59]RAPDU: 90 00 [05:18:59]wFMCommunicate OK [05:18:59]wFMCommunicate request_size=255 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 26 00 00 00 F4 03 04 00 42 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7C BA 02 00 35 04 06 00 11 C0 0A [05:18:59]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 26 00 00 00 F4 03 04 00 42 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7C BA 02 00 35 04 06 00 11 C0 0A 00 00 58 [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [05:18:59]RAPDU: 90 00 [05:18:59]wFMCommunicate OK [05:18:59]wFMCommunicate request_size=8 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 0D 02 02 03 46 C0 F7 [05:18:59]Write to MH i2c: E2 0B 00 D1 02 80 0D 02 02 03 00 46 C0 F7 00 00 50 [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [05:18:59]RAPDU: 90 00 [05:18:59]wFMCommunicate OK [05:18:59]wFMCommunicate request_size=4 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 0D 03 02 [05:18:59]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 0B 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 0B 00 D2 02 00 D5 1C 62 FE E7 DF AA E8 90 00 F9 [05:18:59]RAPDU: D5 1C 62 FE E7 DF AA E8 90 00 [05:18:59]wFMCommunicate OK [05:18:59]SAM_PROTO_SignData done [05:18:59]FM_MakeSignedData done [05:18:59]CreateOFDProtocolMessage [05:18:59]wFMCommunicate request_size=4 [05:18:59]MH_SAM_APDU [05:18:59]CAPDU: 80 11 00 00 [05:18:59]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [05:18:59]Write i2c OK [05:18:59]MH_I2C_Read... [05:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:59]Read from MH i2c: E2 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 17 00 [05:18:59]MH_I2C_Read... [05:18:59]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A8 [05:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:18:59]wFMCommunicate OK [05:18:59]CreateOFDProtocolMessage done [05:18:59]OFDSenderStorePacket 178812 [05:18:59]StoreOFDPacket docnum=178812 [05:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 69 BA 05 01 A0 60 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 26 00 00 00 F4 03 04 00 42 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7C BA 02 00 35 04 06 00 11 C0 0A 46 C0 F7 D5 1C 62 FE E7 DF AA E8 [05:18:59]CheckFolder [05:18:59]dirname=/storage/ofd_packets [05:18:59]CheckFolder done [05:18:59]ProducePacketName [05:18:59]name=ofd_packets/00178812 [05:18:59]NVStorageSaveData ofd_packets/00178812 [05:18:59]File name is /storage/ofd_packets/00178812 [05:18:59]Write 299 bytes [05:18:59]NVStorageSaveData done [05:18:59]OFDSenderStorePacket done [05:18:59]KKMCreateOFDPacket done [05:18:59]NVStorageSaveData kkm_last_timestamp [05:18:59]File name is /storage/kkm_last_timestamp [05:18:59]Write 4 bytes [05:18:59]NVStorageSaveData done [05:19:00]ExternCall_PrintAddStr [05:19:00]wPrintStart [05:19:00]Write to MH i2c: 01 00 00 D4 02 D6 [05:19:00]Write i2c OK [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 07 00 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [05:19:00]RasterBufferAndPrint [05:19:00]line Счет N : (1)294965 [05:19:00]line ИНН: 02508201610067 [05:19:00]line Контрольно-Кассовый Чек [05:19:00]line ПРОДАЖА [05:19:00]line ТРК (МРК, ГНК) : 31 [05:19:00]line Товар: 2710124130 [05:19:00]line SU-92-К-5 [05:19:00]line 7.270 * 68.80 [05:19:00]line = 500.18 [05:19:00]line НДС 12% НСП 1% [05:19:00]line > о реализуемом товаре [05:19:00]line ОКРУГЛЕНИЕ: -0.18 [05:19:00]line ИТОГО: 500.00 [05:19:00]line Внесено: 500.00 [05:19:00]line СДАЧА: 0.00 [05:19:00]line НСП 1% : 4.43 [05:19:00]line НДС 12% : 53.12 [05:19:00]line Наличными: 500.00 [05:19:00]line Безнал.: 0.00 [05:19:00]line Место: АЗС № 130 "Партнер Нефть" [05:19:00]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:19:00]line СНО: Общий режим [05:19:00]line Чек 38 24.08.2024 05:18 [05:19:00]line Смена: 471 ФФД: 1.0 [05:19:00]line ЗНМ: 0300000071 [05:19:00]line РНМ: 0000000000092561 [05:19:00]line Версия ККМ: 001 [05:19:00]line ФМ: 0000000000871778 [05:19:00]line ФД: 178812 [05:19:00]line ФПД: 19516503802103 [05:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T051858&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178812&fm=19516503802103&tin=02508201610067®Number=0000000000092561&sum=50000 [05:19:00]OFD Sender: Processing packet 178812 [packets to send 500, broken 499] [05:19:00]ProducePacketName [05:19:00]name=ofd_packets/00178812 [05:19:00]OFD Sender: To server: pG, [05:19:00]CommunicateWithHost lk.salyk.kg:30040 [05:19:00]ConnectInit lk.salyk.kg [05:19:00]written 0, free lines is 4095 [05:19:00]Write to MH i2c: 01 00 00 FF 02 01 [05:19:00]Write i2c OK [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 07 00 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 C9 0C DD [05:19:00]RasterBufferAndPrint [05:19:00]line [05:19:00]line [05:19:00]line [05:19:00]line [05:19:00]line [05:19:00]written 0, free lines is 3279 [05:19:00]MH_Cut [05:19:00]Write to MH i2c: D1 01 00 06 03 01 DB [05:19:00]Write i2c OK [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: D1 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: D1 01 00 [05:19:00]MH_I2C_Read... [05:19:00]Read from MH i2c: D1 01 00 06 03 00 DA [05:19:00]Write to MH i2c: 01 00 00 07 03 0A [05:19:00]Write i2c OK [05:19:00]MH_I2C_Read... [05:19:01]*** Cut start [05:19:01]*** Partial cut [05:19:01]*** CUTSNS_PIN = 1 [05:19:01]*** CUTSNS_PIN = 0 [05:19:01]*** Brake cut motor [05:19:02]Read from MH i2c: 01 [05:19:02]MH_I2C_Read... [05:19:02]*** Stop cut motor [05:19:02]*** Cut end [05:19:02]Read from MH i2c: 01 07 00 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [05:19:02]process_action close_receipt done [05:19:02]requested_data is exist [05:19:02]produce_requested_data [05:19:02]requested_item fm.sn is exist - process it [05:19:02]wFMCommunicate request_size=4 [05:19:02]MH_SAM_APDU [05:19:02]CAPDU: 80 11 00 00 [05:19:02]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [05:19:02]Write i2c OK [05:19:02]MH_I2C_Read... [05:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:02]Read from MH i2c: E2 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 17 00 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DE [05:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:19:02]wFMCommunicate OK [05:19:02]requested_item fd.num is exist - process it [05:19:02]SAM_PROTO_GetFieldsCounters [05:19:02]wFMCommunicate request_size=4 [05:19:02]MH_SAM_APDU [05:19:02]CAPDU: 80 13 00 00 [05:19:02]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [05:19:02]Write i2c OK [05:19:02]MH_I2C_Read... [05:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:19:02]Read from MH i2c: E2 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 62 00 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 62 00 09 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [05:19: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:19:02]wFMCommunicate OK [05:19:02]SAM_PROTO_GetFieldsCounters done [05:19:02]requested_item shift.num is exist - process it [05:19:02]requested_item shift.opened is exist - process it [05:19:02]req_shift_opened [05:19:02]FM_GetShiftState [05:19:02]SAM_PROTO_GetShiftState [05:19:02]wFMCommunicate request_size=4 [05:19:02]MH_SAM_APDU [05:19:02]CAPDU: 80 13 01 00 [05:19:02]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [05:19:02]Write i2c OK [05:19:02]MH_I2C_Read... [05:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:02]Read from MH i2c: E2 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 0E 00 [05:19:02]MH_I2C_Read... [05:19:02]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 48 [05:19:02]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:19:02]wFMCommunicate OK [05:19:02]SAM_PROTO_GetShiftState done [05:19:02]FM_GetShiftState done [05:19:02]req_shift_opened done [05:19:02]requested_item shift.open_date is exist - process it [05:19:02]req_shift_open_date [05:19:02]req_shift_open_date done [05:19:02]produce_requested_data done [05:19:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178812,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:19:02]process_action_free close_receipt [05:19:02]json_value_free [05:19:02]json_value_free done [05:19:02]process_json_proto returns [05:19:02]Send response to host [05:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178812,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:19:02]free response buf [05:19:02]execute_script done [05:19:02]execute_script returns [05:19:02]free content buf [05:19:02]Sock 9.Close socket [05:19:02]Sock 9.Thread stoped [05:19:04]Connected sock=7 [05:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 69 BA 05 01 A0 60 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 26 00 00 00 F4 03 04 00 42 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7C BA 02 00 35 04 06 00 11 C0 0A 46 C0 F7 D5 1C 62 FE E7 DF AA E8 [05:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9A 7E 47 00 1F 85 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 37 37 38 10 04 04 00 7C BA 02 00 F4 03 04 00 EE 18 C9 66 B6 04 01 00 00 7B 97 26 44 4D A0 A4 82 [05:19:06]CommunicateWithHost err = 0 [05:19:06]CheckOFDResponse [05:19:06]1017 (14) - 77093643461234 [05:19:06]1041 (16) - 0000000000871778 [05:19:06]1040 (4) - 178812 [05:19:06]1012 (4) - 23.08.2024 23:19 [05:19:06]1206 (1) - 0 [05:19:06]OFD Sender: Remove packet 178812 [05:19:06]ProducePacketName [05:19:06]name=ofd_packets/00178812 [05:19:06]NVStorageDeleteData [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:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:53]accept exits with 10 [05:20:53]New connection [05:20:53]New thread 3067571556 created [05:20:53]Thread 3067428196 joined [05:20:53]Waiting for new connection... [05:20:53] Sock 10.Parse request [05:20:53]Sock 10.Check first char [05:20:53]Sock 10.First char is OK [05:20:53]request: POST /json_proto HTTP/1.0 [05:20:53]Method: POST [05:20:53]URL: /json_proto [05:20:53]Method is POST - this is cgi request [05:20:53]url: /json_proto [05:20:53]query_string will be loaded in cgi processing [05:20:53]execute_cgi json_proto POST (null) [05:20:53]execute_cgi path=json_proto method=POST [05:20:53]POST find Content-Length [05:20:53]Host: 172.17.44.131:8080 [05:20:53]Content-Length: 682 [05:20:53]Content-Type: application/json [05:20:53] [05:20:53]POST finish read [05:20:53]Found Content-Length = 682 [05:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [05:20:53]execute_script... [05:20: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)294967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [05:20:53]POST & json_proto [05:20:53]process_json_proto [05:20:53]json parsed OK: [05:20:53]protocol is kg_v1.0 [05:20:53]action value=close_receipt [05:20:53]process_action close_receipt [05:20:53]cmd_close_receipt [05:20:53]MH_GetDate [05:20:53]Write to MH i2c: F0 00 00 0B 03 FD [05:20:53]Write i2c OK [05:20:53]MH_I2C_Read... [05:20:53]Read from MH i2c: F0 [05:20:53]MH_I2C_Read... [05:20:53]Read from MH i2c: F0 09 00 [05:20:53]MH_I2C_Read... [05:20:53]Read from MH i2c: F0 09 00 0B 03 00 B5 6D C9 66 4F 53 BE 66 1D [05:20:53]GetLastDocTimeStamp 1724476738 [05:20:53]current date 1724476853 [05:20:53]FM_GetShiftState [05:20:53]SAM_PROTO_GetShiftState [05:20:53]wFMCommunicate request_size=4 [05:20:53]MH_SAM_APDU [05:20:53]CAPDU: 80 13 01 00 [05:20:53]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [05:20:53]Write i2c OK [05:20:53]MH_I2C_Read... [05:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:20:53]Read from MH i2c: E2 [05:20:53]MH_I2C_Read... [05:20:53]Read from MH i2c: E2 0E 00 [05:20:53]MH_I2C_Read... [05:20:53]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4A [05:20:53]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:20:53]wFMCommunicate OK [05:20:53]SAM_PROTO_GetShiftState done [05:20:53]FM_GetShiftState done [05:20:53]opened in 1724458079 [05:20:53]opened+sec_in_day 1724544479 [05:20:53]quantity*price = 100021 [05:20:53]sum+1 = 100023 [05:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 39 24.08.2024 05:20 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178813 ФПД: 37198337905221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T052053&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178813&fm=37198337905221&tin=02508201610067®Number=0000000000092561&sum=100000 [05:20:54]StoreToDocumentArchive [05:20:54]shift 471 fd 178813 [05:20:54]save to /storage/0471/doc_00178813 [05:20:54]save last doc name /storage/0471/doc_00178813 to /storage/kkm_last_doc_name [05:20:54]save OK [05:20:54]Clear old archive folders... [05:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:20:54]tlvbuf is 0086E430 [05:20:54]SAM_PROTO_ClearQueue [05:20:54]wFMCommunicate request_size=4 [05:20:54]MH_SAM_APDU [05:20:54]CAPDU: 80 09 00 00 [05:20:54]Write to MH i2c: E2 08 00 19 03 80 09 00 00 00 00 00 00 8E [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [05:20:54]RAPDU: 90 00 [05:20:54]wFMCommunicate OK [05:20:54]SAM_PROTO_ClearQueue done [05:20:54]KKMCreateOFDPacket [05:20:54]OFDProtocolAddRootSTLVToBuf [05:20:54]FM_MakeSignedData [05:20:54]FM_MakeSignedData [05:20:54]SAM_PROTO_SignData [05:20:54]wFMCommunicate request_size=4 [05:20:54]MH_SAM_APDU [05:20:54]CAPDU: 80 0D 01 02 [05:20:54]Write to MH i2c: E2 08 00 1A 03 80 0D 01 02 00 00 00 00 96 [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [05:20:54]RAPDU: 90 00 [05:20:54]wFMCommunicate OK [05:20:54]wFMCommunicate request_size=255 [05:20:54]MH_SAM_APDU [05:20:54]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 27 00 00 00 F4 03 04 00 B5 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7D BA 02 00 35 04 06 00 21 [05:20:54]Write to MH i2c: E2 02 01 1B 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 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 27 00 00 00 F4 03 04 00 B5 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7D BA 02 00 35 04 06 00 21 00 00 F0 [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [05:20:54]RAPDU: 90 00 [05:20:54]wFMCommunicate OK [05:20:54]wFMCommunicate request_size=10 [05:20:54]MH_SAM_APDU [05:20:54]CAPDU: 80 0D 02 02 05 D4 E9 B7 92 45 [05:20:54]Write to MH i2c: E2 0D 00 1C 03 80 0D 02 02 05 00 D4 E9 B7 92 45 00 00 EE [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [05:20:54]RAPDU: 90 00 [05:20:54]wFMCommunicate OK [05:20:54]wFMCommunicate request_size=4 [05:20:54]MH_SAM_APDU [05:20:54]CAPDU: 80 0D 03 02 [05:20:54]Write to MH i2c: E2 08 00 1D 03 80 0D 03 02 00 00 00 00 9B [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 0B 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 0B 00 1D 03 00 8A 53 92 65 12 0A 49 22 90 00 F7 [05:20:54]RAPDU: 8A 53 92 65 12 0A 49 22 90 00 [05:20:54]wFMCommunicate OK [05:20:54]SAM_PROTO_SignData done [05:20:54]FM_MakeSignedData done [05:20:54]CreateOFDProtocolMessage [05:20:54]wFMCommunicate request_size=4 [05:20:54]MH_SAM_APDU [05:20:54]CAPDU: 80 11 00 00 [05:20:54]Write to MH i2c: E2 08 00 1E 03 80 11 00 00 00 00 00 00 9B [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:20:54]Read from MH i2c: E2 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 17 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: E2 17 00 1E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F4 [05:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:20:54]wFMCommunicate OK [05:20:54]CreateOFDProtocolMessage done [05:20:54]OFDSenderStorePacket 178813 [05:20:54]StoreOFDPacket docnum=178813 [05:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 04 D9 07 01 81 4C 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 27 00 00 00 F4 03 04 00 B5 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7D BA 02 00 35 04 06 00 21 D4 E9 B7 92 45 8A 53 92 65 12 0A 49 22 [05:20:54]CheckFolder [05:20:54]dirname=/storage/ofd_packets [05:20:54]CheckFolder done [05:20:54]ProducePacketName [05:20:54]name=ofd_packets/00178813 [05:20:54]NVStorageSaveData ofd_packets/00178813 [05:20:54]File name is /storage/ofd_packets/00178813 [05:20:54]Write 301 bytes [05:20:54]NVStorageSaveData done [05:20:54]OFDSenderStorePacket done [05:20:54]KKMCreateOFDPacket done [05:20:54]NVStorageSaveData kkm_last_timestamp [05:20:54]File name is /storage/kkm_last_timestamp [05:20:54]Write 4 bytes [05:20:54]NVStorageSaveData done [05:20:54]ExternCall_PrintAddStr [05:20:54]wPrintStart [05:20:54]Write to MH i2c: 01 00 00 1F 03 22 [05:20:54]Write i2c OK [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: 01 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: 01 07 00 [05:20:54]MH_I2C_Read... [05:20:54]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [05:20:54]RasterBufferAndPrint [05:20:54]line Счет N : (1)294967 [05:20:54]line ИНН: 02508201610067 [05:20:54]line Контрольно-Кассовый Чек [05:20:54]line ПРОДАЖА [05:20:54]line ТРК (МРК, ГНК) : 63 [05:20:54]line Товар: 2710124500 [05:20:54]line Аи-95-К-5 [05:20:54]line 13.480 * 74.20 [05:20:54]line = 1000.22 [05:20:54]line НДС 12% НСП 1% [05:20:54]line > о реализуемом товаре [05:20:54]line ОКРУГЛЕНИЕ: -0.22 [05:20:54]line ИТОГО: 1000.00 [05:20:54]line Внесено: 1000.00 [05:20:54]line СДАЧА: 0.00 [05:20:54]line НСП 1% : 8.85 [05:20:54]line НДС 12% : 106.22 [05:20:54]line Наличными: 1000.00 [05:20:54]line Безнал.: 0.00 [05:20:54]line Место: АЗС № 130 "Партнер Нефть" [05:20:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:20:54]line СНО: Общий режим [05:20:54]line Чек 39 24.08.2024 05:20 [05:20:54]line Смена: 471 ФФД: 1.0 [05:20:54]line ЗНМ: 0300000071 [05:20:54]line РНМ: 0000000000092561 [05:20:54]line Версия ККМ: 001 [05:20:54]line ФМ: 0000000000871778 [05:20:54]line ФД: 178813 [05:20:54]line ФПД: 37198337905221 [05:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T052053&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178813&fm=37198337905221&tin=02508201610067®Number=0000000000092561&sum=100000 [05:20:54]written 0, free lines is 4095 [05:20:54]OFD Sender: Processing packet 178813 [packets to send 500, broken 499] [05:20:54]ProducePacketName [05:20:54]name=ofd_packets/00178813 [05:20:54]OFD Sender: To server: pG, [05:20:54]CommunicateWithHost lk.salyk.kg:30040 [05:20:54]ConnectInit lk.salyk.kg [05:20:55]Connected sock=7 [05:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 04 D9 07 01 81 4C 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 27 00 00 00 F4 03 04 00 B5 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7D BA 02 00 35 04 06 00 21 D4 E9 B7 92 45 8A 53 92 65 12 0A 49 22 [05:20:55]Write to MH i2c: 01 00 00 4A 03 4D [05:20:55]Write i2c OK [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: 01 [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: 01 07 00 [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 D9 0C 39 [05:20:55]RasterBufferAndPrint [05:20:55]line [05:20:55]line [05:20:55]line [05:20:55]line [05:20:55]line [05:20:55]written 0, free lines is 3296 [05:20:55]MH_Cut [05:20:55]Write to MH i2c: D1 01 00 51 03 01 26 [05:20:55]Write i2c OK [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: D1 [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: D1 01 00 [05:20:55]MH_I2C_Read... [05:20:55]Read from MH i2c: D1 01 00 51 03 00 25 [05:20:55]Write to MH i2c: 01 00 00 52 03 55 [05:20:55]Write i2c OK [05:20:55]MH_I2C_Read... [05:20:56]*** Cut start [05:20:56]*** Partial cut [05:20:56]*** CUTSNS_PIN = 1 [05:20:56]*** CUTSNS_PIN = 0 [05:20:56]*** Brake cut motor [05:20:56]Read from MH i2c: 01 [05:20:56]MH_I2C_Read... [05:20:56]*** Stop cut motor [05:20:56]*** Cut end [05:20:56]Read from MH i2c: 01 07 00 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [05:20:56]process_action close_receipt done [05:20:56]requested_data is exist [05:20:56]produce_requested_data [05:20:56]requested_item fm.sn is exist - process it [05:20:56]wFMCommunicate request_size=4 [05:20:56]MH_SAM_APDU [05:20:56]CAPDU: 80 11 00 00 [05:20:56]Write to MH i2c: E2 08 00 53 03 80 11 00 00 00 00 00 00 D0 [05:20:56]Write i2c OK [05:20:56]MH_I2C_Read... [05:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:20:56]Read from MH i2c: E2 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 17 00 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 17 00 53 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 29 [05:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:20:56]wFMCommunicate OK [05:20:56]requested_item fd.num is exist - process it [05:20:56]SAM_PROTO_GetFieldsCounters [05:20:56]wFMCommunicate request_size=4 [05:20:56]MH_SAM_APDU [05:20:56]CAPDU: 80 13 00 00 [05:20:56]Write to MH i2c: E2 08 00 54 03 80 13 00 00 00 00 00 00 D3 [05:20:56]Write i2c OK [05:20:56]MH_I2C_Read... [05:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:20:56]Read from MH i2c: E2 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 62 00 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 62 00 54 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [05:20: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:20:56]wFMCommunicate OK [05:20:56]SAM_PROTO_GetFieldsCounters done [05:20:56]requested_item shift.num is exist - process it [05:20:56]requested_item shift.opened is exist - process it [05:20:56]req_shift_opened [05:20:56]FM_GetShiftState [05:20:56]SAM_PROTO_GetShiftState [05:20:56]wFMCommunicate request_size=4 [05:20:56]MH_SAM_APDU [05:20:56]CAPDU: 80 13 01 00 [05:20:56]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [05:20:56]Write i2c OK [05:20:56]MH_I2C_Read... [05:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:20:56]Read from MH i2c: E2 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 0E 00 [05:20:56]MH_I2C_Read... [05:20:56]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 93 [05:20:56]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:20:56]wFMCommunicate OK [05:20:56]SAM_PROTO_GetShiftState done [05:20:56]FM_GetShiftState done [05:20:56]req_shift_opened done [05:20:56]requested_item shift.open_date is exist - process it [05:20:56]req_shift_open_date [05:20:56]req_shift_open_date done [05:20:56]produce_requested_data done [05:20:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178813,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:20:56]process_action_free close_receipt [05:20:56]json_value_free [05:20:56]json_value_free done [05:20:56]process_json_proto returns [05:20:56]Send response to host [05:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178813,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:20:56]free response buf [05:20:56]execute_script done [05:20:56]execute_script returns [05:20:56]free content buf [05:20:56]Sock 10.Close socket [05:20:56]Sock 10.Thread stoped [05:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 53 11 47 00 0D A5 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 37 37 38 10 04 04 00 7D BA 02 00 F4 03 04 00 5B 19 C9 66 B6 04 01 00 00 D4 A1 35 94 3F 91 0E 32 [05:20:57]CommunicateWithHost err = 0 [05:20:57]CheckOFDResponse [05:20:57]1017 (14) - 77093643461234 [05:20:57]1041 (16) - 0000000000871778 [05:20:57]1040 (4) - 178813 [05:20:57]1012 (4) - 23.08.2024 23:20 [05:20:57]1206 (1) - 0 [05:20:57]OFD Sender: Remove packet 178813 [05:20:57]ProducePacketName [05:20:57]name=ofd_packets/00178813 [05:20:57]NVStorageDeleteData [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:18]recv_with_timeout no data received [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:32]recv_with_timeout no data received [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]accept exits with 9 [05:22:03]New connection [05:22:03]New thread 3067428196 created [05:22:03]Thread 3067571556 joined [05:22:03]Waiting for new connection... [05:22:03] Sock 9.Parse request [05:22:03]Sock 9.Check first char [05:22:03]Sock 9.First char is OK [05:22:03]request: POST /json_proto HTTP/1.0 [05:22:03]Method: POST [05:22:03]URL: /json_proto [05:22:03]Method is POST - this is cgi request [05:22:03]url: /json_proto [05:22:03]query_string will be loaded in cgi processing [05:22:03]execute_cgi json_proto POST (null) [05:22:03]execute_cgi path=json_proto method=POST [05:22:03]POST find Content-Length [05:22:03]Host: 172.17.44.131:8080 [05:22:03]Content-Length: 679 [05:22:03]Content-Type: application/json [05:22:03] [05:22:03]POST finish read [05:22:03]Found Content-Length = 679 [05:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [05:22:03]execute_script... [05:22: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)294968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [05:22:03]POST & json_proto [05:22:03]process_json_proto [05:22:03]json parsed OK: [05:22:03]protocol is kg_v1.0 [05:22:03]action value=close_receipt [05:22:03]process_action close_receipt [05:22:03]cmd_close_receipt [05:22:03]MH_GetDate [05:22:03]Write to MH i2c: F0 00 00 56 03 48 [05:22:03]Write i2c OK [05:22:03]MH_I2C_Read... [05:22:03]Read from MH i2c: F0 [05:22:03]MH_I2C_Read... [05:22:03]Read from MH i2c: F0 09 00 [05:22:03]MH_I2C_Read... [05:22:03]Read from MH i2c: F0 09 00 56 03 00 FB 6D C9 66 4F 53 BE 66 AE [05:22:03]GetLastDocTimeStamp 1724476853 [05:22:03]current date 1724476923 [05:22:03]FM_GetShiftState [05:22:03]SAM_PROTO_GetShiftState [05:22:03]wFMCommunicate request_size=4 [05:22:03]MH_SAM_APDU [05:22:03]CAPDU: 80 13 01 00 [05:22:03]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [05:22:03]Write i2c OK [05:22:03]MH_I2C_Read... [05:22:03]OFD Sender: No OFD packet to send [05:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:03]Read from MH i2c: E2 [05:22:03]MH_I2C_Read... [05:22:03]Read from MH i2c: E2 0E 00 [05:22:03]MH_I2C_Read... [05:22:03]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 95 [05:22:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:22:03]wFMCommunicate OK [05:22:03]SAM_PROTO_GetShiftState done [05:22:03]FM_GetShiftState done [05:22:03]opened in 1724458079 [05:22:03]opened+sec_in_day 1724544479 [05:22:03]quantity*price = 100050 [05:22:03]sum+1 = 100052 [05:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 40 24.08.2024 05:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178814 ФПД: 260967068484632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T052204&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178814&fm=260967068484632&tin=02508201610067®Number=0000000000092561&sum=100000 [05:22:04]StoreToDocumentArchive [05:22:04]shift 471 fd 178814 [05:22:04]save to /storage/0471/doc_00178814 [05:22:04]save last doc name /storage/0471/doc_00178814 to /storage/kkm_last_doc_name [05:22:04]save OK [05:22:04]Clear old archive folders... [05:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:22:04]tlvbuf is 00916840 [05:22:04]SAM_PROTO_ClearQueue [05:22:04]wFMCommunicate request_size=4 [05:22:04]MH_SAM_APDU [05:22:04]CAPDU: 80 09 00 00 [05:22:04]Write to MH i2c: E2 08 00 64 03 80 09 00 00 00 00 00 00 D9 [05:22:04]Write i2c OK [05:22:04]MH_I2C_Read... [05:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:04]Read from MH i2c: E2 [05:22:04]MH_I2C_Read... [05:22:04]Read from MH i2c: E2 03 00 [05:22:04]MH_I2C_Read... [05:22:04]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [05:22:04]RAPDU: 90 00 [05:22:04]wFMCommunicate OK [05:22:04]SAM_PROTO_ClearQueue done [05:22:04]KKMCreateOFDPacket [05:22:04]OFDProtocolAddRootSTLVToBuf [05:22:04]FM_MakeSignedData [05:22:04]FM_MakeSignedData [05:22:04]SAM_PROTO_SignData [05:22:04]wFMCommunicate request_size=4 [05:22:04]MH_SAM_APDU [05:22:04]CAPDU: 80 0D 01 02 [05:22:04]Write to MH i2c: E2 08 00 65 03 80 0D 01 02 00 00 00 00 E1 [05:22:04]Write i2c OK [05:22:04]MH_I2C_Read... [05:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:04]Read from MH i2c: E2 [05:22:04]MH_I2C_Read... [05:22:04]Read from MH i2c: E2 03 00 [05:22:04]MH_I2C_Read... [05:22:04]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [05:22:04]RAPDU: 90 00 [05:22:04]wFMCommunicate OK [05:22:04]wFMCommunicate request_size=255 [05:22:04]MH_SAM_APDU [05:22:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 28 00 00 00 F4 03 04 00 FC 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7E BA 02 00 35 04 06 00 ED 59 21 6A [05:22:04]Write to MH i2c: E2 02 01 66 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 28 00 00 00 F4 03 04 00 FC 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7E BA 02 00 35 04 06 00 ED 59 21 6A 00 00 12 [05:22:04]Write i2c OK [05:22:04]MH_I2C_Read... [05:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:05]Read from MH i2c: E2 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 03 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [05:22:05]RAPDU: 90 00 [05:22:05]wFMCommunicate OK [05:22:05]wFMCommunicate request_size=7 [05:22:05]MH_SAM_APDU [05:22:05]CAPDU: 80 0D 02 02 02 44 18 [05:22:05]Write to MH i2c: E2 0A 00 67 03 80 0D 02 02 02 00 44 18 00 00 44 [05:22:05]Write i2c OK [05:22:05]MH_I2C_Read... [05:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:05]Read from MH i2c: E2 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 03 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [05:22:05]RAPDU: 90 00 [05:22:05]wFMCommunicate OK [05:22:05]wFMCommunicate request_size=4 [05:22:05]MH_SAM_APDU [05:22:05]CAPDU: 80 0D 03 02 [05:22:05]Write to MH i2c: E2 08 00 68 03 80 0D 03 02 00 00 00 00 E6 [05:22:05]Write i2c OK [05:22:05]MH_I2C_Read... [05:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:05]Read from MH i2c: E2 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 0B 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 0B 00 68 03 00 FF 0F BA 97 8B 83 F3 67 90 00 AE [05:22:05]RAPDU: FF 0F BA 97 8B 83 F3 67 90 00 [05:22:05]wFMCommunicate OK [05:22:05]SAM_PROTO_SignData done [05:22:05]FM_MakeSignedData done [05:22:05]CreateOFDProtocolMessage [05:22:05]wFMCommunicate request_size=4 [05:22:05]MH_SAM_APDU [05:22:05]CAPDU: 80 11 00 00 [05:22:05]Write to MH i2c: E2 08 00 69 03 80 11 00 00 00 00 00 00 E6 [05:22:05]Write i2c OK [05:22:05]MH_I2C_Read... [05:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:05]Read from MH i2c: E2 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 17 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: E2 17 00 69 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3F [05:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:22:05]wFMCommunicate OK [05:22:05]CreateOFDProtocolMessage done [05:22:05]OFDSenderStorePacket 178814 [05:22:05]StoreOFDPacket docnum=178814 [05:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 16 7A 04 01 50 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 28 00 00 00 F4 03 04 00 FC 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7E BA 02 00 35 04 06 00 ED 59 21 6A 44 18 FF 0F BA 97 8B 83 F3 67 [05:22:05]CheckFolder [05:22:05]dirname=/storage/ofd_packets [05:22:05]CheckFolder done [05:22:05]ProducePacketName [05:22:05]name=ofd_packets/00178814 [05:22:05]NVStorageSaveData ofd_packets/00178814 [05:22:05]File name is /storage/ofd_packets/00178814 [05:22:05]Write 298 bytes [05:22:05]NVStorageSaveData done [05:22:05]OFDSenderStorePacket done [05:22:05]KKMCreateOFDPacket done [05:22:05]NVStorageSaveData kkm_last_timestamp [05:22:05]File name is /storage/kkm_last_timestamp [05:22:05]Write 4 bytes [05:22:05]NVStorageSaveData done [05:22:05]ExternCall_PrintAddStr [05:22:05]wPrintStart [05:22:05]Write to MH i2c: 01 00 00 6A 03 6D [05:22:05]Write i2c OK [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 07 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 FF 0F 82 [05:22:05]RasterBufferAndPrint [05:22:05]line Счет N : (1)294968 [05:22:05]line ИНН: 02508201610067 [05:22:05]line Контрольно-Кассовый Чек [05:22:05]line ПРОДАЖА [05:22:05]line ТРК (МРК, ГНК) : 21 [05:22:05]line Товар: 2710194800 [05:22:05]line ДТ-К-5 [05:22:05]line 13.130 * 76.20 [05:22:05]line = 1000.51 [05:22:05]line НДС 12% НСП 1% [05:22:05]line > о реализуемом товаре [05:22:05]line ОКРУГЛЕНИЕ: -0.51 [05:22:05]line ИТОГО: 1000.00 [05:22:05]line Внесено: 1000.00 [05:22:05]line СДАЧА: 0.00 [05:22:05]line НСП 1% : 8.85 [05:22:05]line НДС 12% : 106.25 [05:22:05]line Наличными: 1000.00 [05:22:05]line Безнал.: 0.00 [05:22:05]line Место: АЗС № 130 "Партнер Нефть" [05:22:05]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:22:05]line СНО: Общий режим [05:22:05]line Чек 40 24.08.2024 05:22 [05:22:05]line Смена: 471 ФФД: 1.0 [05:22:05]line ЗНМ: 0300000071 [05:22:05]line РНМ: 0000000000092561 [05:22:05]line Версия ККМ: 001 [05:22:05]line ФМ: 0000000000871778 [05:22:05]line ФД: 178814 [05:22:05]line ФПД: 260967068484632 [05:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T052204&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178814&fm=260967068484632&tin=02508201610067®Number=0000000000092561&sum=100000 [05:22:05]OFD Sender: Processing packet 178814 [packets to send 500, broken 499] [05:22:05]ProducePacketName [05:22:05]name=ofd_packets/00178814 [05:22:05]OFD Sender: To server: pG, [05:22:05]CommunicateWithHost lk.salyk.kg:30040 [05:22:05]ConnectInit lk.salyk.kg [05:22:05]written 0, free lines is 4095 [05:22:05]Write to MH i2c: 01 00 00 95 03 98 [05:22:05]Write i2c OK [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 07 00 [05:22:05]MH_I2C_Read... [05:22:05]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 CF 0C 7A [05:22:05]RasterBufferAndPrint [05:22:05]line [05:22:05]line [05:22:05]line [05:22:05]line [05:22:05]line [05:22:05]written 0, free lines is 3286 [05:22:06]MH_Cut [05:22:06]Write to MH i2c: D1 01 00 9C 03 01 71 [05:22:06]Write i2c OK [05:22:06]MH_I2C_Read... [05:22:06]Read from MH i2c: D1 [05:22:06]MH_I2C_Read... [05:22:06]Read from MH i2c: D1 01 00 [05:22:06]MH_I2C_Read... [05:22:06]Read from MH i2c: D1 01 00 9C 03 00 70 [05:22:06]Write to MH i2c: 01 00 00 9D 03 A0 [05:22:06]Write i2c OK [05:22:06]MH_I2C_Read... [05:22:06]*** Cut start [05:22:06]*** Partial cut [05:22:06]*** CUTSNS_PIN = 1 [05:22:06]*** CUTSNS_PIN = 0 [05:22:06]Connected sock=11 [05:22: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 37 37 38 0C 01 00 00 16 7A 04 01 50 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 28 00 00 00 F4 03 04 00 FC 6D C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7E BA 02 00 35 04 06 00 ED 59 21 6A 44 18 FF 0F BA 97 8B 83 F3 67 [05:22:06]*** Brake cut motor [05:22:07]Read from MH i2c: 01 [05:22:07]MH_I2C_Read... [05:22:07]*** Stop cut motor [05:22:07]*** Cut end [05:22:07]Read from MH i2c: 01 07 00 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [05:22:07]process_action close_receipt done [05:22:07]requested_data is exist [05:22:07]produce_requested_data [05:22:07]requested_item fm.sn is exist - process it [05:22:07]wFMCommunicate request_size=4 [05:22:07]MH_SAM_APDU [05:22:07]CAPDU: 80 11 00 00 [05:22:07]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [05:22:07]Write i2c OK [05:22:07]MH_I2C_Read... [05:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:07]Read from MH i2c: E2 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 17 00 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 74 [05:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:22:07]wFMCommunicate OK [05:22:07]requested_item fd.num is exist - process it [05:22:07]SAM_PROTO_GetFieldsCounters [05:22:07]wFMCommunicate request_size=4 [05:22:07]MH_SAM_APDU [05:22:07]CAPDU: 80 13 00 00 [05:22:07]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [05:22:07]Write i2c OK [05:22:07]MH_I2C_Read... [05:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:07]Read from MH i2c: E2 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 62 00 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 62 00 9F 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [05:22: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:22:07]wFMCommunicate OK [05:22:07]SAM_PROTO_GetFieldsCounters done [05:22:07]requested_item shift.num is exist - process it [05:22:07]requested_item shift.opened is exist - process it [05:22:07]req_shift_opened [05:22:07]FM_GetShiftState [05:22:07]SAM_PROTO_GetShiftState [05:22:07]wFMCommunicate request_size=4 [05:22:07]MH_SAM_APDU [05:22:07]CAPDU: 80 13 01 00 [05:22:07]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [05:22:07]Write i2c OK [05:22:07]MH_I2C_Read... [05:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:07]Read from MH i2c: E2 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 0E 00 [05:22:07]MH_I2C_Read... [05:22:07]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 DE [05:22:07]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:22:07]wFMCommunicate OK [05:22:07]SAM_PROTO_GetShiftState done [05:22:07]FM_GetShiftState done [05:22:07]req_shift_opened done [05:22:07]requested_item shift.open_date is exist - process it [05:22:07]req_shift_open_date [05:22:07]req_shift_open_date done [05:22:07]produce_requested_data done [05:22:07]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178814,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:22:07]process_action_free close_receipt [05:22:07]json_value_free [05:22:07]json_value_free done [05:22:07]process_json_proto returns [05:22:07]Send response to host [05:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178814,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:22:07]free response buf [05:22:07]execute_script done [05:22:07]execute_script returns [05:22:07]free content buf [05:22:07]Sock 9.Close socket [05:22:07]Sock 9.Thread stoped [05:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EB 24 47 00 52 05 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 37 37 38 10 04 04 00 7E BA 02 00 F4 03 04 00 A3 19 C9 66 B6 04 01 00 00 C6 B5 A6 25 06 81 A3 17 [05:22:07]CommunicateWithHost err = 0 [05:22:07]CheckOFDResponse [05:22:07]1017 (14) - 77093643461234 [05:22:07]1041 (16) - 0000000000871778 [05:22:07]1040 (4) - 178814 [05:22:07]1012 (4) - 23.08.2024 23:22 [05:22:07]1206 (1) - 0 [05:22:07]OFD Sender: Remove packet 178814 [05:22:07]ProducePacketName [05:22:07]name=ofd_packets/00178814 [05:22:07]NVStorageDeleteData [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:17]recv_with_timeout no data received [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]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:40]recv_with_timeout no data received [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:02]recv_with_timeout no data received [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]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]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:43]recv_with_timeout no data received [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:22]recv_with_timeout no data received [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]recv_with_timeout no data received [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:53]recv_with_timeout no data received [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:28]recv_with_timeout no data received [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:18]recv_with_timeout no data received [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:31]recv_with_timeout no data received [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:22]recv_with_timeout no data received [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:29]accept exits with 10 [05:59:29]New connection [05:59:29]New thread 3067571556 created [05:59:29]Thread 3067428196 joined [05:59:29]Waiting for new connection... [05:59:29] Sock 10.Parse request [05:59:29]Sock 10.Check first char [05:59:29]Sock 10.First char is OK [05:59:29]request: POST /json_proto HTTP/1.0 [05:59:29]Method: POST [05:59:29]URL: /json_proto [05:59:29]Method is POST - this is cgi request [05:59:29]url: /json_proto [05:59:29]query_string will be loaded in cgi processing [05:59:29]execute_cgi json_proto POST (null) [05:59:29]execute_cgi path=json_proto method=POST [05:59:29]POST find Content-Length [05:59:29]Host: 172.17.44.131:8080 [05:59:29]Content-Length: 817 [05:59:29]Content-Type: application/json [05:59:29] [05:59:29]POST finish read [05:59:29]Found Content-Length = 817 [05:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.470, "sum" : 845.47, "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" : 845.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:29]execute_script... [05:59: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)294977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.470, "sum" : 845.47, "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" : 845.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:29]POST & json_proto [05:59:29]process_json_proto [05:59:29]json parsed OK: [05:59:29]protocol is kg_v1.0 [05:59:29]action value=close_receipt [05:59:29]process_action close_receipt [05:59:29]cmd_close_receipt [05:59:29]MH_GetDate [05:59:29]Write to MH i2c: F0 00 00 A1 03 93 [05:59:29]Write i2c OK [05:59:29]MH_I2C_Read... [05:59:29]Read from MH i2c: F0 [05:59:29]MH_I2C_Read... [05:59:29]Read from MH i2c: F0 09 00 [05:59:29]MH_I2C_Read... [05:59:29]Read from MH i2c: F0 09 00 A1 03 00 C2 76 C9 66 4F 53 BE 66 C9 [05:59:29]GetLastDocTimeStamp 1724476924 [05:59:29]current date 1724479170 [05:59:29]FM_GetShiftState [05:59:29]SAM_PROTO_GetShiftState [05:59:29]wFMCommunicate request_size=4 [05:59:29]MH_SAM_APDU [05:59:29]CAPDU: 80 13 01 00 [05:59:29]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [05:59:29]Write i2c OK [05:59:29]MH_I2C_Read... [05:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:29]Read from MH i2c: E2 [05:59:29]MH_I2C_Read... [05:59:29]Read from MH i2c: E2 0E 00 [05:59:29]MH_I2C_Read... [05:59:29]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 E0 [05:59:29]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:59:29]wFMCommunicate OK [05:59:29]SAM_PROTO_GetShiftState done [05:59:29]FM_GetShiftState done [05:59:29]opened in 1724458079 [05:59:29]opened+sec_in_day 1724544479 [05:59:29]quantity*price = 84546 [05:59:29]sum+1 = 84548 [05:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 845.47 НСП 1% : 7.48 НДС 12% : 89.78 Наличными: 0.00 Безнал.: 845.47 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 41 24.08.2024 05:59 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178815 ФПД: 58970346064967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T055930&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178815&fm=58970346064967&tin=02508201610067®Number=0000000000092561&sum=84547 [05:59:30]StoreToDocumentArchive [05:59:30]shift 471 fd 178815 [05:59:30]save to /storage/0471/doc_00178815 [05:59:30]save last doc name /storage/0471/doc_00178815 to /storage/kkm_last_doc_name [05:59:30]save OK [05:59:30]Clear old archive folders... [05:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:59:30]tlvbuf is 00918460 [05:59:30]SAM_PROTO_ClearQueue [05:59:30]wFMCommunicate request_size=4 [05:59:30]MH_SAM_APDU [05:59:30]CAPDU: 80 09 00 00 [05:59:30]Write to MH i2c: E2 08 00 AF 03 80 09 00 00 00 00 00 00 24 [05:59:30]Write i2c OK [05:59:30]MH_I2C_Read... [05:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:30]Read from MH i2c: E2 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [05:59:30]RAPDU: 90 00 [05:59:30]wFMCommunicate OK [05:59:30]SAM_PROTO_ClearQueue done [05:59:30]KKMCreateOFDPacket [05:59:30]OFDProtocolAddRootSTLVToBuf [05:59:30]FM_MakeSignedData [05:59:30]FM_MakeSignedData [05:59:30]SAM_PROTO_SignData [05:59:30]wFMCommunicate request_size=4 [05:59:30]MH_SAM_APDU [05:59:30]CAPDU: 80 0D 01 02 [05:59:30]Write to MH i2c: E2 08 00 B0 03 80 0D 01 02 00 00 00 00 2C [05:59:30]Write i2c OK [05:59:30]MH_I2C_Read... [05:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:30]Read from MH i2c: E2 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [05:59:30]RAPDU: 90 00 [05:59:30]wFMCommunicate OK [05:59:30]wFMCommunicate request_size=255 [05:59:30]MH_SAM_APDU [05:59: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 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 43 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 4A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C2 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7F BA 02 00 35 04 06 00 35 [05:59:30]Write to MH i2c: E2 02 01 B1 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 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 43 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 4A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C2 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7F BA 02 00 35 04 06 00 35 00 00 5B [05:59:30]Write i2c OK [05:59:30]MH_I2C_Read... [05:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:30]Read from MH i2c: E2 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 [05:59:30]MH_I2C_Read... [05:59:30]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [05:59:30]RAPDU: 90 00 [05:59:30]wFMCommunicate OK [05:59:30]wFMCommunicate request_size=10 [05:59:30]MH_SAM_APDU [05:59:30]CAPDU: 80 0D 02 02 05 A2 1A 87 8C 47 [05:59:30]Write to MH i2c: E2 0D 00 B2 03 80 0D 02 02 05 00 A2 1A 87 8C 47 00 00 4F [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 [05:59:31]MH_I2C_Read... [05:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:31]Read from MH i2c: E2 03 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [05:59:31]RAPDU: 90 00 [05:59:31]wFMCommunicate OK [05:59:31]wFMCommunicate request_size=4 [05:59:31]MH_SAM_APDU [05:59:31]CAPDU: 80 0D 03 02 [05:59:31]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:31]Read from MH i2c: E2 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 0B 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 0B 00 B3 03 00 C1 4D 6D 4F 15 D6 39 52 90 00 72 [05:59:31]RAPDU: C1 4D 6D 4F 15 D6 39 52 90 00 [05:59:31]wFMCommunicate OK [05:59:31]SAM_PROTO_SignData done [05:59:31]FM_MakeSignedData done [05:59:31]CreateOFDProtocolMessage [05:59:31]wFMCommunicate request_size=4 [05:59:31]MH_SAM_APDU [05:59:31]CAPDU: 80 11 00 00 [05:59:31]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:31]Read from MH i2c: E2 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 17 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8A [05:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:59:31]wFMCommunicate OK [05:59:31]CreateOFDProtocolMessage done [05:59:31]OFDSenderStorePacket 178815 [05:59:31]StoreOFDPacket docnum=178815 [05:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E4 8D 07 01 B8 AE 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 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 43 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 4A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C2 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7F BA 02 00 35 04 06 00 35 A2 1A 87 8C 47 C1 4D 6D 4F 15 D6 39 52 [05:59:31]CheckFolder [05:59:31]dirname=/storage/ofd_packets [05:59:31]CheckFolder done [05:59:31]ProducePacketName [05:59:31]name=ofd_packets/00178815 [05:59:31]NVStorageSaveData ofd_packets/00178815 [05:59:31]File name is /storage/ofd_packets/00178815 [05:59:31]Write 301 bytes [05:59:31]NVStorageSaveData done [05:59:31]OFDSenderStorePacket done [05:59:31]KKMCreateOFDPacket done [05:59:31]NVStorageSaveData kkm_last_timestamp [05:59:31]File name is /storage/kkm_last_timestamp [05:59:31]Write 4 bytes [05:59:31]NVStorageSaveData done [05:59:31]ExternCall_PrintAddStr [05:59:31]wPrintStart [05:59:31]Write to MH i2c: 01 00 00 B5 03 B8 [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 07 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [05:59:31]RasterBufferAndPrint [05:59:31]line Счет N : (1)294977 [05:59:31]line ИНН: 02508201610067 [05:59:31]line Контрольно-Кассовый Чек [05:59:31]line ПРОДАЖА [05:59:31]line ТРК (МРК, ГНК) : 52 [05:59:31]line Товар: 2710124130 [05:59:31]line Аи-92-К-5 [05:59:31]line 12.470 * 67.80 [05:59:31]line = 845.47 [05:59:31]line НДС 12% НСП 1% [05:59:31]line > о реализуемом товаре [05:59:31]line ИТОГО: 845.47 [05:59:31]line НСП 1% : 7.48 [05:59:31]line НДС 12% : 89.78 [05:59:31]line Наличными: 0.00 [05:59:31]line Безнал.: 845.47 [05:59:31]line Место: АЗС № 130 "Партнер Нефть" [05:59:31]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:59:31]line СНО: Общий режим [05:59:31]line Чек 41 24.08.2024 05:59 [05:59:31]line Смена: 471 ФФД: 1.0 [05:59:31]line ЗНМ: 0300000071 [05:59:31]line РНМ: 0000000000092561 [05:59:31]line Версия ККМ: 001 [05:59:31]line Платежная система: Бакай Банк [05:59:31]line ФМ: 0000000000871778 [05:59:31]line ФД: 178815 [05:59:31]line ФПД: 58970346064967 [05:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T055930&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178815&fm=58970346064967&tin=02508201610067®Number=0000000000092561&sum=84547 [05:59:31]written 0, free lines is 4095 [05:59:31]OFD Sender: Processing packet 178815 [packets to send 500, broken 499] [05:59:31]ProducePacketName [05:59:31]name=ofd_packets/00178815 [05:59:31]OFD Sender: To server: pG, [05:59:31]CommunicateWithHost lk.salyk.kg:30040 [05:59:31]ConnectInit lk.salyk.kg [05:59:31]Write to MH i2c: 01 00 00 DF 03 E2 [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 07 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 D8 0C CD [05:59:31]RasterBufferAndPrint [05:59:31]line [05:59:31]line [05:59:31]line [05:59:31]line [05:59:31]line [05:59:31]written 0, free lines is 3294 [05:59:31]Connected sock=9 [05:59: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 37 37 38 0F 01 00 00 E4 8D 07 01 B8 AE 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 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 43 4A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 4A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C2 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 7F BA 02 00 35 04 06 00 35 A2 1A 87 8C 47 C1 4D 6D 4F 15 D6 39 52 [05:59:31]MH_Cut [05:59:31]Write to MH i2c: D1 01 00 E6 03 01 BB [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: D1 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: D1 01 00 [05:59:31]MH_I2C_Read... [05:59:31]Read from MH i2c: D1 01 00 E6 03 00 BA [05:59:31]Write to MH i2c: 01 00 00 E7 03 EA [05:59:31]Write i2c OK [05:59:31]MH_I2C_Read... [05:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1A 64 47 00 84 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 37 37 38 10 04 04 00 7F BA 02 00 F4 03 04 00 68 22 C9 66 B6 04 01 00 00 53 4C 6E A0 3F F7 B9 7B [05:59:32]CommunicateWithHost err = 0 [05:59:32]CheckOFDResponse [05:59:32]1017 (14) - 77093643461234 [05:59:32]1041 (16) - 0000000000871778 [05:59:32]1040 (4) - 178815 [05:59:32]1012 (4) - 23.08.2024 23:59 [05:59:32]1206 (1) - 0 [05:59:32]OFD Sender: Remove packet 178815 [05:59:32]ProducePacketName [05:59:32]name=ofd_packets/00178815 [05:59:32]NVStorageDeleteData [05:59:32]*** Cut start [05:59:32]*** Partial cut [05:59:32]*** CUTSNS_PIN = 1 [05:59:32]*** CUTSNS_PIN = 0 [05:59:32]*** Brake cut motor [05:59:32]OFD Sender: No OFD packet to send [05:59:32]Read from MH i2c: 01 [05:59:32]MH_I2C_Read... [05:59:32]*** Stop cut motor [05:59:32]*** Cut end [05:59:32]Read from MH i2c: 01 07 00 [05:59:32]MH_I2C_Read... [05:59:32]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [05:59:32]process_action close_receipt done [05:59:32]requested_data is exist [05:59:32]produce_requested_data [05:59:32]requested_item fm.sn is exist - process it [05:59:32]wFMCommunicate request_size=4 [05:59:32]MH_SAM_APDU [05:59:32]CAPDU: 80 11 00 00 [05:59:32]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [05:59:32]Write i2c OK [05:59:32]MH_I2C_Read... [05:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:33]Read from MH i2c: E2 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 17 00 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BE [05:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:59:33]wFMCommunicate OK [05:59:33]requested_item fd.num is exist - process it [05:59:33]SAM_PROTO_GetFieldsCounters [05:59:33]wFMCommunicate request_size=4 [05:59:33]MH_SAM_APDU [05:59:33]CAPDU: 80 13 00 00 [05:59:33]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [05:59:33]Write i2c OK [05:59:33]MH_I2C_Read... [05:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:33]Read from MH i2c: E2 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 62 00 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 62 00 E9 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [05:59: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 7F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:33]wFMCommunicate OK [05:59:33]SAM_PROTO_GetFieldsCounters done [05:59:33]requested_item shift.num is exist - process it [05:59:33]requested_item shift.opened is exist - process it [05:59:33]req_shift_opened [05:59:33]FM_GetShiftState [05:59:33]SAM_PROTO_GetShiftState [05:59:33]wFMCommunicate request_size=4 [05:59:33]MH_SAM_APDU [05:59:33]CAPDU: 80 13 01 00 [05:59:33]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [05:59:33]Write i2c OK [05:59:33]MH_I2C_Read... [05:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:33]Read from MH i2c: E2 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 0E 00 [05:59:33]MH_I2C_Read... [05:59:33]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 28 [05:59:33]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [05:59:33]wFMCommunicate OK [05:59:33]SAM_PROTO_GetShiftState done [05:59:33]FM_GetShiftState done [05:59:33]req_shift_opened done [05:59:33]requested_item shift.open_date is exist - process it [05:59:33]req_shift_open_date [05:59:33]req_shift_open_date done [05:59:33]produce_requested_data done [05:59:33]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178815,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [05:59:33]process_action_free close_receipt [05:59:33]json_value_free [05:59:33]json_value_free done [05:59:33]process_json_proto returns [05:59:33]Send response to host [05:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178815,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [05:59:33]free response buf [05:59:33]execute_script done [05:59:33]execute_script returns [05:59:33]free content buf [05:59:33]Sock 10.Close socket [05:59:33]Sock 10.Thread stoped [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:50]recv_with_timeout no data received [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:09]accept exits with 7 [06:00:09]New connection [06:00:09]New thread 3067428196 created [06:00:09]Thread 3067571556 joined [06:00:09]Waiting for new connection... [06:00:09] Sock 7.Parse request [06:00:09]Sock 7.Check first char [06:00:09]Sock 7.First char is OK [06:00:09]request: POST /json_proto HTTP/1.0 [06:00:09]Method: POST [06:00:09]URL: /json_proto [06:00:09]Method is POST - this is cgi request [06:00:09]url: /json_proto [06:00:09]query_string will be loaded in cgi processing [06:00:09]execute_cgi json_proto POST (null) [06:00:09]execute_cgi path=json_proto method=POST [06:00:09]POST find Content-Length [06:00:09]Host: 172.17.44.131:8080 [06:00:09]Content-Length: 677 [06:00:09]Content-Type: application/json [06:00:09] [06:00:09]POST finish read [06:00:09]Found Content-Length = 677 [06:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [06:00:09]execute_script... [06:00: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)294976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [06:00:09]POST & json_proto [06:00:09]process_json_proto [06:00:09]json parsed OK: [06:00:09]protocol is kg_v1.0 [06:00:09]action value=close_receipt [06:00:09]process_action close_receipt [06:00:09]cmd_close_receipt [06:00:09]MH_GetDate [06:00:09]Write to MH i2c: F0 00 00 EB 03 DD [06:00:09]Write i2c OK [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: F0 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: F0 09 00 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: F0 09 00 EB 03 00 EA 76 C9 66 4F 53 BE 66 3B [06:00:09]GetLastDocTimeStamp 1724479170 [06:00:09]current date 1724479210 [06:00:09]FM_GetShiftState [06:00:09]SAM_PROTO_GetShiftState [06:00:09]wFMCommunicate request_size=4 [06:00:09]MH_SAM_APDU [06:00:09]CAPDU: 80 13 01 00 [06:00:09]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [06:00:09]Write i2c OK [06:00:09]MH_I2C_Read... [06:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:09]Read from MH i2c: E2 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: E2 0E 00 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 2A [06:00:09]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:00:09]wFMCommunicate OK [06:00:09]SAM_PROTO_GetShiftState done [06:00:09]FM_GetShiftState done [06:00:09]opened in 1724458079 [06:00:09]opened+sec_in_day 1724544479 [06:00:09]quantity*price = 30035 [06:00:09]sum+1 = 30036 [06:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 42 24.08.2024 06:00 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178816 ФПД: 205076465879705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T060010&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178816&fm=205076465879705&tin=02508201610067®Number=0000000000092561&sum=30000 [06:00:10]StoreToDocumentArchive [06:00:10]shift 471 fd 178816 [06:00:10]save to /storage/0471/doc_00178816 [06:00:10]save last doc name /storage/0471/doc_00178816 to /storage/kkm_last_doc_name [06:00:10]save OK [06:00:10]Clear old archive folders... [06:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:00:10]tlvbuf is 0086E4B0 [06:00:10]SAM_PROTO_ClearQueue [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 09 00 00 [06:00:10]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [06:00:10]RAPDU: 90 00 [06:00:10]wFMCommunicate OK [06:00:10]SAM_PROTO_ClearQueue done [06:00:10]KKMCreateOFDPacket [06:00:10]OFDProtocolAddRootSTLVToBuf [06:00:10]FM_MakeSignedData [06:00:10]FM_MakeSignedData [06:00:10]SAM_PROTO_SignData [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 0D 01 02 [06:00:10]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:11]Read from MH i2c: E2 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [06:00:11]RAPDU: 90 00 [06:00:11]wFMCommunicate OK [06:00:11]wFMCommunicate request_size=255 [06:00:11]MH_SAM_APDU [06:00: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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 EA 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 80 BA 02 00 35 04 06 00 BA [06:00:11]Write to MH i2c: E2 02 01 FB 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 EA 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 80 BA 02 00 35 04 06 00 BA 00 00 9F [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:11]Read from MH i2c: E2 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [06:00:11]RAPDU: 90 00 [06:00:11]wFMCommunicate OK [06:00:11]wFMCommunicate request_size=10 [06:00:11]MH_SAM_APDU [06:00:11]CAPDU: 80 0D 02 02 05 84 15 E6 8A 99 [06:00:11]Write to MH i2c: E2 0D 00 FC 03 80 0D 02 02 05 00 84 15 E6 8A 99 00 00 25 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:11]Read from MH i2c: E2 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [06:00:11]RAPDU: 90 00 [06:00:11]wFMCommunicate OK [06:00:11]wFMCommunicate request_size=4 [06:00:11]MH_SAM_APDU [06:00:11]CAPDU: 80 0D 03 02 [06:00:11]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:11]Read from MH i2c: E2 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 0B 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 0B 00 FD 03 00 C0 2C DA 52 EF 9C 05 29 90 00 4D [06:00:11]RAPDU: C0 2C DA 52 EF 9C 05 29 90 00 [06:00:11]wFMCommunicate OK [06:00:11]SAM_PROTO_SignData done [06:00:11]FM_MakeSignedData done [06:00:11]CreateOFDProtocolMessage [06:00:11]wFMCommunicate request_size=4 [06:00:11]MH_SAM_APDU [06:00:11]CAPDU: 80 11 00 00 [06:00:11]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:11]Read from MH i2c: E2 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 17 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D4 [06:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:00:11]wFMCommunicate OK [06:00:11]CreateOFDProtocolMessage done [06:00:11]OFDSenderStorePacket 178816 [06:00:11]StoreOFDPacket docnum=178816 [06:00:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D0 A4 07 01 9D C9 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 EA 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 80 BA 02 00 35 04 06 00 BA 84 15 E6 8A 99 C0 2C DA 52 EF 9C 05 29 [06:00:11]CheckFolder [06:00:11]dirname=/storage/ofd_packets [06:00:11]CheckFolder done [06:00:11]ProducePacketName [06:00:11]name=ofd_packets/00178816 [06:00:11]NVStorageSaveData ofd_packets/00178816 [06:00:11]File name is /storage/ofd_packets/00178816 [06:00:11]Write 301 bytes [06:00:11]NVStorageSaveData done [06:00:11]OFDSenderStorePacket done [06:00:11]KKMCreateOFDPacket done [06:00:11]NVStorageSaveData kkm_last_timestamp [06:00:11]File name is /storage/kkm_last_timestamp [06:00:11]Write 4 bytes [06:00:11]NVStorageSaveData done [06:00:11]ExternCall_PrintAddStr [06:00:11]wPrintStart [06:00:11]Write to MH i2c: 01 00 00 FF 03 02 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [06:00:11]RasterBufferAndPrint [06:00:11]line Счет N : (1)294976 [06:00:11]line ИНН: 02508201610067 [06:00:11]line Контрольно-Кассовый Чек [06:00:11]line ПРОДАЖА [06:00:11]line ТРК (МРК, ГНК) : 62 [06:00:11]line Товар: 2710124130 [06:00:11]line Аи-92-К-5 [06:00:11]line 4.430 * 67.80 [06:00:11]line = 300.35 [06:00:11]line НДС 12% НСП 1% [06:00:11]line > о реализуемом товаре [06:00:11]line ОКРУГЛЕНИЕ: -0.35 [06:00:11]line ИТОГО: 300.00 [06:00:11]line Внесено: 300.00 [06:00:11]line СДАЧА: 0.00 [06:00:11]line НСП 1% : 2.66 [06:00:11]line НДС 12% : 31.90 [06:00:11]line Наличными: 300.00 [06:00:11]line Безнал.: 0.00 [06:00:11]line Место: АЗС № 130 "Партнер Нефть" [06:00:11]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:00:11]line СНО: Общий режим [06:00:11]line Чек 42 24.08.2024 06:00 [06:00:11]line Смена: 471 ФФД: 1.0 [06:00:11]line ЗНМ: 0300000071 [06:00:11]line РНМ: 0000000000092561 [06:00:11]line Версия ККМ: 001 [06:00:11]line ФМ: 0000000000871778 [06:00:11]line ФД: 178816 [06:00:11]line ФПД: 205076465879705 [06:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T060010&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178816&fm=205076465879705&tin=02508201610067®Number=0000000000092561&sum=30000 [06:00:11]written 0, free lines is 4095 [06:00:11]OFD Sender: Processing packet 178816 [packets to send 500, broken 499] [06:00:11]ProducePacketName [06:00:11]name=ofd_packets/00178816 [06:00:11]OFD Sender: To server: pG, [06:00:11]CommunicateWithHost lk.salyk.kg:30040 [06:00:11]ConnectInit lk.salyk.kg [06:00:11]Connected sock=9 [06:00: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 37 37 38 0F 01 00 00 D0 A4 07 01 9D C9 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 EA 76 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 80 BA 02 00 35 04 06 00 BA 84 15 E6 8A 99 C0 2C DA 52 EF 9C 05 29 [06:00:11]Write to MH i2c: 01 00 00 2A 04 2E [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 DA 0C 1B [06:00:11]RasterBufferAndPrint [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]written 0, free lines is 3297 [06:00:11]MH_Cut [06:00:11]Write to MH i2c: D1 01 00 31 04 01 07 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 01 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 01 00 31 04 00 06 [06:00:11]Write to MH i2c: 01 00 00 32 04 36 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 2C 13 47 00 93 52 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 37 37 38 10 04 04 00 80 BA 02 00 F4 03 04 00 90 22 C9 66 B6 04 01 00 00 CB D7 04 85 E7 D1 12 1F [06:00:12]CommunicateWithHost err = 0 [06:00:12]CheckOFDResponse [06:00:12]1017 (14) - 77093643461234 [06:00:12]1041 (16) - 0000000000871778 [06:00:12]1040 (4) - 178816 [06:00:12]1012 (4) - 24.08.2024 00:00 [06:00:12]1206 (1) - 0 [06:00:12]OFD Sender: Remove packet 178816 [06:00:12]ProducePacketName [06:00:12]name=ofd_packets/00178816 [06:00:12]NVStorageDeleteData [06:00:12]*** Cut start [06:00:12]*** Partial cut [06:00:12]*** CUTSNS_PIN = 1 [06:00:12]*** CUTSNS_PIN = 0 [06:00:12]OFD Sender: No OFD packet to send [06:00:12]*** Brake cut motor [06:00:13]Read from MH i2c: 01 [06:00:13]MH_I2C_Read... [06:00:13]*** Stop cut motor [06:00:13]*** Cut end [06:00:13]Read from MH i2c: 01 07 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [06:00:13]process_action close_receipt done [06:00:13]requested_data is exist [06:00:13]produce_requested_data [06:00:13]requested_item fm.sn is exist - process it [06:00:13]wFMCommunicate request_size=4 [06:00:13]MH_SAM_APDU [06:00:13]CAPDU: 80 11 00 00 [06:00:13]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [06:00:13]Write i2c OK [06:00:13]MH_I2C_Read... [06:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:13]Read from MH i2c: E2 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 17 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0A [06:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:00:13]wFMCommunicate OK [06:00:13]requested_item fd.num is exist - process it [06:00:13]SAM_PROTO_GetFieldsCounters [06:00:13]wFMCommunicate request_size=4 [06:00:13]MH_SAM_APDU [06:00:13]CAPDU: 80 13 00 00 [06:00:13]Write to MH i2c: E2 08 00 34 04 80 13 00 00 00 00 00 00 B4 [06:00:13]Write i2c OK [06:00:13]MH_I2C_Read... [06:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:13]Read from MH i2c: E2 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 62 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 62 00 34 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 80 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [06:00: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 80 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:00:13]wFMCommunicate OK [06:00:13]SAM_PROTO_GetFieldsCounters done [06:00:13]requested_item shift.num is exist - process it [06:00:13]requested_item shift.opened is exist - process it [06:00:13]req_shift_opened [06:00:13]FM_GetShiftState [06:00:13]SAM_PROTO_GetShiftState [06:00:13]wFMCommunicate request_size=4 [06:00:13]MH_SAM_APDU [06:00:13]CAPDU: 80 13 01 00 [06:00:13]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [06:00:13]Write i2c OK [06:00:13]MH_I2C_Read... [06:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:13]Read from MH i2c: E2 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 0E 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 74 [06:00:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:00:13]wFMCommunicate OK [06:00:13]SAM_PROTO_GetShiftState done [06:00:13]FM_GetShiftState done [06:00:13]req_shift_opened done [06:00:13]requested_item shift.open_date is exist - process it [06:00:13]req_shift_open_date [06:00:13]req_shift_open_date done [06:00:13]produce_requested_data done [06:00:13]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178816,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:00:13]process_action_free close_receipt [06:00:13]json_value_free [06:00:13]json_value_free done [06:00:13]process_json_proto returns [06:00:13]Send response to host [06:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178816,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:00:13]free response buf [06:00:13]execute_script done [06:00:13]execute_script returns [06:00:13]free content buf [06:00:13]Sock 7.Close socket [06:00:13]Sock 7.Thread stoped [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]recv_with_timeout no data received [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]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:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:26]recv_with_timeout no data received [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:36]recv_with_timeout no data received [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:16]recv_with_timeout no data received [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:05]recv_with_timeout no data received [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:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:08]recv_with_timeout no data received [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:04]recv_with_timeout no data received [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:23]recv_with_timeout no data received [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:12:59]recv_with_timeout no data received [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:41]recv_with_timeout no data received [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:10]accept exits with 10 [06:14:10]New connection [06:14:10]New thread 3067571556 created [06:14:10]Thread 3067428196 joined [06:14:10]Waiting for new connection... [06:14:10] Sock 10.Parse request [06:14:10]Sock 10.Check first char [06:14:10]Sock 10.First char is OK [06:14:10]request: POST /json_proto HTTP/1.0 [06:14:10]Method: POST [06:14:10]URL: /json_proto [06:14:10]Method is POST - this is cgi request [06:14:10]url: /json_proto [06:14:10]query_string will be loaded in cgi processing [06:14:10]execute_cgi json_proto POST (null) [06:14:10]execute_cgi path=json_proto method=POST [06:14:10]POST find Content-Length [06:14:10]Host: 172.17.44.131:8080 [06:14:10]Content-Length: 682 [06:14:10]Content-Type: application/json [06:14:10] [06:14:10]POST finish read [06:14:10]Found Content-Length = 682 [06:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [06:14:10]execute_script... [06:14:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [06:14:10]POST & json_proto [06:14:10]process_json_proto [06:14:10]json parsed OK: [06:14:10]protocol is kg_v1.0 [06:14:10]action value=close_receipt [06:14:10]process_action close_receipt [06:14:10]cmd_close_receipt [06:14:10]MH_GetDate [06:14:10]Write to MH i2c: F0 00 00 36 04 29 [06:14:10]Write i2c OK [06:14:10]MH_I2C_Read... [06:14:10]Read from MH i2c: F0 [06:14:10]MH_I2C_Read... [06:14:10]Read from MH i2c: F0 09 00 [06:14:10]MH_I2C_Read... [06:14:10]Read from MH i2c: F0 09 00 36 04 00 33 7A C9 66 4F 53 BE 66 D4 [06:14:10]GetLastDocTimeStamp 1724479210 [06:14:10]current date 1724480051 [06:14:10]FM_GetShiftState [06:14:10]SAM_PROTO_GetShiftState [06:14:10]wFMCommunicate request_size=4 [06:14:10]MH_SAM_APDU [06:14:10]CAPDU: 80 13 01 00 [06:14:10]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [06:14:10]Write i2c OK [06:14:10]MH_I2C_Read... [06:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:10]Read from MH i2c: E2 [06:14:10]MH_I2C_Read... [06:14:10]Read from MH i2c: E2 0E 00 [06:14:10]MH_I2C_Read... [06:14:10]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 76 [06:14:10]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:14:10]wFMCommunicate OK [06:14:10]SAM_PROTO_GetShiftState done [06:14:10]FM_GetShiftState done [06:14:10]opened in 1724458079 [06:14:10]opened+sec_in_day 1724544479 [06:14:10]quantity*price = 100021 [06:14:10]sum+1 = 100023 [06:14:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 45 24.08.2024 06:33 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178819 ФПД: 49985748540061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T063326&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178819&fm=49985748540061&tin=02508201610067®Number=0000000000092561&sum=80000 [06:33:27]StoreToDocumentArchive [06:33:27]shift 471 fd 178819 [06:33:27]save to /storage/0471/doc_00178819 [06:33:27]save last doc name /storage/0471/doc_00178819 to /storage/kkm_last_doc_name [06:33:27]save OK [06:33:27]Clear old archive folders... [06:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:33:27]tlvbuf is 0040E290 [06:33:27]SAM_PROTO_ClearQueue [06:33:27]wFMCommunicate request_size=4 [06:33:27]MH_SAM_APDU [06:33:27]CAPDU: 80 09 00 00 [06:33:27]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [06:33:27]RAPDU: 90 00 [06:33:27]wFMCommunicate OK [06:33:27]SAM_PROTO_ClearQueue done [06:33:27]KKMCreateOFDPacket [06:33:27]OFDProtocolAddRootSTLVToBuf [06:33:27]FM_MakeSignedData [06:33:27]FM_MakeSignedData [06:33:27]SAM_PROTO_SignData [06:33:27]wFMCommunicate request_size=4 [06:33:27]MH_SAM_APDU [06:33:27]CAPDU: 80 0D 01 02 [06:33:27]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [06:33:27]RAPDU: 90 00 [06:33:27]wFMCommunicate OK [06:33:27]wFMCommunicate request_size=255 [06:33:27]MH_SAM_APDU [06:33:27]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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 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 B6 7E C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 83 BA 02 00 35 04 06 00 2D [06:33:27]Write to MH i2c: E2 02 01 AC 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 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 B6 7E C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 83 BA 02 00 35 04 06 00 2D 00 00 F8 [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [06:33:27]RAPDU: 90 00 [06:33:27]wFMCommunicate OK [06:33:27]wFMCommunicate request_size=10 [06:33:27]MH_SAM_APDU [06:33:27]CAPDU: 80 0D 02 02 05 76 36 C9 1A 9D [06:33:27]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 76 36 C9 1A 9D 00 00 5D [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [06:33:27]RAPDU: 90 00 [06:33:27]wFMCommunicate OK [06:33:27]wFMCommunicate request_size=4 [06:33:27]MH_SAM_APDU [06:33:27]CAPDU: 80 0D 03 02 [06:33:27]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 0B 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 0B 00 AE 00 00 F1 57 69 AA D6 6A 8E D0 90 00 23 [06:33:27]RAPDU: F1 57 69 AA D6 6A 8E D0 90 00 [06:33:27]wFMCommunicate OK [06:33:27]SAM_PROTO_SignData done [06:33:27]FM_MakeSignedData done [06:33:27]CreateOFDProtocolMessage [06:33:27]wFMCommunicate request_size=4 [06:33:27]MH_SAM_APDU [06:33:27]CAPDU: 80 11 00 00 [06:33:27]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:27]Read from MH i2c: E2 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 17 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [06:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:33:27]wFMCommunicate OK [06:33:27]CreateOFDProtocolMessage done [06:33:27]OFDSenderStorePacket 178819 [06:33:27]StoreOFDPacket docnum=178819 [06:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B7 0F 07 01 64 EB 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 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 B6 7E C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 83 BA 02 00 35 04 06 00 2D 76 36 C9 1A 9D F1 57 69 AA D6 6A 8E D0 [06:33:27]CheckFolder [06:33:27]dirname=/storage/ofd_packets [06:33:27]CheckFolder done [06:33:27]ProducePacketName [06:33:27]name=ofd_packets/00178819 [06:33:27]NVStorageSaveData ofd_packets/00178819 [06:33:27]File name is /storage/ofd_packets/00178819 [06:33:27]Write 301 bytes [06:33:27]NVStorageSaveData done [06:33:27]OFDSenderStorePacket done [06:33:27]KKMCreateOFDPacket done [06:33:27]NVStorageSaveData kkm_last_timestamp [06:33:27]File name is /storage/kkm_last_timestamp [06:33:27]Write 4 bytes [06:33:27]NVStorageSaveData done [06:33:27]ExternCall_PrintAddStr [06:33:27]wPrintStart [06:33:27]Write to MH i2c: 01 00 00 B0 00 B0 [06:33:27]Write i2c OK [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: 01 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: 01 07 00 [06:33:27]MH_I2C_Read... [06:33:27]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [06:33:27]RasterBufferAndPrint [06:33:27]line Счет N : (1)294995 [06:33:27]line ИНН: 02508201610067 [06:33:27]line Контрольно-Кассовый Чек [06:33:27]line ПРОДАЖА [06:33:27]line ТРК (МРК, ГНК) : 43 [06:33:27]line Товар: 2710124500 [06:33:27]line Аи-95-К-5 [06:33:27]line 10.790 * 74.20 [06:33:27]line = 800.62 [06:33:27]line НДС 12% НСП 1% [06:33:27]line > о реализуемом товаре [06:33:27]line ОКРУГЛЕНИЕ: -0.62 [06:33:27]line ИТОГО: 800.00 [06:33:27]line Внесено: 800.00 [06:33:27]line СДАЧА: 0.00 [06:33:27]line НСП 1% : 7.08 [06:33:27]line НДС 12% : 85.02 [06:33:27]line Наличными: 800.00 [06:33:27]line Безнал.: 0.00 [06:33:27]line Место: АЗС № 130 "Партнер Нефть" [06:33:27]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:33:27]line СНО: Общий режим [06:33:27]line Чек 45 24.08.2024 06:33 [06:33:27]line Смена: 471 ФФД: 1.0 [06:33:27]line ЗНМ: 0300000071 [06:33:27]line РНМ: 0000000000092561 [06:33:27]line Версия ККМ: 001 [06:33:27]line ФМ: 0000000000871778 [06:33:27]line ФД: 178819 [06:33:27]line ФПД: 49985748540061 [06:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T063326&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178819&fm=49985748540061&tin=02508201610067®Number=0000000000092561&sum=80000 [06:33:27]OFD Sender: Processing packet 178819 [packets to send 500, broken 499] [06:33:27]ProducePacketName [06:33:27]name=ofd_packets/00178819 [06:33:27]OFD Sender: To server: pG, [06:33:27]CommunicateWithHost lk.salyk.kg:30040 [06:33:27]ConnectInit lk.salyk.kg [06:33:27]written 0, free lines is 4095 [06:33:28]Write to MH i2c: 01 00 00 DB 00 DB [06:33:28]Write i2c OK [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: 01 [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: 01 07 00 [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 BA 0C A8 [06:33:28]RasterBufferAndPrint [06:33:28]line [06:33:28]line [06:33:28]line [06:33:28]line [06:33:28]line [06:33:28]written 0, free lines is 3266 [06:33:28]MH_Cut [06:33:28]Write to MH i2c: D1 01 00 E2 00 01 B4 [06:33:28]Write i2c OK [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: D1 [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: D1 01 00 [06:33:28]MH_I2C_Read... [06:33:28]Read from MH i2c: D1 01 00 E2 00 00 B3 [06:33:28]Write to MH i2c: 01 00 00 E3 00 E3 [06:33:28]Write i2c OK [06:33:28]MH_I2C_Read... [06:33:29]*** Cut start [06:33:29]*** Partial cut [06:33:29]*** CUTSNS_PIN = 1 [06:33:29]*** CUTSNS_PIN = 0 [06:33:29]*** Brake cut motor [06:33:29]Read from MH i2c: 01 [06:33:29]MH_I2C_Read... [06:33:29]*** Stop cut motor [06:33:29]*** Cut end [06:33:29]Read from MH i2c: 01 07 00 [06:33:29]MH_I2C_Read... [06:33:29]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [06:33:29]process_action close_receipt done [06:33:29]requested_data is exist [06:33:29]produce_requested_data [06:33:29]requested_item fm.sn is exist - process it [06:33:29]wFMCommunicate request_size=4 [06:33:29]MH_SAM_APDU [06:33:29]CAPDU: 80 11 00 00 [06:33:29]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [06:33:29]Write i2c OK [06:33:29]MH_I2C_Read... [06:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:29]Read from MH i2c: E2 [06:33:29]MH_I2C_Read... [06:33:29]Read from MH i2c: E2 17 00 [06:33:29]MH_I2C_Read... [06:33:29]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B7 [06:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:33:29]wFMCommunicate OK [06:33:29]requested_item fd.num is exist - process it [06:33:29]SAM_PROTO_GetFieldsCounters [06:33:29]wFMCommunicate request_size=4 [06:33:29]MH_SAM_APDU [06:33:29]CAPDU: 80 13 00 00 [06:33:29]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [06:33:29]Write i2c OK [06:33:29]MH_I2C_Read... [06:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:30]Read from MH i2c: E2 [06:33:30]MH_I2C_Read... [06:33:30]Read from MH i2c: E2 62 00 [06:33:30]MH_I2C_Read... [06:33:30]Read from MH i2c: E2 62 00 E5 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 83 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [06:33: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 83 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:33:30]wFMCommunicate OK [06:33:30]SAM_PROTO_GetFieldsCounters done [06:33:30]requested_item shift.num is exist - process it [06:33:30]requested_item shift.opened is exist - process it [06:33:30]req_shift_opened [06:33:30]FM_GetShiftState [06:33:30]SAM_PROTO_GetShiftState [06:33:30]wFMCommunicate request_size=4 [06:33:30]MH_SAM_APDU [06:33:30]CAPDU: 80 13 01 00 [06:33:30]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [06:33:30]Write i2c OK [06:33:30]MH_I2C_Read... [06:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:30]Read from MH i2c: E2 [06:33:30]MH_I2C_Read... [06:33:30]Read from MH i2c: E2 0E 00 [06:33:30]MH_I2C_Read... [06:33:30]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 21 [06:33:30]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:33:30]wFMCommunicate OK [06:33:30]SAM_PROTO_GetShiftState done [06:33:30]FM_GetShiftState done [06:33:30]req_shift_opened done [06:33:30]requested_item shift.open_date is exist - process it [06:33:30]req_shift_open_date [06:33:30]req_shift_open_date done [06:33:30]produce_requested_data done [06:33:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178819,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:33:30]process_action_free close_receipt [06:33:30]json_value_free [06:33:30]json_value_free done [06:33:30]process_json_proto returns [06:33:30]Send response to host [06:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178819,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:33:30]free response buf [06:33:30]execute_script done [06:33:30]execute_script returns [06:33:30]free content buf [06:33:30]Sock 7.Close socket [06:33:30]Sock 7.Thread stoped [06:33:32]Connected sock=9 [06:33: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 37 37 38 0F 01 00 00 B7 0F 07 01 64 EB 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 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 B6 7E C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 83 BA 02 00 35 04 06 00 2D 76 36 C9 1A 9D F1 57 69 AA D6 6A 8E D0 [06:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 6C 3A 47 00 8E 4A 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 37 37 38 10 04 04 00 83 BA 02 00 F4 03 04 00 61 2A C9 66 B6 04 01 00 00 68 1A C2 F2 4A 6A E0 6C [06:33:35]CommunicateWithHost err = 0 [06:33:35]CheckOFDResponse [06:33:35]1017 (14) - 77093643461234 [06:33:35]1041 (16) - 0000000000871778 [06:33:35]1040 (4) - 178819 [06:33:35]1012 (4) - 24.08.2024 00:33 [06:33:35]1206 (1) - 0 [06:33:35]OFD Sender: Remove packet 178819 [06:33:35]ProducePacketName [06:33:35]name=ofd_packets/00178819 [06:33:35]NVStorageDeleteData [06:33:35]OFD Sender: No OFD packet to send [06:33:38]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:54]recv_with_timeout no data received [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]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:16]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:12]accept exits with 10 [06:41:12]New connection [06:41:12]New thread 3066662244 created [06:41:12]Thread 3066805604 joined [06:41:12]Waiting for new connection... [06:41:12] Sock 10.Parse request [06:41:12]Sock 10.Check first char [06:41:12]Sock 10.First char is OK [06:41:12]request: POST /json_proto HTTP/1.0 [06:41:12]Method: POST [06:41:12]URL: /json_proto [06:41:12]Method is POST - this is cgi request [06:41:12]url: /json_proto [06:41:12]query_string will be loaded in cgi processing [06:41:12]execute_cgi json_proto POST (null) [06:41:12]execute_cgi path=json_proto method=POST [06:41:12]POST find Content-Length [06:41:12]Host: 172.17.44.131:8080 [06:41:12]Content-Length: 682 [06:41:12]Content-Type: application/json [06:41:12] [06:41:12]POST finish read [06:41:12]Found Content-Length = 682 [06:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [06:41:12]execute_script... [06:41: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)294996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [06:41:12]POST & json_proto [06:41:12]process_json_proto [06:41:12]json parsed OK: [06:41:12]protocol is kg_v1.0 [06:41:12]action value=close_receipt [06:41:12]process_action close_receipt [06:41:12]cmd_close_receipt [06:41:12]MH_GetDate [06:41:12]Write to MH i2c: F0 00 00 E7 00 D6 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: F0 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: F0 09 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: F0 09 00 E7 00 00 89 80 C9 66 4F 53 BE 66 DD [06:41:12]GetLastDocTimeStamp 1724481206 [06:41:12]current date 1724481673 [06:41:12]FM_GetShiftState [06:41:12]SAM_PROTO_GetShiftState [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 13 01 00 [06:41:12]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0E 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 23 [06:41:12]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:41:12]wFMCommunicate OK [06:41:12]SAM_PROTO_GetShiftState done [06:41:12]FM_GetShiftState done [06:41:12]opened in 1724458079 [06:41:12]opened+sec_in_day 1724544479 [06:41:12]quantity*price = 100021 [06:41:12]sum+1 = 100023 [06:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 46 24.08.2024 06:41 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178820 ФПД: 164119049827478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064113&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178820&fm=164119049827478&tin=02508201610067®Number=0000000000092561&sum=100000 [06:41:13]StoreToDocumentArchive [06:41:13]shift 471 fd 178820 [06:41:13]save to /storage/0471/doc_00178820 [06:41:13]save last doc name /storage/0471/doc_00178820 to /storage/kkm_last_doc_name [06:41:13]save OK [06:41:13]Clear old archive folders... [06:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:13]tlvbuf is 004257F0 [06:41:13]SAM_PROTO_ClearQueue [06:41:13]wFMCommunicate request_size=4 [06:41:13]MH_SAM_APDU [06:41:13]CAPDU: 80 09 00 00 [06:41:13]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:13]Read from MH i2c: E2 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: E2 03 00 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [06:41:13]RAPDU: 90 00 [06:41:13]wFMCommunicate OK [06:41:13]SAM_PROTO_ClearQueue done [06:41:13]KKMCreateOFDPacket [06:41:13]OFDProtocolAddRootSTLVToBuf [06:41:13]FM_MakeSignedData [06:41:13]FM_MakeSignedData [06:41:13]SAM_PROTO_SignData [06:41:13]wFMCommunicate request_size=4 [06:41:13]MH_SAM_APDU [06:41:13]CAPDU: 80 0D 01 02 [06:41:13]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:13]Read from MH i2c: E2 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: E2 03 00 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [06:41:13]RAPDU: 90 00 [06:41:13]wFMCommunicate OK [06:41:13]wFMCommunicate request_size=255 [06:41:13]MH_SAM_APDU [06:41: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 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 2E 00 00 00 F4 03 04 00 89 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 84 BA 02 00 35 04 06 00 95 [06:41:13]Write to MH i2c: E2 02 01 F7 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 2E 00 00 00 F4 03 04 00 89 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 84 BA 02 00 35 04 06 00 95 00 00 32 [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:14]Read from MH i2c: E2 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 03 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [06:41:14]RAPDU: 90 00 [06:41:14]wFMCommunicate OK [06:41:14]wFMCommunicate request_size=10 [06:41:14]MH_SAM_APDU [06:41:14]CAPDU: 80 0D 02 02 05 43 F1 AA 74 96 [06:41:14]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 43 F1 AA 74 96 00 00 64 [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:14]Read from MH i2c: E2 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 03 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [06:41:14]RAPDU: 90 00 [06:41:14]wFMCommunicate OK [06:41:14]wFMCommunicate request_size=4 [06:41:14]MH_SAM_APDU [06:41:14]CAPDU: 80 0D 03 02 [06:41:14]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:14]Read from MH i2c: E2 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 0B 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 0B 00 F9 00 00 F1 62 28 D2 3C B6 C4 C7 90 00 3F [06:41:14]RAPDU: F1 62 28 D2 3C B6 C4 C7 90 00 [06:41:14]wFMCommunicate OK [06:41:14]SAM_PROTO_SignData done [06:41:14]FM_MakeSignedData done [06:41:14]CreateOFDProtocolMessage [06:41:14]wFMCommunicate request_size=4 [06:41:14]MH_SAM_APDU [06:41:14]CAPDU: 80 11 00 00 [06:41:14]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:14]Read from MH i2c: E2 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 17 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [06:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:41:14]wFMCommunicate OK [06:41:14]CreateOFDProtocolMessage done [06:41:14]OFDSenderStorePacket 178820 [06:41:14]StoreOFDPacket docnum=178820 [06:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 F7 29 07 01 2E 24 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 2E 00 00 00 F4 03 04 00 89 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 84 BA 02 00 35 04 06 00 95 43 F1 AA 74 96 F1 62 28 D2 3C B6 C4 C7 [06:41:14]CheckFolder [06:41:14]dirname=/storage/ofd_packets [06:41:14]CheckFolder done [06:41:14]ProducePacketName [06:41:14]name=ofd_packets/00178820 [06:41:14]NVStorageSaveData ofd_packets/00178820 [06:41:14]File name is /storage/ofd_packets/00178820 [06:41:14]Write 301 bytes [06:41:14]NVStorageSaveData done [06:41:14]OFDSenderStorePacket done [06:41:14]KKMCreateOFDPacket done [06:41:14]NVStorageSaveData kkm_last_timestamp [06:41:14]File name is /storage/kkm_last_timestamp [06:41:14]Write 4 bytes [06:41:14]NVStorageSaveData done [06:41:14]ExternCall_PrintAddStr [06:41:14]wPrintStart [06:41:14]Write to MH i2c: 01 00 00 FB 00 FB [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 07 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [06:41:14]RasterBufferAndPrint [06:41:14]line Счет N : (1)294996 [06:41:14]line ИНН: 02508201610067 [06:41:14]line Контрольно-Кассовый Чек [06:41:14]line ПРОДАЖА [06:41:14]line ТРК (МРК, ГНК) : 43 [06:41:14]line Товар: 2710124500 [06:41:14]line Аи-95-К-5 [06:41:14]line 13.480 * 74.20 [06:41:14]line = 1000.22 [06:41:14]line НДС 12% НСП 1% [06:41:14]line > о реализуемом товаре [06:41:14]line ОКРУГЛЕНИЕ: -0.22 [06:41:14]line ИТОГО: 1000.00 [06:41:14]line Внесено: 1000.00 [06:41:14]line СДАЧА: 0.00 [06:41:14]line НСП 1% : 8.85 [06:41:14]line НДС 12% : 106.22 [06:41:14]line Наличными: 1000.00 [06:41:14]line Безнал.: 0.00 [06:41:14]line Место: АЗС № 130 "Партнер Нефть" [06:41:14]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:41:14]line СНО: Общий режим [06:41:14]line Чек 46 24.08.2024 06:41 [06:41:14]line Смена: 471 ФФД: 1.0 [06:41:14]line ЗНМ: 0300000071 [06:41:14]line РНМ: 0000000000092561 [06:41:14]line Версия ККМ: 001 [06:41:14]line ФМ: 0000000000871778 [06:41:14]line ФД: 178820 [06:41:14]line ФПД: 164119049827478 [06:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064113&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178820&fm=164119049827478&tin=02508201610067®Number=0000000000092561&sum=100000 [06:41:14]written 0, free lines is 4095 [06:41:14]OFD Sender: Processing packet 178820 [packets to send 500, broken 499] [06:41:14]ProducePacketName [06:41:14]name=ofd_packets/00178820 [06:41:14]OFD Sender: To server: pG, [06:41:14]CommunicateWithHost lk.salyk.kg:30040 [06:41:14]ConnectInit lk.salyk.kg [06:41:14]Write to MH i2c: 01 00 00 26 01 27 [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 07 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 C1 0C FB [06:41:14]RasterBufferAndPrint [06:41:14]line [06:41:14]line [06:41:14]line [06:41:14]line [06:41:14]line [06:41:14]written 0, free lines is 3271 [06:41:14]Connected sock=7 [06:41: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 37 37 38 0F 01 00 00 F7 29 07 01 2E 24 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 2E 00 00 00 F4 03 04 00 89 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 84 BA 02 00 35 04 06 00 95 43 F1 AA 74 96 F1 62 28 D2 3C B6 C4 C7 [06:41:14]MH_Cut [06:41:14]Write to MH i2c: D1 01 00 2D 01 01 00 [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: D1 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: D1 01 00 [06:41:14]MH_I2C_Read... [06:41:14]Read from MH i2c: D1 01 00 2D 01 00 FF [06:41:14]Write to MH i2c: 01 00 00 2E 01 2F [06:41:14]Write i2c OK [06:41:14]MH_I2C_Read... [06:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C5 DD 47 00 30 51 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 37 37 38 10 04 04 00 84 BA 02 00 F4 03 04 00 2F 2C C9 66 B6 04 01 00 00 23 92 2E 92 33 DC C4 2B [06:41:15]CommunicateWithHost err = 0 [06:41:15]CheckOFDResponse [06:41:15]1017 (14) - 77093643461234 [06:41:15]1041 (16) - 0000000000871778 [06:41:15]1040 (4) - 178820 [06:41:15]1012 (4) - 24.08.2024 00:41 [06:41:15]1206 (1) - 0 [06:41:15]OFD Sender: Remove packet 178820 [06:41:15]ProducePacketName [06:41:15]name=ofd_packets/00178820 [06:41:15]NVStorageDeleteData [06:41:15]*** Cut start [06:41:15]*** Partial cut [06:41:15]*** CUTSNS_PIN = 1 [06:41:15]*** CUTSNS_PIN = 0 [06:41:15]*** Brake cut motor [06:41:15]OFD Sender: No OFD packet to send [06:41:16]Read from MH i2c: 01 [06:41:16]MH_I2C_Read... [06:41:16]*** Stop cut motor [06:41:16]*** Cut end [06:41:16]Read from MH i2c: 01 07 00 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [06:41:16]process_action close_receipt done [06:41:16]requested_data is exist [06:41:16]produce_requested_data [06:41:16]requested_item fm.sn is exist - process it [06:41:16]wFMCommunicate request_size=4 [06:41:16]MH_SAM_APDU [06:41:16]CAPDU: 80 11 00 00 [06:41:16]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [06:41:16]Write i2c OK [06:41:16]MH_I2C_Read... [06:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:16]Read from MH i2c: E2 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 17 00 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [06:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:41:16]wFMCommunicate OK [06:41:16]requested_item fd.num is exist - process it [06:41:16]SAM_PROTO_GetFieldsCounters [06:41:16]wFMCommunicate request_size=4 [06:41:16]MH_SAM_APDU [06:41:16]CAPDU: 80 13 00 00 [06:41:16]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [06:41:16]Write i2c OK [06:41:16]MH_I2C_Read... [06:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:16]Read from MH i2c: E2 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 62 00 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 62 00 30 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 84 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [06:41: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 84 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:16]wFMCommunicate OK [06:41:16]SAM_PROTO_GetFieldsCounters done [06:41:16]requested_item shift.num is exist - process it [06:41:16]requested_item shift.opened is exist - process it [06:41:16]req_shift_opened [06:41:16]FM_GetShiftState [06:41:16]SAM_PROTO_GetShiftState [06:41:16]wFMCommunicate request_size=4 [06:41:16]MH_SAM_APDU [06:41:16]CAPDU: 80 13 01 00 [06:41:16]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [06:41:16]Write i2c OK [06:41:16]MH_I2C_Read... [06:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:16]Read from MH i2c: E2 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 0E 00 [06:41:16]MH_I2C_Read... [06:41:16]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 6D [06:41:16]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:41:16]wFMCommunicate OK [06:41:16]SAM_PROTO_GetShiftState done [06:41:16]FM_GetShiftState done [06:41:16]req_shift_opened done [06:41:16]requested_item shift.open_date is exist - process it [06:41:16]req_shift_open_date [06:41:16]req_shift_open_date done [06:41:16]produce_requested_data done [06:41:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178820,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:41:16]process_action_free close_receipt [06:41:16]json_value_free [06:41:16]json_value_free done [06:41:16]process_json_proto returns [06:41:16]Send response to host [06:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178820,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:41:16]free response buf [06:41:16]execute_script done [06:41:16]execute_script returns [06:41:16]free content buf [06:41:16]Sock 10.Close socket [06:41:16]Sock 10.Thread stoped [06:41:20]OFD Sender: No OFD packet to send [06:41:24]recv_with_timeout no data received [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:37]recv_with_timeout no data received [06:42:40]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:48]recv_with_timeout no data received [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:07]accept exits with 9 [06:43:07]New connection [06:43:07]New thread 3066805604 created [06:43:07]Thread 3066662244 joined [06:43:07]Waiting for new connection... [06:43:07] Sock 9.Parse request [06:43:07]Sock 9.Check first char [06:43:07]Sock 9.First char is OK [06:43:07]request: POST /json_proto HTTP/1.0 [06:43:07]Method: POST [06:43:07]URL: /json_proto [06:43:07]Method is POST - this is cgi request [06:43:07]url: /json_proto [06:43:07]query_string will be loaded in cgi processing [06:43:07]execute_cgi json_proto POST (null) [06:43:07]execute_cgi path=json_proto method=POST [06:43:07]POST find Content-Length [06:43:07]Host: 172.17.44.131:8080 [06:43:07]Content-Length: 667 [06:43:07]Content-Type: application/json [06:43:07] [06:43:07]POST finish read [06:43:07]Found Content-Length = 667 [06:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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" ] } } [06:43:07]execute_script... [06:43: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)294997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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" ] } } [06:43:07]POST & json_proto [06:43:07]process_json_proto [06:43:07]json parsed OK: [06:43:07]protocol is kg_v1.0 [06:43:07]action value=close_receipt [06:43:07]process_action close_receipt [06:43:07]cmd_close_receipt [06:43:07]MH_GetDate [06:43:07]Write to MH i2c: F0 00 00 32 01 22 [06:43:07]Write i2c OK [06:43:07]MH_I2C_Read... [06:43:07]Read from MH i2c: F0 [06:43:07]MH_I2C_Read... [06:43:07]Read from MH i2c: F0 09 00 [06:43:07]MH_I2C_Read... [06:43:07]Read from MH i2c: F0 09 00 32 01 00 FC 80 C9 66 4F 53 BE 66 9C [06:43:07]GetLastDocTimeStamp 1724481673 [06:43:07]current date 1724481788 [06:43:07]FM_GetShiftState [06:43:07]SAM_PROTO_GetShiftState [06:43:07]wFMCommunicate request_size=4 [06:43:07]MH_SAM_APDU [06:43:07]CAPDU: 80 13 01 00 [06:43:07]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [06:43:07]Write i2c OK [06:43:07]MH_I2C_Read... [06:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:07]Read from MH i2c: E2 [06:43:07]MH_I2C_Read... [06:43:07]Read from MH i2c: E2 0E 00 [06:43:07]MH_I2C_Read... [06:43:07]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 6F [06:43:07]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:43:07]wFMCommunicate OK [06:43:07]SAM_PROTO_GetShiftState done [06:43:07]FM_GetShiftState done [06:43:07]opened in 1724458079 [06:43:07]opened+sec_in_day 1724544479 [06:43:07]quantity*price = 60062 [06:43:07]sum+1 = 60063 [06:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 47 24.08.2024 06:43 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178821 ФПД: 280945696081036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064308&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178821&fm=280945696081036&tin=02508201610067®Number=0000000000092561&sum=60000 [06:43:08]StoreToDocumentArchive [06:43:08]shift 471 fd 178821 [06:43:08]save to /storage/0471/doc_00178821 [06:43:08]save last doc name /storage/0471/doc_00178821 to /storage/kkm_last_doc_name [06:43:08]save OK [06:43:08]Clear old archive folders... [06:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=249 [06:43:08]tlvbuf is 00423580 [06:43:08]SAM_PROTO_ClearQueue [06:43:08]wFMCommunicate request_size=4 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 09 00 00 [06:43:08]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [06:43:08]RAPDU: 90 00 [06:43:08]wFMCommunicate OK [06:43:08]SAM_PROTO_ClearQueue done [06:43:08]KKMCreateOFDPacket [06:43:08]OFDProtocolAddRootSTLVToBuf [06:43:08]FM_MakeSignedData [06:43:08]FM_MakeSignedData [06:43:08]SAM_PROTO_SignData [06:43:08]wFMCommunicate request_size=4 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 0D 01 02 [06:43:08]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [06:43:08]RAPDU: 90 00 [06:43:08]wFMCommunicate OK [06:43:08]wFMCommunicate request_size=255 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 2F 00 00 00 F4 03 04 00 FC 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 85 BA 02 00 35 04 06 00 FF 84 C4 [06:43:08]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 2F 00 00 00 F4 03 04 00 FC 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 85 BA 02 00 35 04 06 00 FF 84 C4 00 00 26 [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [06:43:08]RAPDU: 90 00 [06:43:08]wFMCommunicate OK [06:43:08]wFMCommunicate request_size=8 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 0D 02 02 03 6A 84 8C [06:43:08]Write to MH i2c: E2 0B 00 43 01 80 0D 02 02 03 00 6A 84 8C 00 00 3E [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [06:43:08]RAPDU: 90 00 [06:43:08]wFMCommunicate OK [06:43:08]wFMCommunicate request_size=4 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 0D 03 02 [06:43:08]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 0B 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 0B 00 44 01 00 C4 62 06 9C 3E 09 2D CF 90 00 CC [06:43:08]RAPDU: C4 62 06 9C 3E 09 2D CF 90 00 [06:43:08]wFMCommunicate OK [06:43:08]SAM_PROTO_SignData done [06:43:08]FM_MakeSignedData done [06:43:08]CreateOFDProtocolMessage [06:43:08]wFMCommunicate request_size=4 [06:43:08]MH_SAM_APDU [06:43:08]CAPDU: 80 11 00 00 [06:43:08]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:08]Read from MH i2c: E2 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 17 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [06:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:43:08]wFMCommunicate OK [06:43:08]CreateOFDProtocolMessage done [06:43:08]OFDSenderStorePacket 178821 [06:43:08]StoreOFDPacket docnum=178821 [06:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 7C 3F 05 01 56 D9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 2F 00 00 00 F4 03 04 00 FC 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 85 BA 02 00 35 04 06 00 FF 84 C4 6A 84 8C C4 62 06 9C 3E 09 2D CF [06:43:08]CheckFolder [06:43:08]dirname=/storage/ofd_packets [06:43:08]CheckFolder done [06:43:08]ProducePacketName [06:43:08]name=ofd_packets/00178821 [06:43:08]NVStorageSaveData ofd_packets/00178821 [06:43:08]File name is /storage/ofd_packets/00178821 [06:43:08]Write 299 bytes [06:43:08]NVStorageSaveData done [06:43:08]OFDSenderStorePacket done [06:43:08]KKMCreateOFDPacket done [06:43:08]NVStorageSaveData kkm_last_timestamp [06:43:08]File name is /storage/kkm_last_timestamp [06:43:08]Write 4 bytes [06:43:08]NVStorageSaveData done [06:43:08]ExternCall_PrintAddStr [06:43:08]wPrintStart [06:43:08]Write to MH i2c: 01 00 00 46 01 47 [06:43:08]Write i2c OK [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: 01 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: 01 07 00 [06:43:08]MH_I2C_Read... [06:43:08]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [06:43:08]RasterBufferAndPrint [06:43:08]line Счет N : (1)294997 [06:43:08]line ИНН: 02508201610067 [06:43:08]line Контрольно-Кассовый Чек [06:43:08]line ПРОДАЖА [06:43:08]line ТРК (МРК, ГНК) : 61 [06:43:08]line Товар: 2710124130 [06:43:08]line SU-92-К-5 [06:43:08]line 8.730 * 68.80 [06:43:08]line = 600.62 [06:43:08]line НДС 12% НСП 1% [06:43:08]line > о реализуемом товаре [06:43:08]line ОКРУГЛЕНИЕ: -0.62 [06:43:08]line ИТОГО: 600.00 [06:43:08]line Внесено: 600.00 [06:43:08]line СДАЧА: 0.00 [06:43:08]line НСП 1% : 5.31 [06:43:08]line НДС 12% : 63.78 [06:43:08]line Наличными: 600.00 [06:43:08]line Безнал.: 0.00 [06:43:08]line Место: АЗС № 130 "Партнер Нефть" [06:43:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:43:08]line СНО: Общий режим [06:43:08]line Чек 47 24.08.2024 06:43 [06:43:08]line Смена: 471 ФФД: 1.0 [06:43:08]line ЗНМ: 0300000071 [06:43:08]line РНМ: 0000000000092561 [06:43:08]line Версия ККМ: 001 [06:43:08]line ФМ: 0000000000871778 [06:43:08]line ФД: 178821 [06:43:08]line ФПД: 280945696081036 [06:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064308&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178821&fm=280945696081036&tin=02508201610067®Number=0000000000092561&sum=60000 [06:43:09]OFD Sender: Processing packet 178821 [packets to send 500, broken 499] [06:43:09]ProducePacketName [06:43:09]name=ofd_packets/00178821 [06:43:09]OFD Sender: To server: pG, [06:43:09]CommunicateWithHost lk.salyk.kg:30040 [06:43:09]ConnectInit lk.salyk.kg [06:43:09]written 0, free lines is 4095 [06:43:09]Write to MH i2c: 01 00 00 71 01 72 [06:43:09]Write i2c OK [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: 01 [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: 01 07 00 [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 C6 0C 4B [06:43:09]RasterBufferAndPrint [06:43:09]line [06:43:09]line [06:43:09]line [06:43:09]line [06:43:09]line [06:43:09]written 0, free lines is 3276 [06:43:09]MH_Cut [06:43:09]Write to MH i2c: D1 01 00 78 01 01 4B [06:43:09]Write i2c OK [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: D1 [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: D1 01 00 [06:43:09]MH_I2C_Read... [06:43:09]Read from MH i2c: D1 01 00 78 01 00 4A [06:43:09]Write to MH i2c: 01 00 00 79 01 7A [06:43:09]Write i2c OK [06:43:09]MH_I2C_Read... [06:43:10]Connected sock=11 [06:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 7C 3F 05 01 56 D9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 2F 00 00 00 F4 03 04 00 FC 80 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 85 BA 02 00 35 04 06 00 FF 84 C4 6A 84 8C C4 62 06 9C 3E 09 2D CF [06:43:10]*** Cut start [06:43:10]*** Partial cut [06:43:10]*** CUTSNS_PIN = 1 [06:43:10]*** CUTSNS_PIN = 0 [06:43:10]*** Brake cut motor [06:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 07 4A 47 00 75 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 37 37 38 10 04 04 00 85 BA 02 00 F4 03 04 00 A2 2C C9 66 B6 04 01 00 00 A9 9A 10 70 53 24 0D 70 [06:43:10]CommunicateWithHost err = 0 [06:43:10]CheckOFDResponse [06:43:10]1017 (14) - 77093643461234 [06:43:10]1041 (16) - 0000000000871778 [06:43:10]1040 (4) - 178821 [06:43:10]1012 (4) - 24.08.2024 00:43 [06:43:10]1206 (1) - 0 [06:43:10]OFD Sender: Remove packet 178821 [06:43:10]ProducePacketName [06:43:10]name=ofd_packets/00178821 [06:43:10]NVStorageDeleteData [06:43:10]Read from MH i2c: 01 [06:43:11]MH_I2C_Read... [06:43:11]*** Stop cut motor [06:43:11]*** Cut end [06:43:11]Read from MH i2c: 01 07 00 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [06:43:11]process_action close_receipt done [06:43:11]requested_data is exist [06:43:11]produce_requested_data [06:43:11]requested_item fm.sn is exist - process it [06:43:11]wFMCommunicate request_size=4 [06:43:11]MH_SAM_APDU [06:43:11]CAPDU: 80 11 00 00 [06:43:11]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [06:43:11]Write i2c OK [06:43:11]MH_I2C_Read... [06:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:11]Read from MH i2c: E2 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 17 00 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [06:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:43:11]wFMCommunicate OK [06:43:11]requested_item fd.num is exist - process it [06:43:11]SAM_PROTO_GetFieldsCounters [06:43:11]wFMCommunicate request_size=4 [06:43:11]MH_SAM_APDU [06:43:11]CAPDU: 80 13 00 00 [06:43:11]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [06:43:11]Write i2c OK [06:43:11]MH_I2C_Read... [06:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:11]Read from MH i2c: E2 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 62 00 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 62 00 7B 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 85 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [06:43: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 85 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:11]wFMCommunicate OK [06:43:11]SAM_PROTO_GetFieldsCounters done [06:43:11]requested_item shift.num is exist - process it [06:43:11]requested_item shift.opened is exist - process it [06:43:11]req_shift_opened [06:43:11]FM_GetShiftState [06:43:11]SAM_PROTO_GetShiftState [06:43:11]wFMCommunicate request_size=4 [06:43:11]MH_SAM_APDU [06:43:11]CAPDU: 80 13 01 00 [06:43:11]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [06:43:11]Write i2c OK [06:43:11]MH_I2C_Read... [06:43:11]OFD Sender: No OFD packet to send [06:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:11]Read from MH i2c: E2 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 0E 00 [06:43:11]MH_I2C_Read... [06:43:11]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B8 [06:43:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:43:11]wFMCommunicate OK [06:43:11]SAM_PROTO_GetShiftState done [06:43:11]FM_GetShiftState done [06:43:11]req_shift_opened done [06:43:11]requested_item shift.open_date is exist - process it [06:43:11]req_shift_open_date [06:43:11]req_shift_open_date done [06:43:11]produce_requested_data done [06:43:11]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178821,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:43:11]process_action_free close_receipt [06:43:11]json_value_free [06:43:11]json_value_free done [06:43:11]process_json_proto returns [06:43:11]Send response to host [06:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178821,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:43:11]free response buf [06:43:11]execute_script done [06:43:11]execute_script returns [06:43:11]free content buf [06:43:11]Sock 9.Close socket [06:43:11]Sock 9.Thread stoped [06:43:16]OFD Sender: No OFD packet to send [06:43:20]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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]accept exits with 10 [06:44:36]New connection [06:44:36]New thread 3066662244 created [06:44:36]Thread 3066805604 joined [06:44:36]Waiting for new connection... [06:44:36] Sock 10.Parse request [06:44:36]Sock 10.Check first char [06:44:36]Sock 10.First char is OK [06:44:36]request: POST /json_proto HTTP/1.0 [06:44:36]Method: POST [06:44:36]URL: /json_proto [06:44:36]Method is POST - this is cgi request [06:44:36]url: /json_proto [06:44:36]query_string will be loaded in cgi processing [06:44:36]execute_cgi json_proto POST (null) [06:44:36]execute_cgi path=json_proto method=POST [06:44:36]POST find Content-Length [06:44:36]Host: 172.17.44.131:8080 [06:44:36]Content-Length: 672 [06:44:36]Content-Type: application/json [06:44:36] [06:44:36]POST finish read [06:44:36]Found Content-Length = 672 [06:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 43.610, "sum" : 3000.37, "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" ] } } [06:44:36]execute_script... [06:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 43.610, "sum" : 3000.37, "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" ] } } [06:44:36]POST & json_proto [06:44:36]process_json_proto [06:44:36]json parsed OK: [06:44:36]protocol is kg_v1.0 [06:44:36]action value=close_receipt [06:44:36]process_action close_receipt [06:44:36]cmd_close_receipt [06:44:36]MH_GetDate [06:44:36]Write to MH i2c: F0 00 00 7D 01 6D [06:44:36]Write i2c OK [06:44:36]MH_I2C_Read... [06:44:36]Read from MH i2c: F0 [06:44:36]MH_I2C_Read... [06:44:36]Read from MH i2c: F0 09 00 [06:44:36]MH_I2C_Read... [06:44:36]Read from MH i2c: F0 09 00 7D 01 00 54 81 C9 66 4F 53 BE 66 40 [06:44:36]GetLastDocTimeStamp 1724481788 [06:44:36]current date 1724481876 [06:44:36]FM_GetShiftState [06:44:36]SAM_PROTO_GetShiftState [06:44:36]wFMCommunicate request_size=4 [06:44:36]MH_SAM_APDU [06:44:36]CAPDU: 80 13 01 00 [06:44:36]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [06:44:36]Write i2c OK [06:44:36]MH_I2C_Read... [06:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:36]Read from MH i2c: E2 [06:44:36]MH_I2C_Read... [06:44:36]Read from MH i2c: E2 0E 00 [06:44:36]MH_I2C_Read... [06:44:36]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 BA [06:44:36]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:44:36]wFMCommunicate OK [06:44:36]SAM_PROTO_GetShiftState done [06:44:36]FM_GetShiftState done [06:44:36]opened in 1724458079 [06:44:36]opened+sec_in_day 1724544479 [06:44:36]quantity*price = 300036 [06:44:36]sum+1 = 300038 [06:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 48 24.08.2024 06:44 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178822 ФПД: 36320745795879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064437&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178822&fm=36320745795879&tin=02508201610067®Number=0000000000092561&sum=300000 [06:44:37]StoreToDocumentArchive [06:44:37]shift 471 fd 178822 [06:44:37]save to /storage/0471/doc_00178822 [06:44:37]save last doc name /storage/0471/doc_00178822 to /storage/kkm_last_doc_name [06:44:37]save OK [06:44:37]Clear old archive folders... [06:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=249 [06:44:37]tlvbuf is 003B86E0 [06:44:37]SAM_PROTO_ClearQueue [06:44:37]wFMCommunicate request_size=4 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 09 00 00 [06:44:37]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [06:44:37]RAPDU: 90 00 [06:44:37]wFMCommunicate OK [06:44:37]SAM_PROTO_ClearQueue done [06:44:37]KKMCreateOFDPacket [06:44:37]OFDProtocolAddRootSTLVToBuf [06:44:37]FM_MakeSignedData [06:44:37]FM_MakeSignedData [06:44:37]SAM_PROTO_SignData [06:44:37]wFMCommunicate request_size=4 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 0D 01 02 [06:44:37]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [06:44:37]RAPDU: 90 00 [06:44:37]wFMCommunicate OK [06:44:37]wFMCommunicate request_size=255 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A AA 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 05 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 76 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 30 00 00 00 F4 03 04 00 55 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 86 BA 02 00 35 04 06 00 21 08 95 [06:44:37]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A AA 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 05 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 76 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 30 00 00 00 F4 03 04 00 55 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 86 BA 02 00 35 04 06 00 21 08 95 00 00 BF [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [06:44:37]RAPDU: 90 00 [06:44:37]wFMCommunicate OK [06:44:37]wFMCommunicate request_size=8 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 0D 02 02 03 26 B1 27 [06:44:37]Write to MH i2c: E2 0B 00 8E 01 80 0D 02 02 03 00 26 B1 27 00 00 0D [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [06:44:37]RAPDU: 90 00 [06:44:37]wFMCommunicate OK [06:44:37]wFMCommunicate request_size=4 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 0D 03 02 [06:44:37]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 0B 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 0B 00 8F 01 00 51 CF 5F A8 24 92 1B 3B 90 00 3F [06:44:37]RAPDU: 51 CF 5F A8 24 92 1B 3B 90 00 [06:44:37]wFMCommunicate OK [06:44:37]SAM_PROTO_SignData done [06:44:37]FM_MakeSignedData done [06:44:37]CreateOFDProtocolMessage [06:44:37]wFMCommunicate request_size=4 [06:44:37]MH_SAM_APDU [06:44:37]CAPDU: 80 11 00 00 [06:44:37]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:37]Read from MH i2c: E2 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 17 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [06:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:44:37]wFMCommunicate OK [06:44:37]CreateOFDProtocolMessage done [06:44:37]OFDSenderStorePacket 178822 [06:44:37]StoreOFDPacket docnum=178822 [06:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 23 D7 05 01 7D 3F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A AA 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 05 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 76 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 30 00 00 00 F4 03 04 00 55 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 86 BA 02 00 35 04 06 00 21 08 95 26 B1 27 51 CF 5F A8 24 92 1B 3B [06:44:37]CheckFolder [06:44:37]dirname=/storage/ofd_packets [06:44:37]CheckFolder done [06:44:37]ProducePacketName [06:44:37]name=ofd_packets/00178822 [06:44:37]NVStorageSaveData ofd_packets/00178822 [06:44:37]File name is /storage/ofd_packets/00178822 [06:44:37]Write 299 bytes [06:44:37]NVStorageSaveData done [06:44:37]OFDSenderStorePacket done [06:44:37]KKMCreateOFDPacket done [06:44:37]NVStorageSaveData kkm_last_timestamp [06:44:37]File name is /storage/kkm_last_timestamp [06:44:37]Write 4 bytes [06:44:37]NVStorageSaveData done [06:44:37]ExternCall_PrintAddStr [06:44:37]wPrintStart [06:44:37]Write to MH i2c: 01 00 00 91 01 92 [06:44:37]Write i2c OK [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: 01 [06:44:37]MH_I2C_Read... [06:44:37]OFD Sender: Processing packet 178822 [packets to send 500, broken 499] [06:44:37]ProducePacketName [06:44:37]name=ofd_packets/00178822 [06:44:37]OFD Sender: To server: pG, [06:44:37]CommunicateWithHost lk.salyk.kg:30040 [06:44:37]ConnectInit lk.salyk.kg [06:44:37]Read from MH i2c: 01 07 00 [06:44:37]MH_I2C_Read... [06:44:37]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [06:44:37]RasterBufferAndPrint [06:44:37]line Счет N : (1)294998 [06:44:37]line ИНН: 02508201610067 [06:44:37]line Контрольно-Кассовый Чек [06:44:37]line ПРОДАЖА [06:44:37]line ТРК (МРК, ГНК) : 51 [06:44:37]line Товар: 2710124130 [06:44:37]line SU-92-К-5 [06:44:37]line 43.610 * 68.80 [06:44:37]line = 3000.37 [06:44:37]line НДС 12% НСП 1% [06:44:37]line > о реализуемом товаре [06:44:37]line ОКРУГЛЕНИЕ: -0.37 [06:44:37]line ИТОГО: 3000.00 [06:44:37]line Внесено: 3000.00 [06:44:37]line СДАЧА: 0.00 [06:44:37]line НСП 1% : 26.55 [06:44:37]line НДС 12% : 318.62 [06:44:37]line Наличными: 3000.00 [06:44:37]line Безнал.: 0.00 [06:44:37]line Место: АЗС № 130 "Партнер Нефть" [06:44:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:44:37]line СНО: Общий режим [06:44:37]line Чек 48 24.08.2024 06:44 [06:44:37]line Смена: 471 ФФД: 1.0 [06:44:37]line ЗНМ: 0300000071 [06:44:37]line РНМ: 0000000000092561 [06:44:37]line Версия ККМ: 001 [06:44:37]line ФМ: 0000000000871778 [06:44:37]line ФД: 178822 [06:44:37]line ФПД: 36320745795879 [06:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064437&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178822&fm=36320745795879&tin=02508201610067®Number=0000000000092561&sum=300000 [06:44:37]written 0, free lines is 4095 [06:44:38]Write to MH i2c: 01 00 00 BC 01 BD [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: 01 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: 01 07 00 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 C7 0C 97 [06:44:38]RasterBufferAndPrint [06:44:38]line [06:44:38]line [06:44:38]line [06:44:38]line [06:44:38]line [06:44:38]written 0, free lines is 3277 [06:44:38]MH_Cut [06:44:38]Write to MH i2c: D1 01 00 C3 01 01 96 [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: D1 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: D1 01 00 [06:44:38]MH_I2C_Read... [06:44:38]Read from MH i2c: D1 01 00 C3 01 00 95 [06:44:38]Write to MH i2c: 01 00 00 C4 01 C5 [06:44:38]Write i2c OK [06:44:38]MH_I2C_Read... [06:44:38]Connected sock=7 [06:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 23 D7 05 01 7D 3F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A AA 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 05 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 76 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 30 00 00 00 F4 03 04 00 55 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 86 BA 02 00 35 04 06 00 21 08 95 26 B1 27 51 CF 5F A8 24 92 1B 3B [06:44:38]*** Cut start [06:44:38]*** Partial cut [06:44:38]*** CUTSNS_PIN = 1 [06:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A9 3F 47 00 05 B5 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 37 37 38 10 04 04 00 86 BA 02 00 F4 03 04 00 FB 2C C9 66 B6 04 01 00 00 6F 10 16 27 DC BB 62 A6 [06:44:39]CommunicateWithHost err = 0 [06:44:39]CheckOFDResponse [06:44:39]1017 (14) - 77093643461234 [06:44:39]1041 (16) - 0000000000871778 [06:44:39]1040 (4) - 178822 [06:44:39]1012 (4) - 24.08.2024 00:44 [06:44:39]1206 (1) - 0 [06:44:39]OFD Sender: Remove packet 178822 [06:44:39]ProducePacketName [06:44:39]name=ofd_packets/00178822 [06:44:39]NVStorageDeleteData [06:44:39]*** CUTSNS_PIN = 0 [06:44:39]*** Brake cut motor [06:44:39]OFD Sender: No OFD packet to send [06:44:39]Read from MH i2c: 01 [06:44:39]MH_I2C_Read... [06:44:39]*** Stop cut motor [06:44:39]*** Cut end [06:44:39]Read from MH i2c: 01 07 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [06:44:39]process_action close_receipt done [06:44:39]requested_data is exist [06:44:39]produce_requested_data [06:44:39]requested_item fm.sn is exist - process it [06:44:39]wFMCommunicate request_size=4 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 11 00 00 [06:44:39]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 17 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 99 [06:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:44:39]wFMCommunicate OK [06:44:39]requested_item fd.num is exist - process it [06:44:39]SAM_PROTO_GetFieldsCounters [06:44:39]wFMCommunicate request_size=4 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 13 00 00 [06:44:39]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 62 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 62 00 C6 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 86 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [06:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 86 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:39]wFMCommunicate OK [06:44:39]SAM_PROTO_GetFieldsCounters done [06:44:39]requested_item shift.num is exist - process it [06:44:39]requested_item shift.opened is exist - process it [06:44:39]req_shift_opened [06:44:39]FM_GetShiftState [06:44:39]SAM_PROTO_GetShiftState [06:44:39]wFMCommunicate request_size=4 [06:44:39]MH_SAM_APDU [06:44:39]CAPDU: 80 13 01 00 [06:44:39]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [06:44:39]Write i2c OK [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 [06:44:39]MH_I2C_Read... [06:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:39]Read from MH i2c: E2 0E 00 [06:44:39]MH_I2C_Read... [06:44:39]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 03 [06:44:39]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:44:39]wFMCommunicate OK [06:44:39]SAM_PROTO_GetShiftState done [06:44:39]FM_GetShiftState done [06:44:39]req_shift_opened done [06:44:39]requested_item shift.open_date is exist - process it [06:44:39]req_shift_open_date [06:44:39]req_shift_open_date done [06:44:39]produce_requested_data done [06:44:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178822,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:44:39]process_action_free close_receipt [06:44:39]json_value_free [06:44:39]json_value_free done [06:44:39]process_json_proto returns [06:44:39]Send response to host [06:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178822,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:44:39]free response buf [06:44:39]execute_script done [06:44:39]execute_script returns [06:44:39]free content buf [06:44:39]Sock 10.Close socket [06:44:39]Sock 10.Thread stoped [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:03]recv_with_timeout no data received [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:16]recv_with_timeout no data received [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]recv_with_timeout no data received [06:46:34]OFD Sender: No OFD packet to send [06:46:39]accept exits with 9 [06:46:39]New connection [06:46:39]New thread 3066805604 created [06:46:39]Thread 3066662244 joined [06:46:39]Waiting for new connection... [06:46:39] Sock 9.Parse request [06:46:39]Sock 9.Check first char [06:46:39]Sock 9.First char is OK [06:46:39]request: POST /json_proto HTTP/1.0 [06:46:39]Method: POST [06:46:39]URL: /json_proto [06:46:39]Method is POST - this is cgi request [06:46:39]url: /json_proto [06:46:39]query_string will be loaded in cgi processing [06:46:39]execute_cgi json_proto POST (null) [06:46:39]execute_cgi path=json_proto method=POST [06:46:39]POST find Content-Length [06:46:39]Host: 172.17.44.131:8080 [06:46:39]Content-Length: 682 [06:46:39]Content-Type: application/json [06:46:39] [06:46:39]POST finish read [06:46:39]Found Content-Length = 682 [06:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [06:46:39]execute_script... [06:46: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)294999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [06:46:39]POST & json_proto [06:46:39]process_json_proto [06:46:39]json parsed OK: [06:46:39]protocol is kg_v1.0 [06:46:39]action value=close_receipt [06:46:39]process_action close_receipt [06:46:39]cmd_close_receipt [06:46:39]MH_GetDate [06:46:39]Write to MH i2c: F0 00 00 C8 01 B8 [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: F0 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: F0 09 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: F0 09 00 C8 01 00 D0 81 C9 66 4F 53 BE 66 07 [06:46:39]GetLastDocTimeStamp 1724481877 [06:46:39]current date 1724482000 [06:46:39]FM_GetShiftState [06:46:39]SAM_PROTO_GetShiftState [06:46:39]wFMCommunicate request_size=4 [06:46:39]MH_SAM_APDU [06:46:39]CAPDU: 80 13 01 00 [06:46:39]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [06:46:39]Write i2c OK [06:46:39]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0E 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 05 [06:46:39]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:46:39]wFMCommunicate OK [06:46:39]SAM_PROTO_GetShiftState done [06:46:39]FM_GetShiftState done [06:46:39]opened in 1724458079 [06:46:39]opened+sec_in_day 1724544479 [06:46:39]quantity*price = 100021 [06:46:39]sum+1 = 100023 [06:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 49 24.08.2024 06:46 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178823 ФПД: 84636932192986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064640&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178823&fm=84636932192986&tin=02508201610067®Number=0000000000092561&sum=100000 [06:46:40]StoreToDocumentArchive [06:46:40]shift 471 fd 178823 [06:46:40]save to /storage/0471/doc_00178823 [06:46:40]save last doc name /storage/0471/doc_00178823 to /storage/kkm_last_doc_name [06:46:40]save OK [06:46:40]Clear old archive folders... [06:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:40]tlvbuf is 00421100 [06:46:40]SAM_PROTO_ClearQueue [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 09 00 00 [06:46:40]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]SAM_PROTO_ClearQueue done [06:46:40]KKMCreateOFDPacket [06:46:40]OFDProtocolAddRootSTLVToBuf [06:46:40]FM_MakeSignedData [06:46:40]FM_MakeSignedData [06:46:40]SAM_PROTO_SignData [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 0D 01 02 [06:46:40]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]wFMCommunicate request_size=255 [06:46:40]MH_SAM_APDU [06:46:40]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 31 00 00 00 F4 03 04 00 D0 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 87 BA 02 00 35 04 06 00 4C [06:46:40]Write to MH i2c: E2 02 01 D8 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 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 31 00 00 00 F4 03 04 00 D0 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 87 BA 02 00 35 04 06 00 4C 00 00 19 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 03 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [06:46:41]RAPDU: 90 00 [06:46:41]wFMCommunicate OK [06:46:41]wFMCommunicate request_size=10 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 0D 02 02 05 FA 12 47 3A DA [06:46:41]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 FA 12 47 3A DA 00 00 C5 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 03 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [06:46:41]RAPDU: 90 00 [06:46:41]wFMCommunicate OK [06:46:41]wFMCommunicate request_size=4 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 0D 03 02 [06:46:41]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 0B 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 0B 00 DA 01 00 40 7D 9C 11 FF E2 52 2D 90 00 21 [06:46:41]RAPDU: 40 7D 9C 11 FF E2 52 2D 90 00 [06:46:41]wFMCommunicate OK [06:46:41]SAM_PROTO_SignData done [06:46:41]FM_MakeSignedData done [06:46:41]CreateOFDProtocolMessage [06:46:41]wFMCommunicate request_size=4 [06:46:41]MH_SAM_APDU [06:46:41]CAPDU: 80 11 00 00 [06:46:41]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:41]Read from MH i2c: E2 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 17 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [06:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:46:41]wFMCommunicate OK [06:46:41]CreateOFDProtocolMessage done [06:46:41]OFDSenderStorePacket 178823 [06:46:41]StoreOFDPacket docnum=178823 [06:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 F9 DD 07 01 F3 2F 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 31 00 00 00 F4 03 04 00 D0 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 87 BA 02 00 35 04 06 00 4C FA 12 47 3A DA 40 7D 9C 11 FF E2 52 2D [06:46:41]CheckFolder [06:46:41]dirname=/storage/ofd_packets [06:46:41]CheckFolder done [06:46:41]ProducePacketName [06:46:41]name=ofd_packets/00178823 [06:46:41]NVStorageSaveData ofd_packets/00178823 [06:46:41]File name is /storage/ofd_packets/00178823 [06:46:41]Write 301 bytes [06:46:41]NVStorageSaveData done [06:46:41]OFDSenderStorePacket done [06:46:41]KKMCreateOFDPacket done [06:46:41]NVStorageSaveData kkm_last_timestamp [06:46:41]File name is /storage/kkm_last_timestamp [06:46:41]Write 4 bytes [06:46:41]NVStorageSaveData done [06:46:41]ExternCall_PrintAddStr [06:46:41]wPrintStart [06:46:41]Write to MH i2c: 01 00 00 DC 01 DD [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [06:46:41]RasterBufferAndPrint [06:46:41]line Счет N : (1)294999 [06:46:41]line ИНН: 02508201610067 [06:46:41]line Контрольно-Кассовый Чек [06:46:41]line ПРОДАЖА [06:46:41]line ТРК (МРК, ГНК) : 33 [06:46:41]line Товар: 2710124500 [06:46:41]line Аи-95-К-5 [06:46:41]line 13.480 * 74.20 [06:46:41]line = 1000.22 [06:46:41]line НДС 12% НСП 1% [06:46:41]line > о реализуемом товаре [06:46:41]line ОКРУГЛЕНИЕ: -0.22 [06:46:41]line ИТОГО: 1000.00 [06:46:41]line Внесено: 1000.00 [06:46:41]line СДАЧА: 0.00 [06:46:41]line НСП 1% : 8.85 [06:46:41]line НДС 12% : 106.22 [06:46:41]line Наличными: 1000.00 [06:46:41]line Безнал.: 0.00 [06:46:41]line Место: АЗС № 130 "Партнер Нефть" [06:46:41]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:46:41]line СНО: Общий режим [06:46:41]line Чек 49 24.08.2024 06:46 [06:46:41]line Смена: 471 ФФД: 1.0 [06:46:41]line ЗНМ: 0300000071 [06:46:41]line РНМ: 0000000000092561 [06:46:41]line Версия ККМ: 001 [06:46:41]line ФМ: 0000000000871778 [06:46:41]line ФД: 178823 [06:46:41]line ФПД: 84636932192986 [06:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T064640&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178823&fm=84636932192986&tin=02508201610067®Number=0000000000092561&sum=100000 [06:46:41]OFD Sender: Processing packet 178823 [packets to send 500, broken 499] [06:46:41]ProducePacketName [06:46:41]name=ofd_packets/00178823 [06:46:41]OFD Sender: To server: pG, [06:46:41]CommunicateWithHost lk.salyk.kg:30040 [06:46:41]ConnectInit lk.salyk.kg [06:46:41]written 0, free lines is 4095 [06:46:41]Write to MH i2c: 01 00 00 07 02 09 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 C4 0C E0 [06:46:41]RasterBufferAndPrint [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]written 0, free lines is 3274 [06:46:41]MH_Cut [06:46:41]Write to MH i2c: D1 01 00 0E 02 01 E2 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 01 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 01 00 0E 02 00 E1 [06:46:41]Write to MH i2c: 01 00 00 0F 02 11 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:42]*** Cut start [06:46:42]*** Partial cut [06:46:42]*** CUTSNS_PIN = 1 [06:46:42]*** CUTSNS_PIN = 0 [06:46:42]*** Brake cut motor [06:46:43]Read from MH i2c: 01 [06:46:43]MH_I2C_Read... [06:46:43]*** Stop cut motor [06:46:43]*** Cut end [06:46:43]Read from MH i2c: 01 07 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [06:46:43]process_action close_receipt done [06:46:43]requested_data is exist [06:46:43]produce_requested_data [06:46:43]requested_item fm.sn is exist - process it [06:46:43]wFMCommunicate request_size=4 [06:46:43]MH_SAM_APDU [06:46:43]CAPDU: 80 11 00 00 [06:46:43]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 17 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [06:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:46:43]wFMCommunicate OK [06:46:43]requested_item fd.num is exist - process it [06:46:43]SAM_PROTO_GetFieldsCounters [06:46:43]wFMCommunicate request_size=4 [06:46:43]MH_SAM_APDU [06:46:43]CAPDU: 80 13 00 00 [06:46:43]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 62 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 62 00 11 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 87 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [06:46: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 87 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:43]wFMCommunicate OK [06:46:43]SAM_PROTO_GetFieldsCounters done [06:46:43]requested_item shift.num is exist - process it [06:46:43]requested_item shift.opened is exist - process it [06:46:43]req_shift_opened [06:46:43]FM_GetShiftState [06:46:43]SAM_PROTO_GetShiftState [06:46:43]wFMCommunicate request_size=4 [06:46:43]MH_SAM_APDU [06:46:43]CAPDU: 80 13 01 00 [06:46:43]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4F [06:46:43]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:46:43]wFMCommunicate OK [06:46:43]SAM_PROTO_GetShiftState done [06:46:43]FM_GetShiftState done [06:46:43]req_shift_opened done [06:46:43]requested_item shift.open_date is exist - process it [06:46:43]req_shift_open_date [06:46:43]req_shift_open_date done [06:46:43]produce_requested_data done [06:46:43]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178823,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [06:46:43]process_action_free close_receipt [06:46:43]json_value_free [06:46:43]json_value_free done [06:46:43]process_json_proto returns [06:46:43]Send response to host [06:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178823,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [06:46:43]free response buf [06:46:43]execute_script done [06:46:43]execute_script returns [06:46:43]free content buf [06:46:43]Sock 9.Close socket [06:46:43]Sock 9.Thread stoped [06:46:44]Connected sock=11 [06:46: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 37 37 38 0F 01 00 00 F9 DD 07 01 F3 2F 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 31 00 00 00 F4 03 04 00 D0 81 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 87 BA 02 00 35 04 06 00 4C FA 12 47 3A DA 40 7D 9C 11 FF E2 52 2D [06:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 31 52 47 00 13 FB 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 37 37 38 10 04 04 00 87 BA 02 00 F4 03 04 00 79 2D C9 66 B6 04 01 00 00 6F 8B 46 2D 40 69 14 BC [06:46:44]CommunicateWithHost err = 0 [06:46:44]CheckOFDResponse [06:46:44]1017 (14) - 77093643461234 [06:46:44]1041 (16) - 0000000000871778 [06:46:44]1040 (4) - 178823 [06:46:44]1012 (4) - 24.08.2024 00:46 [06:46:44]1206 (1) - 0 [06:46:44]OFD Sender: Remove packet 178823 [06:46:44]ProducePacketName [06:46:44]name=ofd_packets/00178823 [06:46:44]NVStorageDeleteData [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:04]recv_with_timeout no data received [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:47:59]recv_with_timeout no data received [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:54]recv_with_timeout no data received [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:13]recv_with_timeout no data received [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:36]recv_with_timeout no data received [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:04]recv_with_timeout no data received [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:24]recv_with_timeout no data received [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]accept exits with 7 [06:53:46]New connection [06:53:46]New thread 3066662244 created [06:53:46]Thread 3066805604 joined [06:53:46]Waiting for new connection... [06:53:46] Sock 7.Parse request [06:53:46]Sock 7.Check first char [06:53:46]Sock 7.First char is OK [06:53:46]request: POST /json_proto HTTP/1.0 [06:53:46]Method: POST [06:53:46]URL: /json_proto [06:53:46]Method is POST - this is cgi request [06:53:46]url: /json_proto [06:53:46]query_string will be loaded in cgi processing [06:53:46]execute_cgi json_proto POST (null) [06:53:46]execute_cgi path=json_proto method=POST [06:53:46]POST find Content-Length [06:53:46]Host: 172.17.44.131:8080 [06:53:46]Content-Length: 679 [06:53:46]Content-Type: application/json [06:53:46] [06:53:46]POST finish read [06:53:46]Found Content-Length = 679 [06:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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:53:46]execute_script... [06:53: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)295003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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:53:46]POST & json_proto [06:53:46]process_json_proto [06:53:46]json parsed OK: [06:53:46]protocol is kg_v1.0 [06:53:46]action value=close_receipt [06:53:46]process_action close_receipt [06:53:46]cmd_close_receipt [06:53:46]MH_GetDate [06:53:46]Write to MH i2c: F0 00 00 13 02 04 [06:53:46]Write i2c OK [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: F0 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: F0 09 00 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: F0 09 00 13 02 00 7B 83 C9 66 4F 53 BE 66 00 [06:53:46]GetLastDocTimeStamp 1724482000 [06:53:46]current date 1724482427 [06:53:46]FM_GetShiftState [06:53:46]SAM_PROTO_GetShiftState [06:53:46]wFMCommunicate request_size=4 [06:53:46]MH_SAM_APDU [06:53:46]CAPDU: 80 13 01 00 [06:53:46]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [06:53:46]Write i2c OK [06:53:46]MH_I2C_Read... [06:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:46]Read from MH i2c: E2 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: E2 0E 00 [06:53:46]MH_I2C_Read... [06:53:46]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 51 [06:53:46]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [06:53:46]wFMCommunicate OK [06:53:46]SAM_PROTO_GetShiftState done [06:53:46]FM_GetShiftState done [06:53:46]opened in 1724458079 [06:53:46]opened+sec_in_day 1724544479 [06:53:46]quantity*price = 120015 [06:53:46]sum+1 = 120016 [06:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 50 24.08.2024 06:53 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178824 ФПД: 77825960974601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T065347&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178824&fm=77825960974601&tin=02508201610067®Number=0000000000092561&sum=120000 [06:53:47]StoreToDocumentArchive [06:53:47]shift 471 fd 178824 [06:53:47]save to /storage/0471/doc_00178824 [06:53:47]save last doc name /storage/0471/doc_00178824 to /storage/kkm_last_doc_name [06:53:47]save OK [06:53:47]Clear old archive folders... [06:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:53:47]tlvbuf is 00412440 [06:53:47]SAM_PROTO_ClearQueue [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 09 00 00 [06:53:47]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [06:53:47]RAPDU: 90 00 [06:53:47]wFMCommunicate OK [06:53:47]SAM_PROTO_ClearQueue done [06:53:47]KKMCreateOFDPacket [06:53:47]OFDProtocolAddRootSTLVToBuf [06:53:47]FM_MakeSignedData [06:53:47]FM_MakeSignedData [06:53:47]SAM_PROTO_SignData [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 0D 01 02 [06:53:47]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [06:53:47]RAPDU: 90 00 [06:53:47]wFMCommunicate OK [06:53:47]wFMCommunicate request_size=255 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 32 00 00 00 F4 03 04 00 7B 83 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 88 BA 02 00 35 04 06 00 46 C8 44 C2 [06:53:47]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 32 00 00 00 F4 03 04 00 7B 83 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 88 BA 02 00 35 04 06 00 46 C8 44 C2 00 00 28 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [06:53:47]RAPDU: 90 00 [06:53:47]wFMCommunicate OK [06:53:47]wFMCommunicate request_size=7 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 0D 02 02 02 19 09 [06:53:47]Write to MH i2c: E2 0A 00 24 02 80 0D 02 02 02 00 19 09 00 00 C6 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [06:53:47]RAPDU: 90 00 [06:53:47]wFMCommunicate OK [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 0D 03 02 [06:53:47]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [06:53:47]Write i2c OK [06:53:47]MH_I2C_Read... [06:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:47]Read from MH i2c: E2 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 0B 00 [06:53:47]MH_I2C_Read... [06:53:47]Read from MH i2c: E2 0B 00 25 02 00 8B 96 E6 61 B1 6A D4 ED 90 00 E7 [06:53:47]RAPDU: 8B 96 E6 61 B1 6A D4 ED 90 00 [06:53:47]wFMCommunicate OK [06:53:47]SAM_PROTO_SignData done [06:53:47]FM_MakeSignedData done [06:53:47]CreateOFDProtocolMessage [06:53:47]wFMCommunicate request_size=4 [06:53:47]MH_SAM_APDU [06:53:47]CAPDU: 80 11 00 00 [06:53:48]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [06:53:48]Write i2c OK [06:53:48]MH_I2C_Read... [06:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:48]Read from MH i2c: E2 [06:53:48]MH_I2C_Read... [06:53:48]Read from MH i2c: E2 17 00 [06:53:48]MH_I2C_Read... [06:53:48]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FB [06:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:53:48]wFMCommunicate OK [06:53:48]CreateOFDProtocolMessage done [06:53:48]OFDSenderStorePacket 178824 [06:53:48]StoreOFDPacket docnum=178824 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 733904+1723749199=1724483103 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 20 86 C9 66 4F 53 BE 66 9A [07:05:04]Current date/time: 24.08.2024 07:05 [07:05:04]FM_Init [07:05:04]wFMConnect [07:05:04]MH_SAM_On [07:05:04]Write to MH i2c: E0 00 00 08 00 E7 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_init finished! [07:05:04]*** atr: [07:05:04]*** 0F 3B D5 18 FF 81 91 FE [07:05:04]*** 1F C3 80 73 C8 21 10 0A [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]*** 00 00 00 00 00 00 00 00 [07:05:04]Read from MH i2c: E0 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E0 10 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:05:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:05:04]wFMCommunicate request_size=10 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:05:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:05:04]RAPDU: 90 00 [07:05:04]wFMCommunicate OK [07:05:04]wFMCommunicate request_size=4 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 80 11 00 00 [07:05:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 17 00 [07:05:04]MH_I2C_Read... [07:05:04]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 37 37 38 90 00 DD [07:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:05:04]wFMCommunicate OK [07:05:04]Detected FM SN is 0000000000871778 [07:05:04]Stored FM SN is 0000000000871778 [07:05:04]wFMCommunicate request_size=9 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 80 16 00 00 04 D9 BA 00 00 [07:05:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:05:04]RAPDU: 90 00 [07:05:04]wFMCommunicate OK [07:05:04]FM PIN OK [07:05:04]wFMCommunicate request_size=8 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 80 14 04 00 03 02 00 01 [07:05:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:05:04]RAPDU: 90 00 [07:05:04]wFMCommunicate OK [07:05:04]wFMCommunicate request_size=13 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:05:04]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:05:04]RAPDU: 90 00 [07:05:04]wFMCommunicate OK [07:05:04]wFMCommunicate request_size=4 [07:05:04]MH_SAM_APDU [07:05:04]CAPDU: 80 11 00 00 [07:05:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:04]Read from MH i2c: E2 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: E2 17 00 [07:05:04]MH_I2C_Read... [07:05:04]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 37 37 38 90 00 E1 [07:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:05:04]wFMCommunicate OK [07:05:04]DocumentArchiveInit [07:05:04]Start Httpd... [07:05:04]Httpd thread 3067845988 created [07:05:04]Write to MH i2c: 01 00 00 0F 00 0F [07:05:04]Write i2c OK [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: 01 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: 01 07 00 [07:05:04]MH_I2C_Read... [07:05:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:05:04]MH Int Process started [07:05:04]Allocated Socket 8 [07:05:04]Bind OK [07:05:04]Listen OK [07:05:04]httpd running on port 8080 [07:05:04]Waiting for new connection... [07:05:05]OFD Sender: Processing packet 178824 [packets to send 500, broken 499] [07:05:05]ProducePacketName [07:05:05]name=ofd_packets/00178824 [07:05:05]OFD Sender: To server: pG, [07:05:05]CommunicateWithHost lk.salyk.kg:30040 [07:05:05]ConnectInit lk.salyk.kg [07:05:06]Connected sock=7 [07:05: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 37 37 38 0C 01 00 00 FD 37 04 01 E4 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 32 00 00 00 F4 03 04 00 7B 83 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 88 BA 02 00 35 04 06 00 46 C8 44 C2 19 09 8B 96 E6 61 B1 6A D4 ED [07:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 6E 58 47 00 15 A5 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 37 37 38 10 04 04 00 88 BA 02 00 F4 03 04 00 C6 31 C9 66 B6 04 01 00 00 4D 31 B2 20 FA 68 E7 94 [07:05:07]CommunicateWithHost err = 0 [07:05:07]CheckOFDResponse [07:05:07]1017 (14) - 77093643461234 [07:05:07]1041 (16) - 0000000000871778 [07:05:07]1040 (4) - 178824 [07:05:07]1012 (4) - 24.08.2024 01:05 [07:05:07]1206 (1) - 0 [07:05:07]OFD Sender: Remove packet 178824 [07:05:07]ProducePacketName [07:05:07]name=ofd_packets/00178824 [07:05:07]NVStorageDeleteData [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 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 734002+1723749199=1724483201 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 81 86 C9 66 4F 53 BE 66 FB [07:06:41]Current date/time: 24.08.2024 07:06 [07:06:41]FM_Init [07:06:41]wFMConnect [07:06:41]MH_SAM_On [07:06:41]Write to MH i2c: E0 00 00 08 00 E7 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_init finished! [07:06:41]*** atr: [07:06:41]*** 0F 3B D5 18 FF 81 91 FE [07:06:41]*** 1F C3 80 73 C8 21 10 0A [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]*** 00 00 00 00 00 00 00 00 [07:06:41]Read from MH i2c: E0 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E0 10 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:06:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:06:41]wFMCommunicate request_size=10 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:06:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 11 00 00 [07:06:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [07:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:41]wFMCommunicate OK [07:06:41]Detected FM SN is 0000000000871778 [07:06:41]Stored FM SN is 0000000000871778 [07:06:41]wFMCommunicate request_size=9 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 16 00 00 04 D9 BA 00 00 [07:06:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]FM PIN OK [07:06:41]wFMCommunicate request_size=8 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 14 04 00 03 02 00 01 [07:06:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=13 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:06:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:06:41]RAPDU: 90 00 [07:06:41]wFMCommunicate OK [07:06:41]wFMCommunicate request_size=4 [07:06:41]MH_SAM_APDU [07:06:41]CAPDU: 80 11 00 00 [07:06:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:41]Read from MH i2c: E2 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [07:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:41]wFMCommunicate OK [07:06:41]DocumentArchiveInit [07:06:41]Start Httpd... [07:06:41]Httpd thread 3067624804 created [07:06:41]Write to MH i2c: 01 00 00 0F 00 0F [07:06:41]Write i2c OK [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 07 00 [07:06:41]MH_I2C_Read... [07:06:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:06:41]MH Int Process started [07:06:41]Allocated Socket 8 [07:06:41]Bind OK [07:06:41]Listen OK [07:06:41]httpd running on port 8080 [07:06:41]Waiting for new connection... [07:06:42]OFD Sender: No OFD packet to send [07:06:43]accept exits with 9 [07:06:43]New connection [07:06:43]New thread 3067338084 created [07:06:43]Waiting for new connection... [07:06:43] Sock 9.Parse request [07:06:43]Sock 9.Check first char [07:06:43]Sock 9.First char is OK [07:06:43]request: POST /json_proto HTTP/1.0 [07:06:43]Method: POST [07:06:43]URL: /json_proto [07:06:43]Method is POST - this is cgi request [07:06:43]url: /json_proto [07:06:43]query_string will be loaded in cgi processing [07:06:43]execute_cgi json_proto POST (null) [07:06:43]execute_cgi path=json_proto method=POST [07:06:43]POST find Content-Length [07:06:43]Host: 172.17.44.131:8080 [07:06:43]Content-Length: 215 [07:06:43]Content-Type: application/json [07:06:43] [07:06:43]POST finish read [07:06:43]Found Content-Length = 215 [07:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:43]execute_script... [07:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:43]POST & json_proto [07:06:43]process_json_proto [07:06:43]json parsed OK: [07:06:43]protocol is kg_v1.0 [07:06:43]action value=get_value [07:06:43]process_action get_value [07:06:43]cmd_get_value [07:06:43]process_action get_value done [07:06:43]requested_data is exist [07:06:43]produce_requested_data [07:06:43]requested_item kkm.sn is exist - process it [07:06:43]requested_item kkm.ver is exist - process it [07:06:43]requested_item fm.sn is exist - process it [07:06:43]wFMCommunicate request_size=4 [07:06:43]MH_SAM_APDU [07:06:43]CAPDU: 80 11 00 00 [07:06:43]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:06:43]Write i2c OK [07:06:43]MH_I2C_Read... [07:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:44]Read from MH i2c: E2 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 17 00 [07:06:44]MH_I2C_Read... [07:06:44]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 37 37 38 90 00 E3 [07:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:44]wFMCommunicate OK [07:06:44]requested_item fd.num is exist - process it [07:06:44]SAM_PROTO_GetFieldsCounters [07:06:44]wFMCommunicate request_size=4 [07:06:44]MH_SAM_APDU [07:06:44]CAPDU: 80 13 00 00 [07:06:44]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:06:44]Write i2c OK [07:06:44]MH_I2C_Read... [07:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:44]Read from MH i2c: E2 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 62 00 [07:06:44]MH_I2C_Read... [07:06:44]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 88 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [07:06: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 88 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:44]wFMCommunicate OK [07:06:44]SAM_PROTO_GetFieldsCounters done [07:06:44]requested_item shift.num is exist - process it [07:06:44]requested_item shift.opened is exist - process it [07:06:44]req_shift_opened [07:06:44]FM_GetShiftState [07:06:44]SAM_PROTO_GetShiftState [07:06:44]wFMCommunicate request_size=4 [07:06:44]MH_SAM_APDU [07:06:44]CAPDU: 80 13 01 00 [07:06:44]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:06:44]Write i2c OK [07:06:44]MH_I2C_Read... [07:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:44]Read from MH i2c: E2 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 0E 00 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [07:06:44]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:44]wFMCommunicate OK [07:06:44]SAM_PROTO_GetShiftState done [07:06:44]FM_GetShiftState done [07:06:44]req_shift_opened done [07:06:44]requested_item shift.open_date is exist - process it [07:06:44]req_shift_open_date [07:06:44]req_shift_open_date done [07:06:44]produce_requested_data done [07:06:44]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178824,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:06:44]process_action_free get_value [07:06:44]json_value_free [07:06:44]json_value_free done [07:06:44]process_json_proto returns [07:06:44]Send response to host [07:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178824,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:06:44]free response buf [07:06:44]execute_script done [07:06:44]execute_script returns [07:06:44]free content buf [07:06:44]Sock 9.Close socket [07:06:44]Sock 9.Thread stoped [07:06:44]accept exits with 6 [07:06:44]New connection [07:06:44]New thread 3067194724 created [07:06:44]Thread 3067338084 joined [07:06:44]Waiting for new connection... [07:06:44] Sock 6.Parse request [07:06:44]Sock 6.Check first char [07:06:44]Sock 6.First char is OK [07:06:44]request: POST /json_proto HTTP/1.0 [07:06:44]Method: POST [07:06:44]URL: /json_proto [07:06:44]Method is POST - this is cgi request [07:06:44]url: /json_proto [07:06:44]query_string will be loaded in cgi processing [07:06:44]execute_cgi json_proto POST (null) [07:06:44]execute_cgi path=json_proto method=POST [07:06:44]POST find Content-Length [07:06:44]Host: 172.17.44.131:8080 [07:06:44]Content-Length: 331 [07:06:44]Content-Type: application/json [07:06:44] [07:06:44]POST finish read [07:06:44]Found Content-Length = 331 [07:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:06:44]execute_script... [07:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:06:44]POST & json_proto [07:06:44]process_json_proto [07:06:44]json parsed OK: [07:06:44]protocol is kg_v1.0 [07:06:44]action value=get_value [07:06:44]process_action get_value [07:06:44]cmd_get_value [07:06:44]process_action get_value done [07:06:44]requested_data is exist [07:06:44]produce_requested_data [07:06:44]requested_item fm.sale.total is exist - process it [07:06:44]SAM_PROTO_GetFMData [07:06:44]wFMCommunicate request_size=4 [07:06:44]MH_SAM_APDU [07:06:44]CAPDU: 80 13 03 00 [07:06:44]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:06:44]Write i2c OK [07:06:44]MH_I2C_Read... [07:06:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:06:44]Read from MH i2c: E2 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 FD 00 [07:06:44]MH_I2C_Read... [07:06:44]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 DA B6 02 00 69 04 A4 00 6F 04 04 00 43 B5 02 00 B1 04 05 00 BE 9E 26 2C 05 70 04 05 00 6F EF 40 15 04 72 04 05 00 4F AF E5 16 01 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 B2 93 A6 8C 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 F1 59 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 CC [07:06:44]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 DA B6 02 00 69 04 A4 00 6F 04 04 00 43 B5 02 00 B1 04 05 00 BE 9E 26 2C 05 70 04 05 00 6F EF 40 15 04 72 04 05 00 4F AF E5 16 01 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 B2 93 A6 8C 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 F1 59 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [07:06:44]wFMCommunicate OK [07:06:44]wFMCommunicate request_size=4 [07:06:44]MH_SAM_APDU [07:06:44]CAPDU: 80 17 00 00 [07:06:44]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:06:44]Write i2c OK [07:06:44]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [07:06:45]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [07:06:45]wFMCommunicate OK [07:06:45]wFMCommunicate request_size=4 [07:06:45]MH_SAM_APDU [07:06:45]CAPDU: 80 17 00 00 [07:06:45]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:06:45]Write i2c OK [07:06:45]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [07:06:45]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:06:45]wFMCommunicate OK [07:06:45]wFMCommunicate request_size=4 [07:06:45]MH_SAM_APDU [07:06:45]CAPDU: 80 17 00 00 [07:06:45]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:06:45]Write i2c OK [07:06:45]MH_I2C_Read... [07:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:45]Read from MH i2c: E2 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 [07:06:45]MH_I2C_Read... [07:06:45]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [07:06:45]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [07:06:45]wFMCommunicate OK [07:06:45]wFMCommunicate request_size=4 [07:06:45]MH_SAM_APDU [07:06:45]CAPDU: 80 17 00 00 [07:06:45]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:06:45]Write i2c OK [07:06:45]MH_I2C_Read... [07:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [07:06:46]Read from MH i2c: E2 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 E3 00 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 E3 00 17 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 76 [07:06:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:06:46]wFMCommunicate OK [07:06:46]SAM_PROTO_GetFMData done [07:06:46]requested_item fm.sale_refund.total is exist - process it [07:06:46]requested_item fm.buy.total is exist - process it [07:06:46]requested_item shift.sale.total is exist - process it [07:06:46]SAM_PROTO_GetShiftData [07:06:46]wFMCommunicate request_size=4 [07:06:46]MH_SAM_APDU [07:06:46]CAPDU: 80 13 02 00 [07:06:46]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:06:46]Write i2c OK [07:06:46]MH_I2C_Read... [07:06:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:06:46]Read from MH i2c: E2 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 FD 00 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 32 00 00 00 69 04 9C 00 6F 04 04 00 32 00 00 00 B1 04 03 00 9C 52 7C 70 04 03 00 C8 7C 47 72 04 03 00 D4 D5 34 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5B 34 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE 19 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 00 [07:06:46]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 32 00 00 00 69 04 9C 00 6F 04 04 00 32 00 00 00 B1 04 03 00 9C 52 7C 70 04 03 00 C8 7C 47 72 04 03 00 D4 D5 34 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5B 34 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AE 19 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [07:06:46]wFMCommunicate OK [07:06:46]wFMCommunicate request_size=4 [07:06:46]MH_SAM_APDU [07:06:46]CAPDU: 80 17 00 00 [07:06:46]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:06:46]Write i2c OK [07:06:46]MH_I2C_Read... [07:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:46]Read from MH i2c: E2 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 FD 00 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [07:06:46]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:06:46]wFMCommunicate OK [07:06:46]wFMCommunicate request_size=4 [07:06:46]MH_SAM_APDU [07:06:46]CAPDU: 80 17 00 00 [07:06:46]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:06:46]Write i2c OK [07:06:46]MH_I2C_Read... [07:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:47]Read from MH i2c: E2 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 FD 00 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [07:06:47]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:06:47]wFMCommunicate OK [07:06:47]wFMCommunicate request_size=4 [07:06:47]MH_SAM_APDU [07:06:47]CAPDU: 80 17 00 00 [07:06:47]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:06:47]OFD Sender: No OFD packet to send [07:06:47]Write i2c OK [07:06:47]MH_I2C_Read... [07:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:06:47]Read from MH i2c: E2 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 FD 00 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [07:06:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [07:06:47]wFMCommunicate OK [07:06:47]wFMCommunicate request_size=4 [07:06:47]MH_SAM_APDU [07:06:47]CAPDU: 80 17 00 00 [07:06:47]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:06:47]Write i2c OK [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 [07:06:47]MH_I2C_Read... [07:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [07:06:47]Read from MH i2c: E2 CC 00 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [07:06:47]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:06:47]wFMCommunicate OK [07:06:47]SAM_PROTO_GetShiftData done [07:06:47]requested_item shift.sale.total_cash is exist - process it [07:06:47]requested_item shift.sale_refund.total is exist - process it [07:06:47]requested_item shift.sale_refund.total_cash is exist - process it [07:06:47]requested_item shift.buy.total is exist - process it [07:06:47]requested_item shift.buy.total_cash is exist - process it [07:06:47]produce_requested_data done [07:06:47]produce_requested_data return {"fm.sale.total":222155649.90,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":81476.12,"shift.sale.total_cash":46850.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:06:47]process_action_free get_value [07:06:47]json_value_free [07:06:47]json_value_free done [07:06:47]process_json_proto returns [07:06:47]Send response to host [07:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222155649.90,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":81476.12,"shift.sale.total_cash":46850.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:06:47]free response buf [07:06:47]execute_script done [07:06:47]execute_script returns [07:06:47]free content buf [07:06:47]Sock 6.Close socket [07:06:47]Sock 6.Thread stoped [07:06:48]accept exits with 9 [07:06:48]New connection [07:06:48]New thread 3067338084 created [07:06:48]Thread 3067194724 joined [07:06:48]Waiting for new connection... [07:06:48] Sock 9.Parse request [07:06:48]Sock 9.Check first char [07:06:48]Sock 9.First char is OK [07:06:48]request: POST /json_proto HTTP/1.0 [07:06:48]Method: POST [07:06:48]URL: /json_proto [07:06:48]Method is POST - this is cgi request [07:06:48]url: /json_proto [07:06:48]query_string will be loaded in cgi processing [07:06:48]execute_cgi json_proto POST (null) [07:06:48]execute_cgi path=json_proto method=POST [07:06:48]POST find Content-Length [07:06:48]Host: 172.17.44.131:8080 [07:06:48]Content-Length: 682 [07:06:48]Content-Type: application/json [07:06:48] [07:06:48]POST finish read [07:06:48]Found Content-Length = 682 [07:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:06:48]execute_script... [07:06: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)295006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:06:48]POST & json_proto [07:06:48]process_json_proto [07:06:48]json parsed OK: [07:06:48]protocol is kg_v1.0 [07:06:48]action value=close_receipt [07:06:48]process_action close_receipt [07:06:48]cmd_close_receipt [07:06:48]MH_GetDate [07:06:48]Write to MH i2c: F0 00 00 1D 00 0C [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: F0 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: F0 09 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: F0 09 00 1D 00 00 89 86 C9 66 4F 53 BE 66 19 [07:06:48]GetLastDocTimeStamp 1724482427 [07:06:48]current date 1724483209 [07:06:48]FM_GetShiftState [07:06:48]SAM_PROTO_GetShiftState [07:06:48]wFMCommunicate request_size=4 [07:06:48]MH_SAM_APDU [07:06:48]CAPDU: 80 13 01 00 [07:06:48]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:48]Read from MH i2c: E2 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 0E 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [07:06:48]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:48]wFMCommunicate OK [07:06:48]SAM_PROTO_GetShiftState done [07:06:48]FM_GetShiftState done [07:06:48]opened in 1724458079 [07:06:48]opened+sec_in_day 1724544479 [07:06:48]quantity*price = 100005 [07:06:48]sum+1 = 100006 [07:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 51 24.08.2024 07:06 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178825 ФПД: 227921896966200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070649&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178825&fm=227921896966200&tin=02508201610067®Number=0000000000092561&sum=100000 [07:06:49]StoreToDocumentArchive [07:06:49]shift 471 fd 178825 [07:06:49]save to /storage/0471/doc_00178825 [07:06:49]save last doc name /storage/0471/doc_00178825 to /storage/kkm_last_doc_name [07:06:49]save OK [07:06:49]Clear old archive folders... [07:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:49]tlvbuf is 00E942B0 [07:06:49]SAM_PROTO_ClearQueue [07:06:49]wFMCommunicate request_size=4 [07:06:49]MH_SAM_APDU [07:06:49]CAPDU: 80 09 00 00 [07:06:49]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:06:49]Write i2c OK [07:06:49]MH_I2C_Read... [07:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:49]Read from MH i2c: E2 [07:06:49]MH_I2C_Read... [07:06:49]Read from MH i2c: E2 03 00 [07:06:49]MH_I2C_Read... [07:06:49]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:06:49]RAPDU: 90 00 [07:06:49]wFMCommunicate OK [07:06:49]SAM_PROTO_ClearQueue done [07:06:49]KKMCreateOFDPacket [07:06:49]OFDProtocolAddRootSTLVToBuf [07:06:49]FM_MakeSignedData [07:06:49]FM_MakeSignedData [07:06:49]SAM_PROTO_SignData [07:06:49]wFMCommunicate request_size=4 [07:06:49]MH_SAM_APDU [07:06:49]CAPDU: 80 0D 01 02 [07:06:49]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:06:49]Write i2c OK [07:06:49]MH_I2C_Read... [07:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:49]Read from MH i2c: E2 [07:06:49]MH_I2C_Read... [07:06:49]Read from MH i2c: E2 03 00 [07:06:49]MH_I2C_Read... [07:06:49]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:06:49]RAPDU: 90 00 [07:06:49]wFMCommunicate OK [07:06:49]wFMCommunicate request_size=255 [07:06:49]MH_SAM_APDU [07:06:49]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 33 00 00 00 F4 03 04 00 89 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 89 BA 02 00 35 04 06 00 CF [07:06:49]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 33 00 00 00 F4 03 04 00 89 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 89 BA 02 00 35 04 06 00 CF 00 00 14 [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 03 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:06:50]RAPDU: 90 00 [07:06:50]wFMCommunicate OK [07:06:50]wFMCommunicate request_size=10 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 0D 02 02 05 4B 33 B4 88 38 [07:06:50]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 4B 33 B4 88 38 00 00 A4 [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 03 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:06:50]RAPDU: 90 00 [07:06:50]wFMCommunicate OK [07:06:50]wFMCommunicate request_size=4 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 0D 03 02 [07:06:50]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 0B 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 0B 00 2F 00 00 2A 1C EF 59 F1 42 7E 7B 90 00 65 [07:06:50]RAPDU: 2A 1C EF 59 F1 42 7E 7B 90 00 [07:06:50]wFMCommunicate OK [07:06:50]SAM_PROTO_SignData done [07:06:50]FM_MakeSignedData done [07:06:50]CreateOFDProtocolMessage [07:06:50]wFMCommunicate request_size=4 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 11 00 00 [07:06:50]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 17 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [07:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:50]wFMCommunicate OK [07:06:50]CreateOFDProtocolMessage done [07:06:50]OFDSenderStorePacket 178825 [07:06:50]StoreOFDPacket docnum=178825 [07:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 79 AB 07 01 D6 3C 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 33 00 00 00 F4 03 04 00 89 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 89 BA 02 00 35 04 06 00 CF 4B 33 B4 88 38 2A 1C EF 59 F1 42 7E 7B [07:06:50]CheckFolder [07:06:50]dirname=/storage/ofd_packets [07:06:50]CheckFolder done [07:06:50]ProducePacketName [07:06:50]name=ofd_packets/00178825 [07:06:50]NVStorageSaveData ofd_packets/00178825 [07:06:50]File name is /storage/ofd_packets/00178825 [07:06:50]Write 301 bytes [07:06:50]NVStorageSaveData done [07:06:50]OFDSenderStorePacket done [07:06:50]KKMCreateOFDPacket done [07:06:50]NVStorageSaveData kkm_last_timestamp [07:06:50]File name is /storage/kkm_last_timestamp [07:06:50]Write 4 bytes [07:06:50]NVStorageSaveData done [07:06:50]ExternCall_PrintAddStr [07:06:50]wPrintStart [07:06:50]Write to MH i2c: 01 00 00 31 00 31 [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: 01 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: 01 07 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:06:50]RasterBufferAndPrint [07:06:50]line Счет N : (1)295006 [07:06:50]line ИНН: 02508201610067 [07:06:50]line Контрольно-Кассовый Чек [07:06:50]line ПРОДАЖА [07:06:50]line ТРК (МРК, ГНК) : 62 [07:06:50]line Товар: 2710124130 [07:06:50]line Аи-92-К-5 [07:06:50]line 14.750 * 67.80 [07:06:50]line = 1000.05 [07:06:50]line НДС 12% НСП 1% [07:06:50]line > о реализуемом товаре [07:06:50]line ОКРУГЛЕНИЕ: -0.05 [07:06:50]line ИТОГО: 1000.00 [07:06:50]line Внесено: 1000.00 [07:06:50]line СДАЧА: 0.00 [07:06:50]line НСП 1% : 8.85 [07:06:50]line НДС 12% : 106.20 [07:06:50]line Наличными: 1000.00 [07:06:50]line Безнал.: 0.00 [07:06:50]line Место: АЗС № 130 "Партнер Нефть" [07:06:50]OFD Sender: Processing packet 178825 [packets to send 500, broken 499] [07:06:50]ProducePacketName [07:06:50]name=ofd_packets/00178825 [07:06:50]OFD Sender: To server: pG, [07:06:50]CommunicateWithHost lk.salyk.kg:30040 [07:06:50]ConnectInit lk.salyk.kg [07:06:50]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:06:50]line СНО: Общий режим [07:06:50]line Чек 51 24.08.2024 07:06 [07:06:50]line Смена: 471 ФФД: 1.0 [07:06:50]line ЗНМ: 0300000071 [07:06:50]line РНМ: 0000000000092561 [07:06:50]line Версия ККМ: 001 [07:06:50]line ФМ: 0000000000871778 [07:06:50]line ФД: 178825 [07:06:50]line ФПД: 227921896966200 [07:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070649&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178825&fm=227921896966200&tin=02508201610067®Number=0000000000092561&sum=100000 [07:06:50]written 0, free lines is 4095 [07:06:50]Connected sock=10 [07:06: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 37 37 38 0F 01 00 00 79 AB 07 01 D6 3C 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 33 00 00 00 F4 03 04 00 89 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 89 BA 02 00 35 04 06 00 CF 4B 33 B4 88 38 2A 1C EF 59 F1 42 7E 7B [07:06:51]Write to MH i2c: 01 00 00 5C 00 5C [07:06:51]Write i2c OK [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: 01 [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: 01 07 00 [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D6 0C 45 [07:06:51]RasterBufferAndPrint [07:06:51]line [07:06:51]line [07:06:51]line [07:06:51]line [07:06:51]line [07:06:51]written 0, free lines is 3310 [07:06:51]MH_Cut [07:06:51]Write to MH i2c: D1 01 00 63 00 01 35 [07:06:51]Write i2c OK [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: D1 [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: D1 01 00 [07:06:51]MH_I2C_Read... [07:06:51]Read from MH i2c: D1 01 00 63 00 00 34 [07:06:51]Write to MH i2c: 01 00 00 64 00 64 [07:06:51]Write i2c OK [07:06:51]MH_I2C_Read... [07:06:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 85 F8 47 00 70 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 89 BA 02 00 F4 03 04 00 2F 32 C9 66 B6 04 01 00 00 6C D3 C8 B0 A8 2B AE 08 [07:06:51]CommunicateWithHost err = 0 [07:06:51]CheckOFDResponse [07:06:51]1017 (14) - 77093643461234 [07:06:51]1041 (16) - 0000000000871778 [07:06:51]1040 (4) - 178825 [07:06:51]1012 (4) - 24.08.2024 01:06 [07:06:51]1206 (1) - 0 [07:06:51]OFD Sender: Remove packet 178825 [07:06:51]ProducePacketName [07:06:51]name=ofd_packets/00178825 [07:06:51]NVStorageDeleteData [07:06:51]*** Cut start [07:06:51]*** Partial cut [07:06:51]*** CUTSNS_PIN = 1 [07:06:51]*** CUTSNS_PIN = 0 [07:06:52]*** Brake cut motor [07:06:52]OFD Sender: No OFD packet to send [07:06:52]Read from MH i2c: 01 [07:06:52]MH_I2C_Read... [07:06:52]*** Stop cut motor [07:06:52]*** Cut end [07:06:52]Read from MH i2c: 01 07 00 [07:06:52]MH_I2C_Read... [07:06:52]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [07:06:52]process_action close_receipt done [07:06:52]requested_data is exist [07:06:52]produce_requested_data [07:06:52]requested_item fm.sn is exist - process it [07:06:52]wFMCommunicate request_size=4 [07:06:52]MH_SAM_APDU [07:06:52]CAPDU: 80 11 00 00 [07:06:52]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [07:06:52]Write i2c OK [07:06:52]MH_I2C_Read... [07:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:52]Read from MH i2c: E2 [07:06:52]MH_I2C_Read... [07:06:52]Read from MH i2c: E2 17 00 [07:06:52]MH_I2C_Read... [07:06:52]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 37 37 38 90 00 38 [07:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:52]wFMCommunicate OK [07:06:52]requested_item fd.num is exist - process it [07:06:52]SAM_PROTO_GetFieldsCounters [07:06:52]wFMCommunicate request_size=4 [07:06:52]MH_SAM_APDU [07:06:52]CAPDU: 80 13 00 00 [07:06:52]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [07:06:52]Write i2c OK [07:06:52]MH_I2C_Read... [07:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:52]Read from MH i2c: E2 [07:06:52]MH_I2C_Read... [07:06:52]Read from MH i2c: E2 62 00 [07:06:52]MH_I2C_Read... [07:06:52]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 89 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [07:06: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 89 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:52]wFMCommunicate OK [07:06:52]SAM_PROTO_GetFieldsCounters done [07:06:52]requested_item shift.num is exist - process it [07:06:52]requested_item shift.opened is exist - process it [07:06:52]req_shift_opened [07:06:52]FM_GetShiftState [07:06:52]SAM_PROTO_GetShiftState [07:06:52]wFMCommunicate request_size=4 [07:06:52]MH_SAM_APDU [07:06:52]CAPDU: 80 13 01 00 [07:06:52]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [07:06:52]Write i2c OK [07:06:52]MH_I2C_Read... [07:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:52]Read from MH i2c: E2 [07:06:52]MH_I2C_Read... [07:06:52]Read from MH i2c: E2 0E 00 [07:06:52]MH_I2C_Read... [07:06:52]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A2 [07:06:52]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:52]wFMCommunicate OK [07:06:52]SAM_PROTO_GetShiftState done [07:06:52]FM_GetShiftState done [07:06:52]req_shift_opened done [07:06:52]requested_item shift.open_date is exist - process it [07:06:52]req_shift_open_date [07:06:52]req_shift_open_date done [07:06:52]produce_requested_data done [07:06:52]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178825,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:06:52]process_action_free close_receipt [07:06:52]json_value_free [07:06:52]json_value_free done [07:06:52]process_json_proto returns [07:06:52]Send response to host [07:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178825,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:06:52]free response buf [07:06:52]execute_script done [07:06:52]execute_script returns [07:06:52]free content buf [07:06:52]Sock 9.Close socket [07:06:52]Sock 9.Thread stoped [07:06:53]accept exits with 6 [07:06:53]New connection [07:06:53]New thread 3067194724 created [07:06:53]Thread 3067338084 joined [07:06:53]Waiting for new connection... [07:06:53] Sock 6.Parse request [07:06:53]Sock 6.Check first char [07:06:53]Sock 6.First char is OK [07:06:53]request: POST /json_proto HTTP/1.0 [07:06:53]Method: POST [07:06:53]URL: /json_proto [07:06:53]Method is POST - this is cgi request [07:06:53]url: /json_proto [07:06:53]query_string will be loaded in cgi processing [07:06:53]execute_cgi json_proto POST (null) [07:06:53]execute_cgi path=json_proto method=POST [07:06:53]POST find Content-Length [07:06:53]Host: 172.17.44.131:8080 [07:06:53]Content-Length: 677 [07:06:53]Content-Type: application/json [07:06:53] [07:06:53]POST finish read [07:06:53]Found Content-Length = 677 [07:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [07:06:53]execute_script... [07:06: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)295007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [07:06:53]POST & json_proto [07:06:53]process_json_proto [07:06:53]json parsed OK: [07:06:53]protocol is kg_v1.0 [07:06:53]action value=close_receipt [07:06:53]process_action close_receipt [07:06:53]cmd_close_receipt [07:06:53]MH_GetDate [07:06:53]Write to MH i2c: F0 00 00 68 00 57 [07:06:53]Write i2c OK [07:06:53]MH_I2C_Read... [07:06:53]Read from MH i2c: F0 [07:06:53]MH_I2C_Read... [07:06:53]Read from MH i2c: F0 09 00 [07:06:53]MH_I2C_Read... [07:06:53]Read from MH i2c: F0 09 00 68 00 00 8E 86 C9 66 4F 53 BE 66 69 [07:06:53]GetLastDocTimeStamp 1724483209 [07:06:53]current date 1724483214 [07:06:53]FM_GetShiftState [07:06:53]SAM_PROTO_GetShiftState [07:06:53]wFMCommunicate request_size=4 [07:06:53]MH_SAM_APDU [07:06:53]CAPDU: 80 13 01 00 [07:06:53]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [07:06:53]Write i2c OK [07:06:53]MH_I2C_Read... [07:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:53]Read from MH i2c: E2 [07:06:53]MH_I2C_Read... [07:06:53]Read from MH i2c: E2 0E 00 [07:06:53]MH_I2C_Read... [07:06:53]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [07:06:53]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:53]wFMCommunicate OK [07:06:53]SAM_PROTO_GetShiftState done [07:06:53]FM_GetShiftState done [07:06:53]opened in 1724458079 [07:06:53]opened+sec_in_day 1724544479 [07:06:53]quantity*price = 40002 [07:06:53]sum+1 = 40003 [07:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 52 24.08.2024 07:06 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178826 ФПД: 121225892532434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070654&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178826&fm=121225892532434&tin=02508201610067®Number=0000000000092561&sum=40000 [07:06:54]StoreToDocumentArchive [07:06:54]shift 471 fd 178826 [07:06:54]save to /storage/0471/doc_00178826 [07:06:54]save last doc name /storage/0471/doc_00178826 to /storage/kkm_last_doc_name [07:06:54]save OK [07:06:54]Clear old archive folders... [07:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:54]tlvbuf is 00EC9080 [07:06:54]SAM_PROTO_ClearQueue [07:06:54]wFMCommunicate request_size=4 [07:06:54]MH_SAM_APDU [07:06:54]CAPDU: 80 09 00 00 [07:06:54]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [07:06:54]Write i2c OK [07:06:54]MH_I2C_Read... [07:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:54]Read from MH i2c: E2 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 03 00 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:06:54]RAPDU: 90 00 [07:06:54]wFMCommunicate OK [07:06:54]SAM_PROTO_ClearQueue done [07:06:54]KKMCreateOFDPacket [07:06:54]OFDProtocolAddRootSTLVToBuf [07:06:54]FM_MakeSignedData [07:06:54]FM_MakeSignedData [07:06:54]SAM_PROTO_SignData [07:06:54]wFMCommunicate request_size=4 [07:06:54]MH_SAM_APDU [07:06:54]CAPDU: 80 0D 01 02 [07:06:54]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [07:06:54]Write i2c OK [07:06:54]MH_I2C_Read... [07:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:54]Read from MH i2c: E2 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 03 00 [07:06:54]MH_I2C_Read... [07:06:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:06:54]RAPDU: 90 00 [07:06:54]wFMCommunicate OK [07:06:54]wFMCommunicate request_size=255 [07:06:54]MH_SAM_APDU [07:06:54]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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 34 00 00 00 F4 03 04 00 8E 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8A BA 02 00 35 04 06 00 6E [07:06:54]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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 34 00 00 00 F4 03 04 00 8E 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8A BA 02 00 35 04 06 00 6E 00 00 5B [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:55]Read from MH i2c: E2 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 03 00 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:06:55]RAPDU: 90 00 [07:06:55]wFMCommunicate OK [07:06:55]wFMCommunicate request_size=10 [07:06:55]MH_SAM_APDU [07:06:55]CAPDU: 80 0D 02 02 05 41 1A 43 10 D2 [07:06:55]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 41 1A 43 10 D2 00 00 7D [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:55]Read from MH i2c: E2 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 03 00 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [07:06:55]RAPDU: 90 00 [07:06:55]wFMCommunicate OK [07:06:55]wFMCommunicate request_size=4 [07:06:55]MH_SAM_APDU [07:06:55]CAPDU: 80 0D 03 02 [07:06:55]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:55]Read from MH i2c: E2 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 0B 00 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 0B 00 7A 00 00 4F B5 D6 58 45 DA 39 A1 90 00 21 [07:06:55]RAPDU: 4F B5 D6 58 45 DA 39 A1 90 00 [07:06:55]wFMCommunicate OK [07:06:55]SAM_PROTO_SignData done [07:06:55]FM_MakeSignedData done [07:06:55]CreateOFDProtocolMessage [07:06:55]wFMCommunicate request_size=4 [07:06:55]MH_SAM_APDU [07:06:55]CAPDU: 80 11 00 00 [07:06:55]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:55]Read from MH i2c: E2 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: E2 17 00 [07:06:55]MH_I2C_Read... [07:06:55]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 37 37 38 90 00 4E [07:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:55]wFMCommunicate OK [07:06:55]CreateOFDProtocolMessage done [07:06:55]OFDSenderStorePacket 178826 [07:06:55]StoreOFDPacket docnum=178826 [07:06:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A0 56 07 01 5F D3 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 34 00 00 00 F4 03 04 00 8E 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8A BA 02 00 35 04 06 00 6E 41 1A 43 10 D2 4F B5 D6 58 45 DA 39 A1 [07:06:55]CheckFolder [07:06:55]dirname=/storage/ofd_packets [07:06:55]CheckFolder done [07:06:55]ProducePacketName [07:06:55]name=ofd_packets/00178826 [07:06:55]NVStorageSaveData ofd_packets/00178826 [07:06:55]File name is /storage/ofd_packets/00178826 [07:06:55]Write 301 bytes [07:06:55]NVStorageSaveData done [07:06:55]OFDSenderStorePacket done [07:06:55]KKMCreateOFDPacket done [07:06:55]NVStorageSaveData kkm_last_timestamp [07:06:55]File name is /storage/kkm_last_timestamp [07:06:55]Write 4 bytes [07:06:55]NVStorageSaveData done [07:06:55]ExternCall_PrintAddStr [07:06:55]wPrintStart [07:06:55]Write to MH i2c: 01 00 00 7C 00 7C [07:06:55]Write i2c OK [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: 01 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: 01 07 00 [07:06:55]MH_I2C_Read... [07:06:55]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [07:06:55]RasterBufferAndPrint [07:06:55]line Счет N : (1)295007 [07:06:55]line ИНН: 02508201610067 [07:06:55]line Контрольно-Кассовый Чек [07:06:55]line ПРОДАЖА [07:06:55]line ТРК (МРК, ГНК) : 52 [07:06:55]line Товар: 2710124130 [07:06:55]line Аи-92-К-5 [07:06:55]line 5.900 * 67.80 [07:06:55]line = 400.02 [07:06:55]line НДС 12% НСП 1% [07:06:55]line > о реализуемом товаре [07:06:55]line ОКРУГЛЕНИЕ: -0.02 [07:06:55]line ИТОГО: 400.00 [07:06:55]line Внесено: 400.00 [07:06:55]line СДАЧА: 0.00 [07:06:55]line НСП 1% : 3.54 [07:06:55]line НДС 12% : 42.48 [07:06:55]line Наличными: 400.00 [07:06:55]line Безнал.: 0.00 [07:06:55]line Место: АЗС № 130 "Партнер Нефть" [07:06:55]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:06:55]line СНО: Общий режим [07:06:55]line Чек 52 24.08.2024 07:06 [07:06:55]line Смена: 471 ФФД: 1.0 [07:06:55]line ЗНМ: 0300000071 [07:06:55]line РНМ: 0000000000092561 [07:06:55]line Версия ККМ: 001 [07:06:55]line ФМ: 0000000000871778 [07:06:55]line ФД: 178826 [07:06:55]line ФПД: 121225892532434 [07:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070654&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178826&fm=121225892532434&tin=02508201610067®Number=0000000000092561&sum=40000 [07:06:55]OFD Sender: Processing packet 178826 [packets to send 500, broken 499] [07:06:55]ProducePacketName [07:06:55]name=ofd_packets/00178826 [07:06:55]OFD Sender: To server: pG, [07:06:55]CommunicateWithHost lk.salyk.kg:30040 [07:06:55]ConnectInit lk.salyk.kg [07:06:55]written 0, free lines is 4095 [07:06:56]Write to MH i2c: 01 00 00 A7 00 A7 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 07 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 C1 0C 7B [07:06:56]RasterBufferAndPrint [07:06:56]line [07:06:56]line [07:06:56]line [07:06:56]line [07:06:56]line [07:06:56]written 0, free lines is 3292 [07:06:56]MH_Cut [07:06:56]Write to MH i2c: D1 01 00 AE 00 01 80 [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: D1 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: D1 01 00 [07:06:56]MH_I2C_Read... [07:06:56]Read from MH i2c: D1 01 00 AE 00 00 7F [07:06:56]Write to MH i2c: 01 00 00 AF 00 AF [07:06:56]Write i2c OK [07:06:56]MH_I2C_Read... [07:06:56]Connected sock=10 [07:06: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 37 37 38 0F 01 00 00 A0 56 07 01 5F D3 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 34 00 00 00 F4 03 04 00 8E 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8A BA 02 00 35 04 06 00 6E 41 1A 43 10 D2 4F B5 D6 58 45 DA 39 A1 [07:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 07 EC 47 00 90 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8A BA 02 00 F4 03 04 00 34 32 C9 66 B6 04 01 00 00 1D 84 C3 9D C9 6B 8D B6 [07:06:56]CommunicateWithHost err = 0 [07:06:56]CheckOFDResponse [07:06:56]1017 (14) - 77093643461234 [07:06:56]1041 (16) - 0000000000871778 [07:06:56]1040 (4) - 178826 [07:06:56]1012 (4) - 24.08.2024 01:07 [07:06:56]1206 (1) - 0 [07:06:56]OFD Sender: Remove packet 178826 [07:06:56]ProducePacketName [07:06:56]name=ofd_packets/00178826 [07:06:56]NVStorageDeleteData [07:06:57]*** Cut start [07:06:57]*** Partial cut [07:06:57]*** CUTSNS_PIN = 1 [07:06:57]*** CUTSNS_PIN = 0 [07:06:57]*** Brake cut motor [07:06:57]OFD Sender: No OFD packet to send [07:06:57]Read from MH i2c: 01 [07:06:57]MH_I2C_Read... [07:06:57]*** Stop cut motor [07:06:57]*** Cut end [07:06:57]Read from MH i2c: 01 07 00 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [07:06:57]process_action close_receipt done [07:06:57]requested_data is exist [07:06:57]produce_requested_data [07:06:57]requested_item fm.sn is exist - process it [07:06:57]wFMCommunicate request_size=4 [07:06:57]MH_SAM_APDU [07:06:57]CAPDU: 80 11 00 00 [07:06:57]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:57]Read from MH i2c: E2 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: E2 17 00 [07:06:57]MH_I2C_Read... [07:06:57]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 37 37 38 90 00 83 [07:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:06:57]wFMCommunicate OK [07:06:57]requested_item fd.num is exist - process it [07:06:57]SAM_PROTO_GetFieldsCounters [07:06:57]wFMCommunicate request_size=4 [07:06:57]MH_SAM_APDU [07:06:57]CAPDU: 80 13 00 00 [07:06:57]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:57]Read from MH i2c: E2 [07:06:57]MH_I2C_Read... [07:06:57]Read from MH i2c: E2 62 00 [07:06:57]MH_I2C_Read... [07:06:57]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [07:06: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:57]wFMCommunicate OK [07:06:57]SAM_PROTO_GetFieldsCounters done [07:06:57]requested_item shift.num is exist - process it [07:06:57]requested_item shift.opened is exist - process it [07:06:57]req_shift_opened [07:06:57]FM_GetShiftState [07:06:57]SAM_PROTO_GetShiftState [07:06:57]wFMCommunicate request_size=4 [07:06:57]MH_SAM_APDU [07:06:57]CAPDU: 80 13 01 00 [07:06:57]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [07:06:57]Write i2c OK [07:06:57]MH_I2C_Read... [07:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:58]Read from MH i2c: E2 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: E2 0E 00 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [07:06:58]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:58]wFMCommunicate OK [07:06:58]SAM_PROTO_GetShiftState done [07:06:58]FM_GetShiftState done [07:06:58]req_shift_opened done [07:06:58]requested_item shift.open_date is exist - process it [07:06:58]req_shift_open_date [07:06:58]req_shift_open_date done [07:06:58]produce_requested_data done [07:06:58]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178826,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:06:58]process_action_free close_receipt [07:06:58]json_value_free [07:06:58]json_value_free done [07:06:58]process_json_proto returns [07:06:58]Send response to host [07:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178826,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:06:58]free response buf [07:06:58]execute_script done [07:06:58]execute_script returns [07:06:58]free content buf [07:06:58]Sock 6.Close socket [07:06:58]Sock 6.Thread stoped [07:06:58]accept exits with 9 [07:06:58]New connection [07:06:58]New thread 3067338084 created [07:06:58]Thread 3067194724 joined [07:06:58]Waiting for new connection... [07:06:58] Sock 9.Parse request [07:06:58]Sock 9.Check first char [07:06:58]Sock 9.First char is OK [07:06:58]request: POST /json_proto HTTP/1.0 [07:06:58]Method: POST [07:06:58]URL: /json_proto [07:06:58]Method is POST - this is cgi request [07:06:58]url: /json_proto [07:06:58]query_string will be loaded in cgi processing [07:06:58]execute_cgi json_proto POST (null) [07:06:58]execute_cgi path=json_proto method=POST [07:06:58]POST find Content-Length [07:06:58]Host: 172.17.44.131:8080 [07:06:58]Content-Length: 682 [07:06:58]Content-Type: application/json [07:06:58] [07:06:58]POST finish read [07:06:58]Found Content-Length = 682 [07:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [07:06:58]execute_script... [07:06: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)295008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [07:06:58]POST & json_proto [07:06:58]process_json_proto [07:06:58]json parsed OK: [07:06:58]protocol is kg_v1.0 [07:06:58]action value=close_receipt [07:06:58]process_action close_receipt [07:06:58]cmd_close_receipt [07:06:58]MH_GetDate [07:06:58]Write to MH i2c: F0 00 00 B3 00 A2 [07:06:58]Write i2c OK [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: F0 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: F0 09 00 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: F0 09 00 B3 00 00 93 86 C9 66 4F 53 BE 66 B9 [07:06:58]GetLastDocTimeStamp 1724483214 [07:06:58]current date 1724483219 [07:06:58]FM_GetShiftState [07:06:58]SAM_PROTO_GetShiftState [07:06:58]wFMCommunicate request_size=4 [07:06:58]MH_SAM_APDU [07:06:58]CAPDU: 80 13 01 00 [07:06:58]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [07:06:58]Write i2c OK [07:06:58]MH_I2C_Read... [07:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:58]Read from MH i2c: E2 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: E2 0E 00 [07:06:58]MH_I2C_Read... [07:06:58]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EF [07:06:58]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:06:58]wFMCommunicate OK [07:06:58]SAM_PROTO_GetShiftState done [07:06:58]FM_GetShiftState done [07:06:58]opened in 1724458079 [07:06:58]opened+sec_in_day 1724544479 [07:06:58]quantity*price = 150041 [07:06:58]sum+1 = 150042 [07:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 53 24.08.2024 07:06 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178827 ФПД: 34693889446116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070659&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178827&fm=34693889446116&tin=02508201610067®Number=0000000000092561&sum=150000 [07:06:59]StoreToDocumentArchive [07:06:59]shift 471 fd 178827 [07:06:59]save to /storage/0471/doc_00178827 [07:06:59]save last doc name /storage/0471/doc_00178827 to /storage/kkm_last_doc_name [07:06:59]save OK [07:06:59]Clear old archive folders... [07:06:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:59]tlvbuf is 00E9A270 [07:06:59]SAM_PROTO_ClearQueue [07:06:59]wFMCommunicate request_size=4 [07:06:59]MH_SAM_APDU [07:06:59]CAPDU: 80 09 00 00 [07:06:59]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:06:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:59]Read from MH i2c: E2 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 03 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:06:59]RAPDU: 90 00 [07:06:59]wFMCommunicate OK [07:06:59]SAM_PROTO_ClearQueue done [07:06:59]KKMCreateOFDPacket [07:06:59]OFDProtocolAddRootSTLVToBuf [07:06:59]FM_MakeSignedData [07:06:59]FM_MakeSignedData [07:06:59]SAM_PROTO_SignData [07:06:59]wFMCommunicate request_size=4 [07:06:59]MH_SAM_APDU [07:06:59]CAPDU: 80 0D 01 02 [07:06:59]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [07:06:59]Write i2c OK [07:06:59]MH_I2C_Read... [07:06:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:59]Read from MH i2c: E2 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 03 00 [07:06:59]MH_I2C_Read... [07:06:59]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [07:06:59]RAPDU: 90 00 [07:06:59]wFMCommunicate OK [07:06:59]wFMCommunicate request_size=255 [07:06:59]MH_SAM_APDU [07:06: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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 35 00 00 00 F4 03 04 00 93 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8B BA 02 00 35 04 06 00 1F [07:07:00]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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 35 00 00 00 F4 03 04 00 93 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8B BA 02 00 35 04 06 00 1F 00 00 EE [07:07:00]Write i2c OK [07:07:00]MH_I2C_Read... [07:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:00]Read from MH i2c: E2 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 03 00 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [07:07:00]RAPDU: 90 00 [07:07:00]wFMCommunicate OK [07:07:00]wFMCommunicate request_size=10 [07:07:00]MH_SAM_APDU [07:07:00]CAPDU: 80 0D 02 02 05 8D CC F4 D0 E4 [07:07:00]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 8D CC F4 D0 E4 00 00 49 [07:07:00]Write i2c OK [07:07:00]MH_I2C_Read... [07:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:00]Read from MH i2c: E2 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 03 00 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [07:07:00]RAPDU: 90 00 [07:07:00]wFMCommunicate OK [07:07:00]wFMCommunicate request_size=4 [07:07:00]MH_SAM_APDU [07:07:00]CAPDU: 80 0D 03 02 [07:07:00]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [07:07:00]Write i2c OK [07:07:00]MH_I2C_Read... [07:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:00]Read from MH i2c: E2 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 0B 00 [07:07:00]MH_I2C_Read... [07:07:00]Read from MH i2c: E2 0B 00 C5 00 00 0D 71 FE 76 87 4F 9E A4 90 00 4B [07:07:00]RAPDU: 0D 71 FE 76 87 4F 9E A4 90 00 [07:07:01]wFMCommunicate OK [07:07:01]SAM_PROTO_SignData done [07:07:01]FM_MakeSignedData done [07:07:01]CreateOFDProtocolMessage [07:07:01]wFMCommunicate request_size=4 [07:07:01]MH_SAM_APDU [07:07:01]CAPDU: 80 11 00 00 [07:07:01]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:01]Read from MH i2c: E2 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: E2 17 00 [07:07:01]MH_I2C_Read... [07:07:01]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 37 37 38 90 00 99 [07:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:07:01]wFMCommunicate OK [07:07:01]CreateOFDProtocolMessage done [07:07:01]OFDSenderStorePacket 178827 [07:07:01]StoreOFDPacket docnum=178827 [07:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 68 AB 07 01 5E 83 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 35 00 00 00 F4 03 04 00 93 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8B BA 02 00 35 04 06 00 1F 8D CC F4 D0 E4 0D 71 FE 76 87 4F 9E A4 [07:07:01]CheckFolder [07:07:01]dirname=/storage/ofd_packets [07:07:01]CheckFolder done [07:07:01]ProducePacketName [07:07:01]name=ofd_packets/00178827 [07:07:01]NVStorageSaveData ofd_packets/00178827 [07:07:01]File name is /storage/ofd_packets/00178827 [07:07:01]Write 301 bytes [07:07:01]NVStorageSaveData done [07:07:01]OFDSenderStorePacket done [07:07:01]KKMCreateOFDPacket done [07:07:01]NVStorageSaveData kkm_last_timestamp [07:07:01]File name is /storage/kkm_last_timestamp [07:07:01]Write 4 bytes [07:07:01]NVStorageSaveData done [07:07:01]ExternCall_PrintAddStr [07:07:01]wPrintStart [07:07:01]Write to MH i2c: 01 00 00 C7 00 C7 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [07:07:01]RasterBufferAndPrint [07:07:01]line Счет N : (1)295008 [07:07:01]line ИНН: 02508201610067 [07:07:01]line Контрольно-Кассовый Чек [07:07:01]line ПРОДАЖА [07:07:01]line ТРК (МРК, ГНК) : 32 [07:07:01]line Товар: 2710124130 [07:07:01]line Аи-92-К-5 [07:07:01]line 22.130 * 67.80 [07:07:01]line = 1500.41 [07:07:01]line НДС 12% НСП 1% [07:07:01]line > о реализуемом товаре [07:07:01]line ОКРУГЛЕНИЕ: -0.41 [07:07:01]line ИТОГО: 1500.00 [07:07:01]line Внесено: 1500.00 [07:07:01]line СДАЧА: 0.00 [07:07:01]line НСП 1% : 13.28 [07:07:01]line НДС 12% : 159.34 [07:07:01]line Наличными: 1500.00 [07:07:01]line Безнал.: 0.00 [07:07:01]line Место: АЗС № 130 "Партнер Нефть" [07:07:01]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:07:01]line СНО: Общий режим [07:07:01]line Чек 53 24.08.2024 07:06 [07:07:01]line Смена: 471 ФФД: 1.0 [07:07:01]line ЗНМ: 0300000071 [07:07:01]line РНМ: 0000000000092561 [07:07:01]line Версия ККМ: 001 [07:07:01]line ФМ: 0000000000871778 [07:07:01]line ФД: 178827 [07:07:01]line ФПД: 34693889446116 [07:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070659&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178827&fm=34693889446116&tin=02508201610067®Number=0000000000092561&sum=150000 [07:07:01]written 0, free lines is 4095 [07:07:01]OFD Sender: Processing packet 178827 [packets to send 500, broken 499] [07:07:01]ProducePacketName [07:07:01]name=ofd_packets/00178827 [07:07:01]OFD Sender: To server: pG, [07:07:01]CommunicateWithHost lk.salyk.kg:30040 [07:07:01]ConnectInit lk.salyk.kg [07:07:01]Write to MH i2c: 01 00 00 F2 00 F2 [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 CB 0C D0 [07:07:01]RasterBufferAndPrint [07:07:01]line [07:07:01]line [07:07:01]line [07:07:01]line [07:07:01]line [07:07:01]written 0, free lines is 3305 [07:07:01]MH_Cut [07:07:01]Write to MH i2c: D1 01 00 F9 00 01 CB [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: D1 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: D1 01 00 [07:07:01]MH_I2C_Read... [07:07:01]Read from MH i2c: D1 01 00 F9 00 00 CA [07:07:01]Write to MH i2c: 01 00 00 FA 00 FA [07:07:01]Write i2c OK [07:07:01]MH_I2C_Read... [07:07:02]Connected sock=11 [07:07: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 37 37 38 0F 01 00 00 68 AB 07 01 5E 83 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 *** Cut start [07:07:02]1F 04 02 *** Partial cut [07:07:02]00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 93 86 *** CUTSNS_PIN = 1 [07:07:02]C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 *** CUTSNS_PIN = 0 [07:07:02]00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8B BA 02 00 35 04 06 00 1F 8D CC F4 D0 E4 0D 71 FE 76 87 4F 9E A4 [07:07:02]*** Brake cut motor [07:07:02]Read from MH i2c: 01 [07:07:02]MH_I2C_Read... [07:07:02]*** Stop cut motor [07:07:02]*** Cut end [07:07:02]Read from MH i2c: 01 07 00 [07:07:02]MH_I2C_Read... [07:07:02]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [07:07:02]process_action close_receipt done [07:07:02]requested_data is exist [07:07:02]produce_requested_data [07:07:02]requested_item fm.sn is exist - process it [07:07:02]wFMCommunicate request_size=4 [07:07:02]MH_SAM_APDU [07:07:02]CAPDU: 80 11 00 00 [07:07:02]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [07:07:02]Write i2c OK [07:07:02]MH_I2C_Read... [07:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:03]Read from MH i2c: E2 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 17 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [07:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:07:03]wFMCommunicate OK [07:07:03]requested_item fd.num is exist - process it [07:07:03]SAM_PROTO_GetFieldsCounters [07:07:03]wFMCommunicate request_size=4 [07:07:03]MH_SAM_APDU [07:07:03]CAPDU: 80 13 00 00 [07:07:03]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [07:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B5 A1 47 00 BE F2 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 37 37 38 10 04 04 00 8B BA 02 00 F4 03 04 00 3A 32 C9 66 B6 04 01 00 00 63 23 39 93 AD D5 99 DC [07:07:03]CommunicateWithHost err = 0 [07:07:03]CheckOFDResponse [07:07:03]1017 (14) - 77093643461234 [07:07:03]1041 (16) - 0000000000871778 [07:07:03]1040 (4) - 178827 [07:07:03]1012 (4) - 24.08.2024 01:07 [07:07:03]1206 (1) - 0 [07:07:03]OFD Sender: Remove packet 178827 [07:07:03]ProducePacketName [07:07:03]name=ofd_packets/00178827 [07:07:03]NVStorageDeleteData [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:03]Read from MH i2c: E2 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 62 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 62 00 FC 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [07:07: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:03]wFMCommunicate OK [07:07:03]SAM_PROTO_GetFieldsCounters done [07:07:03]requested_item shift.num is exist - process it [07:07:03]requested_item shift.opened is exist - process it [07:07:03]req_shift_opened [07:07:03]FM_GetShiftState [07:07:03]SAM_PROTO_GetShiftState [07:07:03]wFMCommunicate request_size=4 [07:07:03]MH_SAM_APDU [07:07:03]CAPDU: 80 13 01 00 [07:07:03]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [07:07:03]Write i2c OK [07:07:03]MH_I2C_Read... [07:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:03]Read from MH i2c: E2 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 0E 00 [07:07:03]MH_I2C_Read... [07:07:03]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 38 [07:07:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:07:03]wFMCommunicate OK [07:07:03]SAM_PROTO_GetShiftState done [07:07:03]FM_GetShiftState done [07:07:03]req_shift_opened done [07:07:03]requested_item shift.open_date is exist - process it [07:07:03]req_shift_open_date [07:07:03]req_shift_open_date done [07:07:03]produce_requested_data done [07:07:03]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178827,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:07:03]process_action_free close_receipt [07:07:03]json_value_free [07:07:03]json_value_free done [07:07:03]process_json_proto returns [07:07:03]Send response to host [07:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178827,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:07:03]free response buf [07:07:03]execute_script done [07:07:03]execute_script returns [07:07:03]free content buf [07:07:03]Sock 9.Close socket [07:07:03]Sock 9.Thread stoped [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:41]recv_with_timeout no data received [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:12]accept exits with 6 [07:08:12]New connection [07:08:12]New thread 3067194724 created [07:08:12]Thread 3067338084 joined [07:08:12]Waiting for new connection... [07:08:12] Sock 6.Parse request [07:08:12]Sock 6.Check first char [07:08:12]Sock 6.First char is OK [07:08:12]request: POST /json_proto HTTP/1.0 [07:08:12]Method: POST [07:08:12]URL: /json_proto [07:08:12]Method is POST - this is cgi request [07:08:12]url: /json_proto [07:08:12]query_string will be loaded in cgi processing [07:08:12]execute_cgi json_proto POST (null) [07:08:12]execute_cgi path=json_proto method=POST [07:08:12]POST find Content-Length [07:08:12]Host: 172.17.44.131:8080 [07:08:12]Content-Length: 682 [07:08:12]Content-Type: application/json [07:08:12] [07:08:12]POST finish read [07:08:12]Found Content-Length = 682 [07:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [07:08:12]execute_script... [07:08: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)295015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [07:08:12]POST & json_proto [07:08:12]process_json_proto [07:08:12]json parsed OK: [07:08:12]protocol is kg_v1.0 [07:08:12]action value=close_receipt [07:08:12]process_action close_receipt [07:08:12]cmd_close_receipt [07:08:12]MH_GetDate [07:08:12]Write to MH i2c: F0 00 00 FE 00 ED [07:08:12]Write i2c OK [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: F0 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: F0 09 00 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: F0 09 00 FE 00 00 DC 86 C9 66 4F 53 BE 66 4D [07:08:12]GetLastDocTimeStamp 1724483219 [07:08:12]current date 1724483292 [07:08:12]FM_GetShiftState [07:08:12]SAM_PROTO_GetShiftState [07:08:12]wFMCommunicate request_size=4 [07:08:12]MH_SAM_APDU [07:08:12]CAPDU: 80 13 01 00 [07:08:12]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [07:08:12]Write i2c OK [07:08:12]MH_I2C_Read... [07:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:12]Read from MH i2c: E2 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: E2 0E 00 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 3A [07:08:12]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:08:12]wFMCommunicate OK [07:08:12]SAM_PROTO_GetShiftState done [07:08:12]FM_GetShiftState done [07:08:12]opened in 1724458079 [07:08:12]opened+sec_in_day 1724544479 [07:08:12]quantity*price = 200010 [07:08:12]sum+1 = 200011 [07:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 54 24.08.2024 07:08 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178828 ФПД: 86687845724225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070813&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178828&fm=86687845724225&tin=02508201610067®Number=0000000000092561&sum=200000 [07:08:13]StoreToDocumentArchive [07:08:13]shift 471 fd 178828 [07:08:13]save to /storage/0471/doc_00178828 [07:08:13]save last doc name /storage/0471/doc_00178828 to /storage/kkm_last_doc_name [07:08:13]save OK [07:08:13]Clear old archive folders... [07:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:13]tlvbuf is 00EBA290 [07:08:13]SAM_PROTO_ClearQueue [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 09 00 00 [07:08:13]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:08:13]RAPDU: 90 00 [07:08:13]wFMCommunicate OK [07:08:13]SAM_PROTO_ClearQueue done [07:08:13]KKMCreateOFDPacket [07:08:13]OFDProtocolAddRootSTLVToBuf [07:08:13]FM_MakeSignedData [07:08:13]FM_MakeSignedData [07:08:13]SAM_PROTO_SignData [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 0D 01 02 [07:08:13]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [07:08:13]RAPDU: 90 00 [07:08:13]wFMCommunicate OK [07:08:13]wFMCommunicate request_size=255 [07:08:13]MH_SAM_APDU [07:08: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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 F8 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 36 00 00 00 F4 03 04 00 DD 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8C BA 02 00 35 04 06 00 4E [07:08:13]Write to MH i2c: E2 02 01 0E 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 F8 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 36 00 00 00 F4 03 04 00 DD 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8C BA 02 00 35 04 06 00 4E 00 00 44 [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [07:08:13]RAPDU: 90 00 [07:08:13]wFMCommunicate OK [07:08:13]wFMCommunicate request_size=10 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 0D 02 02 05 D7 96 40 30 41 [07:08:13]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 D7 96 40 30 41 00 00 B2 [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [07:08:13]RAPDU: 90 00 [07:08:13]wFMCommunicate OK [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 0D 03 02 [07:08:13]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 0B 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 0B 00 10 01 00 DC 8E DC 1D 3A 2C 09 91 90 00 F0 [07:08:13]RAPDU: DC 8E DC 1D 3A 2C 09 91 90 00 [07:08:13]wFMCommunicate OK [07:08:13]SAM_PROTO_SignData done [07:08:13]FM_MakeSignedData done [07:08:13]CreateOFDProtocolMessage [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 11 00 00 [07:08:13]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 17 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [07:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:08:13]wFMCommunicate OK [07:08:13]CreateOFDProtocolMessage done [07:08:13]OFDSenderStorePacket 178828 [07:08:13]StoreOFDPacket docnum=178828 [07:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 99 21 07 01 C9 0F 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 F8 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 36 00 00 00 F4 03 04 00 DD 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8C BA 02 00 35 04 06 00 4E D7 96 40 30 41 DC 8E DC 1D 3A 2C 09 91 [07:08:13]CheckFolder [07:08:13]dirname=/storage/ofd_packets [07:08:13]CheckFolder done [07:08:13]ProducePacketName [07:08:13]name=ofd_packets/00178828 [07:08:13]NVStorageSaveData ofd_packets/00178828 [07:08:13]File name is /storage/ofd_packets/00178828 [07:08:13]Write 301 bytes [07:08:13]NVStorageSaveData done [07:08:13]OFDSenderStorePacket done [07:08:13]KKMCreateOFDPacket done [07:08:13]NVStorageSaveData kkm_last_timestamp [07:08:13]File name is /storage/kkm_last_timestamp [07:08:13]Write 4 bytes [07:08:13]NVStorageSaveData done [07:08:13]ExternCall_PrintAddStr [07:08:13]wPrintStart [07:08:13]Write to MH i2c: 01 00 00 12 01 13 [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: 01 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: 01 07 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [07:08:13]RasterBufferAndPrint [07:08:13]line Счет N : (1)295015 [07:08:13]line ИНН: 02508201610067 [07:08:13]line Контрольно-Кассовый Чек [07:08:13]line ПРОДАЖА [07:08:13]line ТРК (МРК, ГНК) : 62 [07:08:13]line Товар: 2710124130 [07:08:13]line Аи-92-К-5 [07:08:13]line 29.500 * 67.80 [07:08:13]line = 2000.10 [07:08:13]line НДС 12% НСП 1% [07:08:13]line > о реализуемом товаре [07:08:13]line ОКРУГЛЕНИЕ: -0.10 [07:08:13]line ИТОГО: 2000.00 [07:08:13]line Внесено: 2000.00 [07:08:13]line СДАЧА: 0.00 [07:08:13]line НСП 1% : 17.70 [07:08:13]line НДС 12% : 212.40 [07:08:13]line Наличными: 2000.00 [07:08:13]line Безнал.: 0.00 [07:08:13]line Место: АЗС № 130 "Партнер Нефть" [07:08:13]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:08:13]line СНО: Общий режим [07:08:13]line Чек 54 24.08.2024 07:08 [07:08:13]line Смена: 471 ФФД: 1.0 [07:08:13]line ЗНМ: 0300000071 [07:08:13]line РНМ: 0000000000092561 [07:08:13]line Версия ККМ: 001 [07:08:13]line ФМ: 0000000000871778 [07:08:13]line ФД: 178828 [07:08:13]line ФПД: 86687845724225 [07:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070813&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178828&fm=86687845724225&tin=02508201610067®Number=0000000000092561&sum=200000 [07:08:13]written 0, free lines is 4095 [07:08:13]OFD Sender: Processing packet 178828 [packets to send 500, broken 499] [07:08:13]ProducePacketName [07:08:13]name=ofd_packets/00178828 [07:08:13]OFD Sender: To server: pG, [07:08:13]CommunicateWithHost lk.salyk.kg:30040 [07:08:13]ConnectInit lk.salyk.kg [07:08:14]Write to MH i2c: 01 00 00 3D 01 3E [07:08:14]Write i2c OK [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: 01 [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: 01 07 00 [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 C8 0C 19 [07:08:14]RasterBufferAndPrint [07:08:14]line [07:08:14]line [07:08:14]line [07:08:14]line [07:08:14]line [07:08:14]written 0, free lines is 3293 [07:08:14]MH_Cut [07:08:14]Write to MH i2c: D1 01 00 44 01 01 17 [07:08:14]Write i2c OK [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: D1 [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: D1 01 00 [07:08:14]MH_I2C_Read... [07:08:14]Read from MH i2c: D1 01 00 44 01 00 16 [07:08:14]Write to MH i2c: 01 00 00 45 01 46 [07:08:14]Write i2c OK [07:08:14]MH_I2C_Read... [07:08:15]*** Cut start [07:08:15]*** Partial cut [07:08:15]*** CUTSNS_PIN = 1 [07:08:15]*** CUTSNS_PIN = 0 [07:08:15]recv_with_timeout no data received [07:08:15]*** Brake cut motor [07:08:15]Read from MH i2c: 01 [07:08:15]MH_I2C_Read... [07:08:15]*** Stop cut motor [07:08:15]*** Cut end [07:08:15]Read from MH i2c: 01 07 00 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [07:08:15]process_action close_receipt done [07:08:15]requested_data is exist [07:08:15]produce_requested_data [07:08:15]requested_item fm.sn is exist - process it [07:08:15]wFMCommunicate request_size=4 [07:08:15]MH_SAM_APDU [07:08:15]CAPDU: 80 11 00 00 [07:08:15]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [07:08:15]Write i2c OK [07:08:15]MH_I2C_Read... [07:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:15]Read from MH i2c: E2 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 17 00 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1A [07:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:08:15]wFMCommunicate OK [07:08:15]requested_item fd.num is exist - process it [07:08:15]SAM_PROTO_GetFieldsCounters [07:08:15]wFMCommunicate request_size=4 [07:08:15]MH_SAM_APDU [07:08:15]CAPDU: 80 13 00 00 [07:08:15]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [07:08:15]Write i2c OK [07:08:15]MH_I2C_Read... [07:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:15]Read from MH i2c: E2 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 62 00 [07:08:15]MH_I2C_Read... [07:08:15]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [07:08: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:16]wFMCommunicate OK [07:08:16]SAM_PROTO_GetFieldsCounters done [07:08:16]requested_item shift.num is exist - process it [07:08:16]requested_item shift.opened is exist - process it [07:08:16]req_shift_opened [07:08:16]FM_GetShiftState [07:08:16]SAM_PROTO_GetShiftState [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 13 01 00 [07:08:16]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0E 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 84 [07:08:16]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:08:16]wFMCommunicate OK [07:08:16]SAM_PROTO_GetShiftState done [07:08:16]FM_GetShiftState done [07:08:16]req_shift_opened done [07:08:16]requested_item shift.open_date is exist - process it [07:08:16]req_shift_open_date [07:08:16]req_shift_open_date done [07:08:16]produce_requested_data done [07:08:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178828,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:08:16]process_action_free close_receipt [07:08:16]json_value_free [07:08:16]json_value_free done [07:08:16]process_json_proto returns [07:08:16]Send response to host [07:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178828,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:08:16]free response buf [07:08:16]execute_script done [07:08:16]execute_script returns [07:08:16]free content buf [07:08:16]Sock 6.Close socket [07:08:16]Sock 6.Thread stoped [07:08:18]ConnectInit Can't take IP for lk.salyk.kg [07:08:18]CommunicateWithHost connect error [07:08:18]CommunicateWithHost err = -1 [07:08:18]OFD Sender: Server communicate error [07:08:23]OFD Sender: Processing packet 178828 [packets to send 500, broken 499] [07:08:23]ProducePacketName [07:08:23]name=ofd_packets/00178828 [07:08:23]OFD Sender: To server: pG, [07:08:23]CommunicateWithHost lk.salyk.kg:30040 [07:08:23]ConnectInit lk.salyk.kg [07:08:24]accept exits with 10 [07:08:24]New connection [07:08:24]New thread 3067338084 created [07:08:24]Thread 3067194724 joined [07:08:24]Waiting for new connection... [07:08:24] Sock 10.Parse request [07:08:24]Sock 10.Check first char [07:08:24]Sock 10.First char is OK [07:08:24]request: POST /json_proto HTTP/1.0 [07:08:24]Method: POST [07:08:24]URL: /json_proto [07:08:24]Method is POST - this is cgi request [07:08:24]url: /json_proto [07:08:24]query_string will be loaded in cgi processing [07:08:24]execute_cgi json_proto POST (null) [07:08:24]execute_cgi path=json_proto method=POST [07:08:24]POST find Content-Length [07:08:24]Host: 172.17.44.131:8080 [07:08:24]Content-Length: 679 [07:08:24]Content-Type: application/json [07:08:24] [07:08:24]POST finish read [07:08:24]Found Content-Length = 679 [07:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "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" ] } } [07:08:24]execute_script... [07:08:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "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" ] } } [07:08:24]POST & json_proto [07:08:24]process_json_proto [07:08:24]json parsed OK: [07:08:24]protocol is kg_v1.0 [07:08:24]action value=close_receipt [07:08:24]process_action close_receipt [07:08:24]cmd_close_receipt [07:08:24]MH_GetDate [07:08:24]Write to MH i2c: F0 00 00 49 01 39 [07:08:24]Write i2c OK [07:08:24]MH_I2C_Read... [07:08:24]Read from MH i2c: F0 [07:08:24]MH_I2C_Read... [07:08:24]Read from MH i2c: F0 09 00 [07:08:24]MH_I2C_Read... [07:08:24]Read from MH i2c: F0 09 00 49 01 00 E9 86 C9 66 4F 53 BE 66 A6 [07:08:24]GetLastDocTimeStamp 1724483293 [07:08:24]current date 1724483305 [07:08:24]FM_GetShiftState [07:08:24]SAM_PROTO_GetShiftState [07:08:24]wFMCommunicate request_size=4 [07:08:24]MH_SAM_APDU [07:08:24]CAPDU: 80 13 01 00 [07:08:24]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [07:08:24]Write i2c OK [07:08:24]MH_I2C_Read... [07:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:24]Read from MH i2c: E2 [07:08:24]MH_I2C_Read... [07:08:24]Read from MH i2c: E2 0E 00 [07:08:24]MH_I2C_Read... [07:08:24]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 86 [07:08:24]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:08:24]wFMCommunicate OK [07:08:24]SAM_PROTO_GetShiftState done [07:08:24]FM_GetShiftState done [07:08:24]opened in 1724458079 [07:08:24]opened+sec_in_day 1724544479 [07:08:24]quantity*price = 300075 [07:08:24]sum+1 = 300077 [07:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 55 24.08.2024 07:08 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178829 ФПД: 129097252431543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070825&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178829&fm=129097252431543&tin=02508201610067®Number=0000000000092561&sum=300000 [07:08:26]StoreToDocumentArchive [07:08:26]shift 471 fd 178829 [07:08:26]save to /storage/0471/doc_00178829 [07:08:26]save last doc name /storage/0471/doc_00178829 to /storage/kkm_last_doc_name [07:08:26]save OK [07:08:26]Clear old archive folders... [07:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:08:26]tlvbuf is 00E81150 [07:08:26]SAM_PROTO_ClearQueue [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 09 00 00 [07:08:26]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [07:08:26]RAPDU: 90 00 [07:08:26]wFMCommunicate OK [07:08:26]SAM_PROTO_ClearQueue done [07:08:26]KKMCreateOFDPacket [07:08:26]OFDProtocolAddRootSTLVToBuf [07:08:26]FM_MakeSignedData [07:08:26]FM_MakeSignedData [07:08:26]SAM_PROTO_SignData [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 0D 01 02 [07:08:26]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [07:08:26]RAPDU: 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=255 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 37 00 00 00 F4 03 04 00 E9 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8D BA 02 00 35 04 06 00 75 69 CB DF [07:08:26]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 37 00 00 00 F4 03 04 00 E9 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8D BA 02 00 35 04 06 00 75 69 CB DF 00 00 15 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [07:08:26]RAPDU: 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=7 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 0D 02 02 02 66 B7 [07:08:26]Write to MH i2c: E2 0A 00 5A 01 80 0D 02 02 02 00 66 B7 00 00 F6 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [07:08:26]RAPDU: 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 0D 03 02 [07:08:26]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 0B 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 0B 00 5B 01 00 0C 31 F7 75 BF 39 35 AD 90 00 5B [07:08:26]RAPDU: 0C 31 F7 75 BF 39 35 AD 90 00 [07:08:26]wFMCommunicate OK [07:08:26]SAM_PROTO_SignData done [07:08:26]FM_MakeSignedData done [07:08:26]CreateOFDProtocolMessage [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 11 00 00 [07:08:26]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 17 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 30 [07:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:08:26]wFMCommunicate OK [07:08:26]CreateOFDProtocolMessage done [07:08:26]OFDSenderStorePacket 178829 [07:08:26]StoreOFDPacket docnum=178829 [07:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 67 9D 04 01 EA C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 37 00 00 00 F4 03 04 00 E9 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8D BA 02 00 35 04 06 00 75 69 CB DF 66 B7 0C 31 F7 75 BF 39 35 AD [07:08:26]CheckFolder [07:08:26]dirname=/storage/ofd_packets [07:08:26]CheckFolder done [07:08:26]ProducePacketName [07:08:26]name=ofd_packets/00178829 [07:08:26]NVStorageSaveData ofd_packets/00178829 [07:08:26]File name is /storage/ofd_packets/00178829 [07:08:26]Write 298 bytes [07:08:26]NVStorageSaveData done [07:08:26]OFDSenderStorePacket done [07:08:26]KKMCreateOFDPacket done [07:08:26]NVStorageSaveData kkm_last_timestamp [07:08:26]File name is /storage/kkm_last_timestamp [07:08:26]Write 4 bytes [07:08:26]NVStorageSaveData done [07:08:26]ExternCall_PrintAddStr [07:08:26]wPrintStart [07:08:26]Write to MH i2c: 01 00 00 5D 01 5E [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: 01 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: 01 07 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [07:08:26]RasterBufferAndPrint [07:08:26]line Счет N : (1)295016 [07:08:26]line ИНН: 02508201610067 [07:08:26]line Контрольно-Кассовый Чек [07:08:26]line ПРОДАЖА [07:08:26]line ТРК (МРК, ГНК) : 44 [07:08:26]line Товар: 2710194800 [07:08:26]line ДТ-К-5 [07:08:26]line 39.380 * 76.20 [07:08:26]line = 3000.76 [07:08:26]line НДС 12% НСП 1% [07:08:26]line > о реализуемом товаре [07:08:26]line ОКРУГЛЕНИЕ: -0.76 [07:08:26]line ИТОГО: 3000.00 [07:08:26]line Внесено: 3000.00 [07:08:26]line СДАЧА: 0.00 [07:08:26]line НСП 1% : 26.55 [07:08:26]line НДС 12% : 318.66 [07:08:26]line Наличными: 3000.00 [07:08:26]line Безнал.: 0.00 [07:08:26]line Место: АЗС № 130 "Партнер Нефть" [07:08:26]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:08:26]line СНО: Общий режим [07:08:26]line Чек 55 24.08.2024 07:08 [07:08:26]line Смена: 471 ФФД: 1.0 [07:08:26]line ЗНМ: 0300000071 [07:08:26]line РНМ: 0000000000092561 [07:08:26]line Версия ККМ: 001 [07:08:26]line ФМ: 0000000000871778 [07:08:26]line ФД: 178829 [07:08:26]line ФПД: 129097252431543 [07:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T070825&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178829&fm=129097252431543&tin=02508201610067®Number=0000000000092561&sum=300000 [07:08:26]written 0, free lines is 4095 [07:08:27]Write to MH i2c: 01 00 00 88 01 89 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: 01 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: 01 07 00 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 D2 0C 6E [07:08:27]RasterBufferAndPrint [07:08:27]line [07:08:27]line [07:08:27]line [07:08:27]line [07:08:27]line [07:08:27]written 0, free lines is 3309 [07:08:27]MH_Cut [07:08:27]Write to MH i2c: D1 01 00 8F 01 01 62 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: D1 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: D1 01 00 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: D1 01 00 8F 01 00 61 [07:08:27]Write to MH i2c: 01 00 00 90 01 91 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:28]*** Cut start [07:08:28]*** Partial cut [07:08:28]*** CUTSNS_PIN = 1 [07:08:28]*** CUTSNS_PIN = 0 [07:08:28]*** Brake cut motor [07:08:28]Read from MH i2c: 01 [07:08:28]MH_I2C_Read... [07:08:28]*** Stop cut motor [07:08:28]*** Cut end [07:08:28]Read from MH i2c: 01 07 00 [07:08:28]MH_I2C_Read... [07:08:28]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [07:08:28]process_action close_receipt done [07:08:28]requested_data is exist [07:08:28]produce_requested_data [07:08:28]requested_item fm.sn is exist - process it [07:08:28]wFMCommunicate request_size=4 [07:08:28]MH_SAM_APDU [07:08:28]CAPDU: 80 11 00 00 [07:08:28]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [07:08:28]Write i2c OK [07:08:28]MH_I2C_Read... [07:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:28]Read from MH i2c: E2 [07:08:28]MH_I2C_Read... [07:08:28]Read from MH i2c: E2 17 00 [07:08:28]MH_I2C_Read... [07:08:28]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 65 [07:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:08:28]wFMCommunicate OK [07:08:28]requested_item fd.num is exist - process it [07:08:28]SAM_PROTO_GetFieldsCounters [07:08:28]wFMCommunicate request_size=4 [07:08:28]MH_SAM_APDU [07:08:28]CAPDU: 80 13 00 00 [07:08:28]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [07:08:28]Write i2c OK [07:08:28]MH_I2C_Read... [07:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:28]Read from MH i2c: E2 [07:08:28]MH_I2C_Read... [07:08:28]Read from MH i2c: E2 62 00 [07:08:28]MH_I2C_Read... [07:08:28]Read from MH i2c: E2 62 00 92 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [07:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:29]wFMCommunicate OK [07:08:29]SAM_PROTO_GetFieldsCounters done [07:08:29]requested_item shift.num is exist - process it [07:08:29]requested_item shift.opened is exist - process it [07:08:29]req_shift_opened [07:08:29]FM_GetShiftState [07:08:29]SAM_PROTO_GetShiftState [07:08:29]wFMCommunicate request_size=4 [07:08:29]MH_SAM_APDU [07:08:29]CAPDU: 80 13 01 00 [07:08:29]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [07:08:29]Write i2c OK [07:08:29]MH_I2C_Read... [07:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:29]Read from MH i2c: E2 [07:08:29]MH_I2C_Read... [07:08:29]Read from MH i2c: E2 0E 00 [07:08:29]MH_I2C_Read... [07:08:29]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CF [07:08:29]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:08:29]wFMCommunicate OK [07:08:29]SAM_PROTO_GetShiftState done [07:08:29]FM_GetShiftState done [07:08:29]req_shift_opened done [07:08:29]requested_item shift.open_date is exist - process it [07:08:29]req_shift_open_date [07:08:29]req_shift_open_date done [07:08:29]produce_requested_data done [07:08:29]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178829,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:08:29]process_action_free close_receipt [07:08:29]json_value_free [07:08:29]json_value_free done [07:08:29]process_json_proto returns [07:08:29]Send response to host [07:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178829,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:08:29]free response buf [07:08:29]execute_script done [07:08:29]execute_script returns [07:08:29]free content buf [07:08:29]Sock 10.Close socket [07:08:29]Sock 10.Thread stoped [07:08:32]recv_with_timeout no data received [07:08:39]Connected sock=9 [07:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 99 21 07 01 C9 0F 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 F8 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 36 00 00 00 F4 03 04 00 DD 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8C BA 02 00 35 04 06 00 4E D7 96 40 30 41 DC 8E DC 1D 3A 2C 09 91 [07:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EE 9F 47 00 71 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8C BA 02 00 F4 03 04 00 9D 32 C9 66 B6 04 01 00 00 97 25 8B E2 76 95 67 F9 [07:08:41]CommunicateWithHost err = 0 [07:08:41]CheckOFDResponse [07:08:41]1017 (14) - 77093643461234 [07:08:41]1041 (16) - 0000000000871778 [07:08:41]1040 (4) - 178828 [07:08:41]1012 (4) - 24.08.2024 01:08 [07:08:41]1206 (1) - 0 [07:08:41]OFD Sender: Remove packet 178828 [07:08:41]ProducePacketName [07:08:41]name=ofd_packets/00178828 [07:08:41]NVStorageDeleteData [07:08:42]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:08:42]ProducePacketName [07:08:42]name=ofd_packets/00178829 [07:08:42]OFD Sender: To server: pG, [07:08:42]CommunicateWithHost lk.salyk.kg:30040 [07:08:42]ConnectInit lk.salyk.kg [07:08:46]recv_with_timeout no data received [07:08:47]ConnectInit Can't take IP for lk.salyk.kg [07:08:47]CommunicateWithHost connect error [07:08:47]CommunicateWithHost err = -1 [07:08:47]OFD Sender: Server communicate error [07:08:47]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:08:47]ProducePacketName [07:08:47]name=ofd_packets/00178829 [07:08:47]OFD Sender: To server: pG, [07:08:47]CommunicateWithHost lk.salyk.kg:30040 [07:08:47]ConnectInit lk.salyk.kg [07:08:52]ConnectInit Can't take IP for lk.salyk.kg [07:08:52]CommunicateWithHost connect error [07:08:52]CommunicateWithHost err = -1 [07:08:52]OFD Sender: Server communicate error [07:08:57]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:08:57]ProducePacketName [07:08:57]name=ofd_packets/00178829 [07:08:57]OFD Sender: To server: pG, [07:08:57]CommunicateWithHost lk.salyk.kg:30040 [07:08:57]ConnectInit lk.salyk.kg [07:09:01]recv_with_timeout no data received [07:09:02]ConnectInit Can't take IP for lk.salyk.kg [07:09:02]CommunicateWithHost connect error [07:09:02]CommunicateWithHost err = -1 [07:09:02]OFD Sender: Server communicate error [07:09:07]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:09:07]ProducePacketName [07:09:07]name=ofd_packets/00178829 [07:09:07]OFD Sender: To server: pG, [07:09:07]CommunicateWithHost lk.salyk.kg:30040 [07:09:07]ConnectInit lk.salyk.kg [07:09:12]ConnectInit Can't take IP for lk.salyk.kg [07:09:12]CommunicateWithHost connect error [07:09:12]CommunicateWithHost err = -1 [07:09:12]OFD Sender: Server communicate error [07:09:17]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:09:17]ProducePacketName [07:09:17]name=ofd_packets/00178829 [07:09:17]OFD Sender: To server: pG, [07:09:17]CommunicateWithHost lk.salyk.kg:30040 [07:09:17]ConnectInit lk.salyk.kg [07:09:18]recv_with_timeout no data received [07:09:22]ConnectInit Can't take IP for lk.salyk.kg [07:09:22]CommunicateWithHost connect error [07:09:22]CommunicateWithHost err = -1 [07:09:22]OFD Sender: Server communicate error [07:09:27]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:09:27]ProducePacketName [07:09:27]name=ofd_packets/00178829 [07:09:27]OFD Sender: To server: pG, [07:09:27]CommunicateWithHost lk.salyk.kg:30040 [07:09:27]ConnectInit lk.salyk.kg [07:09:32]recv_with_timeout no data received [07:09:32]ConnectInit Can't take IP for lk.salyk.kg [07:09:32]CommunicateWithHost connect error [07:09:32]CommunicateWithHost err = -1 [07:09:32]OFD Sender: Server communicate error [07:09:37]OFD Sender: Processing packet 178829 [packets to send 500, broken 499] [07:09:37]ProducePacketName [07:09:37]name=ofd_packets/00178829 [07:09:37]OFD Sender: To server: pG, [07:09:37]CommunicateWithHost lk.salyk.kg:30040 [07:09:37]ConnectInit lk.salyk.kg [07:09:46]recv_with_timeout no data received [07:09:55]Connected sock=9 [07:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 67 9D 04 01 EA C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 37 00 00 00 F4 03 04 00 E9 86 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8D BA 02 00 35 04 06 00 75 69 CB DF 66 B7 0C 31 F7 75 BF 39 35 AD [07:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 8F 26 47 00 C7 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8D BA 02 00 F4 03 04 00 EA 32 C9 66 B6 04 01 00 00 3D D4 D3 AD BA 8F 74 EC [07:09:59]CommunicateWithHost err = 0 [07:09:59]CheckOFDResponse [07:09:59]1017 (14) - 77093643461234 [07:09:59]1041 (16) - 0000000000871778 [07:09:59]1040 (4) - 178829 [07:09:59]1012 (4) - 24.08.2024 01:10 [07:09:59]1206 (1) - 0 [07:09:59]OFD Sender: Remove packet 178829 [07:09:59]ProducePacketName [07:09:59]name=ofd_packets/00178829 [07:09:59]NVStorageDeleteData [07:09:59]OFD Sender: No OFD packet to send [07:10:02]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:32]recv_with_timeout no data received [07:10:34]OFD Sender: No OFD packet to send [07:10:36]accept exits with 12 [07:10:36]New connection [07:10:36]New thread 3067194724 created [07:10:36]Thread 3067338084 joined [07:10:36]Waiting for new connection... [07:10:36] Sock 12.Parse request [07:10:36]Sock 12.Check first char [07:10:36]Sock 12.First char is OK [07:10:36]request: POST /json_proto HTTP/1.0 [07:10:36]Method: POST [07:10:36]URL: /json_proto [07:10:36]Method is POST - this is cgi request [07:10:36]url: /json_proto [07:10:36]query_string will be loaded in cgi processing [07:10:36]execute_cgi json_proto POST (null) [07:10:36]execute_cgi path=json_proto method=POST [07:10:36]POST find Content-Length [07:10:36]Host: 172.17.44.131:8080 [07:10:36]Content-Length: 682 [07:10:36]Content-Type: application/json [07:10:36] [07:10:36]POST finish read [07:10:36]Found Content-Length = 682 [07:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:10:36]execute_script... [07:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:10:36]POST & json_proto [07:10:36]process_json_proto [07:10:36]json parsed OK: [07:10:36]protocol is kg_v1.0 [07:10:36]action value=close_receipt [07:10:36]process_action close_receipt [07:10:36]cmd_close_receipt [07:10:36]MH_GetDate [07:10:36]Write to MH i2c: F0 00 00 94 01 84 [07:10:36]Write i2c OK [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 09 00 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 09 00 94 01 00 6D 87 C9 66 4F 53 BE 66 76 [07:10:36]GetLastDocTimeStamp 1724483305 [07:10:36]current date 1724483437 [07:10:36]FM_GetShiftState [07:10:36]SAM_PROTO_GetShiftState [07:10:36]wFMCommunicate request_size=4 [07:10:36]MH_SAM_APDU [07:10:36]CAPDU: 80 13 01 00 [07:10:36]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [07:10:36]Write i2c OK [07:10:36]MH_I2C_Read... [07:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:37]Read from MH i2c: E2 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 0E 00 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D1 [07:10:37]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:10:37]wFMCommunicate OK [07:10:37]SAM_PROTO_GetShiftState done [07:10:37]FM_GetShiftState done [07:10:37]opened in 1724458079 [07:10:37]opened+sec_in_day 1724544479 [07:10:37]quantity*price = 100005 [07:10:37]sum+1 = 100006 [07:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 56 24.08.2024 07:10 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178830 ФПД: 99423120817295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071037&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178830&fm=99423120817295&tin=02508201610067®Number=0000000000092561&sum=100000 [07:10:38]StoreToDocumentArchive [07:10:38]shift 471 fd 178830 [07:10:38]save to /storage/0471/doc_00178830 [07:10:38]save last doc name /storage/0471/doc_00178830 to /storage/kkm_last_doc_name [07:10:38]save OK [07:10:38]Clear old archive folders... [07:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:38]tlvbuf is 00EC8E80 [07:10:38]SAM_PROTO_ClearQueue [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 09 00 00 [07:10:38]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]SAM_PROTO_ClearQueue done [07:10:38]KKMCreateOFDPacket [07:10:38]OFDProtocolAddRootSTLVToBuf [07:10:38]FM_MakeSignedData [07:10:38]FM_MakeSignedData [07:10:38]SAM_PROTO_SignData [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 01 02 [07:10:38]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=255 [07:10:38]MH_SAM_APDU [07:10:38]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 38 00 00 00 F4 03 04 00 6D 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8E BA 02 00 35 04 06 00 5A [07:10:38]Write to MH i2c: E2 02 01 A4 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 38 00 00 00 F4 03 04 00 6D 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8E BA 02 00 35 04 06 00 5A 00 00 06 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=10 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 02 02 05 6C BF CC 7C 8F [07:10:38]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 6C BF CC 7C 8F 00 00 2C [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 03 02 [07:10:38]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 0B 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 0B 00 A6 01 00 6C 46 F8 84 99 68 92 94 90 00 78 [07:10:38]RAPDU: 6C 46 F8 84 99 68 92 94 90 00 [07:10:38]wFMCommunicate OK [07:10:38]SAM_PROTO_SignData done [07:10:38]FM_MakeSignedData done [07:10:38]CreateOFDProtocolMessage [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 11 00 00 [07:10:38]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 17 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7B [07:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:38]wFMCommunicate OK [07:10:38]CreateOFDProtocolMessage done [07:10:38]OFDSenderStorePacket 178830 [07:10:38]StoreOFDPacket docnum=178830 [07:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 1F B0 07 01 36 CD 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 38 00 00 00 F4 03 04 00 6D 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8E BA 02 00 35 04 06 00 5A 6C BF CC 7C 8F 6C 46 F8 84 99 68 92 94 [07:10:38]CheckFolder [07:10:38]dirname=/storage/ofd_packets [07:10:38]CheckFolder done [07:10:38]ProducePacketName [07:10:38]name=ofd_packets/00178830 [07:10:38]NVStorageSaveData ofd_packets/00178830 [07:10:38]File name is /storage/ofd_packets/00178830 [07:10:38]Write 301 bytes [07:10:38]NVStorageSaveData done [07:10:38]OFDSenderStorePacket done [07:10:38]KKMCreateOFDPacket done [07:10:38]NVStorageSaveData kkm_last_timestamp [07:10:38]File name is /storage/kkm_last_timestamp [07:10:38]Write 4 bytes [07:10:38]NVStorageSaveData done [07:10:38]ExternCall_PrintAddStr [07:10:38]wPrintStart [07:10:38]Write to MH i2c: 01 00 00 A8 01 A9 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 07 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [07:10:38]RasterBufferAndPrint [07:10:38]line Счет N : (1)295021 [07:10:38]line ИНН: 02508201610067 [07:10:38]line Контрольно-Кассовый Чек [07:10:38]line ПРОДАЖА [07:10:38]line ТРК (МРК, ГНК) : 62 [07:10:38]line Товар: 2710124130 [07:10:38]line Аи-92-К-5 [07:10:38]line 14.750 * 67.80 [07:10:38]line = 1000.05 [07:10:38]line НДС 12% НСП 1% [07:10:38]line > о реализуемом товаре [07:10:38]line ОКРУГЛЕНИЕ: -0.05 [07:10:38]line ИТОГО: 1000.00 [07:10:38]line Внесено: 1000.00 [07:10:38]line СДАЧА: 0.00 [07:10:38]line НСП 1% : 8.85 [07:10:38]line НДС 12% : 106.20 [07:10:38]line Наличными: 1000.00 [07:10:38]line Безнал.: 0.00 [07:10:38]line Место: АЗС № 130 "Партнер Нефть" [07:10:38]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:10:38]line СНО: Общий режим [07:10:38]line Чек 56 24.08.2024 07:10 [07:10:38]line Смена: 471 ФФД: 1.0 [07:10:38]line ЗНМ: 0300000071 [07:10:38]line РНМ: 0000000000092561 [07:10:38]line Версия ККМ: 001 [07:10:38]line ФМ: 0000000000871778 [07:10:38]line ФД: 178830 [07:10:38]line ФПД: 99423120817295 [07:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071037&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178830&fm=99423120817295&tin=02508201610067®Number=0000000000092561&sum=100000 [07:10:38]written 0, free lines is 4095 [07:10:38]OFD Sender: Processing packet 178830 [packets to send 500, broken 499] [07:10:38]ProducePacketName [07:10:38]name=ofd_packets/00178830 [07:10:38]OFD Sender: To server: pG, [07:10:38]CommunicateWithHost lk.salyk.kg:30040 [07:10:38]ConnectInit lk.salyk.kg [07:10:39]Write to MH i2c: 01 00 00 D3 01 D4 [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 C8 0C AF [07:10:39]RasterBufferAndPrint [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]written 0, free lines is 3282 [07:10:39]MH_Cut [07:10:39]Write to MH i2c: D1 01 00 DA 01 01 AD [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 01 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 01 00 DA 01 00 AC [07:10:39]Write to MH i2c: 01 00 00 DB 01 DC [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]*** Cut start [07:10:39]*** Partial cut [07:10:39]*** CUTSNS_PIN = 1 [07:10:39]*** CUTSNS_PIN = 0 [07:10:40]*** Brake cut motor [07:10:40]Read from MH i2c: 01 [07:10:40]MH_I2C_Read... [07:10:40]*** Stop cut motor [07:10:40]*** Cut end [07:10:40]Read from MH i2c: 01 07 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [07:10:40]process_action close_receipt done [07:10:40]requested_data is exist [07:10:40]produce_requested_data [07:10:40]requested_item fm.sn is exist - process it [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 11 00 00 [07:10:40]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 17 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B0 [07:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:40]wFMCommunicate OK [07:10:40]requested_item fd.num is exist - process it [07:10:40]SAM_PROTO_GetFieldsCounters [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 13 00 00 [07:10:40]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 62 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 62 00 DD 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [07:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:40]wFMCommunicate OK [07:10:40]SAM_PROTO_GetFieldsCounters done [07:10:40]requested_item shift.num is exist - process it [07:10:40]requested_item shift.opened is exist - process it [07:10:40]req_shift_opened [07:10:40]FM_GetShiftState [07:10:40]SAM_PROTO_GetShiftState [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 13 01 00 [07:10:40]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 0E 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 1A [07:10:40]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:10:40]wFMCommunicate OK [07:10:40]SAM_PROTO_GetShiftState done [07:10:40]FM_GetShiftState done [07:10:40]req_shift_opened done [07:10:40]requested_item shift.open_date is exist - process it [07:10:40]req_shift_open_date [07:10:40]req_shift_open_date done [07:10:40]produce_requested_data done [07:10:40]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178830,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:10:40]process_action_free close_receipt [07:10:40]json_value_free [07:10:40]json_value_free done [07:10:40]process_json_proto returns [07:10:40]Send response to host [07:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178830,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:10:40]free response buf [07:10:40]execute_script done [07:10:40]execute_script returns [07:10:40]free content buf [07:10:40]Sock 12.Close socket [07:10:40]Sock 12.Thread stoped [07:10:45]recv_with_timeout no data received [07:10:49]accept exits with 7 [07:10:49]New connection [07:10:49]New thread 3067338084 created [07:10:49]Thread 3067194724 joined [07:10:49]Waiting for new connection... [07:10:49] Sock 7.Parse request [07:10:49]Sock 7.Check first char [07:10:49]Sock 7.First char is OK [07:10:49]request: POST /json_proto HTTP/1.0 [07:10:49]Method: POST [07:10:49]URL: /json_proto [07:10:49]Method is POST - this is cgi request [07:10:49]url: /json_proto [07:10:49]query_string will be loaded in cgi processing [07:10:49]execute_cgi json_proto POST (null) [07:10:49]execute_cgi path=json_proto method=POST [07:10:49]POST find Content-Length [07:10:49]Host: 172.17.44.131:8080 [07:10:49]Content-Length: 682 [07:10:49]Content-Type: application/json [07:10:49] [07:10:49]POST finish read [07:10:49]Found Content-Length = 682 [07:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [07:10:49]execute_script... [07:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [07:10:49]POST & json_proto [07:10:49]process_json_proto [07:10:49]json parsed OK: [07:10:49]protocol is kg_v1.0 [07:10:49]action value=close_receipt [07:10:49]process_action close_receipt [07:10:49]cmd_close_receipt [07:10:49]MH_GetDate [07:10:49]Write to MH i2c: F0 00 00 DF 01 CF [07:10:49]Write i2c OK [07:10:49]MH_I2C_Read... [07:10:49]Read from MH i2c: F0 [07:10:49]MH_I2C_Read... [07:10:49]Read from MH i2c: F0 09 00 [07:10:49]MH_I2C_Read... [07:10:49]Read from MH i2c: F0 09 00 DF 01 00 7A 87 C9 66 4F 53 BE 66 CE [07:10:49]GetLastDocTimeStamp 1724483437 [07:10:49]current date 1724483450 [07:10:49]FM_GetShiftState [07:10:49]SAM_PROTO_GetShiftState [07:10:49]wFMCommunicate request_size=4 [07:10:49]MH_SAM_APDU [07:10:49]CAPDU: 80 13 01 00 [07:10:49]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [07:10:49]Write i2c OK [07:10:49]MH_I2C_Read... [07:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:49]Read from MH i2c: E2 [07:10:49]MH_I2C_Read... [07:10:49]Read from MH i2c: E2 0E 00 [07:10:49]MH_I2C_Read... [07:10:49]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 1C [07:10:49]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:10:49]wFMCommunicate OK [07:10:49]SAM_PROTO_GetShiftState done [07:10:49]FM_GetShiftState done [07:10:49]opened in 1724458079 [07:10:49]opened+sec_in_day 1724544479 [07:10:49]quantity*price = 200043 [07:10:49]sum+1 = 200044 [07:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 57 24.08.2024 07:10 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178831 ФПД: 60083881296324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071050&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178831&fm=60083881296324&tin=02508201610067®Number=0000000000092561&sum=200000 [07:10:50]StoreToDocumentArchive [07:10:50]shift 471 fd 178831 [07:10:50]save to /storage/0471/doc_00178831 [07:10:50]save last doc name /storage/0471/doc_00178831 to /storage/kkm_last_doc_name [07:10:50]save OK [07:10:50]Clear old archive folders... [07:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:50]tlvbuf is 00E9C310 [07:10:50]SAM_PROTO_ClearQueue [07:10:50]wFMCommunicate request_size=4 [07:10:50]MH_SAM_APDU [07:10:50]CAPDU: 80 09 00 00 [07:10:50]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [07:10:50]RAPDU: 90 00 [07:10:50]wFMCommunicate OK [07:10:50]SAM_PROTO_ClearQueue done [07:10:50]KKMCreateOFDPacket [07:10:50]OFDProtocolAddRootSTLVToBuf [07:10:50]FM_MakeSignedData [07:10:50]FM_MakeSignedData [07:10:50]SAM_PROTO_SignData [07:10:50]wFMCommunicate request_size=4 [07:10:50]MH_SAM_APDU [07:10:50]CAPDU: 80 0D 01 02 [07:10:50]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [07:10:50]RAPDU: 90 00 [07:10:50]wFMCommunicate OK [07:10:50]wFMCommunicate request_size=255 [07:10:50]MH_SAM_APDU [07:10:50]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 39 00 00 00 F4 03 04 00 7A 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8F BA 02 00 35 04 06 00 36 [07:10:50]Write to MH i2c: E2 02 01 EF 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 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 39 00 00 00 F4 03 04 00 7A 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8F BA 02 00 35 04 06 00 36 00 00 65 [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [07:10:50]RAPDU: 90 00 [07:10:50]wFMCommunicate OK [07:10:50]wFMCommunicate request_size=10 [07:10:50]MH_SAM_APDU [07:10:50]CAPDU: 80 0D 02 02 05 A5 5E 66 C1 C4 [07:10:50]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 A5 5E 66 C1 C4 00 00 63 [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [07:10:50]RAPDU: 90 00 [07:10:50]wFMCommunicate OK [07:10:50]wFMCommunicate request_size=4 [07:10:50]MH_SAM_APDU [07:10:50]CAPDU: 80 0D 03 02 [07:10:50]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 0B 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 0B 00 F1 01 00 41 3F 43 92 DA A8 0C B1 90 00 02 [07:10:50]RAPDU: 41 3F 43 92 DA A8 0C B1 90 00 [07:10:50]wFMCommunicate OK [07:10:50]SAM_PROTO_SignData done [07:10:50]FM_MakeSignedData done [07:10:50]CreateOFDProtocolMessage [07:10:50]wFMCommunicate request_size=4 [07:10:50]MH_SAM_APDU [07:10:50]CAPDU: 80 11 00 00 [07:10:50]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:50]Read from MH i2c: E2 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 17 00 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C6 [07:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:50]wFMCommunicate OK [07:10:50]CreateOFDProtocolMessage done [07:10:50]OFDSenderStorePacket 178831 [07:10:50]StoreOFDPacket docnum=178831 [07:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 73 E0 07 01 DC 94 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 39 00 00 00 F4 03 04 00 7A 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8F BA 02 00 35 04 06 00 36 A5 5E 66 C1 C4 41 3F 43 92 DA A8 0C B1 [07:10:50]CheckFolder [07:10:50]dirname=/storage/ofd_packets [07:10:50]CheckFolder done [07:10:50]ProducePacketName [07:10:50]name=ofd_packets/00178831 [07:10:50]NVStorageSaveData ofd_packets/00178831 [07:10:50]File name is /storage/ofd_packets/00178831 [07:10:50]Write 301 bytes [07:10:50]NVStorageSaveData done [07:10:50]OFDSenderStorePacket done [07:10:50]KKMCreateOFDPacket done [07:10:50]NVStorageSaveData kkm_last_timestamp [07:10:50]File name is /storage/kkm_last_timestamp [07:10:50]Write 4 bytes [07:10:50]NVStorageSaveData done [07:10:50]ExternCall_PrintAddStr [07:10:50]wPrintStart [07:10:50]Write to MH i2c: 01 00 00 F3 01 F4 [07:10:50]Write i2c OK [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: 01 [07:10:50]MH_I2C_Read... [07:10:50]Read from MH i2c: 01 07 00 [07:10:50]MH_I2C_Read... [07:10:51]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [07:10:51]RasterBufferAndPrint [07:10:51]line Счет N : (1)295019 [07:10:51]line ИНН: 02508201610067 [07:10:51]line Контрольно-Кассовый Чек [07:10:51]line ПРОДАЖА [07:10:51]line ТРК (МРК, ГНК) : 53 [07:10:51]line Товар: 2710124500 [07:10:51]line Аи-95-К-5 [07:10:51]line 26.960 * 74.20 [07:10:51]line = 2000.43 [07:10:51]line НДС 12% НСП 1% [07:10:51]line > о реализуемом товаре [07:10:51]line ОКРУГЛЕНИЕ: -0.43 [07:10:51]line ИТОГО: 2000.00 [07:10:51]line Внесено: 2000.00 [07:10:51]line СДАЧА: 0.00 [07:10:51]line НСП 1% : 17.70 [07:10:51]line НДС 12% : 212.43 [07:10:51]line Наличными: 2000.00 [07:10:51]line Безнал.: 0.00 [07:10:51]line Место: АЗС № 130 "Партнер Нефть" [07:10:51]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:10:51]line СНО: Общий режим [07:10:51]line Чек 57 24.08.2024 07:10 [07:10:51]line Смена: 471 ФФД: 1.0 [07:10:51]line ЗНМ: 0300000071 [07:10:51]line РНМ: 0000000000092561 [07:10:51]line Версия ККМ: 001 [07:10:51]line ФМ: 0000000000871778 [07:10:51]line ФД: 178831 [07:10:51]line ФПД: 60083881296324 [07:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071050&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178831&fm=60083881296324&tin=02508201610067®Number=0000000000092561&sum=200000 [07:10:51]written 0, free lines is 4095 [07:10:51]Write to MH i2c: 01 00 00 1E 02 20 [07:10:51]Write i2c OK [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: 01 [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: 01 07 00 [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 C2 0C F5 [07:10:51]RasterBufferAndPrint [07:10:51]line [07:10:51]line [07:10:51]line [07:10:51]line [07:10:51]line [07:10:51]written 0, free lines is 3278 [07:10:51]MH_Cut [07:10:51]Write to MH i2c: D1 01 00 25 02 01 F9 [07:10:51]Write i2c OK [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: D1 [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: D1 01 00 [07:10:51]MH_I2C_Read... [07:10:51]Read from MH i2c: D1 01 00 25 02 00 F8 [07:10:51]Write to MH i2c: 01 00 00 26 02 28 [07:10:51]Write i2c OK [07:10:51]MH_I2C_Read... [07:10:52]*** Cut start [07:10:52]*** Partial cut [07:10:52]*** CUTSNS_PIN = 1 [07:10:52]*** CUTSNS_PIN = 0 [07:10:52]*** Brake cut motor [07:10:52]Read from MH i2c: 01 [07:10:52]MH_I2C_Read... [07:10:52]*** Stop cut motor [07:10:52]*** Cut end [07:10:52]Read from MH i2c: 01 07 00 [07:10:52]MH_I2C_Read... [07:10:52]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [07:10:52]process_action close_receipt done [07:10:52]requested_data is exist [07:10:52]produce_requested_data [07:10:52]requested_item fm.sn is exist - process it [07:10:52]wFMCommunicate request_size=4 [07:10:52]MH_SAM_APDU [07:10:52]CAPDU: 80 11 00 00 [07:10:52]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [07:10:52]Write i2c OK [07:10:52]MH_I2C_Read... [07:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:52]Read from MH i2c: E2 [07:10:52]MH_I2C_Read... [07:10:52]Read from MH i2c: E2 17 00 [07:10:52]MH_I2C_Read... [07:10:52]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FC [07:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:52]wFMCommunicate OK [07:10:52]requested_item fd.num is exist - process it [07:10:52]SAM_PROTO_GetFieldsCounters [07:10:52]wFMCommunicate request_size=4 [07:10:52]MH_SAM_APDU [07:10:52]CAPDU: 80 13 00 00 [07:10:52]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [07:10:52]Write i2c OK [07:10:52]MH_I2C_Read... [07:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:53]Read from MH i2c: E2 [07:10:53]MH_I2C_Read... [07:10:53]Read from MH i2c: E2 62 00 [07:10:53]MH_I2C_Read... [07:10:53]Read from MH i2c: E2 62 00 28 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [07:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 8F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:53]wFMCommunicate OK [07:10:53]SAM_PROTO_GetFieldsCounters done [07:10:53]requested_item shift.num is exist - process it [07:10:53]requested_item shift.opened is exist - process it [07:10:53]req_shift_opened [07:10:53]FM_GetShiftState [07:10:53]SAM_PROTO_GetShiftState [07:10:53]wFMCommunicate request_size=4 [07:10:53]MH_SAM_APDU [07:10:53]CAPDU: 80 13 01 00 [07:10:53]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [07:10:53]Write i2c OK [07:10:53]MH_I2C_Read... [07:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:53]Read from MH i2c: E2 [07:10:53]MH_I2C_Read... [07:10:53]Read from MH i2c: E2 0E 00 [07:10:53]MH_I2C_Read... [07:10:53]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 66 [07:10:53]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:10:53]wFMCommunicate OK [07:10:53]SAM_PROTO_GetShiftState done [07:10:53]FM_GetShiftState done [07:10:53]req_shift_opened done [07:10:53]requested_item shift.open_date is exist - process it [07:10:53]req_shift_open_date [07:10:53]req_shift_open_date done [07:10:53]produce_requested_data done [07:10:53]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178831,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:10:53]process_action_free close_receipt [07:10:53]json_value_free [07:10:53]json_value_free done [07:10:53]process_json_proto returns [07:10:53]Send response to host [07:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178831,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:10:53]free response buf [07:10:53]execute_script done [07:10:53]execute_script returns [07:10:53]free content buf [07:10:53]Sock 7.Close socket [07:10:53]Sock 7.Thread stoped [07:10:53]Connected sock=10 [07:10: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 37 37 38 0F 01 00 00 1F B0 07 01 36 CD 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 38 00 00 00 F4 03 04 00 6D 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8E BA 02 00 35 04 06 00 5A 6C BF CC 7C 8F 6C 46 F8 84 99 68 92 94 [07:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DB 55 47 00 E5 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 37 37 38 10 04 04 00 8E BA 02 00 F4 03 04 00 23 33 C9 66 B6 04 01 00 00 26 9D 56 CB 69 13 91 AF [07:10:55]CommunicateWithHost err = 0 [07:10:55]CheckOFDResponse [07:10:55]1017 (14) - 77093643461234 [07:10:55]1041 (16) - 0000000000871778 [07:10:55]1040 (4) - 178830 [07:10:55]1012 (4) - 24.08.2024 01:10 [07:10:55]1206 (1) - 0 [07:10:55]OFD Sender: Remove packet 178830 [07:10:55]ProducePacketName [07:10:55]name=ofd_packets/00178830 [07:10:55]NVStorageDeleteData [07:10:56]OFD Sender: Processing packet 178831 [packets to send 500, broken 499] [07:10:56]ProducePacketName [07:10:56]name=ofd_packets/00178831 [07:10:56]OFD Sender: To server: pG, [07:10:56]CommunicateWithHost lk.salyk.kg:30040 [07:10:56]ConnectInit lk.salyk.kg [07:10:59]recv_with_timeout no data received [07:11:01]ConnectInit Can't take IP for lk.salyk.kg [07:11:01]CommunicateWithHost connect error [07:11:01]CommunicateWithHost err = -1 [07:11:01]OFD Sender: Server communicate error [07:11:01]OFD Sender: Processing packet 178831 [packets to send 500, broken 499] [07:11:01]ProducePacketName [07:11:01]name=ofd_packets/00178831 [07:11:01]OFD Sender: To server: pG, [07:11:01]CommunicateWithHost lk.salyk.kg:30040 [07:11:01]ConnectInit lk.salyk.kg [07:11:06]ConnectInit Can't take IP for lk.salyk.kg [07:11:06]CommunicateWithHost connect error [07:11:06]CommunicateWithHost err = -1 [07:11:06]OFD Sender: Server communicate error [07:11:09]accept exits with 9 [07:11:09]New connection [07:11:09]New thread 3067194724 created [07:11:09]Thread 3067338084 joined [07:11:09]Waiting for new connection... [07:11:09] Sock 9.Parse request [07:11:09]Sock 9.Check first char [07:11:09]Sock 9.First char is OK [07:11:09]request: POST /json_proto HTTP/1.0 [07:11:09]Method: POST [07:11:09]URL: /json_proto [07:11:09]Method is POST - this is cgi request [07:11:09]url: /json_proto [07:11:09]query_string will be loaded in cgi processing [07:11:09]execute_cgi json_proto POST (null) [07:11:09]execute_cgi path=json_proto method=POST [07:11:09]POST find Content-Length [07:11:09]Host: 172.17.44.131:8080 [07:11:09]Content-Length: 672 [07:11:09]Content-Type: application/json [07:11:09] [07:11:09]POST finish read [07:11:09]Found Content-Length = 672 [07:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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" ] } } [07:11:09]execute_script... [07:11: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)295020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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" ] } } [07:11:09]POST & json_proto [07:11:09]process_json_proto [07:11:09]json parsed OK: [07:11:09]protocol is kg_v1.0 [07:11:09]action value=close_receipt [07:11:09]process_action close_receipt [07:11:09]cmd_close_receipt [07:11:09]MH_GetDate [07:11:09]Write to MH i2c: F0 00 00 2A 02 1B [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 09 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 09 00 2A 02 00 8E 87 C9 66 4F 53 BE 66 2E [07:11:09]GetLastDocTimeStamp 1724483450 [07:11:09]current date 1724483470 [07:11:09]FM_GetShiftState [07:11:09]SAM_PROTO_GetShiftState [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 01 00 [07:11:09]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 68 [07:11:09]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetShiftState done [07:11:09]FM_GetShiftState done [07:11:09]opened in 1724458079 [07:11:09]opened+sec_in_day 1724544479 [07:11:09]quantity*price = 100035 [07:11:09]sum+1 = 100036 [07:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре [07:11:11]line ОКРУГЛЕНИЕ: -0.35 [07:11:11]line ИТОГО: 1000.00 [07:11:11]line Внесено: 1000.00 [07:11:11]line СДАЧА: 0.00 [07:11:11]line НСП 1% : 8.85 [07:11:11]line НДС 12% : 106.23 [07:11:11]line Наличными: 1000.00 [07:11:11]line Безнал.: 0.00 [07:11:11]line Место: АЗС № 130 "Партнер Нефть" [07:11:11]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:11:11]line СНО: Общий режим [07:11:11]line Чек 58 24.08.2024 07:11 [07:11:11]line Смена: 471 ФФД: 1.0 [07:11:11]line ЗНМ: 0300000071 [07:11:11]line РНМ: 0000000000092561 [07:11:11]line Версия ККМ: 001 [07:11:11]line ФМ: 0000000000871778 [07:11:11]line ФД: 178832 [07:11:11]line ФПД: 88920424630483 [07:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071110&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178832&fm=88920424630483&tin=02508201610067®Number=0000000000092561&sum=100000 [07:11:11]written 0, free lines is 4095 [07:11:12]Write to MH i2c: 01 00 00 69 02 6B [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: 01 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: 01 07 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 CA 0C 48 [07:11:12]RasterBufferAndPrint [07:11:12]line [07:11:12]line [07:11:12]line [07:11:12]line [07:11:12]line [07:11:12]written 0, free lines is 3298 [07:11:12]MH_Cut [07:11:12]Write to MH i2c: D1 01 00 70 02 01 44 [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: D1 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: D1 01 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: D1 01 00 70 02 00 43 [07:11:12]Write to MH i2c: 01 00 00 71 02 73 [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:12]*** Cut start [07:11:12]*** Partial cut [07:11:12]*** CUTSNS_PIN = 1 [07:11:12]*** CUTSNS_PIN = 0 [07:11:13]*** Brake cut motor [07:11:13]Read from MH i2c: 01 [07:11:13]MH_I2C_Read... [07:11:13]*** Stop cut motor [07:11:13]*** Cut end [07:11:13]Read from MH i2c: 01 07 00 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [07:11:13]process_action close_receipt done [07:11:13]requested_data is exist [07:11:13]produce_requested_data [07:11:13]requested_item fm.sn is exist - process it [07:11:13]wFMCommunicate request_size=4 [07:11:13]MH_SAM_APDU [07:11:13]CAPDU: 80 11 00 00 [07:11:13]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [07:11:13]Write i2c OK [07:11:13]MH_I2C_Read... [07:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:13]Read from MH i2c: E2 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 17 00 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 47 [07:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:13]wFMCommunicate OK [07:11:13]requested_item fd.num is exist - process it [07:11:13]SAM_PROTO_GetFieldsCounters [07:11:13]wFMCommunicate request_size=4 [07:11:13]MH_SAM_APDU [07:11:13]CAPDU: 80 13 00 00 [07:11:13]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [07:11:13]Write i2c OK [07:11:13]MH_I2C_Read... [07:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:13]Read from MH i2c: E2 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 62 00 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 62 00 73 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 90 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [07:11: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 90 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:13]wFMCommunicate OK [07:11:13]SAM_PROTO_GetFieldsCounters done [07:11:13]requested_item shift.num is exist - process it [07:11:13]requested_item shift.opened is exist - process it [07:11:13]req_shift_opened [07:11:13]FM_GetShiftState [07:11:13]SAM_PROTO_GetShiftState [07:11:13]wFMCommunicate request_size=4 [07:11:13]MH_SAM_APDU [07:11:13]CAPDU: 80 13 01 00 [07:11:13]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [07:11:13]Write i2c OK [07:11:13]MH_I2C_Read... [07:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:13]Read from MH i2c: E2 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 0E 00 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B1 [07:11:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:11:13]wFMCommunicate OK [07:11:13]SAM_PROTO_GetShiftState done [07:11:13]FM_GetShiftState done [07:11:13]req_shift_opened done [07:11:13]requested_item shift.open_date is exist - process it [07:11:13]req_shift_open_date [07:11:13]req_shift_open_date done [07:11:13]produce_requested_data done [07:11:13]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178832,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:11:13]process_action_free close_receipt [07:11:13]json_value_free [07:11:13]json_value_free done [07:11:13]process_json_proto returns [07:11:13]Send response to host [07:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178832,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:11:13]free response buf [07:11:13]execute_script done [07:11:13]execute_script returns [07:11:13]free content buf [07:11:13]Sock 9.Close socket [07:11:13]Sock 9.Thread stoped [07:11:15]recv_with_timeout no data received [07:11:16]ConnectInit Can't take IP for lk.salyk.kg [07:11:16]CommunicateWithHost connect error [07:11:16]CommunicateWithHost err = -1 [07:11:16]OFD Sender: Server communicate error [07:11:16]OFD Sender: Processing packet 178831 [packets to send 501, broken 499] [07:11:16]ProducePacketName [07:11:16]name=ofd_packets/00178831 [07:11:16]OFD Sender: To server: pG, [07:11:16]CommunicateWithHost lk.salyk.kg:30040 [07:11:16]ConnectInit lk.salyk.kg [07:11:21]ConnectInit Can't take IP for lk.salyk.kg [07:11:21]CommunicateWithHost connect error [07:11:21]CommunicateWithHost err = -1 [07:11:21]OFD Sender: Server communicate error [07:11:26]OFD Sender: Processing packet 178831 [packets to send 501, broken 499] [07:11:26]ProducePacketName [07:11:26]name=ofd_packets/00178831 [07:11:26]OFD Sender: To server: pG, [07:11:26]CommunicateWithHost lk.salyk.kg:30040 [07:11:26]ConnectInit lk.salyk.kg [07:11:31]recv_with_timeout no data received [07:11:31]ConnectInit Can't take IP for lk.salyk.kg [07:11:31]CommunicateWithHost connect error [07:11:31]CommunicateWithHost err = -1 [07:11:31]OFD Sender: Server communicate error [07:11:36]OFD Sender: Processing packet 178831 [packets to send 501, broken 499] [07:11:36]ProducePacketName [07:11:36]name=ofd_packets/00178831 [07:11:36]OFD Sender: To server: pG, [07:11:36]CommunicateWithHost lk.salyk.kg:30040 [07:11:36]ConnectInit lk.salyk.kg [07:11:41]ConnectInit Can't take IP for lk.salyk.kg [07:11:41]CommunicateWithHost connect error [07:11:41]CommunicateWithHost err = -1 [07:11:41]OFD Sender: Server communicate error [07:11:46]recv_with_timeout no data received [07:11:46]OFD Sender: Processing packet 178831 [packets to send 501, broken 499] [07:11:46]ProducePacketName [07:11:46]name=ofd_packets/00178831 [07:11:46]OFD Sender: To server: pG, [07:11:46]CommunicateWithHost lk.salyk.kg:30040 [07:11:46]ConnectInit lk.salyk.kg [07:11:51]ConnectInit Can't take IP for lk.salyk.kg [07:11:51]CommunicateWithHost connect error [07:11:51]CommunicateWithHost err = -1 [07:11:51]OFD Sender: Server communicate error [07:11:56]OFD Sender: Processing packet 178831 [packets to send 501, broken 499] [07:11:56]ProducePacketName [07:11:56]name=ofd_packets/00178831 [07:11:56]OFD Sender: To server: pG, [07:11:56]CommunicateWithHost lk.salyk.kg:30040 [07:11:56]ConnectInit lk.salyk.kg [07:12:03]recv_with_timeout no data received [07:12:11]Connected sock=9 [07:12: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 37 37 38 0F 01 00 00 73 E0 07 01 DC 94 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 39 00 00 00 F4 03 04 00 7A 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 8F BA 02 00 35 04 06 00 36 A5 5E 66 C1 C4 41 3F 43 92 DA A8 0C B1 [07:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 61 02 47 00 21 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 37 37 38 10 04 04 00 8F BA 02 00 F4 03 04 00 73 33 C9 66 B6 04 01 00 00 CB E0 54 A8 F2 37 0F 28 [07:12:14]CommunicateWithHost err = 0 [07:12:14]CheckOFDResponse [07:12:14]1017 (14) - 77093643461234 [07:12:14]1041 (16) - 0000000000871778 [07:12:14]1040 (4) - 178831 [07:12:14]1012 (4) - 24.08.2024 01:12 [07:12:14]1206 (1) - 0 [07:12:14]OFD Sender: Remove packet 178831 [07:12:14]ProducePacketName [07:12:14]name=ofd_packets/00178831 [07:12:14]NVStorageDeleteData [07:12:15]OFD Sender: Processing packet 178832 [packets to send 500, broken 499] [07:12:15]ProducePacketName [07:12:15]name=ofd_packets/00178832 [07:12:15]OFD Sender: To server: pG, [07:12:15]CommunicateWithHost lk.salyk.kg:30040 [07:12:15]ConnectInit lk.salyk.kg [07:12:18]recv_with_timeout no data received [07:12:20]ConnectInit Can't take IP for lk.salyk.kg [07:12:20]CommunicateWithHost connect error [07:12:20]CommunicateWithHost err = -1 [07:12:20]OFD Sender: Server communicate error [07:12:25]OFD Sender: Processing packet 178832 [packets to send 500, broken 499] [07:12:25]ProducePacketName [07:12:25]name=ofd_packets/00178832 [07:12:25]OFD Sender: To server: pG, [07:12:25]CommunicateWithHost lk.salyk.kg:30040 [07:12:25]ConnectInit lk.salyk.kg [07:12:30]ConnectInit Can't take IP for lk.salyk.kg [07:12:30]CommunicateWithHost connect error [07:12:30]CommunicateWithHost err = -1 [07:12:30]OFD Sender: Server communicate error [07:12:35]OFD Sender: Processing packet 178832 [packets to send 500, broken 499] [07:12:35]ProducePacketName [07:12:35]name=ofd_packets/00178832 [07:12:35]OFD Sender: To server: pG, [07:12:35]CommunicateWithHost lk.salyk.kg:30040 [07:12:35]ConnectInit lk.salyk.kg [07:12:37]recv_with_timeout no data received [07:12:40]ConnectInit Can't take IP for lk.salyk.kg [07:12:40]CommunicateWithHost connect error [07:12:40]CommunicateWithHost err = -1 [07:12:40]OFD Sender: Server communicate error [07:12:45]OFD Sender: Processing packet 178832 [packets to send 500, broken 499] [07:12:45]ProducePacketName [07:12:45]name=ofd_packets/00178832 [07:12:45]OFD Sender: To server: pG, [07:12:45]CommunicateWithHost lk.salyk.kg:30040 [07:12:45]ConnectInit lk.salyk.kg [07:12:53]recv_with_timeout no data received [07:13:08]Connected sock=10 [07:13: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 37 37 38 0D 01 00 00 59 CB 05 01 6B 35 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 3A 00 00 00 F4 03 04 00 8E 87 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 BA 02 00 35 04 06 00 50 DF 66 52 C8 D3 81 0A B1 30 C4 EB 19 ED [07:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FE 1C 47 00 52 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 BA 02 00 F4 03 04 00 AB 33 C9 66 B6 04 01 00 00 02 CE FF C1 B9 BB C0 FE [07:13:13]CommunicateWithHost err = 0 [07:13:13]CheckOFDResponse [07:13:13]1017 (14) - 77093643461234 [07:13:13]1041 (16) - 0000000000871778 [07:13:13]1040 (4) - 178832 [07:13:13]1012 (4) - 24.08.2024 01:13 [07:13:13]1206 (1) - 0 [07:13:13]OFD Sender: Remove packet 178832 [07:13:13]ProducePacketName [07:13:13]name=ofd_packets/00178832 [07:13:13]NVStorageDeleteData [07:13:13]recv_with_timeout no data received [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:34]recv_with_timeout no data received [07:13:38]OFD Sender: No OFD packet to send [07:14:32]ConnectInit Can't connect to host [07:14:37]OFD Sender: Processing packet 178833 [packets to send 500, broken 499] [07:14:37]ProducePacketName [07:14:37]name=ofd_packets/00178833 [07:14:37]OFD Sender: To server: pG, [07:14:37]CommunicateWithHost lk.salyk.kg:30040 [07:14:37]ConnectInit lk.salyk.kg [07:14:37]Connected sock=7 [07:14: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 37 37 38 0C 01 00 00 3A 4D 04 01 24 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 34 88 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 91 BA 02 00 35 04 06 00 6C FB CB 68 B3 5E 2F E9 51 80 47 47 73 BB [07:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D4 A9 47 00 34 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 37 37 38 10 04 04 00 91 BA 02 00 F4 03 04 00 02 34 C9 66 B6 04 01 00 00 56 AE 3F 1E 41 3D B8 D5 [07:14:38]CommunicateWithHost err = 0 [07:14:38]CheckOFDResponse [07:14:38]1017 (14) - 77093643461234 [07:14:38]1041 (16) - 0000000000871778 [07:14:38]1040 (4) - 178833 [07:14:38]1012 (4) - 24.08.2024 01:14 [07:14:38]1206 (1) - 0 [07:14:38]OFD Sender: Remove packet 178833 [07:14:38]ProducePacketName [07:14:38]name=ofd_packets/00178833 [07:14:38]NVStorageDeleteData [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:28]recv_with_timeout no data received [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:37]accept exits with 10 [07:17:37]New connection [07:17:37]New thread 3067194724 created [07:17:37]Thread 3067338084 joined [07:17:37]Waiting for new connection... [07:17:37] Sock 10.Parse request [07:17:37]Sock 10.Check first char [07:17:37]Sock 10.First char is OK [07:17:37]request: POST /json_proto HTTP/1.0 [07:17:37]Method: POST [07:17:37]URL: /json_proto [07:17:37]Method is POST - this is cgi request [07:17:37]url: /json_proto [07:17:37]query_string will be loaded in cgi processing [07:17:37]execute_cgi json_proto POST (null) [07:17:37]execute_cgi path=json_proto method=POST [07:17:37]POST find Content-Length [07:17:37]Host: 172.17.44.131:8080 [07:17:37]Content-Length: 682 [07:17:37]Content-Type: application/json [07:17:37] [07:17:37]POST finish read [07:17:37]Found Content-Length = 682 [07:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 22.730, "sum" : 850.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:37]execute_script... [07:17: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)295024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 22.730, "sum" : 850.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:37]POST & json_proto [07:17:37]process_json_proto [07:17:37]json parsed OK: [07:17:37]protocol is kg_v1.0 [07:17:37]action value=close_receipt [07:17:37]process_action close_receipt [07:17:37]cmd_close_receipt [07:17:37]MH_GetDate [07:17:37]Write to MH i2c: F0 00 00 BF 02 B0 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 09 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: F0 09 00 BF 02 00 12 89 C9 66 4F 53 BE 66 49 [07:17:37]GetLastDocTimeStamp 1724483636 [07:17:37]current date 1724483858 [07:17:37]FM_GetShiftState [07:17:37]SAM_PROTO_GetShiftState [07:17:37]wFMCommunicate request_size=4 [07:17:37]MH_SAM_APDU [07:17:37]CAPDU: 80 13 01 00 [07:17:37]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:37]Read from MH i2c: E2 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FD [07:17:37]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:17:37]wFMCommunicate OK [07:17:37]SAM_PROTO_GetShiftState done [07:17:37]FM_GetShiftState done [07:17:37]opened in 1724458079 [07:17:37]opened+sec_in_day 1724544479 [07:17:37]quantity*price = 85010 [07:17:37]sum+1 = 85011 [07:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 850.00 Внесено: 3000.00 СДАЧА: 2150.00 НСП 1% : 7.52 НДС 12% : 90.28 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 60 24.08.2024 07:17 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178834 ФПД: 217383002334263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071738&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178834&fm=217383002334263&tin=02508201610067®Number=0000000000092561&sum=85000 [07:17:38]StoreToDocumentArchive [07:17:38]shift 471 fd 178834 [07:17:38]save to /storage/0471/doc_00178834 [07:17:38]save last doc name /storage/0471/doc_00178834 to /storage/kkm_last_doc_name [07:17:38]save OK [07:17:38]Clear old archive folders... [07:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:17:38]tlvbuf is 00EF76B0 [07:17:38]SAM_PROTO_ClearQueue [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 09 00 00 [07:17:38]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]SAM_PROTO_ClearQueue done [07:17:38]KKMCreateOFDPacket [07:17:38]OFDProtocolAddRootSTLVToBuf [07:17:38]FM_MakeSignedData [07:17:38]FM_MakeSignedData [07:17:38]SAM_PROTO_SignData [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 01 02 [07:17:38]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]wFMCommunicate request_size=255 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 58 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 12 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 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 12 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 BA 02 00 35 04 06 00 C5 B5 [07:17:38]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 58 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 12 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 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 12 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 BA 02 00 35 04 06 00 C5 B5 00 00 DB [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]wFMCommunicate request_size=9 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 02 02 04 6C A2 64 37 [07:17:38]Write to MH i2c: E2 0C 00 D0 02 80 0D 02 02 04 00 6C A2 64 37 00 00 FD [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [07:17:38]RAPDU: 90 00 [07:17:38]wFMCommunicate OK [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 0D 03 02 [07:17:38]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 0B 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 0B 00 D1 02 00 19 7B 01 DB 0D 7F 61 BA 90 00 66 [07:17:38]RAPDU: 19 7B 01 DB 0D 7F 61 BA 90 00 [07:17:38]wFMCommunicate OK [07:17:38]SAM_PROTO_SignData done [07:17:38]FM_MakeSignedData done [07:17:38]CreateOFDProtocolMessage [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 11 00 00 [07:17:38]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 17 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A7 [07:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:17:38]wFMCommunicate OK [07:17:38]CreateOFDProtocolMessage done [07:17:38]OFDSenderStorePacket 178834 [07:17:38]StoreOFDPacket docnum=178834 [07:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 63 0B 06 01 8D D7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 58 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 12 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 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 12 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 BA 02 00 35 04 06 00 C5 B5 6C A2 64 37 19 7B 01 DB 0D 7F 61 BA [07:17:38]CheckFolder [07:17:38]dirname=/storage/ofd_packets [07:17:38]CheckFolder done [07:17:38]ProducePacketName [07:17:38]name=ofd_packets/00178834 [07:17:38]NVStorageSaveData ofd_packets/00178834 [07:17:38]File name is /storage/ofd_packets/00178834 [07:17:38]Write 300 bytes [07:17:38]NVStorageSaveData done [07:17:38]OFDSenderStorePacket done [07:17:38]KKMCreateOFDPacket done [07:17:38]NVStorageSaveData kkm_last_timestamp [07:17:38]File name is /storage/kkm_last_timestamp [07:17:38]Write 4 bytes [07:17:38]NVStorageSaveData done [07:17:38]ExternCall_PrintAddStr [07:17:38]wPrintStart [07:17:38]Write to MH i2c: 01 00 00 D3 02 D5 [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: 01 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: 01 07 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [07:17:38]RasterBufferAndPrint [07:17:38]line Счет N : (1)295024 [07:17:38]line ИНН: 02508201610067 [07:17:38]line Контрольно-Кассовый Чек [07:17:38]line ПРОДАЖА [07:17:38]line ТРК (МРК, ГНК) : 81 [07:17:38]line Товар: 2711129700 [07:17:38]line ГАЗ-К-5 [07:17:38]line 22.730 * 37.40 [07:17:38]line = 850.10 [07:17:38]line НДС 12% НСП 1% [07:17:38]line > о реализуемом товаре [07:17:38]line ОКРУГЛЕНИЕ: -0.10 [07:17:38]line ИТОГО: 850.00 [07:17:38]line Внесено: 3000.00 [07:17:38]line СДАЧА: 2150.00 [07:17:38]line НСП 1% : 7.52 [07:17:38]line НДС 12% : 90.28 [07:17:38]line Наличными: 850.00 [07:17:38]line Безнал.: 0.00 [07:17:38]line Место: АЗС № 130 "Партнер Нефть" [07:17:38]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:17:38]line СНО: Общий режим [07:17:38]line Чек 60 24.08.2024 07:17 [07:17:38]line Смена: 471 ФФД: 1.0 [07:17:38]line ЗНМ: 0300000071 [07:17:38]line РНМ: 0000000000092561 [07:17:38]line Версия ККМ: 001 [07:17:38]line ФМ: 0000000000871778 [07:17:38]line ФД: 178834 [07:17:38]line ФПД: 217383002334263 [07:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071738&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178834&fm=217383002334263&tin=02508201610067®Number=0000000000092561&sum=85000 [07:17:38]written 0, free lines is 4095 [07:17:38]OFD Sender: Processing packet 178834 [packets to send 500, broken 499] [07:17:38]ProducePacketName [07:17:38]name=ofd_packets/00178834 [07:17:38]OFD Sender: To server: pG, [07:17:38]CommunicateWithHost lk.salyk.kg:30040 [07:17:38]ConnectInit lk.salyk.kg [07:17:39]Write to MH i2c: 01 00 00 FE 02 00 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 07 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 BB 0C CE [07:17:39]RasterBufferAndPrint [07:17:39]line [07:17:39]line [07:17:39]line [07:17:39]line [07:17:39]line [07:17:39]written 0, free lines is 3267 [07:17:39]MH_Cut [07:17:39]Write to MH i2c: D1 01 00 05 03 01 DA [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: D1 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: D1 01 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: D1 01 00 05 03 00 D9 [07:17:39]Write to MH i2c: 01 00 00 06 03 09 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:40]*** Cut start [07:17:40]*** Partial cut [07:17:40]*** CUTSNS_PIN = 1 [07:17:40]*** CUTSNS_PIN = 0 [07:17:40]*** Brake cut motor [07:17:40]Read from MH i2c: 01 [07:17:40]MH_I2C_Read... [07:17:40]*** Stop cut motor [07:17:40]*** Cut end [07:17:40]Read from MH i2c: 01 07 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [07:17:40]process_action close_receipt done [07:17:40]requested_data is exist [07:17:40]produce_requested_data [07:17:40]requested_item fm.sn is exist - process it [07:17:40]wFMCommunicate request_size=4 [07:17:40]MH_SAM_APDU [07:17:40]CAPDU: 80 11 00 00 [07:17:40]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:40]Read from MH i2c: E2 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 17 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [07:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:17:40]wFMCommunicate OK [07:17:40]requested_item fd.num is exist - process it [07:17:40]SAM_PROTO_GetFieldsCounters [07:17:40]wFMCommunicate request_size=4 [07:17:40]MH_SAM_APDU [07:17:40]CAPDU: 80 13 00 00 [07:17:40]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:40]Read from MH i2c: E2 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 62 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 62 00 08 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 92 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [07:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 92 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:40]wFMCommunicate OK [07:17:40]SAM_PROTO_GetFieldsCounters done [07:17:40]requested_item shift.num is exist - process it [07:17:40]requested_item shift.opened is exist - process it [07:17:40]req_shift_opened [07:17:40]FM_GetShiftState [07:17:40]SAM_PROTO_GetShiftState [07:17:40]wFMCommunicate request_size=4 [07:17:40]MH_SAM_APDU [07:17:40]CAPDU: 80 13 01 00 [07:17:40]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [07:17:40]Write i2c OK [07:17:40]MH_I2C_Read... [07:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:40]Read from MH i2c: E2 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 0E 00 [07:17:40]MH_I2C_Read... [07:17:40]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 47 [07:17:40]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:17:40]wFMCommunicate OK [07:17:40]SAM_PROTO_GetShiftState done [07:17:40]FM_GetShiftState done [07:17:40]req_shift_opened done [07:17:40]requested_item shift.open_date is exist - process it [07:17:40]req_shift_open_date [07:17:40]req_shift_open_date done [07:17:40]produce_requested_data done [07:17:40]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178834,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:17:40]process_action_free close_receipt [07:17:40]json_value_free [07:17:40]json_value_free done [07:17:40]process_json_proto returns [07:17:40]Send response to host [07:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178834,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:17:40]free response buf [07:17:40]execute_script done [07:17:40]execute_script returns [07:17:40]free content buf [07:17:40]Sock 10.Close socket [07:17:40]Sock 10.Thread stoped [07:17:43]Connected sock=11 [07:17: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 37 37 38 0E 01 00 00 63 0B 06 01 8D D7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 58 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 12 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 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 12 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 BA 02 00 35 04 06 00 C5 B5 6C A2 64 37 19 7B 01 DB 0D 7F 61 BA [07:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DE E2 47 00 FE 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 37 37 38 10 04 04 00 92 BA 02 00 F4 03 04 00 BC 34 C9 66 B6 04 01 00 00 9F 23 79 A6 DF 5B 8C 69 [07:17:44]CommunicateWithHost err = 0 [07:17:44]CheckOFDResponse [07:17:44]1017 (14) - 77093643461234 [07:17:44]1041 (16) - 0000000000871778 [07:17:44]1040 (4) - 178834 [07:17:44]1012 (4) - 24.08.2024 01:17 [07:17:44]1206 (1) - 0 [07:17:44]OFD Sender: Remove packet 178834 [07:17:44]ProducePacketName [07:17:44]name=ofd_packets/00178834 [07:17:44]NVStorageDeleteData [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:54]recv_with_timeout no data received [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:43]recv_with_timeout no data received [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]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:23]recv_with_timeout no data received [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:19:57]accept exits with 7 [07:19:57]New connection [07:19:57]New thread 3067338084 created [07:19:57]Thread 3067194724 joined [07:19:57]Waiting for new connection... [07:19:57] Sock 7.Parse request [07:19:57]Sock 7.Check first char [07:19:57]Sock 7.First char is OK [07:19:57]request: POST /json_proto HTTP/1.0 [07:19:57]Method: POST [07:19:57]URL: /json_proto [07:19:57]Method is POST - this is cgi request [07:19:57]url: /json_proto [07:19:57]query_string will be loaded in cgi processing [07:19:57]execute_cgi json_proto POST (null) [07:19:57]execute_cgi path=json_proto method=POST [07:19:57]POST find Content-Length [07:19:57]Host: 172.17.44.131:8080 [07:19:57]Content-Length: 679 [07:19:57]Content-Type: application/json [07:19:57] [07:19:57]POST finish read [07:19:57]Found Content-Length = 679 [07:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:57]execute_script... [07:19: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)295026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:57]POST & json_proto [07:19:57]process_json_proto [07:19:57]json parsed OK: [07:19:57]protocol is kg_v1.0 [07:19:57]action value=close_receipt [07:19:57]process_action close_receipt [07:19:57]cmd_close_receipt [07:19:57]MH_GetDate [07:19:57]Write to MH i2c: F0 00 00 0A 03 FC [07:19:57]Write i2c OK [07:19:57]MH_I2C_Read... [07:19:57]Read from MH i2c: F0 [07:19:57]MH_I2C_Read... [07:19:57]Read from MH i2c: F0 09 00 [07:19:57]MH_I2C_Read... [07:19:57]Read from MH i2c: F0 09 00 0A 03 00 9E 89 C9 66 4F 53 BE 66 21 [07:19:57]GetLastDocTimeStamp 1724483858 [07:19:57]current date 1724483998 [07:19:57]FM_GetShiftState [07:19:57]SAM_PROTO_GetShiftState [07:19:57]wFMCommunicate request_size=4 [07:19:57]MH_SAM_APDU [07:19:57]CAPDU: 80 13 01 00 [07:19:57]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [07:19:57]Write i2c OK [07:19:57]MH_I2C_Read... [07:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:57]Read from MH i2c: E2 [07:19:57]MH_I2C_Read... [07:19:57]Read from MH i2c: E2 0E 00 [07:19:57]MH_I2C_Read... [07:19:57]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 49 [07:19:57]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:19:57]wFMCommunicate OK [07:19:57]SAM_PROTO_GetShiftState done [07:19:57]FM_GetShiftState done [07:19:57]opened in 1724458079 [07:19:57]opened+sec_in_day 1724544479 [07:19:57]quantity*price = 250012 [07:19:57]sum+1 = 250013 [07:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 61 24.08.2024 07:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178835 ФПД: 222856824289138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071958&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178835&fm=222856824289138&tin=02508201610067®Number=0000000000092561&sum=250000 [07:19:58]StoreToDocumentArchive [07:19:58]shift 471 fd 178835 [07:19:58]save to /storage/0471/doc_00178835 [07:19:58]save last doc name /storage/0471/doc_00178835 to /storage/kkm_last_doc_name [07:19:58]save OK [07:19:58]Clear old archive folders... [07:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:19:58]tlvbuf is 00E2CB00 [07:19:58]SAM_PROTO_ClearQueue [07:19:58]wFMCommunicate request_size=4 [07:19:58]MH_SAM_APDU [07:19:58]CAPDU: 80 09 00 00 [07:19:58]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [07:19:58]Write i2c OK [07:19:58]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [07:19:59]RAPDU: 90 00 [07:19:59]wFMCommunicate OK [07:19:59]SAM_PROTO_ClearQueue done [07:19:59]KKMCreateOFDPacket [07:19:59]OFDProtocolAddRootSTLVToBuf [07:19:59]FM_MakeSignedData [07:19:59]FM_MakeSignedData [07:19:59]SAM_PROTO_SignData [07:19:59]wFMCommunicate request_size=4 [07:19:59]MH_SAM_APDU [07:19:59]CAPDU: 80 0D 01 02 [07:19:59]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [07:19:59]RAPDU: 90 00 [07:19:59]wFMCommunicate OK [07:19:59]wFMCommunicate request_size=255 [07:19:59]MH_SAM_APDU [07:19:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 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 9E 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 BA 02 00 35 04 06 00 CA AF E5 D8 [07:19:59]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 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 9E 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 BA 02 00 35 04 06 00 CA AF E5 D8 00 00 74 [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [07:19:59]RAPDU: 90 00 [07:19:59]wFMCommunicate OK [07:19:59]wFMCommunicate request_size=7 [07:19:59]MH_SAM_APDU [07:19:59]CAPDU: 80 0D 02 02 02 F7 72 [07:19:59]Write to MH i2c: E2 0A 00 1B 03 80 0D 02 02 02 00 F7 72 00 00 05 [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [07:19:59]RAPDU: 90 00 [07:19:59]wFMCommunicate OK [07:19:59]wFMCommunicate request_size=4 [07:19:59]MH_SAM_APDU [07:19:59]CAPDU: 80 0D 03 02 [07:19:59]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 0B 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 0B 00 1C 03 00 75 86 25 D8 EF 88 24 FF 90 00 2D [07:19:59]RAPDU: 75 86 25 D8 EF 88 24 FF 90 00 [07:19:59]wFMCommunicate OK [07:19:59]SAM_PROTO_SignData done [07:19:59]FM_MakeSignedData done [07:19:59]CreateOFDProtocolMessage [07:19:59]wFMCommunicate request_size=4 [07:19:59]MH_SAM_APDU [07:19:59]CAPDU: 80 11 00 00 [07:19:59]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:59]Read from MH i2c: E2 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 17 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F3 [07:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:19:59]wFMCommunicate OK [07:19:59]CreateOFDProtocolMessage done [07:19:59]OFDSenderStorePacket 178835 [07:19:59]StoreOFDPacket docnum=178835 [07:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 AA B7 04 01 A7 B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 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 9E 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 BA 02 00 35 04 06 00 CA AF E5 D8 F7 72 75 86 25 D8 EF 88 24 FF [07:19:59]CheckFolder [07:19:59]dirname=/storage/ofd_packets [07:19:59]CheckFolder done [07:19:59]ProducePacketName [07:19:59]name=ofd_packets/00178835 [07:19:59]NVStorageSaveData ofd_packets/00178835 [07:19:59]File name is /storage/ofd_packets/00178835 [07:19:59]Write 298 bytes [07:19:59]NVStorageSaveData done [07:19:59]OFDSenderStorePacket done [07:19:59]KKMCreateOFDPacket done [07:19:59]NVStorageSaveData kkm_last_timestamp [07:19:59]File name is /storage/kkm_last_timestamp [07:19:59]Write 4 bytes [07:19:59]NVStorageSaveData done [07:19:59]ExternCall_PrintAddStr [07:19:59]wPrintStart [07:19:59]Write to MH i2c: 01 00 00 1E 03 21 [07:19:59]Write i2c OK [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: 01 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: 01 07 00 [07:19:59]MH_I2C_Read... [07:19:59]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [07:19:59]RasterBufferAndPrint [07:19:59]line Счет N : (1)295026 [07:19:59]line ИНН: 02508201610067 [07:19:59]line Контрольно-Кассовый Чек [07:19:59]line ПРОДАЖА [07:19:59]line ТРК (МРК, ГНК) : 21 [07:19:59]line Товар: 2710194800 [07:19:59]line ДТ-К-5 [07:19:59]line 32.810 * 76.20 [07:19:59]line = 2500.12 [07:19:59]line НДС 12% НСП 1% [07:19:59]line > о реализуемом товаре [07:19:59]line ОКРУГЛЕНИЕ: -0.12 [07:19:59]line ИТОГО: 2500.00 [07:19:59]line Внесено: 2500.00 [07:19:59]line СДАЧА: 0.00 [07:19:59]line НСП 1% : 22.12 [07:19:59]line НДС 12% : 265.50 [07:19:59]line Наличными: 2500.00 [07:19:59]line Безнал.: 0.00 [07:19:59]line Место: АЗС № 130 "Партнер Нефть" [07:19:59]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:19:59]line СНО: Общий режим [07:19:59]line Чек 61 24.08.2024 07:19 [07:19:59]line Смена: 471 ФФД: 1.0 [07:19:59]line ЗНМ: 0300000071 [07:19:59]line РНМ: 0000000000092561 [07:19:59]line Версия ККМ: 001 [07:19:59]line ФМ: 0000000000871778 [07:19:59]line ФД: 178835 [07:19:59]line ФПД: 222856824289138 [07:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T071958&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178835&fm=222856824289138&tin=02508201610067®Number=0000000000092561&sum=250000 [07:19:59]OFD Sender: Processing packet 178835 [packets to send 500, broken 499] [07:19:59]ProducePacketName [07:19:59]name=ofd_packets/00178835 [07:19:59]OFD Sender: To server: pG, [07:19:59]CommunicateWithHost lk.salyk.kg:30040 [07:19:59]ConnectInit lk.salyk.kg [07:19:59]written 0, free lines is 4095 [07:20:00]Write to MH i2c: 01 00 00 49 03 4C [07:20:00]Write i2c OK [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: 01 [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: 01 07 00 [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 CF 0C 2E [07:20:00]RasterBufferAndPrint [07:20:00]line [07:20:00]line [07:20:00]line [07:20:00]line [07:20:00]line [07:20:00]written 0, free lines is 3285 [07:20:00]MH_Cut [07:20:00]Write to MH i2c: D1 01 00 50 03 01 25 [07:20:00]Write i2c OK [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: D1 [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: D1 01 00 [07:20:00]MH_I2C_Read... [07:20:00]Read from MH i2c: D1 01 00 50 03 00 24 [07:20:00]Write to MH i2c: 01 00 00 51 03 54 [07:20:00]Write i2c OK [07:20:00]MH_I2C_Read... [07:20:01]*** Cut start [07:20:01]*** Partial cut [07:20:01]*** CUTSNS_PIN = 1 [07:20:01]*** CUTSNS_PIN = 0 [07:20:01]*** Brake cut motor [07:20:01]Read from MH i2c: 01 [07:20:01]MH_I2C_Read... [07:20:01]*** Stop cut motor [07:20:01]*** Cut end [07:20:01]Read from MH i2c: 01 07 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [07:20:01]process_action close_receipt done [07:20:01]requested_data is exist [07:20:01]produce_requested_data [07:20:01]requested_item fm.sn is exist - process it [07:20:01]wFMCommunicate request_size=4 [07:20:01]MH_SAM_APDU [07:20:01]CAPDU: 80 11 00 00 [07:20:01]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [07:20:01]Write i2c OK [07:20:01]MH_I2C_Read... [07:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:01]Read from MH i2c: E2 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 17 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 28 [07:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:20:01]wFMCommunicate OK [07:20:01]requested_item fd.num is exist - process it [07:20:01]SAM_PROTO_GetFieldsCounters [07:20:01]wFMCommunicate request_size=4 [07:20:01]MH_SAM_APDU [07:20:01]CAPDU: 80 13 00 00 [07:20:01]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [07:20:01]Write i2c OK [07:20:01]MH_I2C_Read... [07:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:01]Read from MH i2c: E2 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 62 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 62 00 53 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 93 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [07:20: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 93 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:20:01]wFMCommunicate OK [07:20:01]SAM_PROTO_GetFieldsCounters done [07:20:01]requested_item shift.num is exist - process it [07:20:01]requested_item shift.opened is exist - process it [07:20:01]req_shift_opened [07:20:01]FM_GetShiftState [07:20:01]SAM_PROTO_GetShiftState [07:20:01]wFMCommunicate request_size=4 [07:20:01]MH_SAM_APDU [07:20:01]CAPDU: 80 13 01 00 [07:20:01]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [07:20:01]Write i2c OK [07:20:01]MH_I2C_Read... [07:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:01]Read from MH i2c: E2 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 0E 00 [07:20:01]MH_I2C_Read... [07:20:01]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 92 [07:20:01]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:20:01]wFMCommunicate OK [07:20:01]SAM_PROTO_GetShiftState done [07:20:01]FM_GetShiftState done [07:20:01]req_shift_opened done [07:20:01]requested_item shift.open_date is exist - process it [07:20:01]req_shift_open_date [07:20:01]req_shift_open_date done [07:20:01]produce_requested_data done [07:20:01]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178835,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:20:01]process_action_free close_receipt [07:20:01]json_value_free [07:20:01]json_value_free done [07:20:01]process_json_proto returns [07:20:01]Send response to host [07:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178835,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:20:01]free response buf [07:20:01]execute_script done [07:20:01]execute_script returns [07:20:01]free content buf [07:20:01]Sock 7.Close socket [07:20:01]Sock 7.Thread stoped [07:20:04]ConnectInit Can't take IP for lk.salyk.kg [07:20:04]CommunicateWithHost connect error [07:20:04]CommunicateWithHost err = -1 [07:20:04]OFD Sender: Server communicate error [07:20:05]recv_with_timeout no data received [07:20:09]OFD Sender: Processing packet 178835 [packets to send 500, broken 499] [07:20:09]ProducePacketName [07:20:09]name=ofd_packets/00178835 [07:20:09]OFD Sender: To server: pG, [07:20:09]CommunicateWithHost lk.salyk.kg:30040 [07:20:09]ConnectInit lk.salyk.kg [07:22:18]accept exits with 10 [07:22:18]New connection [07:22:18]New thread 3067194724 created [07:22:18]Thread 3067338084 joined [07:22:18]Waiting for new connection... [07:22:18] Sock 10.Parse request [07:22:18]Sock 10.Check first char [07:22:18]Sock 10.First char is OK [07:22:18]request: POST /json_proto HTTP/1.0 [07:22:18]Method: POST [07:22:18]URL: /json_proto [07:22:18]Method is POST - this is cgi request [07:22:18]url: /json_proto [07:22:18]query_string will be loaded in cgi processing [07:22:18]execute_cgi json_proto POST (null) [07:22:18]execute_cgi path=json_proto method=POST [07:22:18]POST find Content-Length [07:22:18]Host: 172.17.44.131:8080 [07:22:18]Content-Length: 667 [07:22:18]Content-Type: application/json [07:22:18] [07:22:18]POST finish read [07:22:18]Found Content-Length = 667 [07:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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" ] } } [07:22:18]execute_script... [07:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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" ] } } [07:22:18]POST & json_proto [07:22:18]process_json_proto [07:22:18]json parsed OK: [07:22:18]protocol is kg_v1.0 [07:22:18]action value=close_receipt [07:22:18]process_action close_receipt [07:22:18]cmd_close_receipt [07:22:18]MH_GetDate [07:22:18]Write to MH i2c: F0 00 00 55 03 47 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: F0 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: F0 09 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: F0 09 00 55 03 00 2B 8A C9 66 4F 53 BE 66 FA [07:22:18]GetLastDocTimeStamp 1724483998 [07:22:18]current date 1724484139 [07:22:18]FM_GetShiftState [07:22:18]SAM_PROTO_GetShiftState [07:22:18]wFMCommunicate request_size=4 [07:22:18]MH_SAM_APDU [07:22:18]CAPDU: 80 13 01 00 [07:22:18]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:18]Read from MH i2c: E2 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 0E 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 94 [07:22:18]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:22:18]wFMCommunicate OK [07:22:18]SAM_PROTO_GetShiftState done [07:22:18]FM_GetShiftState done [07:22:18]opened in 1724458079 [07:22:18]opened+sec_in_day 1724544479 [07:22:18]quantity*price = 50017 [07:22:18]sum+1 = 50019 [07:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 62 24.08.2024 07:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178836 ФПД: 85158024590035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T072219&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178836&fm=85158024590035&tin=02508201610067®Number=0000000000092561&sum=50000 [07:22:19]StoreToDocumentArchive [07:22:19]shift 471 fd 178836 [07:22:19]save to /storage/0471/doc_00178836 [07:22:19]save last doc name /storage/0471/doc_00178836 to /storage/kkm_last_doc_name [07:22:19]save OK [07:22:19]Clear old archive folders... [07:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=249 [07:22:19]tlvbuf is 00EF6A90 [07:22:19]SAM_PROTO_ClearQueue [07:22:19]wFMCommunicate request_size=4 [07:22:19]MH_SAM_APDU [07:22:19]CAPDU: 80 09 00 00 [07:22:19]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [07:22:19]Write i2c OK [07:22:19]MH_I2C_Read... [07:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:19]Read from MH i2c: E2 [07:22:19]MH_I2C_Read... [07:22:19]Read from MH i2c: E2 03 00 [07:22:19]MH_I2C_Read... [07:22:19]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [07:22:19]RAPDU: 90 00 [07:22:19]wFMCommunicate OK [07:22:19]SAM_PROTO_ClearQueue done [07:22:19]KKMCreateOFDPacket [07:22:19]OFDProtocolAddRootSTLVToBuf [07:22:19]FM_MakeSignedData [07:22:19]FM_MakeSignedData [07:22:19]SAM_PROTO_SignData [07:22:19]wFMCommunicate request_size=4 [07:22:19]MH_SAM_APDU [07:22:19]CAPDU: 80 0D 01 02 [07:22:19]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [07:22:19]Write i2c OK [07:22:19]MH_I2C_Read... [07:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:19]Read from MH i2c: E2 [07:22:19]MH_I2C_Read... [07:22:19]Read from MH i2c: E2 03 00 [07:22:19]MH_I2C_Read... [07:22:19]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [07:22:19]RAPDU: 90 00 [07:22:19]wFMCommunicate OK [07:22:19]wFMCommunicate request_size=255 [07:22:19]MH_SAM_APDU [07:22:19]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 3E 00 00 00 F4 03 04 00 2B 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 BA 02 00 35 04 06 00 4D 73 65 [07:22:19]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 3E 00 00 00 F4 03 04 00 2B 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 BA 02 00 35 04 06 00 4D 73 65 00 00 6E [07:22:19]Write i2c OK [07:22:19]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 03 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [07:22:20]RAPDU: 90 00 [07:22:20]wFMCommunicate OK [07:22:20]wFMCommunicate request_size=8 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 0D 02 02 03 CE 32 D3 [07:22:20]Write to MH i2c: E2 0B 00 66 03 80 0D 02 02 03 00 CE 32 D3 00 00 BC [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 03 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [07:22:20]RAPDU: 90 00 [07:22:20]wFMCommunicate OK [07:22:20]wFMCommunicate request_size=4 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 0D 03 02 [07:22:20]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 0B 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 0B 00 67 03 00 7E 31 5C A8 AE 43 C4 53 90 00 A1 [07:22:20]RAPDU: 7E 31 5C A8 AE 43 C4 53 90 00 [07:22:20]wFMCommunicate OK [07:22:20]SAM_PROTO_SignData done [07:22:20]FM_MakeSignedData done [07:22:20]CreateOFDProtocolMessage [07:22:20]wFMCommunicate request_size=4 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 11 00 00 [07:22:20]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 17 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3E [07:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:22:20]wFMCommunicate OK [07:22:20]CreateOFDProtocolMessage done [07:22:20]OFDSenderStorePacket 178836 [07:22:20]StoreOFDPacket docnum=178836 [07:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 D0 DB 05 01 2C 6D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 3E 00 00 00 F4 03 04 00 2B 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 BA 02 00 35 04 06 00 4D 73 65 CE 32 D3 7E 31 5C A8 AE 43 C4 53 [07:22:20]CheckFolder [07:22:20]dirname=/storage/ofd_packets [07:22:20]CheckFolder done [07:22:20]ProducePacketName [07:22:20]name=ofd_packets/00178836 [07:22:20]NVStorageSaveData ofd_packets/00178836 [07:22:20]File name is /storage/ofd_packets/00178836 [07:22:20]Write 299 bytes [07:22:20]NVStorageSaveData done [07:22:20]OFDSenderStorePacket done [07:22:20]KKMCreateOFDPacket done [07:22:20]NVStorageSaveData kkm_last_timestamp [07:22:20]File name is /storage/kkm_last_timestamp [07:22:20]Write 4 bytes [07:22:20]NVStorageSaveData done [07:22:20]ExternCall_PrintAddStr [07:22:20]wPrintStart [07:22:20]Write to MH i2c: 01 00 00 69 03 6C [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 07 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [07:22:20]RasterBufferAndPrint [07:22:20]line Счет N : (1)295029 [07:22:20]line ИНН: 02508201610067 [07:22:20]line Контрольно-Кассовый Чек [07:22:20]line ПРОДАЖА [07:22:20]line ТРК (МРК, ГНК) : 61 [07:22:20]line Товар: 2710124130 [07:22:20]line SU-92-К-5 [07:22:20]line 7.270 * 68.80 [07:22:20]line = 500.18 [07:22:20]line НДС 12% НСП 1% [07:22:20]line > о реализуемом товаре [07:22:20]line ОКРУГЛЕНИЕ: -0.18 [07:22:20]line ИТОГО: 500.00 [07:22:20]line Внесено: 500.00 [07:22:20]line СДАЧА: 0.00 [07:22:20]line НСП 1% : 4.43 [07:22:20]line НДС 12% : 53.12 [07:22:20]line Наличными: 500.00 [07:22:20]line Безнал.: 0.00 [07:22:20]line Место: АЗС № 130 "Партнер Нефть" [07:22:20]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:22:20]line СНО: Общий режим [07:22:20]line Чек 62 24.08.2024 07:22 [07:22:20]line Смена: 471 ФФД: 1.0 [07:22:20]line ЗНМ: 0300000071 [07:22:20]line РНМ: 0000000000092561 [07:22:20]line Версия ККМ: 001 [07:22:20]line ФМ: 0000000000871778 [07:22:20]line ФД: 178836 [07:22:20]line ФПД: 85158024590035 [07:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T072219&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178836&fm=85158024590035&tin=02508201610067®Number=0000000000092561&sum=50000 [07:22:20]written 0, free lines is 4095 [07:22:20]Write to MH i2c: 01 00 00 94 03 97 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 07 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 BF 0C 69 [07:22:20]RasterBufferAndPrint [07:22:20]line [07:22:20]line [07:22:20]line [07:22:20]line [07:22:20]line [07:22:20]written 0, free lines is 3269 [07:22:20]MH_Cut [07:22:20]Write to MH i2c: D1 01 00 9B 03 01 70 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: D1 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: D1 01 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: D1 01 00 9B 03 00 6F [07:22:20]Write to MH i2c: 01 00 00 9C 03 9F [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:21]*** Cut start [07:22:21]*** Partial cut [07:22:21]*** CUTSNS_PIN = 1 [07:22:21]*** CUTSNS_PIN = 0 [07:22:21]*** Brake cut motor [07:22:22]Read from MH i2c: 01 [07:22:22]MH_I2C_Read... [07:22:22]*** Stop cut motor [07:22:22]*** Cut end [07:22:22]Read from MH i2c: 01 07 00 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [07:22:22]process_action close_receipt done [07:22:22]requested_data is exist [07:22:22]produce_requested_data [07:22:22]requested_item fm.sn is exist - process it [07:22:22]wFMCommunicate request_size=4 [07:22:22]MH_SAM_APDU [07:22:22]CAPDU: 80 11 00 00 [07:22:22]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [07:22:22]Write i2c OK [07:22:22]MH_I2C_Read... [07:22:22]ConnectInit Can't connect to host [07:22:22]CommunicateWithHost connect error [07:22:22]CommunicateWithHost err = -1 [07:22:22]OFD Sender: Server communicate error [07:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:22]Read from MH i2c: E2 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 17 00 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 73 [07:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:22:22]wFMCommunicate OK [07:22:22]requested_item fd.num is exist - process it [07:22:22]SAM_PROTO_GetFieldsCounters [07:22:22]wFMCommunicate request_size=4 [07:22:22]MH_SAM_APDU [07:22:22]CAPDU: 80 13 00 00 [07:22:22]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [07:22:22]Write i2c OK [07:22:22]MH_I2C_Read... [07:22:22]OFD Sender: Processing packet 178835 [packets to send 501, broken 499] [07:22:22]ProducePacketName [07:22:22]name=ofd_packets/00178835 [07:22:22]OFD Sender: To server: pG, [07:22:22]CommunicateWithHost lk.salyk.kg:30040 [07:22:22]ConnectInit lk.salyk.kg [07:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:22]Read from MH i2c: E2 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 62 00 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 62 00 9E 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 94 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [07:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 94 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:22]wFMCommunicate OK [07:22:22]SAM_PROTO_GetFieldsCounters done [07:22:22]requested_item shift.num is exist - process it [07:22:22]requested_item shift.opened is exist - process it [07:22:22]req_shift_opened [07:22:22]FM_GetShiftState [07:22:22]SAM_PROTO_GetShiftState [07:22:22]wFMCommunicate request_size=4 [07:22:22]MH_SAM_APDU [07:22:22]CAPDU: 80 13 01 00 [07:22:22]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [07:22:22]Write i2c OK [07:22:22]MH_I2C_Read... [07:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:22]Read from MH i2c: E2 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 0E 00 [07:22:22]MH_I2C_Read... [07:22:22]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 DD [07:22:22]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:22:22]wFMCommunicate OK [07:22:22]SAM_PROTO_GetShiftState done [07:22:22]FM_GetShiftState done [07:22:22]req_shift_opened done [07:22:22]requested_item shift.open_date is exist - process it [07:22:22]req_shift_open_date [07:22:22]req_shift_open_date done [07:22:22]produce_requested_data done [07:22:22]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178836,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:22:22]process_action_free close_receipt [07:22:22]json_value_free [07:22:22]json_value_free done [07:22:22]process_json_proto returns [07:22:22]Send response to host [07:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178836,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:22:22]free response buf [07:22:22]execute_script done [07:22:22]execute_script returns [07:22:22]free content buf [07:22:22]Sock 10.Close socket [07:22:22]Sock 10.Thread stoped [07:22:29]recv_with_timeout no data received [07:22:30]Connected sock=7 [07:22: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 37 37 38 0C 01 00 00 AA B7 04 01 A7 B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 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 9E 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 BA 02 00 35 04 06 00 CA AF E5 D8 F7 72 75 86 25 D8 EF 88 24 FF [07:22:31]accept exits with 9 [07:22:31]New connection [07:22:31]New thread 3067338084 created [07:22:31]Thread 3067194724 joined [07:22:31]Waiting for new connection... [07:22:31] Sock 9.Parse request [07:22:31]Sock 9.Check first char [07:22:31]Sock 9.First char is OK [07:22:31]request: POST /json_proto HTTP/1.0 [07:22:31]Method: POST [07:22:31]URL: /json_proto [07:22:31]Method is POST - this is cgi request [07:22:31]url: /json_proto [07:22:31]query_string will be loaded in cgi processing [07:22:31]execute_cgi json_proto POST (null) [07:22:31]execute_cgi path=json_proto method=POST [07:22:31]POST find Content-Length [07:22:31]Host: 172.17.44.131:8080 [07:22:31]Content-Length: 803 [07:22:31]Content-Type: application/json [07:22:31] [07:22:31]POST finish read [07:22:31]Found Content-Length = 803 [07:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.660, "sum" : 1384.57, "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" : 1384.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:31]execute_script... [07:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 18.660, "sum" : 1384.57, "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" : 1384.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:31]POST & json_proto [07:22:31]process_json_proto [07:22:31]json parsed OK: [07:22:31]protocol is kg_v1.0 [07:22:31]action value=close_receipt [07:22:31]process_action close_receipt [07:22:31]cmd_close_receipt [07:22:31]MH_GetDate [07:22:31]Write to MH i2c: F0 00 00 A0 03 92 [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 09 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 09 00 A0 03 00 38 8A C9 66 4F 53 BE 66 52 [07:22:31]GetLastDocTimeStamp 1724484139 [07:22:31]current date 1724484152 [07:22:31]FM_GetShiftState [07:22:31]SAM_PROTO_GetShiftState [07:22:31]wFMCommunicate request_size=4 [07:22:31]MH_SAM_APDU [07:22:31]CAPDU: 80 13 01 00 [07:22:31]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:31]Read from MH i2c: E2 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 0E 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 DF [07:22:31]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:22:31]wFMCommunicate OK [07:22:31]SAM_PROTO_GetShiftState done [07:22:31]FM_GetShiftState done [07:22:31]opened in 1724458079 [07:22:31]opened+sec_in_day 1724544479 [07:22:31]quantity*price = 138457 [07:22:31]sum+1 = 138458 [07:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1384.57 НСП 1% : 12.25 НДС 12% : 147.03 Наличными: 0.00 Безнал.: 1384.57 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 63 24.08.2024 07:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178837 ФПД: 211222151715231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T072232&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178837&fm=211222151715231&tin=02508201610067®Number=0000000000092561&sum=138457 [07:22:32]StoreToDocumentArchive [07:22:32]shift 471 fd 178837 [07:22:32]save to /storage/0471/doc_00178837 [07:22:32]save last doc name /storage/0471/doc_00178837 to /storage/kkm_last_doc_name [07:22:32]save OK [07:22:32]Clear old archive folders... [07:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:32]tlvbuf is 00EB42B0 [07:22:32]SAM_PROTO_ClearQueue [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 09 00 00 [07:22:32]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]SAM_PROTO_ClearQueue done [07:22:32]KKMCreateOFDPacket [07:22:32]OFDProtocolAddRootSTLVToBuf [07:22:32]FM_MakeSignedData [07:22:32]FM_MakeSignedData [07:22:32]SAM_PROTO_SignData [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 01 02 [07:22:32]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:33]Read from MH i2c: E2 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [07:22:33]RAPDU: 90 00 [07:22:33]wFMCommunicate OK [07:22:33]wFMCommunicate request_size=255 [07:22:33]MH_SAM_APDU [07:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D9 1C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 1C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 1C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 38 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 BA 02 00 35 04 06 00 C0 [07:22:33]Write to MH i2c: E2 02 01 B0 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 E4 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D9 1C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 1C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 1C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 38 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 BA 02 00 35 04 06 00 C0 00 00 F4 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:33]Read from MH i2c: E2 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [07:22:33]RAPDU: 90 00 [07:22:33]wFMCommunicate OK [07:22:33]wFMCommunicate request_size=10 [07:22:33]MH_SAM_APDU [07:22:33]CAPDU: 80 0D 02 02 05 1A FD 52 59 9F [07:22:33]Write to MH i2c: E2 0D 00 B1 03 80 0D 02 02 05 00 1A FD 52 59 9F 00 00 99 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:33]Read from MH i2c: E2 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [07:22:33]RAPDU: 90 00 [07:22:33]wFMCommunicate OK [07:22:33]wFMCommunicate request_size=4 [07:22:33]MH_SAM_APDU [07:22:33]CAPDU: 80 0D 03 02 [07:22:33]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:33]Read from MH i2c: E2 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 0B 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 0B 00 B2 03 00 CB 25 B6 55 7A 7C 52 0E 90 00 82 [07:22:33]RAPDU: CB 25 B6 55 7A 7C 52 0E 90 00 [07:22:33]wFMCommunicate OK [07:22:33]SAM_PROTO_SignData done [07:22:33]FM_MakeSignedData done [07:22:33]CreateOFDProtocolMessage [07:22:33]wFMCommunicate request_size=4 [07:22:33]MH_SAM_APDU [07:22:33]CAPDU: 80 11 00 00 [07:22:33]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:33]Read from MH i2c: E2 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 17 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 89 [07:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:22:33]wFMCommunicate OK [07:22:33]CreateOFDProtocolMessage done [07:22:33]OFDSenderStorePacket 178837 [07:22:33]StoreOFDPacket docnum=178837 [07:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E9 D0 07 01 92 23 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 E4 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D9 1C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 1C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 1C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 38 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 BA 02 00 35 04 06 00 C0 1A FD 52 59 9F CB 25 B6 55 7A 7C 52 0E [07:22:33]CheckFolder [07:22:33]dirname=/storage/ofd_packets [07:22:33]CheckFolder done [07:22:33]ProducePacketName [07:22:33]name=ofd_packets/00178837 [07:22:33]NVStorageSaveData ofd_packets/00178837 [07:22:33]File name is /storage/ofd_packets/00178837 [07:22:33]Write 301 bytes [07:22:33]NVStorageSaveData done [07:22:33]OFDSenderStorePacket done [07:22:33]KKMCreateOFDPacket done [07:22:33]NVStorageSaveData kkm_last_timestamp [07:22:33]File name is /storage/kkm_last_timestamp [07:22:33]Write 4 bytes [07:22:33]NVStorageSaveData done [07:22:33]ExternCall_PrintAddStr [07:22:33]wPrintStart [07:22:33]Write to MH i2c: 01 00 00 B4 03 B7 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [07:22:33]RasterBufferAndPrint [07:22:33]line Счет N : (1)295028 [07:22:33]line ИНН: 02508201610067 [07:22:33]line Контрольно-Кассовый Чек [07:22:33]line ПРОДАЖА [07:22:33]line ТРК (МРК, ГНК) : 53 [07:22:33]line Товар: 2710124500 [07:22:33]line Аи-95-К-5 [07:22:33]line 18.660 * 74.20 [07:22:33]line = 1384.57 [07:22:33]line НДС 12% НСП 1% [07:22:33]line > о реализуемом товаре [07:22:33]line ИТОГО: 1384.57 [07:22:33]line НСП 1% : 12.25 [07:22:33]line НДС 12% : 147.03 [07:22:33]line Наличными: 0.00 [07:22:33]line Безнал.: 1384.57 [07:22:33]line Место: АЗС № 130 "Партнер Нефть" [07:22:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:22:33]line СНО: Общий режим [07:22:33]line Чек 63 24.08.2024 07:22 [07:22:33]line Смена: 471 ФФД: 1.0 [07:22:33]line ЗНМ: 0300000071 [07:22:33]line РНМ: 0000000000092561 [07:22:33]line Версия ККМ: 001 [07:22:33]line Платежная система: O! деньги [07:22:33]line ФМ: 0000000000871778 [07:22:33]line ФД: 178837 [07:22:33]line ФПД: 211222151715231 [07:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T072232&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178837&fm=211222151715231&tin=02508201610067®Number=0000000000092561&sum=138457 [07:22:33]written 0, free lines is 4095 [07:22:33]Write to MH i2c: 01 00 00 DE 03 E1 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 CD 0C C1 [07:22:33]RasterBufferAndPrint [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]written 0, free lines is 3290 [07:22:33]MH_Cut [07:22:33]Write to MH i2c: D1 01 00 E5 03 01 BA [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 E5 03 00 B9 [07:22:33]Write to MH i2c: 01 00 00 E6 03 E9 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:34]*** Cut start [07:22:34]*** Partial cut [07:22:34]*** CUTSNS_PIN = 1 [07:22:34]*** CUTSNS_PIN = 0 [07:22:34]*** Brake cut motor [07:22:35]Read from MH i2c: 01 [07:22:35]MH_I2C_Read... [07:22:35]recv_with_timeout no data received [07:22:35]CommunicateWithHost answer receiving error [07:22:35]CommunicateWithHost err = -3 [07:22:35]OFD Sender: Server communicate error [07:22:35]*** Stop cut motor [07:22:35]*** Cut end [07:22:35]Read from MH i2c: 01 07 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [07:22:35]process_action close_receipt done [07:22:35]requested_data is exist [07:22:35]produce_requested_data [07:22:35]requested_item fm.sn is exist - process it [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 11 00 00 [07:22:35]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 17 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BD [07:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:22:35]wFMCommunicate OK [07:22:35]requested_item fd.num is exist - process it [07:22:35]SAM_PROTO_GetFieldsCounters [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 13 00 00 [07:22:35]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]OFD Sender: Processing packet 178835 [packets to send 502, broken 499] [07:22:35]ProducePacketName [07:22:35]name=ofd_packets/00178835 [07:22:35]OFD Sender: To server: pG, [07:22:35]CommunicateWithHost lk.salyk.kg:30040 [07:22:35]ConnectInit lk.salyk.kg [07:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 62 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 62 00 E8 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 95 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [07:22: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 95 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:35]wFMCommunicate OK [07:22:35]SAM_PROTO_GetFieldsCounters done [07:22:35]requested_item shift.num is exist - process it [07:22:35]requested_item shift.opened is exist - process it [07:22:35]req_shift_opened [07:22:35]FM_GetShiftState [07:22:35]SAM_PROTO_GetShiftState [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 13 01 00 [07:22:35]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 0E 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 27 [07:22:35]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:22:35]wFMCommunicate OK [07:22:35]SAM_PROTO_GetShiftState done [07:22:35]FM_GetShiftState done [07:22:35]req_shift_opened done [07:22:35]requested_item shift.open_date is exist - process it [07:22:35]req_shift_open_date [07:22:35]req_shift_open_date done [07:22:35]produce_requested_data done [07:22:35]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178837,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [07:22:35]process_action_free close_receipt [07:22:35]json_value_free [07:22:35]json_value_free done [07:22:35]process_json_proto returns [07:22:35]Send response to host [07:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178837,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [07:22:35]free response buf [07:22:35]execute_script done [07:22:35]execute_script returns [07:22:35]free content buf [07:22:35]Sock 9.Close socket [07:22:35]Sock 9.Thread stoped [07:22:39]Connected sock=7 [07:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 AA B7 04 01 A7 B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 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 9E 89 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 BA 02 00 35 04 06 00 CA AF E5 D8 F7 72 75 86 25 D8 EF 88 24 FF [07:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 2C B9 47 00 08 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 37 37 38 10 04 04 00 93 BA 02 00 F4 03 04 00 E4 35 C9 66 B6 04 01 00 00 50 79 F3 05 CB 49 93 7D [07:22:41]CommunicateWithHost err = 0 [07:22:41]CheckOFDResponse [07:22:41]1017 (14) - 77093643461234 [07:22:41]1041 (16) - 0000000000871778 [07:22:41]1040 (4) - 178835 [07:22:41]1012 (4) - 24.08.2024 01:22 [07:22:41]1206 (1) - 0 [07:22:41]OFD Sender: Remove packet 178835 [07:22:41]ProducePacketName [07:22:41]name=ofd_packets/00178835 [07:22:41]NVStorageDeleteData [07:22:41]OFD Sender: Processing packet 178836 [packets to send 501, broken 499] [07:22:41]ProducePacketName [07:22:41]name=ofd_packets/00178836 [07:22:41]OFD Sender: To server: pG, [07:22:41]CommunicateWithHost lk.salyk.kg:30040 [07:22:41]ConnectInit lk.salyk.kg [07:22:46]Connected sock=7 [07:22: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 37 37 38 0D 01 00 00 D0 DB 05 01 2C 6D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 3E 00 00 00 F4 03 04 00 2B 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 BA 02 00 35 04 06 00 4D 73 65 CE 32 D3 7E 31 5C A8 AE 43 C4 53 [07:22:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B0 EC 47 00 CC 3F 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 37 37 38 10 04 04 00 94 BA 02 00 F4 03 04 00 EB 35 C9 66 B6 04 01 00 00 BB 4E 23 D4 87 D2 14 D1 [07:22:48]CommunicateWithHost err = 0 [07:22:48]CheckOFDResponse [07:22:48]1017 (14) - 77093643461234 [07:22:48]1041 (16) - 0000000000871778 [07:22:48]1040 (4) - 178836 [07:22:48]1012 (4) - 24.08.2024 01:22 [07:22:48]1206 (1) - 0 [07:22:48]OFD Sender: Remove packet 178836 [07:22:48]ProducePacketName [07:22:48]name=ofd_packets/00178836 [07:22:48]NVStorageDeleteData [07:22:49]OFD Sender: Processing packet 178837 [packets to send 500, broken 499] [07:22:49]ProducePacketName [07:22:49]name=ofd_packets/00178837 [07:22:49]OFD Sender: To server: pG, [07:22:49]CommunicateWithHost lk.salyk.kg:30040 [07:22:49]ConnectInit lk.salyk.kg [07:22:58]recv_with_timeout no data received [07:23:33]recv_with_timeout no data received [07:23:50]recv_with_timeout no data received [07:25:06]ConnectInit Can't connect to host [07:25:06]CommunicateWithHost connect error [07:25:06]CommunicateWithHost err = -1 [07:25:06]OFD Sender: Server communicate error [07:25:11]OFD Sender: Processing packet 178837 [packets to send 500, broken 499] [07:25:11]ProducePacketName [07:25:11]name=ofd_packets/00178837 [07:25:11]OFD Sender: To server: pG, [07:25:11]CommunicateWithHost lk.salyk.kg:30040 [07:25:11]ConnectInit lk.salyk.kg [07:25:12]Connected sock=9 [07:25: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 37 37 38 0F 01 00 00 E9 D0 07 01 92 23 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 E4 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D9 1C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 1C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 1C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 38 8A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 BA 02 00 35 04 06 00 C0 1A FD 52 59 9F CB 25 B6 55 7A 7C 52 0E [07:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CF C5 47 00 FC 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 BA 02 00 F4 03 04 00 7D 36 C9 66 B6 04 01 00 00 C7 E0 50 26 4E 4D 01 19 [07:25:13]CommunicateWithHost err = 0 [07:25:13]CheckOFDResponse [07:25:13]1017 (14) - 77093643461234 [07:25:13]1041 (16) - 0000000000871778 [07:25:13]1040 (4) - 178837 [07:25:13]1012 (4) - 24.08.2024 01:25 [07:25:13]1206 (1) - 0 [07:25:13]OFD Sender: Remove packet 178837 [07:25:13]ProducePacketName [07:25:13]name=ofd_packets/00178837 [07:25:13]NVStorageDeleteData [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:22]recv_with_timeout no data received [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:46]recv_with_timeout no data received [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:10]recv_with_timeout no data received [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:56]recv_with_timeout no data received [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:42]recv_with_timeout no data received [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:00]recv_with_timeout no data received [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:19]recv_with_timeout no data received [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:40]recv_with_timeout no data received [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:32:57]recv_with_timeout no data received [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:04]recv_with_timeout no data received [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]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:42]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:45:41]ConnectInit Can't connect to host [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:45:57]recv_with_timeout no data received [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:23]recv_with_timeout no data received [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]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:10]accept exits with 10 [07:49:10]New connection [07:49:10]New thread 3067194724 created [07:49:10]Thread 3067338084 joined [07:49:10]Waiting for new connection... [07:49:10] Sock 10.Parse request [07:49:10]Sock 10.Check first char [07:49:10]Sock 10.First char is OK [07:49:10]request: POST /json_proto HTTP/1.0 [07:49:10]Method: POST [07:49:10]URL: /json_proto [07:49:10]Method is POST - this is cgi request [07:49:10]url: /json_proto [07:49:10]query_string will be loaded in cgi processing [07:49:10]execute_cgi json_proto POST (null) [07:49:10]execute_cgi path=json_proto method=POST [07:49:10]POST find Content-Length [07:49:10]Host: 172.17.44.131:8080 [07:49:10]Content-Length: 682 [07:49:10]Content-Type: application/json [07:49:10] [07:49:10]POST finish read [07:49:10]Found Content-Length = 682 [07:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:49:10]execute_script... [07:49:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:49:10]POST & json_proto [07:49:10]process_json_proto [07:49:10]json parsed OK: [07:49:10]protocol is kg_v1.0 [07:49:10]action value=close_receipt [07:49:10]process_action close_receipt [07:49:10]cmd_close_receipt [07:49:10]MH_GetDate [07:49:10]Write to MH i2c: F0 00 00 EA 03 DC [07:49:10]Write i2c OK [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: F0 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: F0 09 00 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: F0 09 00 EA 03 00 77 90 C9 66 4F 53 BE 66 E1 [07:49:10]GetLastDocTimeStamp 1724484152 [07:49:10]current date 1724485751 [07:49:10]FM_GetShiftState [07:49:10]SAM_PROTO_GetShiftState [07:49:10]wFMCommunicate request_size=4 [07:49:10]MH_SAM_APDU [07:49:10]CAPDU: 80 13 01 00 [07:49:10]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [07:49:10]Write i2c OK [07:49:10]MH_I2C_Read... [07:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:10]Read from MH i2c: E2 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: E2 0E 00 [07:49:10]MH_I2C_Read... [07:49:10]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 29 [07:49:10]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [07:49:10]wFMCommunicate OK [07:49:10]SAM_PROTO_GetShiftState done [07:49:10]FM_GetShiftState done [07:49:10]opened in 1724458079 [07:49:10]opened+sec_in_day 1724544479 [07:49:10]quantity*price = 100005 [07:49:10]sum+1 = 100006 [07:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 64 24.08.2024 07:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178838 ФПД: 141457337465849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T074911&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178838&fm=141457337465849&tin=02508201610067®Number=0000000000092561&sum=100000 [07:49:11]StoreToDocumentArchive [07:49:11]shift 471 fd 178838 [07:49:11]save to /storage/0471/doc_00178838 [07:49:11]save last doc name /storage/0471/doc_00178838 to /storage/kkm_last_doc_name [07:49:11]save OK [07:49:11]Clear old archive folders... [07:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:11]tlvbuf is 00EAC5A0 [07:49:11]SAM_PROTO_ClearQueue [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 09 00 00 [07:49:11]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [07:49:11]RAPDU: 90 00 [07:49:11]wFMCommunicate OK [07:49:11]SAM_PROTO_ClearQueue done [07:49:11]KKMCreateOFDPacket [07:49:11]OFDProtocolAddRootSTLVToBuf [07:49:11]FM_MakeSignedData [07:49:11]FM_MakeSignedData [07:49:11]SAM_PROTO_SignData [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 0D 01 02 [07:49:11]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:12]Read from MH i2c: E2 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [07:49:12]RAPDU: 90 00 [07:49:12]wFMCommunicate OK [07:49:12]wFMCommunicate request_size=255 [07:49:12]MH_SAM_APDU [07:49:12]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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 40 00 00 00 F4 03 04 00 77 90 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 BA 02 00 35 04 06 00 80 [07:49:12]Write to MH i2c: E2 02 01 FA 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 40 00 00 00 F4 03 04 00 77 90 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 BA 02 00 35 04 06 00 80 00 00 A7 [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:12]Read from MH i2c: E2 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [07:49:12]RAPDU: 90 00 [07:49:12]wFMCommunicate OK [07:49:12]wFMCommunicate request_size=10 [07:49:12]MH_SAM_APDU [07:49:12]CAPDU: 80 0D 02 02 05 A7 9A 59 BB F9 [07:49:12]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 A7 9A 59 BB F9 00 00 D0 [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:12]Read from MH i2c: E2 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [07:49:12]RAPDU: 90 00 [07:49:12]wFMCommunicate OK [07:49:12]wFMCommunicate request_size=4 [07:49:12]MH_SAM_APDU [07:49:12]CAPDU: 80 0D 03 02 [07:49:12]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:12]Read from MH i2c: E2 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 0B 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 0B 00 FC 03 00 15 24 44 9F 65 4B 3C E9 90 00 6C [07:49:12]RAPDU: 15 24 44 9F 65 4B 3C E9 90 00 [07:49:12]wFMCommunicate OK [07:49:12]SAM_PROTO_SignData done [07:49:12]FM_MakeSignedData done [07:49:12]CreateOFDProtocolMessage [07:49:12]wFMCommunicate request_size=4 [07:49:12]MH_SAM_APDU [07:49:12]CAPDU: 80 11 00 00 [07:49:12]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:12]Read from MH i2c: E2 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 17 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D3 [07:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:49:12]wFMCommunicate OK [07:49:12]CreateOFDProtocolMessage done [07:49:12]OFDSenderStorePacket 178838 [07:49:12]StoreOFDPacket docnum=178838 [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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [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 54000000005725A6 (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: 737913+1723749199=1724487112 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [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 78 00 80 00 FF FF D6 [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 C9 95 C9 66 4F 53 BE 66 52 [08:11:53]Current date/time: 24.08.2024 08:11 [08:11:53]FM_Init [08:11:53]wFMConnect [08:11:53]MH_SAM_On [08:11:53]Write to MH i2c: E0 00 00 08 00 E7 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_init finished! [08:11:53]*** atr: [08:11:53]*** 0F 3B D5 18 FF 81 91 FE [08:11:53]*** 1F C3 80 73 C8 21 10 0A [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]*** 00 00 00 00 00 00 00 00 [08:11:53]Read from MH i2c: E0 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E0 10 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:11:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:11:53]wFMCommunicate request_size=10 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:11:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 11 00 00 [08:11:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 [08:11:53]MH_I2C_Read... [08:11:53]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 37 37 38 90 00 DD [08:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:11:53]wFMCommunicate OK [08:11:53]Detected FM SN is 0000000000871778 [08:11:53]Stored FM SN is 0000000000871778 [08:11:53]wFMCommunicate request_size=9 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 16 00 00 04 D9 BA 00 00 [08:11:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]FM PIN OK [08:11:53]wFMCommunicate request_size=8 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 14 04 00 03 02 00 01 [08:11:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=13 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:11:53]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 11 00 00 [08:11:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 [08:11:53]MH_I2C_Read... [08:11:53]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 37 37 38 90 00 E1 [08:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:11:53]wFMCommunicate OK [08:11:53]DocumentArchiveInit [08:11:53]Start Httpd... [08:11:53]Httpd thread 3067399524 created [08:11:53]Write to MH i2c: 01 00 00 0F 00 0F [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:11:53]MH Int Process started [08:11:53]Allocated Socket 8 [08:11:53]Bind OK [08:11:53]Listen OK [08:11:53]httpd running on port 8080 [08:11:53]Waiting for new connection... [08:11:54]OFD Sender: Processing packet 178838 [packets to send 500, broken 499] [08:11:54]ProducePacketName [08:11:54]name=ofd_packets/00178838 [08:11:54]OFD Sender: To server: pG, [08:11:54]CommunicateWithHost lk.salyk.kg:30040 [08:11:54]ConnectInit lk.salyk.kg [08:11:59]ConnectInit Can't take IP for lk.salyk.kg [08:11:59]CommunicateWithHost connect error [08:11:59]CommunicateWithHost err = -1 [08:11:59]OFD Sender: Server communicate error [08:12:01]accept exits with 9 [08:12:01]New connection [08:12:01]New thread 3067112804 created [08:12:01]Waiting for new connection... [08:12:01] Sock 9.Parse request [08:12:01]Sock 9.Check first char [08:12:01]Sock 9.First char is OK [08:12:01]request: POST /json_proto HTTP/1.0 [08:12:01]Method: POST [08:12:01]URL: /json_proto [08:12:01]Method is POST - this is cgi request [08:12:01]url: /json_proto [08:12:01]query_string will be loaded in cgi processing [08:12:01]execute_cgi json_proto POST (null) [08:12:01]execute_cgi path=json_proto method=POST [08:12:01]POST find Content-Length [08:12:01]Host: 172.17.44.131:8080 [08:12:01]Content-Length: 215 [08:12:01]Content-Type: application/json [08:12:01] [08:12:01]POST finish read [08:12:01]Found Content-Length = 215 [08:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]execute_script... [08:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]POST & json_proto [08:12:01]process_json_proto [08:12:01]json parsed OK: [08:12:01]protocol is kg_v1.0 [08:12:01]action value=get_value [08:12:01]process_action get_value [08:12:01]cmd_get_value [08:12:01]process_action get_value done [08:12:01]requested_data is exist [08:12:01]produce_requested_data [08:12:01]requested_item kkm.sn is exist - process it [08:12:01]requested_item kkm.ver is exist - process it [08:12:01]requested_item fm.sn is exist - process it [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 11 00 00 [08:12:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 17 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [08:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:01]wFMCommunicate OK [08:12:01]requested_item fd.num is exist - process it [08:12:01]SAM_PROTO_GetFieldsCounters [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 13 00 00 [08:12:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:02]Read from MH i2c: E2 62 00 [08:12:02]MH_I2C_Read... [08:12:02]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 96 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [08:12: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 96 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:02]wFMCommunicate OK [08:12:02]SAM_PROTO_GetFieldsCounters done [08:12:02]requested_item shift.num is exist - process it [08:12:02]requested_item shift.opened is exist - process it [08:12:02]req_shift_opened [08:12:02]FM_GetShiftState [08:12:02]SAM_PROTO_GetShiftState [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 13 01 00 [08:12:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 0E 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [08:12:02]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:12:02]wFMCommunicate OK [08:12:02]SAM_PROTO_GetShiftState done [08:12:02]FM_GetShiftState done [08:12:02]req_shift_opened done [08:12:02]requested_item shift.open_date is exist - process it [08:12:02]req_shift_open_date [08:12:02]req_shift_open_date done [08:12:02]produce_requested_data done [08:12:02]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178838,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:12:02]process_action_free get_value [08:12:02]json_value_free [08:12:02]json_value_free done [08:12:02]process_json_proto returns [08:12:02]Send response to host [08:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178838,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:12:02]free response buf [08:12:02]execute_script done [08:12:02]execute_script returns [08:12:02]free content buf [08:12:02]Sock 9.Close socket [08:12:02]Sock 9.Thread stoped [08:12:02]accept exits with 7 [08:12:02]New connection [08:12:02]New thread 3066969444 created [08:12:02]Thread 3067112804 joined [08:12:02]Waiting for new connection... [08:12:02] Sock 7.Parse request [08:12:02]Sock 7.Check first char [08:12:02]Sock 7.First char is OK [08:12:02]request: POST /json_proto HTTP/1.0 [08:12:02]Method: POST [08:12:02]URL: /json_proto [08:12:02]Method is POST - this is cgi request [08:12:02]url: /json_proto [08:12:02]query_string will be loaded in cgi processing [08:12:02]execute_cgi json_proto POST (null) [08:12:02]execute_cgi path=json_proto method=POST [08:12:02]POST find Content-Length [08:12:02]Host: 172.17.44.131:8080 [08:12:02]Content-Length: 331 [08:12:02]Content-Type: application/json [08:12:02] [08:12:02]POST finish read [08:12:02]Found Content-Length = 331 [08:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:12:02]execute_script... [08:12:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:12:02]POST & json_proto [08:12:02]process_json_proto [08:12:02]json parsed OK: [08:12:02]protocol is kg_v1.0 [08:12:02]action value=get_value [08:12:02]process_action get_value [08:12:02]cmd_get_value [08:12:02]process_action get_value done [08:12:02]requested_data is exist [08:12:02]produce_requested_data [08:12:02]requested_item fm.sale.total is exist - process it [08:12:02]SAM_PROTO_GetFMData [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 13 03 00 [08:12:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 FD 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 E8 B6 02 00 69 04 A4 00 6F 04 04 00 51 B5 02 00 B1 04 05 00 C7 EB 49 2C 05 70 04 05 00 67 7E 5A 15 04 72 04 05 00 60 6D EF 16 01 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 7D 53 AA 8C 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 EB A9 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 B4 [08:12:02]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E8 B6 02 00 69 04 A4 00 6F 04 04 00 51 B5 02 00 B1 04 05 00 C7 EB 49 2C 05 70 04 05 00 67 7E 5A 15 04 72 04 05 00 60 6D EF 16 01 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 7D 53 AA 8C 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 EB A9 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [08:12:02]wFMCommunicate OK [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 17 00 00 [08:12:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [08:12:03]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [08:12:03]wFMCommunicate OK [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 17 00 00 [08:12:03]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [08:12:03]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:12:03]wFMCommunicate OK [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 17 00 00 [08:12:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [08:12:03]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [08:12:03]wFMCommunicate OK [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 17 00 00 [08:12:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 E3 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 E3 00 17 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 76 [08:12:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:12:03]wFMCommunicate OK [08:12:03]SAM_PROTO_GetFMData done [08:12:03]requested_item fm.sale_refund.total is exist - process it [08:12:03]requested_item fm.buy.total is exist - process it [08:12:03]requested_item shift.sale.total is exist - process it [08:12:03]SAM_PROTO_GetShiftData [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 13 02 00 [08:12:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:04]OFD Sender: Processing packet 178838 [packets to send 500, broken 499] [08:12:04]ProducePacketName [08:12:04]name=ofd_packets/00178838 [08:12:04]OFD Sender: To server: pG, [08:12:04]CommunicateWithHost lk.salyk.kg:30040 [08:12:04]ConnectInit lk.salyk.kg [08:12:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:12:04]Read from MH i2c: E2 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 40 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 A5 9F 9F 70 04 03 00 C0 0B 61 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 F4 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A8 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E7 [08:12:04]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 40 00 00 00 69 04 9C 00 6F 04 04 00 40 00 00 00 B1 04 03 00 A5 9F 9F 70 04 03 00 C0 0B 61 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 F4 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A8 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [08:12:04]wFMCommunicate OK [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 17 00 00 [08:12:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:04]Read from MH i2c: E2 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [08:12:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:12:04]wFMCommunicate OK [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 17 00 00 [08:12:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:04]Read from MH i2c: E2 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [08:12:04]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:12:04]wFMCommunicate OK [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 17 00 00 [08:12:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 FD 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [08:12:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [08:12:05]wFMCommunicate OK [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 17 00 00 [08:12:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 CC 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [08:12:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetShiftData done [08:12:05]requested_item shift.sale.total_cash is exist - process it [08:12:05]requested_item shift.sale_refund.total is exist - process it [08:12:05]requested_item shift.sale_refund.total_cash is exist - process it [08:12:05]requested_item shift.buy.total is exist - process it [08:12:05]requested_item shift.buy.total_cash is exist - process it [08:12:05]produce_requested_data done [08:12:05]produce_requested_data return {"fm.sale.total":222178784.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":104610.93,"shift.sale.total_cash":63600.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:12:05]process_action_free get_value [08:12:05]json_value_free [08:12:05]json_value_free done [08:12:05]process_json_proto returns [08:12:05]Send response to host [08:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222178784.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":104610.93,"shift.sale.total_cash":63600.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:12:05]free response buf [08:12:05]execute_script done [08:12:05]execute_script returns [08:12:05]free content buf [08:12:05]Sock 7.Close socket [08:12:05]Sock 7.Thread stoped [08:12:05]accept exits with 9 [08:12:05]New connection [08:12:05]New thread 3067112804 created [08:12:05]Thread 3066969444 joined [08:12:05]Waiting for new connection... [08:12:05] Sock 9.Parse request [08:12:05]Sock 9.Check first char [08:12:05]Sock 9.First char is OK [08:12:05]request: POST /json_proto HTTP/1.0 [08:12:05]Method: POST [08:12:05]URL: /json_proto [08:12:05]Method is POST - this is cgi request [08:12:05]url: /json_proto [08:12:05]query_string will be loaded in cgi processing [08:12:05]execute_cgi json_proto POST (null) [08:12:05]execute_cgi path=json_proto method=POST [08:12:05]POST find Content-Length [08:12:05]Host: 172.17.44.131:8080 [08:12:05]Content-Length: 682 [08:12:05]Content-Type: application/json [08:12:05] [08:12:05]POST finish read [08:12:05]Found Content-Length = 682 [08:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:05]execute_script... [08:12:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:05]POST & json_proto [08:12:05]process_json_proto [08:12:05]json parsed OK: [08:12:05]protocol is kg_v1.0 [08:12:05]action value=close_receipt [08:12:05]process_action close_receipt [08:12:05]cmd_close_receipt [08:12:05]MH_GetDate [08:12:05]Write to MH i2c: F0 00 00 1D 00 0C [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 09 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 09 00 1D 00 00 D6 95 C9 66 4F 53 BE 66 75 [08:12:05]GetLastDocTimeStamp 1724485751 [08:12:05]current date 1724487126 [08:12:05]FM_GetShiftState [08:12:05]SAM_PROTO_GetShiftState [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 01 00 [08:12:05]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:06]Read from MH i2c: E2 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: E2 0E 00 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [08:12:06]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:12:06]wFMCommunicate OK [08:12:06]SAM_PROTO_GetShiftState done [08:12:06]FM_GetShiftState done [08:12:06]opened in 1724458079 [08:12:06]opened+sec_in_day 1724544479 [08:12:06]quantity*price = 180009 [08:12:06]sum+1 = 180010 [08:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 65 24.08.2024 08:12 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178839 ФПД: 103345119249069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081206&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178839&fm=103345119249069&tin=02508201610067®Number=0000000000092561&sum=180000 [08:12:07]StoreToDocumentArchive [08:12:07]shift 471 fd 178839 [08:12:07]save to /storage/0471/doc_00178839 [08:12:07]save last doc name /storage/0471/doc_00178839 to /storage/kkm_last_doc_name [08:12:07]save OK [08:12:07]Clear old archive folders... [08:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:07]tlvbuf is 017C0760 [08:12:07]SAM_PROTO_ClearQueue [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 09 00 00 [08:12:07]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_ClearQueue done [08:12:07]KKMCreateOFDPacket [08:12:07]OFDProtocolAddRootSTLVToBuf [08:12:07]FM_MakeSignedData [08:12:07]FM_MakeSignedData [08:12:07]SAM_PROTO_SignData [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 01 02 [08:12:07]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=255 [08:12:07]MH_SAM_APDU [08:12:07]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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 D6 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 BA 02 00 35 04 06 00 5D [08:12:07]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 D6 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 BA 02 00 35 04 06 00 5D 00 00 35 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=10 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 02 02 05 FD E9 1F 42 AD [08:12:07]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 FD E9 1F 42 AD 00 00 A6 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 03 02 [08:12:07]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0B 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0B 00 2F 00 00 92 06 96 22 31 63 BB EA 90 00 34 [08:12:07]RAPDU: 92 06 96 22 31 63 BB EA 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_SignData done [08:12:07]FM_MakeSignedData done [08:12:07]CreateOFDProtocolMessage [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 11 00 00 [08:12:07]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 17 00 [08:12:07]MH_I2C_Read... [08:12:07]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 37 37 38 90 00 03 [08:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:07]wFMCommunicate OK [08:12:07]CreateOFDProtocolMessage done [08:12:07]OFDSenderStorePacket 178839 [08:12:08]StoreOFDPacket docnum=178839 [08:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B5 DC 07 01 50 FC 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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 D6 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 BA 02 00 35 04 06 00 5D FD E9 1F 42 AD 92 06 96 22 31 63 BB EA [08:12:08]CheckFolder [08:12:08]dirname=/storage/ofd_packets [08:12:08]CheckFolder done [08:12:08]ProducePacketName [08:12:08]name=ofd_packets/00178839 [08:12:08]NVStorageSaveData ofd_packets/00178839 [08:12:08]File name is /storage/ofd_packets/00178839 [08:12:08]Write 301 bytes [08:12:08]NVStorageSaveData done [08:12:08]OFDSenderStorePacket done [08:12:08]KKMCreateOFDPacket done [08:12:08]NVStorageSaveData kkm_last_timestamp [08:12:08]File name is /storage/kkm_last_timestamp [08:12:08]Write 4 bytes [08:12:08]NVStorageSaveData done [08:12:08]ExternCall_PrintAddStr [08:12:08]wPrintStart [08:12:08]Write to MH i2c: 01 00 00 31 00 31 [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:12:08]RasterBufferAndPrint [08:12:08]line Счет N : (1)295064 [08:12:08]line ИНН: 02508201610067 [08:12:08]line Контрольно-Кассовый Чек [08:12:08]line ПРОДАЖА [08:12:08]line ТРК (МРК, ГНК) : 63 [08:12:08]line Товар: 2710124500 [08:12:08]line Аи-95-К-5 [08:12:08]line 24.260 * 74.20 [08:12:08]line = 1800.09 [08:12:08]line НДС 12% НСП 1% [08:12:08]line > о реализуемом товаре [08:12:08]line ОКРУГЛЕНИЕ: -0.09 [08:12:08]line ИТОГО: 1800.00 [08:12:08]line Внесено: 1800.00 [08:12:08]line СДАЧА: 0.00 [08:12:08]line НСП 1% : 15.93 [08:12:08]line НДС 12% : 191.16 [08:12:08]line Наличными: 1800.00 [08:12:08]line Безнал.: 0.00 [08:12:08]line Место: АЗС № 130 "Партнер Нефть" [08:12:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:12:08]line СНО: Общий режим [08:12:08]line Чек 65 24.08.2024 08:12 [08:12:08]line Смена: 471 ФФД: 1.0 [08:12:08]line ЗНМ: 0300000071 [08:12:08]line РНМ: 0000000000092561 [08:12:08]line Версия ККМ: 001 [08:12:08]line ФМ: 0000000000871778 [08:12:08]line ФД: 178839 [08:12:08]line ФПД: 103345119249069 [08:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081206&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178839&fm=103345119249069&tin=02508201610067®Number=0000000000092561&sum=180000 [08:12:08]written 0, free lines is 4095 [08:12:08]Write to MH i2c: 01 00 00 5C 00 5C [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DC 0C 4B [08:12:08]RasterBufferAndPrint [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]written 0, free lines is 3315 [08:12:08]MH_Cut [08:12:08]Write to MH i2c: D1 01 00 63 00 01 35 [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 01 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 01 00 63 00 00 34 [08:12:08]Write to MH i2c: 01 00 00 64 00 64 [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:09]*** Cut start [08:12:09]*** Partial cut [08:12:09]*** CUTSNS_PIN = 1 [08:12:09]*** CUTSNS_PIN = 0 [08:12:09]*** Brake cut motor [08:12:09]Read from MH i2c: 01 [08:12:09]MH_I2C_Read... [08:12:09]*** Stop cut motor [08:12:09]*** Cut end [08:12:09]Read from MH i2c: 01 07 00 [08:12:09]MH_I2C_Read... [08:12:09]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [08:12:09]process_action close_receipt done [08:12:09]requested_data is exist [08:12:09]produce_requested_data [08:12:09]requested_item fm.sn is exist - process it [08:12:09]wFMCommunicate request_size=4 [08:12:09]MH_SAM_APDU [08:12:09]CAPDU: 80 11 00 00 [08:12:09]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [08:12:09]Write i2c OK [08:12:09]MH_I2C_Read... [08:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:09]Read from MH i2c: E2 [08:12:09]MH_I2C_Read... [08:12:09]Read from MH i2c: E2 17 00 [08:12:09]MH_I2C_Read... [08:12:09]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 37 37 38 90 00 38 [08:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:09]wFMCommunicate OK [08:12:09]requested_item fd.num is exist - process it [08:12:09]SAM_PROTO_GetFieldsCounters [08:12:09]wFMCommunicate request_size=4 [08:12:09]MH_SAM_APDU [08:12:09]CAPDU: 80 13 00 00 [08:12:09]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [08:12:09]Write i2c OK [08:12:09]MH_I2C_Read... [08:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 62 00 [08:12:10]MH_I2C_Read... [08:12:10]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 97 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [08:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 97 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetFieldsCounters done [08:12:10]requested_item shift.num is exist - process it [08:12:10]requested_item shift.opened is exist - process it [08:12:10]req_shift_opened [08:12:10]FM_GetShiftState [08:12:10]SAM_PROTO_GetShiftState [08:12:10]wFMCommunicate request_size=4 [08:12:10]MH_SAM_APDU [08:12:10]CAPDU: 80 13 01 00 [08:12:10]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A2 [08:12:10]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetShiftState done [08:12:10]FM_GetShiftState done [08:12:10]req_shift_opened done [08:12:10]requested_item shift.open_date is exist - process it [08:12:10]req_shift_open_date [08:12:10]req_shift_open_date done [08:12:10]produce_requested_data done [08:12:10]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178839,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:12:10]process_action_free close_receipt [08:12:10]json_value_free [08:12:10]json_value_free done [08:12:10]process_json_proto returns [08:12:10]Send response to host [08:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178839,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:12:10]free response buf [08:12:10]execute_script done [08:12:10]execute_script returns [08:12:10]free content buf [08:12:10]Sock 9.Close socket [08:12:10]Sock 9.Thread stoped [08:12:10]accept exits with 7 [08:12:10]New connection [08:12:10]New thread 3066969444 created [08:12:10]Thread 3067112804 joined [08:12:10]Waiting for new connection... [08:12:10] Sock 7.Parse request [08:12:10]Sock 7.Check first char [08:12:10]Sock 7.First char is OK [08:12:10]request: POST /json_proto HTTP/1.0 [08:12:10]Method: POST [08:12:10]URL: /json_proto [08:12:10]Method is POST - this is cgi request [08:12:10]url: /json_proto [08:12:10]query_string will be loaded in cgi processing [08:12:10]execute_cgi json_proto POST (null) [08:12:10]execute_cgi path=json_proto method=POST [08:12:10]POST find Content-Length [08:12:10]Host: 172.17.44.131:8080 [08:12:10]Content-Length: 682 [08:12:10]Content-Type: application/json [08:12:10] [08:12:10]POST finish read [08:12:10]Found Content-Length = 682 [08:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [08:12:10]execute_script... [08:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [08:12:10]POST & json_proto [08:12:10]process_json_proto [08:12:10]json parsed OK: [08:12:10]protocol is kg_v1.0 [08:12:10]action value=close_receipt [08:12:10]process_action close_receipt [08:12:10]cmd_close_receipt [08:12:10]MH_GetDate [08:12:10]Write to MH i2c: F0 00 00 68 00 57 [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 09 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 09 00 68 00 00 DA 95 C9 66 4F 53 BE 66 C4 [08:12:10]GetLastDocTimeStamp 1724487126 [08:12:10]current date 1724487130 [08:12:10]FM_GetShiftState [08:12:10]SAM_PROTO_GetShiftState [08:12:10]wFMCommunicate request_size=4 [08:12:10]MH_SAM_APDU [08:12:10]CAPDU: 80 13 01 00 [08:12:10]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [08:12:10]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetShiftState done [08:12:10]FM_GetShiftState done [08:12:10]opened in 1724458079 [08:12:10]opened+sec_in_day 1724544479 [08:12:10]quantity*price = 150041 [08:12:10]sum+1 = 150042 [08:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 66 24.08.2024 08:12 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178840 ФПД: 139058539156342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081211&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178840&fm=139058539156342&tin=02508201610067®Number=0000000000092561&sum=150000 [08:12:12]StoreToDocumentArchive [08:12:12]shift 471 fd 178840 [08:12:12]save to /storage/0471/doc_00178840 [08:12:12]save last doc name /storage/0471/doc_00178840 to /storage/kkm_last_doc_name [08:12:12]save OK [08:12:12]Clear old archive folders... [08:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:12]tlvbuf is 017D8830 [08:12:12]SAM_PROTO_ClearQueue [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 09 00 00 [08:12:12]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]SAM_PROTO_ClearQueue done [08:12:12]KKMCreateOFDPacket [08:12:12]OFDProtocolAddRootSTLVToBuf [08:12:12]FM_MakeSignedData [08:12:12]FM_MakeSignedData [08:12:12]SAM_PROTO_SignData [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 0D 01 02 [08:12:12]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]wFMCommunicate request_size=255 [08:12:12]MH_SAM_APDU [08:12:12]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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 42 00 00 00 F4 03 04 00 DB 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 BA 02 00 35 04 06 00 7E [08:12:12]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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 42 00 00 00 F4 03 04 00 DB 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 BA 02 00 35 04 06 00 7E 00 00 73 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]wFMCommunicate request_size=10 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 0D 02 02 05 79 16 D4 53 76 [08:12:12]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 79 16 D4 53 76 00 00 29 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 0D 03 02 [08:12:12]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 0B 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 0B 00 7A 00 00 A7 FA 61 07 53 56 29 06 90 00 D7 [08:12:12]RAPDU: A7 FA 61 07 53 56 29 06 90 00 [08:12:12]wFMCommunicate OK [08:12:12]SAM_PROTO_SignData done [08:12:12]FM_MakeSignedData done [08:12:12]CreateOFDProtocolMessage [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 11 00 00 [08:12:12]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 17 00 [08:12:13]MH_I2C_Read... [08:12:13]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 37 37 38 90 00 4E [08:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:13]wFMCommunicate OK [08:12:13]CreateOFDProtocolMessage done [08:12:13]OFDSenderStorePacket 178840 [08:12:13]StoreOFDPacket docnum=178840 [08:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E0 FE 07 01 0E 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 42 00 00 00 F4 03 04 00 DB 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 BA 02 00 35 04 06 00 7E 79 16 D4 53 76 A7 FA 61 07 53 56 29 06 [08:12:13]CheckFolder [08:12:13]dirname=/storage/ofd_packets [08:12:13]CheckFolder done [08:12:13]ProducePacketName [08:12:13]name=ofd_packets/00178840 [08:12:13]NVStorageSaveData ofd_packets/00178840 [08:12:13]File name is /storage/ofd_packets/00178840 [08:12:13]Write 301 bytes [08:12:13]NVStorageSaveData done [08:12:13]OFDSenderStorePacket done [08:12:13]KKMCreateOFDPacket done [08:12:13]NVStorageSaveData kkm_last_timestamp [08:12:13]File name is /storage/kkm_last_timestamp [08:12:13]Write 4 bytes [08:12:13]NVStorageSaveData done [08:12:13]ExternCall_PrintAddStr [08:12:13]wPrintStart [08:12:13]Write to MH i2c: 01 00 00 7C 00 7C [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [08:12:13]RasterBufferAndPrint [08:12:13]line Счет N : (1)295065 [08:12:13]line ИНН: 02508201610067 [08:12:13]line Контрольно-Кассовый Чек [08:12:13]line ПРОДАЖА [08:12:13]line ТРК (МРК, ГНК) : 52 [08:12:13]line Товар: 2710124130 [08:12:13]line Аи-92-К-5 [08:12:13]line 22.130 * 67.80 [08:12:13]line = 1500.41 [08:12:13]line НДС 12% НСП 1% [08:12:13]line > о реализуемом товаре [08:12:13]line ОКРУГЛЕНИЕ: -0.41 [08:12:13]line ИТОГО: 1500.00 [08:12:13]line Внесено: 1500.00 [08:12:13]line СДАЧА: 0.00 [08:12:13]line НСП 1% : 13.28 [08:12:13]line НДС 12% : 159.34 [08:12:13]line Наличными: 1500.00 [08:12:13]line Безнал.: 0.00 [08:12:13]line Место: АЗС № 130 "Партнер Нефть" [08:12:13]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:12:13]line СНО: Общий режим [08:12:13]line Чек 66 24.08.2024 08:12 [08:12:13]line Смена: 471 ФФД: 1.0 [08:12:13]line ЗНМ: 0300000071 [08:12:13]line РНМ: 0000000000092561 [08:12:13]line Версия ККМ: 001 [08:12:13]line ФМ: 0000000000871778 [08:12:13]line ФД: 178840 [08:12:13]line ФПД: 139058539156342 [08:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081211&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178840&fm=139058539156342&tin=02508201610067®Number=0000000000092561&sum=150000 [08:12:13]written 0, free lines is 4095 [08:12:13]Write to MH i2c: 01 00 00 A7 00 A7 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D5 0C 8F [08:12:13]RasterBufferAndPrint [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]written 0, free lines is 3315 [08:12:13]MH_Cut [08:12:13]Write to MH i2c: D1 01 00 AE 00 01 80 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 01 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 01 00 AE 00 00 7F [08:12:13]Write to MH i2c: 01 00 00 AF 00 AF [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:14]*** Cut start [08:12:14]*** Partial cut [08:12:14]*** CUTSNS_PIN = 1 [08:12:14]*** CUTSNS_PIN = 0 [08:12:14]*** Brake cut motor [08:12:14]Read from MH i2c: 01 [08:12:14]MH_I2C_Read... [08:12:14]*** Stop cut motor [08:12:14]*** Cut end [08:12:14]Read from MH i2c: 01 07 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [08:12:14]process_action close_receipt done [08:12:14]requested_data is exist [08:12:14]produce_requested_data [08:12:14]requested_item fm.sn is exist - process it [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 11 00 00 [08:12:14]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:14]Read from MH i2c: E2 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 17 00 [08:12:14]MH_I2C_Read... [08:12:14]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 37 37 38 90 00 83 [08:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:14]wFMCommunicate OK [08:12:14]requested_item fd.num is exist - process it [08:12:14]SAM_PROTO_GetFieldsCounters [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 13 00 00 [08:12:14]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 62 00 [08:12:15]MH_I2C_Read... [08:12:15]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 98 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [08:12: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 98 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_GetFieldsCounters done [08:12:15]requested_item shift.num is exist - process it [08:12:15]requested_item shift.opened is exist - process it [08:12:15]req_shift_opened [08:12:15]FM_GetShiftState [08:12:15]SAM_PROTO_GetShiftState [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 13 01 00 [08:12:15]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [08:12:15]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_GetShiftState done [08:12:15]FM_GetShiftState done [08:12:15]req_shift_opened done [08:12:15]requested_item shift.open_date is exist - process it [08:12:15]req_shift_open_date [08:12:15]req_shift_open_date done [08:12:15]produce_requested_data done [08:12:15]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178840,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:12:15]process_action_free close_receipt [08:12:15]json_value_free [08:12:15]json_value_free done [08:12:15]process_json_proto returns [08:12:15]Send response to host [08:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178840,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:12:15]free response buf [08:12:15]execute_script done [08:12:15]execute_script returns [08:12:15]free content buf [08:12:15]Sock 7.Close socket [08:12:15]Sock 7.Thread stoped [08:12:34]Connected sock=10 [08:12: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 37 37 38 0F 01 00 00 A1 04 07 01 C1 61 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 40 00 00 00 F4 03 04 00 77 90 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 BA 02 00 35 04 06 00 80 A7 9A 59 BB F9 15 24 44 9F 65 4B 3C E9 [08:12:40]recv_with_timeout no data received [08:12:40]CommunicateWithHost answer receiving error [08:12:40]CommunicateWithHost err = -3 [08:12:40]OFD Sender: Server communicate error [08:12:40]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:12:40]ProducePacketName [08:12:40]name=ofd_packets/00178838 [08:12:40]OFD Sender: To server: pG, [08:12:40]CommunicateWithHost lk.salyk.kg:30040 [08:12:40]ConnectInit lk.salyk.kg [08:12:41]recv_with_timeout no data received [08:12:45]ConnectInit Can't take IP for lk.salyk.kg [08:12:45]CommunicateWithHost connect error [08:12:45]CommunicateWithHost err = -1 [08:12:45]OFD Sender: Server communicate error [08:12:50]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:12:50]ProducePacketName [08:12:50]name=ofd_packets/00178838 [08:12:50]OFD Sender: To server: pG, [08:12:50]CommunicateWithHost lk.salyk.kg:30040 [08:12:50]ConnectInit lk.salyk.kg [08:12:55]ConnectInit Can't take IP for lk.salyk.kg [08:12:55]CommunicateWithHost connect error [08:12:55]CommunicateWithHost err = -1 [08:12:55]OFD Sender: Server communicate error [08:13:00]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:13:00]ProducePacketName [08:13:00]name=ofd_packets/00178838 [08:13:00]OFD Sender: To server: pG, [08:13:00]CommunicateWithHost lk.salyk.kg:30040 [08:13:00]ConnectInit lk.salyk.kg [08:13:05]ConnectInit Can't take IP for lk.salyk.kg [08:13:05]CommunicateWithHost connect error [08:13:05]CommunicateWithHost err = -1 [08:13:05]OFD Sender: Server communicate error [08:13:10]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:13:10]ProducePacketName [08:13:10]name=ofd_packets/00178838 [08:13:10]OFD Sender: To server: pG, [08:13:10]CommunicateWithHost lk.salyk.kg:30040 [08:13:10]ConnectInit lk.salyk.kg [08:13:15]ConnectInit Can't take IP for lk.salyk.kg [08:13:15]CommunicateWithHost connect error [08:13:15]CommunicateWithHost err = -1 [08:13:15]OFD Sender: Server communicate error [08:13:20]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:13:20]ProducePacketName [08:13:20]name=ofd_packets/00178838 [08:13:20]OFD Sender: To server: pG, [08:13:20]CommunicateWithHost lk.salyk.kg:30040 [08:13:20]ConnectInit lk.salyk.kg [08:13:25]ConnectInit Can't take IP for lk.salyk.kg [08:13:25]CommunicateWithHost connect error [08:13:25]CommunicateWithHost err = -1 [08:13:25]OFD Sender: Server communicate error [08:13:30]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:13:30]ProducePacketName [08:13:30]name=ofd_packets/00178838 [08:13:30]OFD Sender: To server: pG, [08:13:30]CommunicateWithHost lk.salyk.kg:30040 [08:13:30]ConnectInit lk.salyk.kg [08:13:35]ConnectInit Can't take IP for lk.salyk.kg [08:13:35]CommunicateWithHost connect error [08:13:35]CommunicateWithHost err = -1 [08:13:35]OFD Sender: Server communicate error [08:13:40]OFD Sender: Processing packet 178838 [packets to send 502, broken 499] [08:13:40]ProducePacketName [08:13:40]name=ofd_packets/00178838 [08:13:40]OFD Sender: To server: pG, [08:13:40]CommunicateWithHost lk.salyk.kg:30040 [08:13:40]ConnectInit lk.salyk.kg [08:13:41]Connected sock=10 [08:13: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 37 37 38 0F 01 00 00 A1 04 07 01 C1 61 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 40 00 00 00 F4 03 04 00 77 90 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 BA 02 00 35 04 06 00 80 A7 9A 59 BB F9 15 24 44 9F 65 4B 3C E9 [08:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A2 5E 47 00 34 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 37 37 38 10 04 04 00 96 BA 02 00 F4 03 04 00 D9 41 C9 66 B6 04 01 00 00 67 D7 02 2F 3F F8 3D B2 [08:13:42]CommunicateWithHost err = 0 [08:13:42]CheckOFDResponse [08:13:42]1017 (14) - 77093643461234 [08:13:42]1041 (16) - 0000000000871778 [08:13:42]1040 (4) - 178838 [08:13:42]1012 (4) - 24.08.2024 02:13 [08:13:42]1206 (1) - 0 [08:13:42]OFD Sender: Remove packet 178838 [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00178838 [08:13:42]NVStorageDeleteData [08:13:42]OFD Sender: Processing packet 178839 [packets to send 501, broken 499] [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00178839 [08:13:42]OFD Sender: To server: pG, [08:13:42]CommunicateWithHost lk.salyk.kg:30040 [08:13:42]ConnectInit lk.salyk.kg [08:13:43]Connected sock=10 [08:13: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 37 37 38 0F 01 00 00 B5 DC 07 01 50 FC 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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 20 BF 02 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 D6 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 BA 02 00 35 04 06 00 5D FD E9 1F 42 AD 92 06 96 22 31 63 BB EA [08:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0A FC 47 00 46 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 37 37 38 10 04 04 00 97 BA 02 00 F4 03 04 00 DA 41 C9 66 B6 04 01 00 00 07 1E 60 44 90 DD F8 E2 [08:13:44]CommunicateWithHost err = 0 [08:13:44]CheckOFDResponse [08:13:44]1017 (14) - 77093643461234 [08:13:44]1041 (16) - 0000000000871778 [08:13:44]1040 (4) - 178839 [08:13:44]1012 (4) - 24.08.2024 02:13 [08:13:44]1206 (1) - 0 [08:13:44]OFD Sender: Remove packet 178839 [08:13:44]ProducePacketName [08:13:44]name=ofd_packets/00178839 [08:13:44]NVStorageDeleteData [08:13:45]OFD Sender: Processing packet 178840 [packets to send 500, broken 499] [08:13:45]ProducePacketName [08:13:45]name=ofd_packets/00178840 [08:13:45]OFD Sender: To server: pG, [08:13:45]CommunicateWithHost lk.salyk.kg:30040 [08:13:45]ConnectInit lk.salyk.kg [08:13:46]Connected sock=10 [08:13: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 37 37 38 0F 01 00 00 E0 FE 07 01 0E 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 42 00 00 00 F4 03 04 00 DB 95 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 BA 02 00 35 04 06 00 7E 79 16 D4 53 76 A7 FA 61 07 53 56 29 06 [08:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 55 8E 47 00 E8 59 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 37 37 38 10 04 04 00 98 BA 02 00 F4 03 04 00 DE 41 C9 66 B6 04 01 00 00 14 21 DC 9C 41 0D B7 54 [08:13:47]CommunicateWithHost err = 0 [08:13:47]CheckOFDResponse [08:13:47]1017 (14) - 77093643461234 [08:13:47]1041 (16) - 0000000000871778 [08:13:47]1040 (4) - 178840 [08:13:47]1012 (4) - 24.08.2024 02:13 [08:13:47]1206 (1) - 0 [08:13:47]OFD Sender: Remove packet 178840 [08:13:47]ProducePacketName [08:13:47]name=ofd_packets/00178840 [08:13:47]NVStorageDeleteData [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:00]recv_with_timeout no data received [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:18]recv_with_timeout no data received [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:03]recv_with_timeout no data received [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:25]recv_with_timeout no data received [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:51]accept exits with 9 [08:15:51]New connection [08:15:51]New thread 3067112804 created [08:15:51]Thread 3066969444 joined [08:15:51]Waiting for new connection... [08:15:51] Sock 9.Parse request [08:15:51]Sock 9.Check first char [08:15:51]Sock 9.First char is OK [08:15:51]request: POST /json_proto HTTP/1.0 [08:15:51]Method: POST [08:15:51]URL: /json_proto [08:15:51]Method is POST - this is cgi request [08:15:51]url: /json_proto [08:15:51]query_string will be loaded in cgi processing [08:15:51]execute_cgi json_proto POST (null) [08:15:51]execute_cgi path=json_proto method=POST [08:15:51]POST find Content-Length [08:15:51]Host: 172.17.44.131:8080 [08:15:51]Content-Length: 679 [08:15:51]Content-Type: application/json [08:15:51] [08:15:51]POST finish read [08:15:51]Found Content-Length = 679 [08:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "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" ] } } [08:15:51]execute_script... [08:15:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "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" ] } } [08:15:51]POST & json_proto [08:15:51]process_json_proto [08:15:51]json parsed OK: [08:15:51]protocol is kg_v1.0 [08:15:51]action value=close_receipt [08:15:51]process_action close_receipt [08:15:51]cmd_close_receipt [08:15:51]MH_GetDate [08:15:51]Write to MH i2c: F0 00 00 B3 00 A2 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: F0 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: F0 09 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: F0 09 00 B3 00 00 B8 96 C9 66 4F 53 BE 66 EE [08:15:51]GetLastDocTimeStamp 1724487131 [08:15:51]current date 1724487352 [08:15:51]FM_GetShiftState [08:15:51]SAM_PROTO_GetShiftState [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 13 01 00 [08:15:51]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:52]Read from MH i2c: E2 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EF [08:15:52]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:15:52]wFMCommunicate OK [08:15:52]SAM_PROTO_GetShiftState done [08:15:52]FM_GetShiftState done [08:15:52]opened in 1724458079 [08:15:52]opened+sec_in_day 1724544479 [08:15:52]quantity*price = 300075 [08:15:52]sum+1 = 300077 [08:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 67 24.08.2024 08:15 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178841 ФПД: 43561275587708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081552&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178841&fm=43561275587708&tin=02508201610067®Number=0000000000092561&sum=300000 [08:15:53]StoreToDocumentArchive [08:15:53]shift 471 fd 178841 [08:15:53]save to /storage/0471/doc_00178841 [08:15:53]save last doc name /storage/0471/doc_00178841 to /storage/kkm_last_doc_name [08:15:53]save OK [08:15:53]Clear old archive folders... [08:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:15:53]tlvbuf is 0174ED90 [08:15:53]SAM_PROTO_ClearQueue [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 09 00 00 [08:15:53]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_ClearQueue done [08:15:53]KKMCreateOFDPacket [08:15:53]OFDProtocolAddRootSTLVToBuf [08:15:53]FM_MakeSignedData [08:15:53]FM_MakeSignedData [08:15:53]SAM_PROTO_SignData [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 01 02 [08:15:53]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=255 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 43 00 00 00 F4 03 04 00 B8 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 BA 02 00 35 04 06 00 27 9E 66 5B [08:15:53]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 43 00 00 00 F4 03 04 00 B8 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 BA 02 00 35 04 06 00 27 9E 66 5B 00 00 73 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=7 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 02 02 02 7C 7C [08:15:53]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 7C 7C 00 00 3A [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 03 02 [08:15:53]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0B 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0B 00 C5 00 00 9F 93 16 07 A8 2F EB 12 90 00 64 [08:15:53]RAPDU: 9F 93 16 07 A8 2F EB 12 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_SignData done [08:15:53]FM_MakeSignedData done [08:15:53]CreateOFDProtocolMessage [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 11 00 00 [08:15:53]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 17 00 [08:15:53]MH_I2C_Read... [08:15:53]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 37 37 38 90 00 99 [08:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:15:53]wFMCommunicate OK [08:15:53]CreateOFDProtocolMessage done [08:15:53]OFDSenderStorePacket 178841 [08:15:53]StoreOFDPacket docnum=178841 [08:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D0 45 04 01 8E 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 43 00 00 00 F4 03 04 00 B8 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 BA 02 00 35 04 06 00 27 9E 66 5B 7C 7C 9F 93 16 07 A8 2F EB 12 [08:15:53]CheckFolder [08:15:53]dirname=/storage/ofd_packets [08:15:53]CheckFolder done [08:15:53]ProducePacketName [08:15:53]name=ofd_packets/00178841 [08:15:53]NVStorageSaveData ofd_packets/00178841 [08:15:53]File name is /storage/ofd_packets/00178841 [08:15:53]Write 298 bytes [08:15:53]NVStorageSaveData done [08:15:53]OFDSenderStorePacket done [08:15:53]KKMCreateOFDPacket done [08:15:53]NVStorageSaveData kkm_last_timestamp [08:15:53]File name is /storage/kkm_last_timestamp [08:15:53]Write 4 bytes [08:15:53]NVStorageSaveData done [08:15:53]ExternCall_PrintAddStr [08:15:53]wPrintStart [08:15:53]Write to MH i2c: 01 00 00 C7 00 C7 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 07 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [08:15:53]RasterBufferAndPrint [08:15:53]line Счет N : (1)295071 [08:15:53]line ИНН: 02508201610067 [08:15:53]line Контрольно-Кассовый Чек [08:15:53]line ПРОДАЖА [08:15:53]line ТРК (МРК, ГНК) : 21 [08:15:53]line Товар: 2710194800 [08:15:53]line ДТ-К-5 [08:15:53]line 39.380 * 76.20 [08:15:53]line = 3000.76 [08:15:53]line НДС 12% НСП 1% [08:15:53]line > о реализуемом товаре [08:15:53]line ОКРУГЛЕНИЕ: -0.76 [08:15:53]line ИТОГО: 3000.00 [08:15:53]line Внесено: 3000.00 [08:15:53]line СДАЧА: 0.00 [08:15:53]line НСП 1% : 26.55 [08:15:53]line НДС 12% : 318.66 [08:15:53]line Наличными: 3000.00 [08:15:53]line Безнал.: 0.00 [08:15:53]line Место: АЗС № 130 "Партнер Нефть" [08:15:53]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:15:53]line СНО: Общий режим [08:15:53]line Чек 67 24.08.2024 08:15 [08:15:53]line Смена: 471 ФФД: 1.0 [08:15:53]line ЗНМ: 0300000071 [08:15:53]line РНМ: 0000000000092561 [08:15:53]line Версия ККМ: 001 [08:15:53]line ФМ: 0000000000871778 [08:15:53]line ФД: 178841 [08:15:53]line ФПД: 43561275587708 [08:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081552&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178841&fm=43561275587708&tin=02508201610067®Number=0000000000092561&sum=300000 [08:15:53]written 0, free lines is 4095 [08:15:53]OFD Sender: Processing packet 178841 [packets to send 500, broken 499] [08:15:53]ProducePacketName [08:15:53]name=ofd_packets/00178841 [08:15:53]OFD Sender: To server: pG, [08:15:53]CommunicateWithHost lk.salyk.kg:30040 [08:15:53]ConnectInit lk.salyk.kg [08:15:54]Write to MH i2c: 01 00 00 F2 00 F2 [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 07 00 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 DD 0C E2 [08:15:54]RasterBufferAndPrint [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]written 0, free lines is 3299 [08:15:54]MH_Cut [08:15:54]Write to MH i2c: D1 01 00 F9 00 01 CB [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 01 00 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 01 00 F9 00 00 CA [08:15:54]Write to MH i2c: 01 00 00 FA 00 FA [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]Connected sock=7 [08:15: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 37 37 38 0C 01 00 00 D0 45 04 01 8E 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 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 43 00 00 00 F4 03 04 00 B8 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 BA 02 00 35 04 06 00 27 9E 66 5B 7C 7C 9F 93 16 07 A8 2F EB 12 [08:15:54]*** Cut start [08:15:54]*** Partial cut [08:15:54]*** CUTSNS_PIN = 1 [08:15:54]*** CUTSNS_PIN = 0 [08:15:55]*** Brake cut motor [08:15:55]Read from MH i2c: 01 [08:15:55]MH_I2C_Read... [08:15:55]*** Stop cut motor [08:15:55]*** Cut end [08:15:55]Read from MH i2c: 01 07 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [08:15:55]process_action close_receipt done [08:15:55]requested_data is exist [08:15:55]produce_requested_data [08:15:55]requested_item fm.sn is exist - process it [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 11 00 00 [08:15:55]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 17 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [08:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:15:55]wFMCommunicate OK [08:15:55]requested_item fd.num is exist - process it [08:15:55]SAM_PROTO_GetFieldsCounters [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 13 00 00 [08:15:55]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 62 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 62 00 FC 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 99 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [08:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 99 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:55]wFMCommunicate OK [08:15:55]SAM_PROTO_GetFieldsCounters done [08:15:55]requested_item shift.num is exist - process it [08:15:55]requested_item shift.opened is exist - process it [08:15:55]req_shift_opened [08:15:55]FM_GetShiftState [08:15:55]SAM_PROTO_GetShiftState [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 13 01 00 [08:15:55]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 0E 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 38 [08:15:55]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:15:55]wFMCommunicate OK [08:15:55]SAM_PROTO_GetShiftState done [08:15:55]FM_GetShiftState done [08:15:55]req_shift_opened done [08:15:55]requested_item shift.open_date is exist - process it [08:15:55]req_shift_open_date [08:15:55]req_shift_open_date done [08:15:55]produce_requested_data done [08:15:55]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178841,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:15:55]process_action_free close_receipt [08:15:55]json_value_free [08:15:55]json_value_free done [08:15:55]process_json_proto returns [08:15:55]Send response to host [08:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178841,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:15:55]free response buf [08:15:55]execute_script done [08:15:55]execute_script returns [08:15:55]free content buf [08:15:55]Sock 9.Close socket [08:15:55]Sock 9.Thread stoped [08:15:56]accept exits with 10 [08:15:56]New connection [08:15:56]New thread 3066969444 created [08:15:56]Thread 3067112804 joined [08:15:56]Waiting for new connection... [08:15:56] Sock 10.Parse request [08:15:56]Sock 10.Check first char [08:15:56]Sock 10.First char is OK [08:15:56]request: POST /json_proto HTTP/1.0 [08:15:56]Method: POST [08:15:56]URL: /json_proto [08:15:56]Method is POST - this is cgi request [08:15:56]url: /json_proto [08:15:56]query_string will be loaded in cgi processing [08:15:56]execute_cgi json_proto POST (null) [08:15:56]execute_cgi path=json_proto method=POST [08:15:56]POST find Content-Length [08:15:56]Host: 172.17.44.131:8080 [08:15:56]Content-Length: 679 [08:15:56]Content-Type: application/json [08:15:56] [08:15:56]POST finish read [08:15:56]Found Content-Length = 679 [08:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:15:56]execute_script... [08:15: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)295074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:15:56]POST & json_proto [08:15:56]process_json_proto [08:15:56]json parsed OK: [08:15:56]protocol is kg_v1.0 [08:15:56]action value=close_receipt [08:15:56]process_action close_receipt [08:15:56]cmd_close_receipt [08:15:56]MH_GetDate [08:15:56]Write to MH i2c: F0 00 00 FE 00 ED [08:15:56]Write i2c OK [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 09 00 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 09 00 FE 00 00 BC 96 C9 66 4F 53 BE 66 3D [08:15:56]GetLastDocTimeStamp 1724487352 [08:15:56]current date 1724487356 [08:15:56]FM_GetShiftState [08:15:56]SAM_PROTO_GetShiftState [08:15:56]wFMCommunicate request_size=4 [08:15:56]MH_SAM_APDU [08:15:56]CAPDU: 80 13 01 00 [08:15:56]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [08:15:56]Write i2c OK [08:15:56]MH_I2C_Read... [08:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:56]Read from MH i2c: E2 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: E2 0E 00 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 3A [08:15:56]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:15:56]wFMCommunicate OK [08:15:56]SAM_PROTO_GetShiftState done [08:15:56]FM_GetShiftState done [08:15:56]opened in 1724458079 [08:15:56]opened+sec_in_day 1724544479 [08:15:56]quantity*price = 100050 [08:15:56]sum+1 = 100052 [08:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 68 24.08.2024 08:15 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178842 ФПД: 76666876897491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081556&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178842&fm=76666876897491&tin=02508201610067®Number=0000000000092561&sum=100000 [08:15:57]StoreToDocumentArchive [08:15:57]shift 471 fd 178842 [08:15:57]save to /storage/0471/doc_00178842 [08:15:57]save last doc name /storage/0471/doc_00178842 to /storage/kkm_last_doc_name [08:15:57]save OK [08:15:57]Clear old archive folders... [08:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:15:57]tlvbuf is 01750B10 [08:15:57]SAM_PROTO_ClearQueue [08:15:57]wFMCommunicate request_size=4 [08:15:57]MH_SAM_APDU [08:15:57]CAPDU: 80 09 00 00 [08:15:57]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [08:15:57]Write i2c OK [08:15:57]MH_I2C_Read... [08:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:57]Read from MH i2c: E2 [08:15:57]MH_I2C_Read... [08:15:57]Read from MH i2c: E2 03 00 [08:15:57]MH_I2C_Read... [08:15:57]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [08:15:57]RAPDU: 90 00 [08:15:57]wFMCommunicate OK [08:15:57]SAM_PROTO_ClearQueue done [08:15:57]KKMCreateOFDPacket [08:15:57]OFDProtocolAddRootSTLVToBuf [08:15:57]FM_MakeSignedData [08:15:57]FM_MakeSignedData [08:15:57]SAM_PROTO_SignData [08:15:57]wFMCommunicate request_size=4 [08:15:57]MH_SAM_APDU [08:15:57]CAPDU: 80 0D 01 02 [08:15:57]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [08:15:57]Write i2c OK [08:15:57]MH_I2C_Read... [08:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:57]Read from MH i2c: E2 [08:15:57]MH_I2C_Read... [08:15:57]Read from MH i2c: E2 03 00 [08:15:57]MH_I2C_Read... [08:15:57]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [08:15:57]RAPDU: 90 00 [08:15:57]wFMCommunicate OK [08:15:57]wFMCommunicate request_size=255 [08:15:57]MH_SAM_APDU [08:15:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 44 00 00 00 F4 03 04 00 BC 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A BA 02 00 35 04 06 00 45 BA 65 F6 [08:15:57]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 44 00 00 00 F4 03 04 00 BC 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A BA 02 00 35 04 06 00 45 BA 65 F6 00 00 62 [08:15:57]Write i2c OK [08:15:57]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]wFMCommunicate request_size=7 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 02 02 02 A8 D3 [08:15:58]Write to MH i2c: E2 0A 00 0F 01 80 0D 02 02 02 00 A8 D3 00 00 09 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 03 02 [08:15:58]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 0B 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 0B 00 10 01 00 2A 4C F4 A4 49 9D 98 7A 90 00 93 [08:15:58]RAPDU: 2A 4C F4 A4 49 9D 98 7A 90 00 [08:15:58]wFMCommunicate OK [08:15:58]SAM_PROTO_SignData done [08:15:58]FM_MakeSignedData done [08:15:58]CreateOFDProtocolMessage [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 11 00 00 [08:15:58]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 17 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [08:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:15:58]wFMCommunicate OK [08:15:58]CreateOFDProtocolMessage done [08:15:58]OFDSenderStorePacket 178842 [08:15:58]StoreOFDPacket docnum=178842 [08:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F1 F7 04 01 17 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 44 00 00 00 F4 03 04 00 BC 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A BA 02 00 35 04 06 00 45 BA 65 F6 A8 D3 2A 4C F4 A4 49 9D 98 7A [08:15:58]CheckFolder [08:15:58]dirname=/storage/ofd_packets [08:15:58]CheckFolder done [08:15:58]ProducePacketName [08:15:58]name=ofd_packets/00178842 [08:15:58]NVStorageSaveData ofd_packets/00178842 [08:15:58]File name is /storage/ofd_packets/00178842 [08:15:58]Write 298 bytes [08:15:58]NVStorageSaveData done [08:15:58]OFDSenderStorePacket done [08:15:58]KKMCreateOFDPacket done [08:15:58]NVStorageSaveData kkm_last_timestamp [08:15:58]File name is /storage/kkm_last_timestamp [08:15:58]Write 4 bytes [08:15:58]NVStorageSaveData done [08:15:58]ExternCall_PrintAddStr [08:15:58]wPrintStart [08:15:58]Write to MH i2c: 01 00 00 12 01 13 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [08:15:58]RasterBufferAndPrint [08:15:58]line Счет N : (1)295074 [08:15:58]line ИНН: 02508201610067 [08:15:58]line Контрольно-Кассовый Чек [08:15:58]line ПРОДАЖА [08:15:58]line ТРК (МРК, ГНК) : 54 [08:15:58]line Товар: 2710194800 [08:15:58]line ДТ-К-5 [08:15:58]line 13.130 * 76.20 [08:15:58]line = 1000.51 [08:15:58]line НДС 12% НСП 1% [08:15:58]line > о реализуемом товаре [08:15:58]line ОКРУГЛЕНИЕ: -0.51 [08:15:58]line ИТОГО: 1000.00 [08:15:58]line Внесено: 1000.00 [08:15:58]line СДАЧА: 0.00 [08:15:58]line НСП 1% : 8.85 [08:15:58]line НДС 12% : 106.25 [08:15:58]line Наличными: 1000.00 [08:15:58]line Безнал.: 0.00 [08:15:58]line Место: АЗС № 130 "Партнер Нефть" [08:15:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:15:58]line СНО: Общий режим [08:15:58]line Чек 68 24.08.2024 08:15 [08:15:58]line Смена: 471 ФФД: 1.0 [08:15:58]line ЗНМ: 0300000071 [08:15:58]line РНМ: 0000000000092561 [08:15:58]line Версия ККМ: 001 [08:15:58]line ФМ: 0000000000871778 [08:15:58]line ФД: 178842 [08:15:58]line ФПД: 76666876897491 [08:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081556&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178842&fm=76666876897491&tin=02508201610067®Number=0000000000092561&sum=100000 [08:15:58]written 0, free lines is 4095 [08:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EA 25 47 00 07 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 37 37 38 10 04 04 00 99 BA 02 00 F4 03 04 00 5E 42 C9 66 B6 04 01 00 00 CA B1 B6 4F A6 37 5D C5 [08:15:58]CommunicateWithHost err = 0 [08:15:58]CheckOFDResponse [08:15:58]1017 (14) - 77093643461234 [08:15:58]1041 (16) - 0000000000871778 [08:15:58]1040 (4) - 178841 [08:15:58]1012 (4) - 24.08.2024 02:15 [08:15:58]1206 (1) - 0 [08:15:58]OFD Sender: Remove packet 178841 [08:15:58]ProducePacketName [08:15:58]name=ofd_packets/00178841 [08:15:58]NVStorageDeleteData [08:15:58]Write to MH i2c: 01 00 00 3D 01 3E [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 E9 0C 3A [08:15:58]RasterBufferAndPrint [08:15:58]line [08:15:58]line [08:15:58]line [08:15:58]line [08:15:58]line [08:15:58]written 0, free lines is 3320 [08:15:58]MH_Cut [08:15:58]Write to MH i2c: D1 01 00 44 01 01 17 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: D1 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: D1 01 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: D1 01 00 44 01 00 16 [08:15:58]Write to MH i2c: 01 00 00 45 01 46 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:59]OFD Sender: Processing packet 178842 [packets to send 500, broken 499] [08:15:59]ProducePacketName [08:15:59]name=ofd_packets/00178842 [08:15:59]OFD Sender: To server: pG, [08:15:59]CommunicateWithHost lk.salyk.kg:30040 [08:15:59]ConnectInit lk.salyk.kg [08:15:59]*** Cut start [08:15:59]*** Partial cut [08:15:59]*** CUTSNS_PIN = 1 [08:15:59]*** CUTSNS_PIN = 0 [08:15:59]*** Brake cut motor [08:15:59]Read from MH i2c: 01 [08:15:59]MH_I2C_Read... [08:15:59]*** Stop cut motor [08:15:59]*** Cut end [08:15:59]Read from MH i2c: 01 07 00 [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [08:16:00]process_action close_receipt done [08:16:00]requested_data is exist [08:16:00]produce_requested_data [08:16:00]requested_item fm.sn is exist - process it [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 11 00 00 [08:16:00]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 17 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1A [08:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:16:00]wFMCommunicate OK [08:16:00]requested_item fd.num is exist - process it [08:16:00]SAM_PROTO_GetFieldsCounters [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 13 00 00 [08:16:00]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 62 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [08:16: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9A BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:00]wFMCommunicate OK [08:16:00]SAM_PROTO_GetFieldsCounters done [08:16:00]requested_item shift.num is exist - process it [08:16:00]requested_item shift.opened is exist - process it [08:16:00]req_shift_opened [08:16:00]FM_GetShiftState [08:16:00]SAM_PROTO_GetShiftState [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 13 01 00 [08:16:00]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 84 [08:16:00]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:16:00]wFMCommunicate OK [08:16:00]SAM_PROTO_GetShiftState done [08:16:00]FM_GetShiftState done [08:16:00]req_shift_opened done [08:16:00]requested_item shift.open_date is exist - process it [08:16:00]req_shift_open_date [08:16:00]req_shift_open_date done [08:16:00]produce_requested_data done [08:16:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178842,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:16:00]process_action_free close_receipt [08:16:00]json_value_free [08:16:00]json_value_free done [08:16:00]process_json_proto returns [08:16:00]Send response to host [08:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178842,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:16:00]free response buf [08:16:00]execute_script done [08:16:00]execute_script returns [08:16:00]free content buf [08:16:00]Sock 10.Close socket [08:16:00]Sock 10.Thread stoped [08:16:04]Connected sock=7 [08:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F1 F7 04 01 17 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 44 00 00 00 F4 03 04 00 BC 96 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A BA 02 00 35 04 06 00 45 BA 65 F6 A8 D3 2A 4C F4 A4 49 9D 98 7A [08:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 88 65 47 00 AB 8F 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 37 37 38 10 04 04 00 9A BA 02 00 F4 03 04 00 67 42 C9 66 B6 04 01 00 00 28 59 24 9F D8 76 43 54 [08:16:04]CommunicateWithHost err = 0 [08:16:04]CheckOFDResponse [08:16:04]1017 (14) - 77093643461234 [08:16:04]1041 (16) - 0000000000871778 [08:16:04]1040 (4) - 178842 [08:16:04]1012 (4) - 24.08.2024 02:16 [08:16:04]1206 (1) - 0 [08:16:04]OFD Sender: Remove packet 178842 [08:16:04]ProducePacketName [08:16:04]name=ofd_packets/00178842 [08:16:04]NVStorageDeleteData [08:16:04]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:27]recv_with_timeout no data received [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: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: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:17:59]recv_with_timeout no data received [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:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:54]recv_with_timeout no data received [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:14]accept exits with 9 [08:19:14]New connection [08:19:14]New thread 3067112804 created [08:19:14]Thread 3066969444 joined [08:19:14]Waiting for new connection... [08:19:14] Sock 9.Parse request [08:19:14]Sock 9.Check first char [08:19:14]Sock 9.First char is OK [08:19:14]request: POST /json_proto HTTP/1.0 [08:19:14]Method: POST [08:19:14]URL: /json_proto [08:19:14]Method is POST - this is cgi request [08:19:14]url: /json_proto [08:19:14]query_string will be loaded in cgi processing [08:19:14]execute_cgi json_proto POST (null) [08:19:14]execute_cgi path=json_proto method=POST [08:19:14]POST find Content-Length [08:19:14]Host: 172.17.44.131:8080 [08:19:14]Content-Length: 679 [08:19:14]Content-Type: application/json [08:19:14] [08:19:14]POST finish read [08:19:14]Found Content-Length = 679 [08:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [08:19:14]execute_script... [08:19: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)295076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\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" ] } } [08:19:14]POST & json_proto [08:19:14]process_json_proto [08:19:14]json parsed OK: [08:19:14]protocol is kg_v1.0 [08:19:14]action value=close_receipt [08:19:14]process_action close_receipt [08:19:14]cmd_close_receipt [08:19:14]MH_GetDate [08:19:14]Write to MH i2c: F0 00 00 49 01 39 [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: F0 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: F0 09 00 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: F0 09 00 49 01 00 82 97 C9 66 4F 53 BE 66 50 [08:19:14]GetLastDocTimeStamp 1724487356 [08:19:14]current date 1724487554 [08:19:14]FM_GetShiftState [08:19:14]SAM_PROTO_GetShiftState [08:19:14]wFMCommunicate request_size=4 [08:19:14]MH_SAM_APDU [08:19:14]CAPDU: 80 13 01 00 [08:19:14]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [08:19:14]Write i2c OK [08:19:14]MH_I2C_Read... [08:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:14]Read from MH i2c: E2 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: E2 0E 00 [08:19:14]MH_I2C_Read... [08:19:14]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 86 [08:19:14]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:19:14]wFMCommunicate OK [08:19:14]SAM_PROTO_GetShiftState done [08:19:14]FM_GetShiftState done [08:19:14]opened in 1724458079 [08:19:14]opened+sec_in_day 1724544479 [08:19:14]quantity*price = 150037 [08:19:14]sum+1 = 150039 [08:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 69 24.08.2024 08:19 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178843 ФПД: 184397286833166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081914&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178843&fm=184397286833166&tin=02508201610067®Number=0000000000092561&sum=150000 [08:19:15]StoreToDocumentArchive [08:19:15]shift 471 fd 178843 [08:19:15]save to /storage/0471/doc_00178843 [08:19:15]save last doc name /storage/0471/doc_00178843 to /storage/kkm_last_doc_name [08:19:15]save OK [08:19:15]Clear old archive folders... [08:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:15]tlvbuf is 0177ABC0 [08:19:15]SAM_PROTO_ClearQueue [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 09 00 00 [08:19:15]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]SAM_PROTO_ClearQueue done [08:19:15]KKMCreateOFDPacket [08:19:15]OFDProtocolAddRootSTLVToBuf [08:19:15]FM_MakeSignedData [08:19:15]FM_MakeSignedData [08:19:15]SAM_PROTO_SignData [08:19:15]wFMCommunicate request_size=4 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 01 02 [08:19:15]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:15]Read from MH i2c: E2 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 [08:19:15]MH_I2C_Read... [08:19:15]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [08:19:15]RAPDU: 90 00 [08:19:15]wFMCommunicate OK [08:19:15]wFMCommunicate request_size=255 [08:19:15]MH_SAM_APDU [08:19:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 45 00 00 00 F4 03 04 00 82 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B BA 02 00 35 04 06 00 A7 B5 56 C7 [08:19:15]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 45 00 00 00 F4 03 04 00 82 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B BA 02 00 35 04 06 00 A7 B5 56 C7 00 00 0C [08:19:15]Write i2c OK [08:19:15]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]wFMCommunicate request_size=7 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 0D 02 02 02 7C 0E [08:19:16]Write to MH i2c: E2 0A 00 5A 01 80 0D 02 02 02 00 7C 0E 00 00 63 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [08:19:16]RAPDU: 90 00 [08:19:16]wFMCommunicate OK [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 0D 03 02 [08:19:16]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0B 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 0B 00 5B 01 00 7A 10 1E C6 78 6C C0 29 90 00 13 [08:19:16]RAPDU: 7A 10 1E C6 78 6C C0 29 90 00 [08:19:16]wFMCommunicate OK [08:19:16]SAM_PROTO_SignData done [08:19:16]FM_MakeSignedData done [08:19:16]CreateOFDProtocolMessage [08:19:16]wFMCommunicate request_size=4 [08:19:16]MH_SAM_APDU [08:19:16]CAPDU: 80 11 00 00 [08:19:16]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:16]Read from MH i2c: E2 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 30 [08:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:19:16]wFMCommunicate OK [08:19:16]CreateOFDProtocolMessage done [08:19:16]OFDSenderStorePacket 178843 [08:19:16]StoreOFDPacket docnum=178843 [08:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F0 9C 04 01 B3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 45 00 00 00 F4 03 04 00 82 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B BA 02 00 35 04 06 00 A7 B5 56 C7 7C 0E 7A 10 1E C6 78 6C C0 29 [08:19:16]CheckFolder [08:19:16]dirname=/storage/ofd_packets [08:19:16]CheckFolder done [08:19:16]ProducePacketName [08:19:16]name=ofd_packets/00178843 [08:19:16]NVStorageSaveData ofd_packets/00178843 [08:19:16]File name is /storage/ofd_packets/00178843 [08:19:16]Write 298 bytes [08:19:16]NVStorageSaveData done [08:19:16]OFDSenderStorePacket done [08:19:16]KKMCreateOFDPacket done [08:19:16]NVStorageSaveData kkm_last_timestamp [08:19:16]File name is /storage/kkm_last_timestamp [08:19:16]Write 4 bytes [08:19:16]NVStorageSaveData done [08:19:16]ExternCall_PrintAddStr [08:19:16]wPrintStart [08:19:16]Write to MH i2c: 01 00 00 5D 01 5E [08:19:16]Write i2c OK [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 07 00 [08:19:16]MH_I2C_Read... [08:19:16]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [08:19:16]RasterBufferAndPrint [08:19:16]line Счет N : (1)295076 [08:19:16]line ИНН: 02508201610067 [08:19:16]line Контрольно-Кассовый Чек [08:19:16]line ПРОДАЖА [08:19:16]line ТРК (МРК, ГНК) : 11 [08:19:16]line Товар: 2710194800 [08:19:16]line ДТ-К-5 [08:19:16]line 19.690 * 76.20 [08:19:16]line = 1500.38 [08:19:16]line НДС 12% НСП 1% [08:19:16]line > о реализуемом товаре [08:19:16]line ОКРУГЛЕНИЕ: -0.38 [08:19:16]line ИТОГО: 1500.00 [08:19:16]line Внесено: 1500.00 [08:19:16]line СДАЧА: 0.00 [08:19:16]line НСП 1% : 13.28 [08:19:16]line НДС 12% : 159.33 [08:19:16]line Наличными: 1500.00 [08:19:16]line Безнал.: 0.00 [08:19:16]line Место: АЗС № 130 "Партнер Нефть" [08:19:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:19:16]line СНО: Общий режим [08:19:16]line Чек 69 24.08.2024 08:19 [08:19:16]line Смена: 471 ФФД: 1.0 [08:19:16]line ЗНМ: 0300000071 [08:19:16]line РНМ: 0000000000092561 [08:19:16]line Версия ККМ: 001 [08:19:16]line ФМ: 0000000000871778 [08:19:16]line ФД: 178843 [08:19:16]line ФПД: 184397286833166 [08:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T081914&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178843&fm=184397286833166&tin=02508201610067®Number=0000000000092561&sum=150000 [08:19:16]OFD Sender: Processing packet 178843 [packets to send 500, broken 499] [08:19:16]ProducePacketName [08:19:16]name=ofd_packets/00178843 [08:19:16]OFD Sender: To server: pG, [08:19:16]CommunicateWithHost lk.salyk.kg:30040 [08:19:16]ConnectInit lk.salyk.kg [08:19:16]written 0, free lines is 4095 [08:19:17]Write to MH i2c: 01 00 00 88 01 89 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 07 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 DC 0C 78 [08:19:17]RasterBufferAndPrint [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]line [08:19:17]written 0, free lines is 3298 [08:19:17]MH_Cut [08:19:17]Write to MH i2c: D1 01 00 8F 01 01 62 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 01 00 [08:19:17]MH_I2C_Read... [08:19:17]Read from MH i2c: D1 01 00 8F 01 00 61 [08:19:17]Write to MH i2c: 01 00 00 90 01 91 [08:19:17]Write i2c OK [08:19:17]MH_I2C_Read... [08:19:17]Connected sock=10 [08:19: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 37 37 38 0C 01 00 00 F0 9C 04 01 B3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 45 00 00 00 F4 03 04 00 82 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B BA 02 00 35 04 06 00 A7 B5 56 C7 7C 0E 7A 10 1E C6 78 6C C0 29 [08:19:17]*** Cut start [08:19:17]*** Partial cut [08:19:17]*** CUTSNS_PIN = 1 [08:19:17]*** CUTSNS_PIN = 0 [08:19:18]*** Brake cut motor [08:19:18]Read from MH i2c: 01 [08:19:18]MH_I2C_Read... [08:19:18]*** Stop cut motor [08:19:18]*** Cut end [08:19:18]Read from MH i2c: 01 07 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [08:19:18]process_action close_receipt done [08:19:18]requested_data is exist [08:19:18]produce_requested_data [08:19:18]requested_item fm.sn is exist - process it [08:19:18]wFMCommunicate request_size=4 [08:19:18]MH_SAM_APDU [08:19:18]CAPDU: 80 11 00 00 [08:19:18]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [08:19:18]Write i2c OK [08:19:18]MH_I2C_Read... [08:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:18]Read from MH i2c: E2 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 17 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 65 [08:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:19:18]wFMCommunicate OK [08:19:18]requested_item fd.num is exist - process it [08:19:18]SAM_PROTO_GetFieldsCounters [08:19:18]wFMCommunicate request_size=4 [08:19:18]MH_SAM_APDU [08:19:18]CAPDU: 80 13 00 00 [08:19:18]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [08:19:18]Write i2c OK [08:19:18]MH_I2C_Read... [08:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:18]Read from MH i2c: E2 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 62 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 62 00 92 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [08:19: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9B BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:18]wFMCommunicate OK [08:19:18]SAM_PROTO_GetFieldsCounters done [08:19:18]requested_item shift.num is exist - process it [08:19:18]requested_item shift.opened is exist - process it [08:19:18]req_shift_opened [08:19:18]FM_GetShiftState [08:19:18]SAM_PROTO_GetShiftState [08:19:18]wFMCommunicate request_size=4 [08:19:18]MH_SAM_APDU [08:19:18]CAPDU: 80 13 01 00 [08:19:18]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [08:19:18]Write i2c OK [08:19:18]MH_I2C_Read... [08:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:18]Read from MH i2c: E2 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 0E 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CF [08:19:18]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:19:18]wFMCommunicate OK [08:19:18]SAM_PROTO_GetShiftState done [08:19:18]FM_GetShiftState done [08:19:18]req_shift_opened done [08:19:18]requested_item shift.open_date is exist - process it [08:19:18]req_shift_open_date [08:19:18]req_shift_open_date done [08:19:18]produce_requested_data done [08:19:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178843,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:19:18]process_action_free close_receipt [08:19:18]json_value_free [08:19:18]json_value_free done [08:19:18]process_json_proto returns [08:19:18]Send response to host [08:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178843,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:19:18]free response buf [08:19:18]execute_script done [08:19:18]execute_script returns [08:19:18]free content buf [08:19:18]Sock 9.Close socket [08:19:18]Sock 9.Thread stoped [08:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B3 C7 47 00 A3 C3 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 37 37 38 10 04 04 00 9B BA 02 00 F4 03 04 00 29 43 C9 66 B6 04 01 00 00 AB 55 50 29 CD 93 E9 F1 [08:19:18]CommunicateWithHost err = 0 [08:19:18]CheckOFDResponse [08:19:18]1017 (14) - 77093643461234 [08:19:18]1041 (16) - 0000000000871778 [08:19:18]1040 (4) - 178843 [08:19:18]1012 (4) - 24.08.2024 02:19 [08:19:18]1206 (1) - 0 [08:19:18]OFD Sender: Remove packet 178843 [08:19:18]ProducePacketName [08:19:18]name=ofd_packets/00178843 [08:19:18]NVStorageDeleteData [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:07]accept exits with 7 [08:20:07]New connection [08:20:07]New thread 3066969444 created [08:20:07]Thread 3067112804 joined [08:20:07]Waiting for new connection... [08:20:07] Sock 7.Parse request [08:20:07]Sock 7.Check first char [08:20:07]Sock 7.First char is OK [08:20:07]request: POST /json_proto HTTP/1.0 [08:20:07]Method: POST [08:20:07]URL: /json_proto [08:20:07]Method is POST - this is cgi request [08:20:07]url: /json_proto [08:20:07]query_string will be loaded in cgi processing [08:20:07]execute_cgi json_proto POST (null) [08:20:07]execute_cgi path=json_proto method=POST [08:20:07]POST find Content-Length [08:20:07]Host: 172.17.44.131:8080 [08:20:07]Content-Length: 677 [08:20:07]Content-Type: application/json [08:20:07] [08:20:07]POST finish read [08:20:07]Found Content-Length = 677 [08:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:07]execute_script... [08:20: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)295079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:07]POST & json_proto [08:20:07]process_json_proto [08:20:07]json parsed OK: [08:20:07]protocol is kg_v1.0 [08:20:07]action value=close_receipt [08:20:07]process_action close_receipt [08:20:07]cmd_close_receipt [08:20:07]MH_GetDate [08:20:07]Write to MH i2c: F0 00 00 94 01 84 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 94 01 00 B7 97 C9 66 4F 53 BE 66 D0 [08:20:07]GetLastDocTimeStamp 1724487554 [08:20:07]current date 1724487607 [08:20:07]FM_GetShiftState [08:20:07]SAM_PROTO_GetShiftState [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 13 01 00 [08:20:07]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D1 [08:20:07]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:20:07]wFMCommunicate OK [08:20:07]SAM_PROTO_GetShiftState done [08:20:07]FM_GetShiftState done [08:20:07]opened in 1724458079 [08:20:07]opened+sec_in_day 1724544479 [08:20:07]quantity*price = 35052 [08:20:07]sum+1 = 35054 [08:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 70 24.08.2024 08:20 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178844 ФПД: 83613942662536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082007&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178844&fm=83613942662536&tin=02508201610067®Number=0000000000092561&sum=35000 [08:20:08]StoreToDocumentArchive [08:20:08]shift 471 fd 178844 [08:20:08]save to /storage/0471/doc_00178844 [08:20:08]save last doc name /storage/0471/doc_00178844 to /storage/kkm_last_doc_name [08:20:08]save OK [08:20:08]Clear old archive folders... [08:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:08]tlvbuf is 017DE7C0 [08:20:08]SAM_PROTO_ClearQueue [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 09 00 00 [08:20:08]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_ClearQueue done [08:20:08]KKMCreateOFDPacket [08:20:08]OFDProtocolAddRootSTLVToBuf [08:20:08]FM_MakeSignedData [08:20:08]FM_MakeSignedData [08:20:08]SAM_PROTO_SignData [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 01 02 [08:20:08]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=255 [08:20:08]MH_SAM_APDU [08:20:08]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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 8A 0E 00 00 00 00 07 04 06 00 B8 88 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 B7 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C BA 02 00 35 04 06 00 4C [08:20:08]Write to MH i2c: E2 02 01 A4 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 8A 0E 00 00 00 00 07 04 06 00 B8 88 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 B7 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C BA 02 00 35 04 06 00 4C 00 00 0A [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=10 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 05 0B E3 59 C5 88 [08:20:08]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 0B E3 59 C5 88 00 00 BE [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 03 02 [08:20:08]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 A6 01 00 A2 2F F6 51 EA AA CB DC 90 00 76 [08:20:08]RAPDU: A2 2F F6 51 EA AA CB DC 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_SignData done [08:20:08]FM_MakeSignedData done [08:20:08]CreateOFDProtocolMessage [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 11 00 00 [08:20:08]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7B [08:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:20:08]wFMCommunicate OK [08:20:08]CreateOFDProtocolMessage done [08:20:08]OFDSenderStorePacket 178844 [08:20:08]StoreOFDPacket docnum=178844 [08:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8B 09 07 01 60 B2 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 8A 0E 00 00 00 00 07 04 06 00 B8 88 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 B7 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C BA 02 00 35 04 06 00 4C 0B E3 59 C5 88 A2 2F F6 51 EA AA CB DC [08:20:08]CheckFolder [08:20:08]dirname=/storage/ofd_packets [08:20:08]CheckFolder done [08:20:08]ProducePacketName [08:20:08]name=ofd_packets/00178844 [08:20:08]NVStorageSaveData ofd_packets/00178844 [08:20:08]File name is /storage/ofd_packets/00178844 [08:20:08]Write 301 bytes [08:20:08]NVStorageSaveData done [08:20:08]OFDSenderStorePacket done [08:20:08]KKMCreateOFDPacket done [08:20:08]NVStorageSaveData kkm_last_timestamp [08:20:08]File name is /storage/kkm_last_timestamp [08:20:08]Write 4 bytes [08:20:08]NVStorageSaveData done [08:20:08]ExternCall_PrintAddStr [08:20:08]wPrintStart [08:20:08]Write to MH i2c: 01 00 00 A8 01 A9 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [08:20:08]RasterBufferAndPrint [08:20:08]line Счет N : (1)295079 [08:20:08]line ИНН: 02508201610067 [08:20:08]line Контрольно-Кассовый Чек [08:20:08]line ПРОДАЖА [08:20:08]line ТРК (МРК, ГНК) : 32 [08:20:08]line Товар: 2710124130 [08:20:08]line Аи-92-К-5 [08:20:08]line 5.170 * 67.80 [08:20:08]line = 350.53 [08:20:08]line НДС 12% НСП 1% [08:20:08]line > о реализуемом товаре [08:20:08]line ОКРУГЛЕНИЕ: -0.53 [08:20:08]line ИТОГО: 350.00 [08:20:08]line Внесено: 350.00 [08:20:08]line СДАЧА: 0.00 [08:20:08]line НСП 1% : 3.10 [08:20:08]line НДС 12% : 37.22 [08:20:08]line Наличными: 350.00 [08:20:08]line Безнал.: 0.00 [08:20:08]line Место: АЗС № 130 "Партнер Нефть" [08:20:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:20:08]line СНО: Общий режим [08:20:08]line Чек 70 24.08.2024 08:20 [08:20:08]line Смена: 471 ФФД: 1.0 [08:20:08]line ЗНМ: 0300000071 [08:20:08]line РНМ: 0000000000092561 [08:20:08]line Версия ККМ: 001 [08:20:08]line ФМ: 0000000000871778 [08:20:08]line ФД: 178844 [08:20:08]line ФПД: 83613942662536 [08:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082007&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178844&fm=83613942662536&tin=02508201610067®Number=0000000000092561&sum=35000 [08:20:08]written 0, free lines is 4095 [08:20:09]OFD Sender: Processing packet 178844 [packets to send 500, broken 499] [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00178844 [08:20:09]OFD Sender: To server: pG, [08:20:09]CommunicateWithHost lk.salyk.kg:30040 [08:20:09]ConnectInit lk.salyk.kg [08:20:09]Write to MH i2c: 01 00 00 D3 01 D4 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 CE 0C B5 [08:20:09]RasterBufferAndPrint [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]written 0, free lines is 3285 [08:20:09]MH_Cut [08:20:09]Write to MH i2c: D1 01 00 DA 01 01 AD [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 DA 01 00 AC [08:20:09]Write to MH i2c: 01 00 00 DB 01 DC [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:10]Connected sock=10 [08:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8B 09 07 01 60 B2 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 8A 0E 00 00 00 00 07 04 06 00 B8 88 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 B7 97 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C BA 02 00 35 04 06 00 4C 0B E3 59 C5 88 A2 2F F6 51 EA AA CB DC [08:20:10]*** Cut start [08:20:10]*** Partial cut [08:20:10]*** CUTSNS_PIN = 1 [08:20:10]*** CUTSNS_PIN = 0 [08:20:10]*** Brake cut motor [08:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 83 F1 47 00 5A 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 37 37 38 10 04 04 00 9C BA 02 00 F4 03 04 00 5D 43 C9 66 B6 04 01 00 00 84 B1 7E 12 F8 ED 87 DD [08:20:10]CommunicateWithHost err = 0 [08:20:10]CheckOFDResponse [08:20:10]1017 (14) - 77093643461234 [08:20:10]1041 (16) - 0000000000871778 [08:20:10]1040 (4) - 178844 [08:20:10]1012 (4) - 24.08.2024 02:20 [08:20:10]1206 (1) - 0 [08:20:10]OFD Sender: Remove packet 178844 [08:20:10]ProducePacketName [08:20:10]name=ofd_packets/00178844 [08:20:10]NVStorageDeleteData [08:20:10]Read from MH i2c: 01 [08:20:10]MH_I2C_Read... [08:20:10]*** Stop cut motor [08:20:10]*** Cut end [08:20:10]Read from MH i2c: 01 07 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [08:20:10]process_action close_receipt done [08:20:10]requested_data is exist [08:20:10]produce_requested_data [08:20:10]requested_item fm.sn is exist - process it [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 11 00 00 [08:20:10]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B0 [08:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:20:10]wFMCommunicate OK [08:20:10]requested_item fd.num is exist - process it [08:20:10]SAM_PROTO_GetFieldsCounters [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 00 00 [08:20:10]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 62 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 62 00 DD 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [08:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9C BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetFieldsCounters done [08:20:10]requested_item shift.num is exist - process it [08:20:10]requested_item shift.opened is exist - process it [08:20:10]req_shift_opened [08:20:10]FM_GetShiftState [08:20:10]SAM_PROTO_GetShiftState [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 01 00 [08:20:10]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]OFD Sender: No OFD packet to send [08:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 1A [08:20:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetShiftState done [08:20:11]FM_GetShiftState done [08:20:11]req_shift_opened done [08:20:11]requested_item shift.open_date is exist - process it [08:20:11]req_shift_open_date [08:20:11]req_shift_open_date done [08:20:11]produce_requested_data done [08:20:11]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178844,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:20:11]process_action_free close_receipt [08:20:11]json_value_free [08:20:11]json_value_free done [08:20:11]process_json_proto returns [08:20:11]Send response to host [08:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178844,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:20:11]free response buf [08:20:11]execute_script done [08:20:11]execute_script returns [08:20:11]free content buf [08:20:11]Sock 7.Close socket [08:20:11]Sock 7.Thread stoped [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:45]recv_with_timeout no data received [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:23]recv_with_timeout no data received [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:33]recv_with_timeout no data received [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:32]accept exits with 9 [08:24:32]New connection [08:24:32]New thread 3067112804 created [08:24:32]Thread 3066969444 joined [08:24:32]Waiting for new connection... [08:24:32] Sock 9.Parse request [08:24:32]Sock 9.Check first char [08:24:32]Sock 9.First char is OK [08:24:32]request: POST /json_proto HTTP/1.0 [08:24:32]Method: POST [08:24:32]URL: /json_proto [08:24:32]Method is POST - this is cgi request [08:24:32]url: /json_proto [08:24:32]query_string will be loaded in cgi processing [08:24:32]execute_cgi json_proto POST (null) [08:24:32]execute_cgi path=json_proto method=POST [08:24:32]POST find Content-Length [08:24:32]Host: 172.17.44.131:8080 [08:24:32]Content-Length: 679 [08:24:32]Content-Type: application/json [08:24:32] [08:24:32]POST finish read [08:24:32]Found Content-Length = 679 [08:24:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:24:32]execute_script... [08:24: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)295083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:24:32]POST & json_proto [08:24:32]process_json_proto [08:24:32]json parsed OK: [08:24:32]protocol is kg_v1.0 [08:24:32]action value=close_receipt [08:24:32]process_action close_receipt [08:24:32]cmd_close_receipt [08:24:32]MH_GetDate [08:24:32]Write to MH i2c: F0 00 00 DF 01 CF [08:24:32]Write i2c OK [08:24:32]MH_I2C_Read... [08:24:32]Read from MH i2c: F0 [08:24:32]MH_I2C_Read... [08:24:32]Read from MH i2c: F0 09 00 [08:24:32]MH_I2C_Read... [08:24:32]Read from MH i2c: F0 09 00 DF 01 00 C1 98 C9 66 4F 53 BE 66 26 [08:24:32]GetLastDocTimeStamp 1724487607 [08:24:32]current date 1724487873 [08:24:32]FM_GetShiftState [08:24:32]SAM_PROTO_GetShiftState [08:24:32]wFMCommunicate request_size=4 [08:24:32]MH_SAM_APDU [08:24:32]CAPDU: 80 13 01 00 [08:24:32]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [08:24:32]Write i2c OK [08:24:32]MH_I2C_Read... [08:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:32]Read from MH i2c: E2 [08:24:32]MH_I2C_Read... [08:24:32]Read from MH i2c: E2 0E 00 [08:24:32]MH_I2C_Read... [08:24:32]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 1C [08:24:32]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:24:32]wFMCommunicate OK [08:24:32]SAM_PROTO_GetShiftState done [08:24:32]FM_GetShiftState done [08:24:32]opened in 1724458079 [08:24:32]opened+sec_in_day 1724544479 [08:24:32]quantity*price = 100050 [08:24:32]sum+1 = 100052 [08:24:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 71 24.08.2024 08:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178845 ФПД: 133448646544298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082433&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178845&fm=133448646544298&tin=02508201610067®Number=0000000000092561&sum=100000 [08:24:33]StoreToDocumentArchive [08:24:33]shift 471 fd 178845 [08:24:33]save to /storage/0471/doc_00178845 [08:24:33]save last doc name /storage/0471/doc_00178845 to /storage/kkm_last_doc_name [08:24:33]save OK [08:24:33]Clear old archive folders... [08:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:24:33]tlvbuf is 017D3F30 [08:24:33]SAM_PROTO_ClearQueue [08:24:33]wFMCommunicate request_size=4 [08:24:33]MH_SAM_APDU [08:24:33]CAPDU: 80 09 00 00 [08:24:33]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [08:24:33]Write i2c OK [08:24:33]MH_I2C_Read... [08:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:33]Read from MH i2c: E2 [08:24:33]MH_I2C_Read... [08:24:33]Read from MH i2c: E2 03 00 [08:24:33]MH_I2C_Read... [08:24:33]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [08:24:33]RAPDU: 90 00 [08:24:33]wFMCommunicate OK [08:24:33]SAM_PROTO_ClearQueue done [08:24:33]KKMCreateOFDPacket [08:24:33]OFDProtocolAddRootSTLVToBuf [08:24:33]FM_MakeSignedData [08:24:33]FM_MakeSignedData [08:24:33]SAM_PROTO_SignData [08:24:33]wFMCommunicate request_size=4 [08:24:33]MH_SAM_APDU [08:24:33]CAPDU: 80 0D 01 02 [08:24:33]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [08:24:33]Write i2c OK [08:24:33]MH_I2C_Read... [08:24:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:33]Read from MH i2c: E2 [08:24:33]MH_I2C_Read... [08:24:33]Read from MH i2c: E2 03 00 [08:24:33]MH_I2C_Read... [08:24:33]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [08:24:33]RAPDU: 90 00 [08:24:33]wFMCommunicate OK [08:24:33]wFMCommunicate request_size=255 [08:24:33]MH_SAM_APDU [08:24:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 47 00 00 00 F4 03 04 00 C1 98 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D BA 02 00 35 04 06 00 79 5E EF 2C [08:24:33]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 47 00 00 00 F4 03 04 00 C1 98 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D BA 02 00 35 04 06 00 79 5E EF 2C 00 00 E8 [08:24:33]Write i2c OK [08:24:33]MH_I2C_Read... [08:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:34]Read from MH i2c: E2 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 03 00 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [08:24:34]RAPDU: 90 00 [08:24:34]wFMCommunicate OK [08:24:34]wFMCommunicate request_size=7 [08:24:34]MH_SAM_APDU [08:24:34]CAPDU: 80 0D 02 02 02 4B AA [08:24:34]Write to MH i2c: E2 0A 00 F0 01 80 0D 02 02 02 00 4B AA 00 00 64 [08:24:34]Write i2c OK [08:24:34]MH_I2C_Read... [08:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:34]Read from MH i2c: E2 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 03 00 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [08:24:34]RAPDU: 90 00 [08:24:34]wFMCommunicate OK [08:24:34]wFMCommunicate request_size=4 [08:24:34]MH_SAM_APDU [08:24:34]CAPDU: 80 0D 03 02 [08:24:34]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [08:24:34]Write i2c OK [08:24:34]MH_I2C_Read... [08:24:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:34]Read from MH i2c: E2 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 0B 00 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 0B 00 F1 01 00 6B AA AA FA 4D 8E 10 A1 90 00 B3 [08:24:34]RAPDU: 6B AA AA FA 4D 8E 10 A1 90 00 [08:24:34]wFMCommunicate OK [08:24:34]SAM_PROTO_SignData done [08:24:34]FM_MakeSignedData done [08:24:34]CreateOFDProtocolMessage [08:24:34]wFMCommunicate request_size=4 [08:24:34]MH_SAM_APDU [08:24:34]CAPDU: 80 11 00 00 [08:24:34]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [08:24:34]Write i2c OK [08:24:34]MH_I2C_Read... [08:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:34]Read from MH i2c: E2 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 17 00 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C6 [08:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:24:34]wFMCommunicate OK [08:24:34]CreateOFDProtocolMessage done [08:24:34]OFDSenderStorePacket 178845 [08:24:34]StoreOFDPacket docnum=178845 [08:24:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D6 AB 04 01 03 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 47 00 00 00 F4 03 04 00 C1 98 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D BA 02 00 35 04 06 00 79 5E EF 2C 4B AA 6B AA AA FA 4D 8E 10 A1 [08:24:34]CheckFolder [08:24:34]dirname=/storage/ofd_packets [08:24:34]CheckFolder done [08:24:34]ProducePacketName [08:24:34]name=ofd_packets/00178845 [08:24:34]NVStorageSaveData ofd_packets/00178845 [08:24:34]File name is /storage/ofd_packets/00178845 [08:24:34]Write 298 bytes [08:24:34]NVStorageSaveData done [08:24:34]OFDSenderStorePacket done [08:24:34]KKMCreateOFDPacket done [08:24:34]NVStorageSaveData kkm_last_timestamp [08:24:34]File name is /storage/kkm_last_timestamp [08:24:34]Write 4 bytes [08:24:34]NVStorageSaveData done [08:24:34]ExternCall_PrintAddStr [08:24:34]wPrintStart [08:24:34]Write to MH i2c: 01 00 00 F3 01 F4 [08:24:34]Write i2c OK [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: 01 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: 01 07 00 [08:24:34]MH_I2C_Read... [08:24:34]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [08:24:34]RasterBufferAndPrint [08:24:34]line Счет N : (1)295083 [08:24:34]line ИНН: 02508201610067 [08:24:34]line Контрольно-Кассовый Чек [08:24:34]line ПРОДАЖА [08:24:34]line ТРК (МРК, ГНК) : 34 [08:24:34]line Товар: 2710194800 [08:24:34]line ДТ-К-5 [08:24:34]line 13.130 * 76.20 [08:24:34]line = 1000.51 [08:24:34]line НДС 12% НСП 1% [08:24:34]line > о реализуемом товаре [08:24:34]line ОКРУГЛЕНИЕ: -0.51 [08:24:34]line ИТОГО: 1000.00 [08:24:34]line Внесено: 1000.00 [08:24:34]line СДАЧА: 0.00 [08:24:34]line НСП 1% : 8.85 [08:24:34]line НДС 12% : 106.25 [08:24:34]line Наличными: 1000.00 [08:24:34]line Безнал.: 0.00 [08:24:34]line Место: АЗС № 130 "Партнер Нефть" [08:24:34]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:24:34]line СНО: Общий режим [08:24:34]line Чек 71 24.08.2024 08:24 [08:24:34]line Смена: 471 ФФД: 1.0 [08:24:34]line ЗНМ: 0300000071 [08:24:34]line РНМ: 0000000000092561 [08:24:34]line Версия ККМ: 001 [08:24:34]line ФМ: 0000000000871778 [08:24:34]line ФД: 178845 [08:24:34]line ФПД: 133448646544298 [08:24:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082433&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178845&fm=133448646544298&tin=02508201610067®Number=0000000000092561&sum=100000 [08:24:34]OFD Sender: Processing packet 178845 [packets to send 500, broken 499] [08:24:34]ProducePacketName [08:24:34]name=ofd_packets/00178845 [08:24:34]OFD Sender: To server: pG, [08:24:34]CommunicateWithHost lk.salyk.kg:30040 [08:24:34]ConnectInit lk.salyk.kg [08:24:34]written 0, free lines is 4095 [08:24:35]Write to MH i2c: 01 00 00 1E 02 20 [08:24:35]Write i2c OK [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: 01 [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: 01 07 00 [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 D5 0C 08 [08:24:35]RasterBufferAndPrint [08:24:35]line [08:24:35]line [08:24:35]line [08:24:35]line [08:24:35]line [08:24:35]written 0, free lines is 3293 [08:24:35]MH_Cut [08:24:35]Write to MH i2c: D1 01 00 25 02 01 F9 [08:24:35]Write i2c OK [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: D1 [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: D1 01 00 [08:24:35]MH_I2C_Read... [08:24:35]Read from MH i2c: D1 01 00 25 02 00 F8 [08:24:35]Write to MH i2c: 01 00 00 26 02 28 [08:24:35]Write i2c OK [08:24:35]MH_I2C_Read... [08:24:35]*** Cut start [08:24:35]*** Partial cut [08:24:35]*** CUTSNS_PIN = 1 [08:24:35]*** CUTSNS_PIN = 0 [08:24:36]*** Brake cut motor [08:24:36]Read from MH i2c: 01 [08:24:36]MH_I2C_Read... [08:24:36]*** Stop cut motor [08:24:36]*** Cut end [08:24:36]Read from MH i2c: 01 07 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [08:24:36]process_action close_receipt done [08:24:36]requested_data is exist [08:24:36]produce_requested_data [08:24:36]requested_item fm.sn is exist - process it [08:24:36]wFMCommunicate request_size=4 [08:24:36]MH_SAM_APDU [08:24:36]CAPDU: 80 11 00 00 [08:24:36]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [08:24:36]Write i2c OK [08:24:36]MH_I2C_Read... [08:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:36]Read from MH i2c: E2 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 17 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FC [08:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:24:36]wFMCommunicate OK [08:24:36]requested_item fd.num is exist - process it [08:24:36]SAM_PROTO_GetFieldsCounters [08:24:36]wFMCommunicate request_size=4 [08:24:36]MH_SAM_APDU [08:24:36]CAPDU: 80 13 00 00 [08:24:36]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [08:24:36]Write i2c OK [08:24:36]MH_I2C_Read... [08:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:36]Read from MH i2c: E2 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 62 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 62 00 28 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [08:24: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9D BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:36]wFMCommunicate OK [08:24:36]SAM_PROTO_GetFieldsCounters done [08:24:36]requested_item shift.num is exist - process it [08:24:36]requested_item shift.opened is exist - process it [08:24:36]req_shift_opened [08:24:36]FM_GetShiftState [08:24:36]SAM_PROTO_GetShiftState [08:24:36]wFMCommunicate request_size=4 [08:24:36]MH_SAM_APDU [08:24:36]CAPDU: 80 13 01 00 [08:24:36]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [08:24:36]Write i2c OK [08:24:36]MH_I2C_Read... [08:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:36]Read from MH i2c: E2 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 0E 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 66 [08:24:36]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:24:36]wFMCommunicate OK [08:24:36]SAM_PROTO_GetShiftState done [08:24:36]FM_GetShiftState done [08:24:36]req_shift_opened done [08:24:36]requested_item shift.open_date is exist - process it [08:24:36]req_shift_open_date [08:24:36]req_shift_open_date done [08:24:36]produce_requested_data done [08:24:36]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178845,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:24:36]process_action_free close_receipt [08:24:36]json_value_free [08:24:36]json_value_free done [08:24:36]process_json_proto returns [08:24:36]Send response to host [08:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178845,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:24:36]free response buf [08:24:36]execute_script done [08:24:36]execute_script returns [08:24:36]free content buf [08:24:36]Sock 9.Close socket [08:24:36]Sock 9.Thread stoped [08:24:37]recv_with_timeout no data received [08:24:39]ConnectInit Can't take IP for lk.salyk.kg [08:24:39]CommunicateWithHost connect error [08:24:39]CommunicateWithHost err = -1 [08:24:39]OFD Sender: Server communicate error [08:24:44]OFD Sender: Processing packet 178845 [packets to send 500, broken 499] [08:24:44]ProducePacketName [08:24:44]name=ofd_packets/00178845 [08:24:44]OFD Sender: To server: pG, [08:24:44]CommunicateWithHost lk.salyk.kg:30040 [08:24:44]ConnectInit lk.salyk.kg [08:24:50]Connected sock=9 [08:24: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 37 37 38 0C 01 00 00 D6 AB 04 01 03 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 47 00 00 00 F4 03 04 00 C1 98 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D BA 02 00 35 04 06 00 79 5E EF 2C 4B AA 6B AA AA FA 4D 8E 10 A1 [08:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4C B0 47 00 F4 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D BA 02 00 F4 03 04 00 76 44 C9 66 B6 04 01 00 00 D1 2E D3 3F 99 63 A1 08 [08:24:50]CommunicateWithHost err = 0 [08:24:50]CheckOFDResponse [08:24:50]1017 (14) - 77093643461234 [08:24:50]1041 (16) - 0000000000871778 [08:24:50]1040 (4) - 178845 [08:24:50]1012 (4) - 24.08.2024 02:24 [08:24:50]1206 (1) - 0 [08:24:50]OFD Sender: Remove packet 178845 [08:24:50]ProducePacketName [08:24:50]name=ofd_packets/00178845 [08:24:50]NVStorageDeleteData [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:00]recv_with_timeout no data received [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:28]recv_with_timeout no data received [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:10]recv_with_timeout no data received [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]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:13]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: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:04]accept exits with 10 [08:28:04]New connection [08:28:04]New thread 3066969444 created [08:28:04]Thread 3067112804 joined [08:28:04]Waiting for new connection... [08:28:04] Sock 10.Parse request [08:28:04]Sock 10.Check first char [08:28:04]Sock 10.First char is OK [08:28:04]request: POST /json_proto HTTP/1.0 [08:28:04]Method: POST [08:28:04]URL: /json_proto [08:28:04]Method is POST - this is cgi request [08:28:04]url: /json_proto [08:28:04]query_string will be loaded in cgi processing [08:28:04]execute_cgi json_proto POST (null) [08:28:04]execute_cgi path=json_proto method=POST [08:28:04]POST find Content-Length [08:28:04]Host: 172.17.44.131:8080 [08:28:04]Content-Length: 792 [08:28:04]Content-Type: application/json [08:28:04] [08:28:04]POST finish read [08:28:04]Found Content-Length = 792 [08:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:04]execute_script... [08:28:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:04]POST & json_proto [08:28:04]process_json_proto [08:28:04]json parsed OK: [08:28:04]protocol is kg_v1.0 [08:28:04]action value=close_receipt [08:28:04]process_action close_receipt [08:28:04]cmd_close_receipt [08:28:04]MH_GetDate [08:28:04]Write to MH i2c: F0 00 00 2A 02 1B [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: F0 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: F0 09 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: F0 09 00 2A 02 00 94 99 C9 66 4F 53 BE 66 46 [08:28:04]GetLastDocTimeStamp 1724487873 [08:28:04]current date 1724488084 [08:28:04]FM_GetShiftState [08:28:04]SAM_PROTO_GetShiftState [08:28:04]wFMCommunicate request_size=4 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 13 01 00 [08:28:04]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 0E 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 68 [08:28:04]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:28:04]wFMCommunicate OK [08:28:04]SAM_PROTO_GetShiftState done [08:28:04]FM_GetShiftState done [08:28:04]opened in 1724458079 [08:28:04]opened+sec_in_day 1724544479 [08:28:04]quantity*price = 0 [08:28:04]sum+1 = 1 [08:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 72 24.08.2024 08:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178846 ФПД: 16819598681119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082804&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178846&fm=16819598681119&tin=02508201610067®Number=0000000000092561&sum=0 [08:28:05]StoreToDocumentArchive [08:28:05]shift 471 fd 178846 [08:28:05]save to /storage/0471/doc_00178846 [08:28:05]save last doc name /storage/0471/doc_00178846 to /storage/kkm_last_doc_name [08:28:05]save OK [08:28:05]Clear old archive folders... [08:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:28:05]tlvbuf is 0176DDD0 [08:28:05]SAM_PROTO_ClearQueue [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 09 00 00 [08:28:05]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [08:28:05]RAPDU: 90 00 [08:28:05]wFMCommunicate OK [08:28:05]SAM_PROTO_ClearQueue done [08:28:05]KKMCreateOFDPacket [08:28:05]OFDProtocolAddRootSTLVToBuf [08:28:05]FM_MakeSignedData [08:28:05]FM_MakeSignedData [08:28:05]SAM_PROTO_SignData [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 0D 01 02 [08:28:05]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [08:28:05]RAPDU: 90 00 [08:28:05]wFMCommunicate OK [08:28:05]wFMCommunicate request_size=255 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 48 00 00 00 F4 03 04 00 94 99 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E BA 02 00 35 04 06 00 0F 4C 1E 34 [08:28:05]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 48 00 00 00 F4 03 04 00 94 99 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E BA 02 00 35 04 06 00 0F 4C 1E 34 00 00 C4 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [08:28:05]RAPDU: 90 00 [08:28:05]wFMCommunicate OK [08:28:05]wFMCommunicate request_size=7 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 0D 02 02 02 64 1F [08:28:05]Write to MH i2c: E2 0A 00 3B 02 80 0D 02 02 02 00 64 1F 00 00 3E [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [08:28:05]RAPDU: 90 00 [08:28:05]wFMCommunicate OK [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 0D 03 02 [08:28:05]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 0B 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 0B 00 3C 02 00 82 A8 B4 BB 71 FD 3A 46 90 00 41 [08:28:05]RAPDU: 82 A8 B4 BB 71 FD 3A 46 90 00 [08:28:05]wFMCommunicate OK [08:28:05]SAM_PROTO_SignData done [08:28:05]FM_MakeSignedData done [08:28:05]CreateOFDProtocolMessage [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 11 00 00 [08:28:05]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 12 [08:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:28:05]wFMCommunicate OK [08:28:05]CreateOFDProtocolMessage done [08:28:05]OFDSenderStorePacket 178846 [08:28:05]StoreOFDPacket docnum=178846 [08:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D8 B7 04 01 3A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 48 00 00 00 F4 03 04 00 94 99 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E BA 02 00 35 04 06 00 0F 4C 1E 34 64 1F 82 A8 B4 BB 71 FD 3A 46 [08:28:05]CheckFolder [08:28:05]dirname=/storage/ofd_packets [08:28:05]CheckFolder done [08:28:05]ProducePacketName [08:28:05]name=ofd_packets/00178846 [08:28:05]NVStorageSaveData ofd_packets/00178846 [08:28:05]File name is /storage/ofd_packets/00178846 [08:28:05]Write 298 bytes [08:28:05]NVStorageSaveData done [08:28:05]OFDSenderStorePacket done [08:28:05]KKMCreateOFDPacket done [08:28:05]NVStorageSaveData kkm_last_timestamp [08:28:05]File name is /storage/kkm_last_timestamp [08:28:05]Write 4 bytes [08:28:05]NVStorageSaveData done [08:28:05]ExternCall_PrintAddStr [08:28:05]wPrintStart [08:28:05]Write to MH i2c: 01 00 00 3E 02 40 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 07 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [08:28:05]RasterBufferAndPrint [08:28:05]line Счет N : (1)295082 [08:28:05]line ИНН: 02508201610067 [08:28:05]line Контрольно-Кассовый Чек [08:28:05]line ПРОДАЖА [08:28:05]line ТРК (МРК, ГНК) : 21 [08:28:05]line Товар: 2710194800 [08:28:05]line ДТ-К-5 [08:28:05]line 100.000 * 0.00 [08:28:05]line = 0.00 [08:28:05]line НДС 12% НСП 1% [08:28:05]line > о реализуемом товаре [08:28:05]line ИТОГО: 0.00 [08:28:05]line НСП 1% : 0.00 [08:28:05]line НДС 12% : 0.00 [08:28:05]line Наличными: 0.00 [08:28:06]line Безнал.: 0.00 [08:28:06]line Место: АЗС № 130 "Партнер Нефть" [08:28:06]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:28:06]line СНО: Общий режим [08:28:06]line Чек 72 24.08.2024 08:28 [08:28:06]line Смена: 471 ФФД: 1.0 [08:28:06]line ЗНМ: 0300000071 [08:28:06]line РНМ: 0000000000092561 [08:28:06]line Версия ККМ: 001 [08:28:06]line Талоны: Топливные Талоны [08:28:06]line 1 [08:28:06]line ФМ: 0000000000871778 [08:28:06]line ФД: 178846 [08:28:06]line ФПД: 16819598681119 [08:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T082804&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178846&fm=16819598681119&tin=02508201610067®Number=0000000000092561&sum=0 [08:28:06]written 0, free lines is 4095 [08:28:06]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:06]ProducePacketName [08:28:06]name=ofd_packets/00178846 [08:28:06]OFD Sender: To server: pG, [08:28:06]CommunicateWithHost lk.salyk.kg:30040 [08:28:06]ConnectInit lk.salyk.kg [08:28:06]Write to MH i2c: 01 00 00 68 02 6A [08:28:06]Write i2c OK [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: 01 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: 01 07 00 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 E9 0C 66 [08:28:06]RasterBufferAndPrint [08:28:06]line [08:28:06]line [08:28:06]line [08:28:06]line [08:28:06]line [08:28:06]written 0, free lines is 3312 [08:28:06]MH_Cut [08:28:06]Write to MH i2c: D1 01 00 6F 02 01 43 [08:28:06]Write i2c OK [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: D1 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: D1 01 00 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: D1 01 00 6F 02 00 42 [08:28:06]Write to MH i2c: 01 00 00 70 02 72 [08:28:06]Write i2c OK [08:28:06]MH_I2C_Read... [08:28:07]*** Cut start [08:28:07]*** Partial cut [08:28:07]*** CUTSNS_PIN = 1 [08:28:07]*** CUTSNS_PIN = 0 [08:28:07]*** Brake cut motor [08:28:07]Read from MH i2c: 01 [08:28:07]MH_I2C_Read... [08:28:07]*** Stop cut motor [08:28:07]*** Cut end [08:28:07]Read from MH i2c: 01 07 00 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [08:28:07]process_action close_receipt done [08:28:07]requested_data is exist [08:28:07]produce_requested_data [08:28:07]requested_item fm.sn is exist - process it [08:28:07]wFMCommunicate request_size=4 [08:28:07]MH_SAM_APDU [08:28:07]CAPDU: 80 11 00 00 [08:28:07]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [08:28:07]Write i2c OK [08:28:07]MH_I2C_Read... [08:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:07]Read from MH i2c: E2 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 17 00 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 46 [08:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:28:07]wFMCommunicate OK [08:28:07]requested_item fd.num is exist - process it [08:28:07]SAM_PROTO_GetFieldsCounters [08:28:07]wFMCommunicate request_size=4 [08:28:07]MH_SAM_APDU [08:28:07]CAPDU: 80 13 00 00 [08:28:07]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [08:28:07]Write i2c OK [08:28:07]MH_I2C_Read... [08:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:07]Read from MH i2c: E2 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 62 00 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 62 00 72 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [08:28: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9E BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:07]wFMCommunicate OK [08:28:07]SAM_PROTO_GetFieldsCounters done [08:28:07]requested_item shift.num is exist - process it [08:28:07]requested_item shift.opened is exist - process it [08:28:07]req_shift_opened [08:28:07]FM_GetShiftState [08:28:07]SAM_PROTO_GetShiftState [08:28:07]wFMCommunicate request_size=4 [08:28:07]MH_SAM_APDU [08:28:07]CAPDU: 80 13 01 00 [08:28:07]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [08:28:07]Write i2c OK [08:28:07]MH_I2C_Read... [08:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:07]Read from MH i2c: E2 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 0E 00 [08:28:07]MH_I2C_Read... [08:28:07]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B0 [08:28:07]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:28:07]wFMCommunicate OK [08:28:07]SAM_PROTO_GetShiftState done [08:28:07]FM_GetShiftState done [08:28:07]req_shift_opened done [08:28:07]requested_item shift.open_date is exist - process it [08:28:07]req_shift_open_date [08:28:07]req_shift_open_date done [08:28:07]produce_requested_data done [08:28:07]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178846,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:28:07]process_action_free close_receipt [08:28:07]json_value_free [08:28:07]json_value_free done [08:28:07]process_json_proto returns [08:28:07]Send response to host [08:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178846,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:28:07]free response buf [08:28:07]execute_script done [08:28:07]execute_script returns [08:28:07]free content buf [08:28:07]Sock 10.Close socket [08:28:07]Sock 10.Thread stoped [08:28:11]ConnectInit Can't take IP for lk.salyk.kg [08:28:11]CommunicateWithHost connect error [08:28:11]CommunicateWithHost err = -1 [08:28:11]OFD Sender: Server communicate error [08:28:16]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:16]ProducePacketName [08:28:16]name=ofd_packets/00178846 [08:28:16]OFD Sender: To server: pG, [08:28:16]CommunicateWithHost lk.salyk.kg:30040 [08:28:16]ConnectInit lk.salyk.kg [08:28:20]recv_with_timeout no data received [08:28:21]ConnectInit Can't take IP for lk.salyk.kg [08:28:21]CommunicateWithHost connect error [08:28:21]CommunicateWithHost err = -1 [08:28:21]OFD Sender: Server communicate error [08:28:26]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:26]ProducePacketName [08:28:26]name=ofd_packets/00178846 [08:28:26]OFD Sender: To server: pG, [08:28:26]CommunicateWithHost lk.salyk.kg:30040 [08:28:26]ConnectInit lk.salyk.kg [08:28:31]ConnectInit Can't take IP for lk.salyk.kg [08:28:31]CommunicateWithHost connect error [08:28:31]CommunicateWithHost err = -1 [08:28:31]OFD Sender: Server communicate error [08:28:36]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:36]ProducePacketName [08:28:36]name=ofd_packets/00178846 [08:28:36]OFD Sender: To server: pG, [08:28:36]CommunicateWithHost lk.salyk.kg:30040 [08:28:36]ConnectInit lk.salyk.kg [08:28:41]ConnectInit Can't take IP for lk.salyk.kg [08:28:41]CommunicateWithHost connect error [08:28:41]CommunicateWithHost err = -1 [08:28:41]OFD Sender: Server communicate error [08:28:46]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:46]ProducePacketName [08:28:46]name=ofd_packets/00178846 [08:28:46]OFD Sender: To server: pG, [08:28:46]CommunicateWithHost lk.salyk.kg:30040 [08:28:46]ConnectInit lk.salyk.kg [08:28:51]ConnectInit Can't take IP for lk.salyk.kg [08:28:51]CommunicateWithHost connect error [08:28:51]CommunicateWithHost err = -1 [08:28:51]OFD Sender: Server communicate error [08:28:56]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:28:56]ProducePacketName [08:28:56]name=ofd_packets/00178846 [08:28:56]OFD Sender: To server: pG, [08:28:56]CommunicateWithHost lk.salyk.kg:30040 [08:28:56]ConnectInit lk.salyk.kg [08:29:01]ConnectInit Can't take IP for lk.salyk.kg [08:29:01]CommunicateWithHost connect error [08:29:01]CommunicateWithHost err = -1 [08:29:01]OFD Sender: Server communicate error [08:29:06]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:29:06]ProducePacketName [08:29:06]name=ofd_packets/00178846 [08:29:06]OFD Sender: To server: pG, [08:29:06]CommunicateWithHost lk.salyk.kg:30040 [08:29:06]ConnectInit lk.salyk.kg [08:29:06]recv_with_timeout no data received [08:29:11]ConnectInit Can't take IP for lk.salyk.kg [08:29:11]CommunicateWithHost connect error [08:29:11]CommunicateWithHost err = -1 [08:29:11]OFD Sender: Server communicate error [08:29:16]OFD Sender: Processing packet 178846 [packets to send 500, broken 499] [08:29:16]ProducePacketName [08:29:16]name=ofd_packets/00178846 [08:29:16]OFD Sender: To server: pG, [08:29:16]CommunicateWithHost lk.salyk.kg:30040 [08:29:16]ConnectInit lk.salyk.kg [08:29:20]Connected sock=9 [08:29: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 37 37 38 0C 01 00 00 D8 B7 04 01 3A 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 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 48 00 00 00 F4 03 04 00 94 99 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E BA 02 00 35 04 06 00 0F 4C 1E 34 64 1F 82 A8 B4 BB 71 FD 3A 46 [08:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0C F5 47 00 2A 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 37 37 38 10 04 04 00 9E BA 02 00 F4 03 04 00 83 45 C9 66 B6 04 01 00 00 9F 37 CD 62 06 8B 71 15 [08:29:20]CommunicateWithHost err = 0 [08:29:20]CheckOFDResponse [08:29:20]1017 (14) - 77093643461234 [08:29:20]1041 (16) - 0000000000871778 [08:29:20]1040 (4) - 178846 [08:29:20]1012 (4) - 24.08.2024 02:29 [08:29:20]1206 (1) - 0 [08:29:20]OFD Sender: Remove packet 178846 [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00178846 [08:29:20]NVStorageDeleteData [08:29:21]OFD Sender: No OFD packet to send [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: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:30:56]accept exits with 7 [08:30:56]New connection [08:30:56]New thread 3067112804 created [08:30:56]Thread 3066969444 joined [08:30:56]Waiting for new connection... [08:30:56] Sock 7.Parse request [08:30:56]Sock 7.Check first char [08:30:56]Sock 7.First char is OK [08:30:56]request: POST /json_proto HTTP/1.0 [08:30:56]Method: POST [08:30:56]URL: /json_proto [08:30:56]Method is POST - this is cgi request [08:30:56]url: /json_proto [08:30:56]query_string will be loaded in cgi processing [08:30:56]execute_cgi json_proto POST (null) [08:30:56]execute_cgi path=json_proto method=POST [08:30:56]POST find Content-Length [08:30:56]Host: 172.17.44.131:8080 [08:30:56]Content-Length: 791 [08:30:56]Content-Type: application/json [08:30:56] [08:30:56]POST finish read [08:30:56]Found Content-Length = 791 [08:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:56]execute_script... [08:30: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)295090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:56]POST & json_proto [08:30:56]process_json_proto [08:30:56]json parsed OK: [08:30:56]protocol is kg_v1.0 [08:30:56]action value=close_receipt [08:30:56]process_action close_receipt [08:30:56]cmd_close_receipt [08:30:56]MH_GetDate [08:30:56]Write to MH i2c: F0 00 00 74 02 65 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 09 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: F0 09 00 74 02 00 41 9A C9 66 4F 53 BE 66 3E [08:30:56]GetLastDocTimeStamp 1724488084 [08:30:56]current date 1724488257 [08:30:56]FM_GetShiftState [08:30:56]SAM_PROTO_GetShiftState [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 13 01 00 [08:30:56]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0E 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B2 [08:30:56]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:30:56]wFMCommunicate OK [08:30:56]SAM_PROTO_GetShiftState done [08:30:56]FM_GetShiftState done [08:30:56]opened in 1724458079 [08:30:56]opened+sec_in_day 1724544479 [08:30:56]quantity*price = 0 [08:30:56]sum+1 = 1 [08:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 73 24.08.2024 08:30 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178847 ФПД: 249462329016305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T083057&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178847&fm=249462329016305&tin=02508201610067®Number=0000000000092561&sum=0 [08:30:58]StoreToDocumentArchive [08:30:58]shift 471 fd 178847 [08:30:58]save to /storage/0471/doc_00178847 [08:30:58]save last doc name /storage/0471/doc_00178847 to /storage/kkm_last_doc_name [08:30:58]save OK [08:30:58]Clear old archive folders... [08:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:30:58]tlvbuf is 017DE370 [08:30:58]SAM_PROTO_ClearQueue [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 09 00 00 [08:30:58]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]SAM_PROTO_ClearQueue done [08:30:58]KKMCreateOFDPacket [08:30:58]OFDProtocolAddRootSTLVToBuf [08:30:58]FM_MakeSignedData [08:30:58]FM_MakeSignedData [08:30:58]SAM_PROTO_SignData [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 01 02 [08:30:58]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]wFMCommunicate request_size=255 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 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 41 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F BA 02 00 35 04 06 00 E2 E2 79 81 [08:30:58]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 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 41 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F BA 02 00 35 04 06 00 E2 E2 79 81 00 00 15 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]wFMCommunicate request_size=7 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 02 02 02 7F F1 [08:30:58]Write to MH i2c: E2 0A 00 85 02 80 0D 02 02 02 00 7F F1 00 00 75 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [08:30:58]RAPDU: 90 00 [08:30:58]wFMCommunicate OK [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 0D 03 02 [08:30:58]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 0B 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 0B 00 86 02 00 6C 97 5E 65 8B 42 A7 56 90 00 94 [08:30:58]RAPDU: 6C 97 5E 65 8B 42 A7 56 90 00 [08:30:58]wFMCommunicate OK [08:30:58]SAM_PROTO_SignData done [08:30:58]FM_MakeSignedData done [08:30:58]CreateOFDProtocolMessage [08:30:58]wFMCommunicate request_size=4 [08:30:58]MH_SAM_APDU [08:30:58]CAPDU: 80 11 00 00 [08:30:58]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:58]Read from MH i2c: E2 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 17 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5C [08:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:30:58]wFMCommunicate OK [08:30:58]CreateOFDProtocolMessage done [08:30:58]OFDSenderStorePacket 178847 [08:30:58]StoreOFDPacket docnum=178847 [08:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 7F FD 04 01 0F FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 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 41 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F BA 02 00 35 04 06 00 E2 E2 79 81 7F F1 6C 97 5E 65 8B 42 A7 56 [08:30:58]CheckFolder [08:30:58]dirname=/storage/ofd_packets [08:30:58]CheckFolder done [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00178847 [08:30:58]NVStorageSaveData ofd_packets/00178847 [08:30:58]File name is /storage/ofd_packets/00178847 [08:30:58]Write 298 bytes [08:30:58]NVStorageSaveData done [08:30:58]OFDSenderStorePacket done [08:30:58]KKMCreateOFDPacket done [08:30:58]NVStorageSaveData kkm_last_timestamp [08:30:58]File name is /storage/kkm_last_timestamp [08:30:58]Write 4 bytes [08:30:58]NVStorageSaveData done [08:30:58]ExternCall_PrintAddStr [08:30:58]wPrintStart [08:30:58]Write to MH i2c: 01 00 00 88 02 8A [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [08:30:58]RasterBufferAndPrint [08:30:58]line Счет N : (1)295090 [08:30:58]line ИНН: 02508201610067 [08:30:58]line Контрольно-Кассовый Чек [08:30:58]line ПРОДАЖА [08:30:58]line ТРК (МРК, ГНК) : 11 [08:30:58]line Товар: 2710194800 [08:30:58]line ДТ-К-5 [08:30:58]line 39.380 * 0.00 [08:30:58]line = 0.00 [08:30:58]line НДС 12% НСП 1% [08:30:58]line > о реализуемом товаре [08:30:58]line ИТОГО: 0.00 [08:30:58]line НСП 1% : 0.00 [08:30:58]line НДС 12% : 0.00 [08:30:58]line Наличными: 0.00 [08:30:58]line Безнал.: 0.00 [08:30:58]line Место: АЗС № 130 "Партнер Нефть" [08:30:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:30:58]line СНО: Общий режим [08:30:58]line Чек 73 24.08.2024 08:30 [08:30:58]line Смена: 471 ФФД: 1.0 [08:30:58]line ЗНМ: 0300000071 [08:30:58]line РНМ: 0000000000092561 [08:30:58]line Версия ККМ: 001 [08:30:58]line Талоны: Топливные Талоны [08:30:58]line 1 [08:30:58]line ФМ: 0000000000871778 [08:30:58]line ФД: 178847 [08:30:58]line ФПД: 249462329016305 [08:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T083057&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178847&fm=249462329016305&tin=02508201610067®Number=0000000000092561&sum=0 [08:30:58]written 0, free lines is 4095 [08:30:58]OFD Sender: Processing packet 178847 [packets to send 500, broken 499] [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00178847 [08:30:58]OFD Sender: To server: pG, [08:30:58]CommunicateWithHost lk.salyk.kg:30040 [08:30:58]ConnectInit lk.salyk.kg [08:30:59]Write to MH i2c: 01 00 00 B2 02 B4 [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 D2 0C 99 [08:30:59]RasterBufferAndPrint [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]line [08:30:59]written 0, free lines is 3288 [08:30:59]MH_Cut [08:30:59]Write to MH i2c: D1 01 00 B9 02 01 8D [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 01 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: D1 01 00 B9 02 00 8C [08:30:59]Write to MH i2c: 01 00 00 BA 02 BC [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** Cut start [08:30:59]*** Partial cut [08:30:59]*** CUTSNS_PIN = 1 [08:30:59]*** CUTSNS_PIN = 0 [08:31:00]*** Brake cut motor [08:31:00]Read from MH i2c: 01 [08:31:00]MH_I2C_Read... [08:31:00]*** Stop cut motor [08:31:00]*** Cut end [08:31:00]Read from MH i2c: 01 07 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [08:31:00]process_action close_receipt done [08:31:00]requested_data is exist [08:31:00]produce_requested_data [08:31:00]requested_item fm.sn is exist - process it [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 11 00 00 [08:31:00]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 17 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 90 [08:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:31:00]wFMCommunicate OK [08:31:00]requested_item fd.num is exist - process it [08:31:00]SAM_PROTO_GetFieldsCounters [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 13 00 00 [08:31:00]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 62 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 62 00 BC 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:31: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9F BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:00]wFMCommunicate OK [08:31:00]SAM_PROTO_GetFieldsCounters done [08:31:00]requested_item shift.num is exist - process it [08:31:00]requested_item shift.opened is exist - process it [08:31:00]req_shift_opened [08:31:00]FM_GetShiftState [08:31:00]SAM_PROTO_GetShiftState [08:31:00]wFMCommunicate request_size=4 [08:31:00]MH_SAM_APDU [08:31:00]CAPDU: 80 13 01 00 [08:31:00]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [08:31:00]Write i2c OK [08:31:00]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FA [08:31:00]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:31:00]wFMCommunicate OK [08:31:00]SAM_PROTO_GetShiftState done [08:31:00]FM_GetShiftState done [08:31:00]req_shift_opened done [08:31:00]requested_item shift.open_date is exist - process it [08:31:00]req_shift_open_date [08:31:00]req_shift_open_date done [08:31:00]produce_requested_data done [08:31:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178847,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:31:00]process_action_free close_receipt [08:31:00]json_value_free [08:31:00]json_value_free done [08:31:00]process_json_proto returns [08:31:00]Send response to host [08:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178847,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:31:00]free response buf [08:31:00]execute_script done [08:31:00]execute_script returns [08:31:00]free content buf [08:31:00]Sock 7.Close socket [08:31:00]Sock 7.Thread stoped [08:31:03]Connected sock=11 [08:31: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 37 37 38 0C 01 00 00 7F FD 04 01 0F FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 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 41 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F BA 02 00 35 04 06 00 E2 E2 79 81 7F F1 6C 97 5E 65 8B 42 A7 56 [08:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 93 55 47 00 CC FA 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 37 37 38 10 04 04 00 9F BA 02 00 F4 03 04 00 EB 45 C9 66 B6 04 01 00 00 54 85 B7 6C A6 06 C4 4E [08:31:05]CommunicateWithHost err = 0 [08:31:05]CheckOFDResponse [08:31:05]1017 (14) - 77093643461234 [08:31:05]1041 (16) - 0000000000871778 [08:31:05]1040 (4) - 178847 [08:31:05]1012 (4) - 24.08.2024 02:31 [08:31:05]1206 (1) - 0 [08:31:05]OFD Sender: Remove packet 178847 [08:31:05]ProducePacketName [08:31:05]name=ofd_packets/00178847 [08:31:05]NVStorageDeleteData [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:20]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:30]accept exits with 9 [08:31:30]New connection [08:31:30]New thread 3066969444 created [08:31:30]Thread 3067112804 joined [08:31:30]Waiting for new connection... [08:31:30] Sock 9.Parse request [08:31:30]Sock 9.Check first char [08:31:30]Sock 9.First char is OK [08:31:30]request: POST /json_proto HTTP/1.0 [08:31:30]Method: POST [08:31:30]URL: /json_proto [08:31:30]Method is POST - this is cgi request [08:31:30]url: /json_proto [08:31:30]query_string will be loaded in cgi processing [08:31:30]execute_cgi json_proto POST (null) [08:31:30]execute_cgi path=json_proto method=POST [08:31:30]POST find Content-Length [08:31:30]Host: 172.17.44.131:8080 [08:31:30]Content-Length: 791 [08:31:30]Content-Type: application/json [08:31:30] [08:31:30]POST finish read [08:31:30]Found Content-Length = 791 [08:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:30]execute_script... [08:31: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)295088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:30]POST & json_proto [08:31:30]process_json_proto [08:31:30]json parsed OK: [08:31:30]protocol is kg_v1.0 [08:31:30]action value=close_receipt [08:31:30]process_action close_receipt [08:31:30]cmd_close_receipt [08:31:30]MH_GetDate [08:31:30]Write to MH i2c: F0 00 00 BE 02 AF [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 09 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 09 00 BE 02 00 63 9A C9 66 4F 53 BE 66 AA [08:31:30]GetLastDocTimeStamp 1724488257 [08:31:30]current date 1724488291 [08:31:30]FM_GetShiftState [08:31:30]SAM_PROTO_GetShiftState [08:31:30]wFMCommunicate request_size=4 [08:31:30]MH_SAM_APDU [08:31:30]CAPDU: 80 13 01 00 [08:31:30]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:30]Read from MH i2c: E2 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 0E 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FC [08:31:30]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:31:30]wFMCommunicate OK [08:31:30]SAM_PROTO_GetShiftState done [08:31:30]FM_GetShiftState done [08:31:30]opened in 1724458079 [08:31:30]opened+sec_in_day 1724544479 [08:31:30]quantity*price = 0 [08:31:30]sum+1 = 1 [08:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 74 24.08.2024 08:31 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178848 ФПД: 144136300399568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T083131&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178848&fm=144136300399568&tin=02508201610067®Number=0000000000092561&sum=0 [08:31:31]StoreToDocumentArchive [08:31:31]shift 471 fd 178848 [08:31:31]save to /storage/0471/doc_00178848 [08:31:31]save last doc name /storage/0471/doc_00178848 to /storage/kkm_last_doc_name [08:31:31]save OK [08:31:31]Clear old archive folders... [08:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:31:31]tlvbuf is 0174D3D0 [08:31:31]SAM_PROTO_ClearQueue [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 09 00 00 [08:31:31]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_ClearQueue done [08:31:31]KKMCreateOFDPacket [08:31:31]OFDProtocolAddRootSTLVToBuf [08:31:31]FM_MakeSignedData [08:31:31]FM_MakeSignedData [08:31:31]SAM_PROTO_SignData [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 01 02 [08:31:31]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=255 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 4A 00 00 00 F4 03 04 00 63 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 BA 02 00 35 04 06 00 83 17 58 FC [08:31:31]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 4A 00 00 00 F4 03 04 00 63 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 BA 02 00 35 04 06 00 83 17 58 FC 00 00 59 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 03 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [08:31:32]RAPDU: 90 00 [08:31:32]wFMCommunicate OK [08:31:32]wFMCommunicate request_size=7 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 0D 02 02 02 0B D0 [08:31:32]Write to MH i2c: E2 0A 00 CF 02 80 0D 02 02 02 00 0B D0 00 00 2A [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 03 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [08:31:32]RAPDU: 90 00 [08:31:32]wFMCommunicate OK [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 0D 03 02 [08:31:32]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0B 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0B 00 D0 02 00 4C 31 87 BB 9E 5D A3 05 90 00 B0 [08:31:32]RAPDU: 4C 31 87 BB 9E 5D A3 05 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_SignData done [08:31:32]FM_MakeSignedData done [08:31:32]CreateOFDProtocolMessage [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 11 00 00 [08:31:32]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 17 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A6 [08:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:31:32]wFMCommunicate OK [08:31:32]CreateOFDProtocolMessage done [08:31:32]OFDSenderStorePacket 178848 [08:31:32]StoreOFDPacket docnum=178848 [08:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 E8 05 04 01 FB 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 4A 00 00 00 F4 03 04 00 63 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 BA 02 00 35 04 06 00 83 17 58 FC 0B D0 4C 31 87 BB 9E 5D A3 05 [08:31:32]CheckFolder [08:31:32]dirname=/storage/ofd_packets [08:31:32]CheckFolder done [08:31:32]ProducePacketName [08:31:32]name=ofd_packets/00178848 [08:31:32]NVStorageSaveData ofd_packets/00178848 [08:31:32]File name is /storage/ofd_packets/00178848 [08:31:32]Write 298 bytes [08:31:32]NVStorageSaveData done [08:31:32]OFDSenderStorePacket done [08:31:32]KKMCreateOFDPacket done [08:31:32]NVStorageSaveData kkm_last_timestamp [08:31:32]File name is /storage/kkm_last_timestamp [08:31:32]Write 4 bytes [08:31:32]NVStorageSaveData done [08:31:32]ExternCall_PrintAddStr [08:31:32]wPrintStart [08:31:32]Write to MH i2c: 01 00 00 D2 02 D4 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [08:31:32]RasterBufferAndPrint [08:31:32]line Счет N : (1)295088 [08:31:32]line ИНН: 02508201610067 [08:31:32]line Контрольно-Кассовый Чек [08:31:32]line ПРОДАЖА [08:31:32]line ТРК (МРК, ГНК) : 21 [08:31:32]line Товар: 2710194800 [08:31:32]line ДТ-К-5 [08:31:32]line 50.000 * 0.00 [08:31:32]line = 0.00 [08:31:32]line НДС 12% НСП 1% [08:31:32]line > о реализуемом товаре [08:31:32]line ИТОГО: 0.00 [08:31:32]line НСП 1% : 0.00 [08:31:32]line НДС 12% : 0.00 [08:31:32]line Наличными: 0.00 [08:31:32]line Безнал.: 0.00 [08:31:32]line Место: АЗС № 130 "Партнер Нефть" [08:31:32]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:31:32]line СНО: Общий режим [08:31:32]line Чек 74 24.08.2024 08:31 [08:31:32]line Смена: 471 ФФД: 1.0 [08:31:32]line ЗНМ: 0300000071 [08:31:32]line РНМ: 0000000000092561 [08:31:32]line Версия ККМ: 001 [08:31:32]line Талоны: Топливные Талоны [08:31:32]line 1 [08:31:32]line ФМ: 0000000000871778 [08:31:32]line ФД: 178848 [08:31:32]line ФПД: 144136300399568 [08:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T083131&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178848&fm=144136300399568&tin=02508201610067®Number=0000000000092561&sum=0 [08:31:32]written 0, free lines is 4095 [08:31:32]OFD Sender: Processing packet 178848 [packets to send 500, broken 499] [08:31:32]ProducePacketName [08:31:32]name=ofd_packets/00178848 [08:31:32]OFD Sender: To server: pG, [08:31:32]CommunicateWithHost lk.salyk.kg:30040 [08:31:32]ConnectInit lk.salyk.kg [08:31:32]Write to MH i2c: 01 00 00 FC 02 FE [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 D4 0C E5 [08:31:32]RasterBufferAndPrint [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]written 0, free lines is 3290 [08:31:32]MH_Cut [08:31:32]Write to MH i2c: D1 01 00 03 03 01 D8 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 03 03 00 D7 [08:31:32]Write to MH i2c: 01 00 00 04 03 07 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:33]*** Cut start [08:31:33]*** Partial cut [08:31:33]*** CUTSNS_PIN = 1 [08:31:33]*** CUTSNS_PIN = 0 [08:31:33]*** Brake cut motor [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]*** Stop cut motor [08:31:34]*** Cut end [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [08:31:34]process_action close_receipt done [08:31:34]requested_data is exist [08:31:34]produce_requested_data [08:31:34]requested_item fm.sn is exist - process it [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 11 00 00 [08:31:34]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DB [08:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:31:34]wFMCommunicate OK [08:31:34]requested_item fd.num is exist - process it [08:31:34]SAM_PROTO_GetFieldsCounters [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 13 00 00 [08:31:34]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 62 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 62 00 06 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A0 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [08:31: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A0 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetFieldsCounters done [08:31:34]requested_item shift.num is exist - process it [08:31:34]requested_item shift.opened is exist - process it [08:31:34]req_shift_opened [08:31:34]FM_GetShiftState [08:31:34]SAM_PROTO_GetShiftState [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 13 01 00 [08:31:34]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 45 [08:31:34]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetShiftState done [08:31:34]FM_GetShiftState done [08:31:34]req_shift_opened done [08:31:34]requested_item shift.open_date is exist - process it [08:31:34]req_shift_open_date [08:31:34]req_shift_open_date done [08:31:34]produce_requested_data done [08:31:34]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178848,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [08:31:34]process_action_free close_receipt [08:31:34]json_value_free [08:31:34]json_value_free done [08:31:34]process_json_proto returns [08:31:34]Send response to host [08:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178848,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [08:31:34]free response buf [08:31:34]execute_script done [08:31:34]execute_script returns [08:31:34]free content buf [08:31:34]Sock 9.Close socket [08:31:34]Sock 9.Thread stoped [08:31:36]Connected sock=11 [08:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 E8 05 04 01 FB 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 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 4A 00 00 00 F4 03 04 00 63 9A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 BA 02 00 35 04 06 00 83 17 58 FC 0B D0 4C 31 87 BB 9E 5D A3 05 [08:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 46 A4 47 00 65 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 BA 02 00 F4 03 04 00 0C 46 C9 66 B6 04 01 00 00 41 21 DE 90 2E EF AD 66 [08:31:37]CommunicateWithHost err = 0 [08:31:37]CheckOFDResponse [08:31:37]1017 (14) - 77093643461234 [08:31:37]1041 (16) - 0000000000871778 [08:31:37]1040 (4) - 178848 [08:31:37]1012 (4) - 24.08.2024 02:31 [08:31:37]1206 (1) - 0 [08:31:37]OFD Sender: Remove packet 178848 [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00178848 [08:31:37]NVStorageDeleteData [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:05]recv_with_timeout no data received [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:23]recv_with_timeout no data received [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]recv_with_timeout no data received [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:10]recv_with_timeout no data received [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:35]recv_with_timeout no data received [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:00]recv_with_timeout no data received [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:10]recv_with_timeout no data received [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:34]recv_with_timeout no data received [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:17]recv_with_timeout no data received [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:34]recv_with_timeout no data received [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:53]recv_with_timeout no data received [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:10]recv_with_timeout no data received [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:29]recv_with_timeout no data received [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:27]recv_with_timeout no data received [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:46]recv_with_timeout no data received [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:48:55]ConnectInit Can't connect to host [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:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]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:35]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:18]recv_with_timeout no data received [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:56]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:34]recv_with_timeout no data received [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:01]recv_with_timeout no data received [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:29]accept exits with 9 [09:03:29]New connection [09:03:29]New thread 3066969444 created [09:03:29]Thread 3067112804 joined [09:03:29]Waiting for new connection... [09:03:29] Sock 9.Parse request [09:03:29]Sock 9.Check first char [09:03:29]Sock 9.First char is OK [09:03:29]request: POST /json_proto HTTP/1.0 [09:03:29]Method: POST [09:03:29]URL: /json_proto [09:03:29]Method is POST - this is cgi request [09:03:29]url: /json_proto [09:03:29]query_string will be loaded in cgi processing [09:03:29]execute_cgi json_proto POST (null) [09:03:29]execute_cgi path=json_proto method=POST [09:03:29]POST find Content-Length [09:03:29]Host: 172.17.44.131:8080 [09:03:29]Content-Length: 682 [09:03:29]Content-Type: application/json [09:03:29] [09:03:29]POST finish read [09:03:29]Found Content-Length = 682 [09:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [09:03:29]execute_script... [09:03: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)295119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [09:03:29]POST & json_proto [09:03:29]process_json_proto [09:03:29]json parsed OK: [09:03:29]protocol is kg_v1.0 [09:03:29]action value=close_receipt [09:03:29]process_action close_receipt [09:03:29]cmd_close_receipt [09:03:29]MH_GetDate [09:03:29]Write to MH i2c: F0 00 00 53 03 45 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 53 03 00 E1 A1 C9 66 4F 53 BE 66 C5 [09:03:29]GetLastDocTimeStamp 1724489239 [09:03:29]current date 1724490209 [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 92 [09:03:29]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetShiftState done [09:03:29]FM_GetShiftState done [09:03:29]opened in 1724458079 [09:03:29]opened+sec_in_day 1724544479 [09:03:29]quantity*price = 150041 [09:03:29]sum+1 = 150042 [09:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 76 24.08.2024 09:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178850 ФПД: 231041123270081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090329&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178850&fm=231041123270081&tin=02508201610067®Number=0000000000092561&sum=150000 [09:03:30]StoreToDocumentArchive [09:03:30]shift 471 fd 178850 [09:03:30]save to /storage/0471/doc_00178850 [09:03:30]save last doc name /storage/0471/doc_00178850 to /storage/kkm_last_doc_name [09:03:30]save OK [09:03:30]Clear old archive folders... [09:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:30]tlvbuf is 017D5220 [09:03:30]SAM_PROTO_ClearQueue [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 09 00 00 [09:03:30]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]SAM_PROTO_ClearQueue done [09:03:30]KKMCreateOFDPacket [09:03:30]OFDProtocolAddRootSTLVToBuf [09:03:30]FM_MakeSignedData [09:03:30]FM_MakeSignedData [09:03:30]SAM_PROTO_SignData [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 01 02 [09:03:30]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=255 [09:03:30]MH_SAM_APDU [09:03: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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 4C 00 00 00 F4 03 04 00 E1 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 BA 02 00 35 04 06 00 D2 [09:03:30]Write to MH i2c: E2 02 01 63 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 4C 00 00 00 F4 03 04 00 E1 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 BA 02 00 35 04 06 00 D2 00 00 DB [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:30]OFD Sender: No OFD packet to send [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=10 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 02 02 05 21 74 14 BD C1 [09:03:30]Write to MH i2c: E2 0D 00 64 03 80 0D 02 02 05 00 21 74 14 BD C1 00 00 12 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 03 02 [09:03:30]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 65 03 00 30 51 4E 45 B0 3F B5 76 90 00 12 [09:03:31]RAPDU: 30 51 4E 45 B0 3F B5 76 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_SignData done [09:03:31]FM_MakeSignedData done [09:03:31]CreateOFDProtocolMessage [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 11 00 00 [09:03:31]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3C [09:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:03:31]wFMCommunicate OK [09:03:31]CreateOFDProtocolMessage done [09:03:31]OFDSenderStorePacket 178850 [09:03:31]StoreOFDPacket docnum=178850 [09:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D1 71 07 01 6E 6F 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 4C 00 00 00 F4 03 04 00 E1 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 BA 02 00 35 04 06 00 D2 21 74 14 BD C1 30 51 4E 45 B0 3F B5 76 [09:03:31]CheckFolder [09:03:31]dirname=/storage/ofd_packets [09:03:31]CheckFolder done [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00178850 [09:03:31]NVStorageSaveData ofd_packets/00178850 [09:03:31]File name is /storage/ofd_packets/00178850 [09:03:31]Write 301 bytes [09:03:31]NVStorageSaveData done [09:03:31]OFDSenderStorePacket done [09:03:31]KKMCreateOFDPacket done [09:03:31]NVStorageSaveData kkm_last_timestamp [09:03:31]File name is /storage/kkm_last_timestamp [09:03:31]Write 4 bytes [09:03:31]NVStorageSaveData done [09:03:31]ExternCall_PrintAddStr [09:03:31]wPrintStart [09:03:31]Write to MH i2c: 01 00 00 67 03 6A [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [09:03:31]RasterBufferAndPrint [09:03:31]line Счет N : (1)295119 [09:03:31]line ИНН: 02508201610067 [09:03:31]line Контрольно-Кассовый Чек [09:03:31]line ПРОДАЖА [09:03:31]line ТРК (МРК, ГНК) : 52 [09:03:31]line Товар: 2710124130 [09:03:31]line Аи-92-К-5 [09:03:31]line 22.130 * 67.80 [09:03:31]line = 1500.41 [09:03:31]line НДС 12% НСП 1% [09:03:31]line > о реализуемом товаре [09:03:31]line ОКРУГЛЕНИЕ: -0.41 [09:03:31]line ИТОГО: 1500.00 [09:03:31]line Внесено: 1500.00 [09:03:31]line СДАЧА: 0.00 [09:03:31]line НСП 1% : 13.28 [09:03:31]line НДС 12% : 159.34 [09:03:31]line Наличными: 1500.00 [09:03:31]line Безнал.: 0.00 [09:03:31]line Место: АЗС № 130 "Партнер Нефть" [09:03:31]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:03:31]line СНО: Общий режим [09:03:31]line Чек 76 24.08.2024 09:03 [09:03:31]line Смена: 471 ФФД: 1.0 [09:03:31]line ЗНМ: 0300000071 [09:03:31]line РНМ: 0000000000092561 [09:03:31]line Версия ККМ: 001 [09:03:31]line ФМ: 0000000000871778 [09:03:31]line ФД: 178850 [09:03:31]line ФПД: 231041123270081 [09:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090329&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178850&fm=231041123270081&tin=02508201610067®Number=0000000000092561&sum=150000 [09:03:31]written 0, free lines is 4095 [09:03:31]OFD Sender: Processing packet 178850 [packets to send 500, broken 499] [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00178850 [09:03:31]OFD Sender: To server: pG, [09:03:31]CommunicateWithHost lk.salyk.kg:30040 [09:03:31]ConnectInit lk.salyk.kg [09:03:31]Write to MH i2c: 01 00 00 92 03 95 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 C6 0C 6E [09:03:31]RasterBufferAndPrint [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]written 0, free lines is 3276 [09:03:31]MH_Cut [09:03:31]Write to MH i2c: D1 01 00 99 03 01 6E [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 01 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 01 00 99 03 00 6D [09:03:31]Write to MH i2c: 01 00 00 9A 03 9D [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:32]*** Cut start [09:03:32]*** Partial cut [09:03:32]*** CUTSNS_PIN = 1 [09:03:32]*** CUTSNS_PIN = 0 [09:03:32]*** Brake cut motor [09:03:32]Read from MH i2c: 01 [09:03:32]MH_I2C_Read... [09:03:32]*** Stop cut motor [09:03:32]*** Cut end [09:03:32]Read from MH i2c: 01 07 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [09:03:32]process_action close_receipt done [09:03:32]requested_data is exist [09:03:32]produce_requested_data [09:03:32]requested_item fm.sn is exist - process it [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 11 00 00 [09:03:32]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 17 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 71 [09:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:03:32]wFMCommunicate OK [09:03:32]requested_item fd.num is exist - process it [09:03:32]SAM_PROTO_GetFieldsCounters [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 13 00 00 [09:03:32]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 62 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 62 00 9C 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A2 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:03: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A2 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:33]wFMCommunicate OK [09:03:33]SAM_PROTO_GetFieldsCounters done [09:03:33]requested_item shift.num is exist - process it [09:03:33]requested_item shift.opened is exist - process it [09:03:33]req_shift_opened [09:03:33]FM_GetShiftState [09:03:33]SAM_PROTO_GetShiftState [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 13 01 00 [09:03:33]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0E 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 DB [09:03:33]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:03:33]wFMCommunicate OK [09:03:33]SAM_PROTO_GetShiftState done [09:03:33]FM_GetShiftState done [09:03:33]req_shift_opened done [09:03:33]requested_item shift.open_date is exist - process it [09:03:33]req_shift_open_date [09:03:33]req_shift_open_date done [09:03:33]produce_requested_data done [09:03:33]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178850,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:03:33]process_action_free close_receipt [09:03:33]json_value_free [09:03:33]json_value_free done [09:03:33]process_json_proto returns [09:03:33]Send response to host [09:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178850,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:03:33]free response buf [09:03:33]execute_script done [09:03:33]execute_script returns [09:03:33]free content buf [09:03:33]Sock 9.Close socket [09:03:33]Sock 9.Thread stoped [09:03:34]accept exits with 10 [09:03:34]New connection [09:03:34]New thread 3067112804 created [09:03:34]Thread 3066969444 joined [09:03:34]Waiting for new connection... [09:03:34] Sock 10.Parse request [09:03:34]Sock 10.Check first char [09:03:34]Sock 10.First char is OK [09:03:34]request: POST /json_proto HTTP/1.0 [09:03:34]Method: POST [09:03:34]URL: /json_proto [09:03:34]Method is POST - this is cgi request [09:03:34]url: /json_proto [09:03:34]query_string will be loaded in cgi processing [09:03:34]execute_cgi json_proto POST (null) [09:03:34]execute_cgi path=json_proto method=POST [09:03:34]POST find Content-Length [09:03:34]Host: 172.17.44.131:8080 [09:03:34]Content-Length: 682 [09:03:34]Content-Type: application/json [09:03:34] [09:03:34]POST finish read [09:03:34]Found Content-Length = 682 [09:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [09:03:34]execute_script... [09:03:34]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)295118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [09:03:34]POST & json_proto [09:03:34]process_json_proto [09:03:34]json parsed OK: [09:03:34]protocol is kg_v1.0 [09:03:34]action value=close_receipt [09:03:34]process_action close_receipt [09:03:34]cmd_close_receipt [09:03:34]MH_GetDate [09:03:34]Write to MH i2c: F0 00 00 9E 03 90 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: F0 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: F0 09 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: F0 09 00 9E 03 00 E7 A1 C9 66 4F 53 BE 66 16 [09:03:34]GetLastDocTimeStamp 1724490209 [09:03:34]current date 1724490215 [09:03:34]FM_GetShiftState [09:03:34]SAM_PROTO_GetShiftState [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 13 01 00 [09:03:34]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:34]Read from MH i2c: E2 0E 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 DD [09:03:34]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:03:34]wFMCommunicate OK [09:03:34]SAM_PROTO_GetShiftState done [09:03:34]FM_GetShiftState done [09:03:34]opened in 1724458079 [09:03:34]opened+sec_in_day 1724544479 [09:03:34]quantity*price = 150032 [09:03:34]sum+1 = 150033 [09:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 77 24.08.2024 09:03 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178851 ФПД: 24096740844171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090335&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178851&fm=24096740844171&tin=02508201610067®Number=0000000000092561&sum=150000 [09:03:36]StoreToDocumentArchive [09:03:36]shift 471 fd 178851 [09:03:36]save to /storage/0471/doc_00178851 [09:03:36]save last doc name /storage/0471/doc_00178851 to /storage/kkm_last_doc_name [09:03:36]save OK [09:03:36]Clear old archive folders... [09:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:36]tlvbuf is 0177EC10 [09:03:36]SAM_PROTO_ClearQueue [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 09 00 00 [09:03:36]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [09:03:36]RAPDU: 90 00 [09:03:36]wFMCommunicate OK [09:03:36]SAM_PROTO_ClearQueue done [09:03:36]KKMCreateOFDPacket [09:03:36]OFDProtocolAddRootSTLVToBuf [09:03:36]FM_MakeSignedData [09:03:36]FM_MakeSignedData [09:03:36]SAM_PROTO_SignData [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 0D 01 02 [09:03:36]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [09:03:36]RAPDU: 90 00 [09:03:36]wFMCommunicate OK [09:03:36]wFMCommunicate request_size=255 [09:03:36]MH_SAM_APDU [09:03:36]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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 4D 00 00 00 F4 03 04 00 E7 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 BA 02 00 35 04 06 00 15 [09:03:36]Write to MH i2c: E2 02 01 AE 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 4D 00 00 00 F4 03 04 00 E7 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 BA 02 00 35 04 06 00 15 00 00 6F [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [09:03:36]RAPDU: 90 00 [09:03:36]wFMCommunicate OK [09:03:36]wFMCommunicate request_size=10 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 0D 02 02 05 EA 75 AD A2 8B [09:03:36]Write to MH i2c: E2 0D 00 AF 03 80 0D 02 02 05 00 EA 75 AD A2 8B 00 00 6F [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [09:03:36]RAPDU: 90 00 [09:03:36]wFMCommunicate OK [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 0D 03 02 [09:03:36]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 0B 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 0B 00 B0 03 00 CE 69 D1 38 83 5B 54 21 90 00 C2 [09:03:36]RAPDU: CE 69 D1 38 83 5B 54 21 90 00 [09:03:36]wFMCommunicate OK [09:03:36]SAM_PROTO_SignData done [09:03:36]FM_MakeSignedData done [09:03:36]CreateOFDProtocolMessage [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 11 00 00 [09:03:36]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 17 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 87 [09:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:03:36]wFMCommunicate OK [09:03:36]CreateOFDProtocolMessage done [09:03:36]OFDSenderStorePacket 178851 [09:03:36]StoreOFDPacket docnum=178851 [09:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C7 1A 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 4D 00 00 00 F4 03 04 00 E7 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 BA 02 00 35 04 06 00 15 EA 75 AD A2 8B CE 69 D1 38 83 5B 54 21 [09:03:36]CheckFolder [09:03:36]dirname=/storage/ofd_packets [09:03:36]CheckFolder done [09:03:36]ProducePacketName [09:03:36]name=ofd_packets/00178851 [09:03:36]NVStorageSaveData ofd_packets/00178851 [09:03:36]File name is /storage/ofd_packets/00178851 [09:03:36]Write 301 bytes [09:03:36]NVStorageSaveData done [09:03:36]OFDSenderStorePacket done [09:03:36]KKMCreateOFDPacket done [09:03:36]NVStorageSaveData kkm_last_timestamp [09:03:36]File name is /storage/kkm_last_timestamp [09:03:36]Write 4 bytes [09:03:36]NVStorageSaveData done [09:03:36]ExternCall_PrintAddStr [09:03:36]wPrintStart [09:03:36]Write to MH i2c: 01 00 00 B2 03 B5 [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: 01 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: 01 07 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [09:03:36]RasterBufferAndPrint [09:03:36]line Счет N : (1)295118 [09:03:36]line ИНН: 02508201610067 [09:03:36]line Контрольно-Кассовый Чек [09:03:36]line ПРОДАЖА [09:03:36]line ТРК (МРК, ГНК) : 33 [09:03:36]line Товар: 2710124500 [09:03:36]line Аи-95-К-5 [09:03:36]line 20.220 * 74.20 [09:03:36]line = 1500.32 [09:03:36]line НДС 12% НСП 1% [09:03:36]line > о реализуемом товаре [09:03:36]line ОКРУГЛЕНИЕ: -0.32 [09:03:36]line ИТОГО: 1500.00 [09:03:36]line Внесено: 1500.00 [09:03:36]line СДАЧА: 0.00 [09:03:36]line НСП 1% : 13.28 [09:03:36]line НДС 12% : 159.33 [09:03:36]line Наличными: 1500.00 [09:03:36]line Безнал.: 0.00 [09:03:36]line Место: АЗС № 130 "Партнер Нефть" [09:03:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:03:36]line СНО: Общий режим [09:03:36]line Чек 77 24.08.2024 09:03 [09:03:36]line Смена: 471 ФФД: 1.0 [09:03:36]line ЗНМ: 0300000071 [09:03:36]line РНМ: 0000000000092561 [09:03:36]line Версия ККМ: 001 [09:03:36]line ФМ: 0000000000871778 [09:03:36]line ФД: 178851 [09:03:36]line ФПД: 24096740844171 [09:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090335&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178851&fm=24096740844171&tin=02508201610067®Number=0000000000092561&sum=150000 [09:03:36]written 0, free lines is 4095 [09:03:37]Write to MH i2c: 01 00 00 DD 03 E0 [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: 01 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: 01 07 00 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 D3 0C C6 [09:03:37]RasterBufferAndPrint [09:03:37]line [09:03:37]line [09:03:37]line [09:03:37]line [09:03:37]line [09:03:37]written 0, free lines is 3299 [09:03:37]MH_Cut [09:03:37]Write to MH i2c: D1 01 00 E4 03 01 B9 [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: D1 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: D1 01 00 [09:03:37]MH_I2C_Read... [09:03:37]Read from MH i2c: D1 01 00 E4 03 00 B8 [09:03:37]Write to MH i2c: 01 00 00 E5 03 E8 [09:03:37]Write i2c OK [09:03:37]MH_I2C_Read... [09:03:37]*** Cut start [09:03:37]*** Partial cut [09:03:37]*** CUTSNS_PIN = 1 [09:03:37]*** CUTSNS_PIN = 0 [09:03:38]*** Brake cut motor [09:03:38]Read from MH i2c: 01 [09:03:38]MH_I2C_Read... [09:03:38]*** Stop cut motor [09:03:38]*** Cut end [09:03:38]Read from MH i2c: 01 07 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [09:03:38]process_action close_receipt done [09:03:38]requested_data is exist [09:03:38]produce_requested_data [09:03:38]requested_item fm.sn is exist - process it [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 11 00 00 [09:03:38]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 17 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BC [09:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:03:38]wFMCommunicate OK [09:03:38]requested_item fd.num is exist - process it [09:03:38]SAM_PROTO_GetFieldsCounters [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 13 00 00 [09:03:38]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 62 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 62 00 E7 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A3 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A3 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_GetFieldsCounters done [09:03:38]requested_item shift.num is exist - process it [09:03:38]requested_item shift.opened is exist - process it [09:03:38]req_shift_opened [09:03:38]FM_GetShiftState [09:03:38]SAM_PROTO_GetShiftState [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 13 01 00 [09:03:38]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 26 [09:03:38]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_GetShiftState done [09:03:38]FM_GetShiftState done [09:03:38]req_shift_opened done [09:03:38]requested_item shift.open_date is exist - process it [09:03:38]req_shift_open_date [09:03:38]req_shift_open_date done [09:03:38]produce_requested_data done [09:03:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178851,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:03:38]process_action_free close_receipt [09:03:38]json_value_free [09:03:38]json_value_free done [09:03:38]process_json_proto returns [09:03:38]Send response to host [09:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178851,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:03:38]free response buf [09:03:38]execute_script done [09:03:38]execute_script returns [09:03:38]free content buf [09:03:38]Sock 10.Close socket [09:03:38]Sock 10.Thread stoped [09:03:41]Connected sock=11 [09:03: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 37 37 38 0F 01 00 00 D1 71 07 01 6E 6F 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 4C 00 00 00 F4 03 04 00 E1 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 BA 02 00 35 04 06 00 D2 21 74 14 BD C1 30 51 4E 45 B0 3F B5 76 [09:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 44 24 47 00 A1 B8 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 37 37 38 10 04 04 00 A2 BA 02 00 F4 03 04 00 91 4D C9 66 B6 04 01 00 00 A0 7C 88 66 EB 54 CE 33 [09:03:43]CommunicateWithHost err = 0 [09:03:43]CheckOFDResponse [09:03:43]1017 (14) - 77093643461234 [09:03:43]1041 (16) - 0000000000871778 [09:03:43]1040 (4) - 178850 [09:03:43]1012 (4) - 24.08.2024 03:03 [09:03:43]1206 (1) - 0 [09:03:43]OFD Sender: Remove packet 178850 [09:03:43]ProducePacketName [09:03:43]name=ofd_packets/00178850 [09:03:43]NVStorageDeleteData [09:03:43]OFD Sender: Processing packet 178851 [packets to send 500, broken 499] [09:03:43]ProducePacketName [09:03:43]name=ofd_packets/00178851 [09:03:43]OFD Sender: To server: pG, [09:03:43]CommunicateWithHost lk.salyk.kg:30040 [09:03:43]ConnectInit lk.salyk.kg [09:03:45]Connected sock=10 [09:03: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 37 37 38 0F 01 00 00 C7 1A 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 4D 00 00 00 F4 03 04 00 E7 A1 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 BA 02 00 35 04 06 00 15 EA 75 AD A2 8B CE 69 D1 38 83 5B 54 21 [09:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 49 13 47 00 A7 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 BA 02 00 F4 03 04 00 95 4D C9 66 B6 04 01 00 00 13 1B C5 3F F1 F5 10 C5 [09:03:45]CommunicateWithHost err = 0 [09:03:45]CheckOFDResponse [09:03:45]1017 (14) - 77093643461234 [09:03:45]1041 (16) - 0000000000871778 [09:03:45]1040 (4) - 178851 [09:03:45]1012 (4) - 24.08.2024 03:03 [09:03:45]1206 (1) - 0 [09:03:45]OFD Sender: Remove packet 178851 [09:03:45]ProducePacketName [09:03:45]name=ofd_packets/00178851 [09:03:45]NVStorageDeleteData [09:03:46]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:04]accept exits with 9 [09:05:04]New connection [09:05:04]New thread 3066969444 created [09:05:04]Thread 3067112804 joined [09:05:04]Waiting for new connection... [09:05:04] Sock 9.Parse request [09:05:04]Sock 9.Check first char [09:05:04]Sock 9.First char is OK [09:05:04]request: POST /json_proto HTTP/1.0 [09:05:04]Method: POST [09:05:04]URL: /json_proto [09:05:04]Method is POST - this is cgi request [09:05:04]url: /json_proto [09:05:04]query_string will be loaded in cgi processing [09:05:04]execute_cgi json_proto POST (null) [09:05:04]execute_cgi path=json_proto method=POST [09:05:04]POST find Content-Length [09:05:04]Host: 172.17.44.131:8080 [09:05:04]Content-Length: 682 [09:05:04]Content-Type: application/json [09:05:04] [09:05:04]POST finish read [09:05:04]Found Content-Length = 682 [09:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:05:04]execute_script... [09:05:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:05:04]POST & json_proto [09:05:04]process_json_proto [09:05:04]json parsed OK: [09:05:04]protocol is kg_v1.0 [09:05:04]action value=close_receipt [09:05:04]process_action close_receipt [09:05:04]cmd_close_receipt [09:05:04]MH_GetDate [09:05:04]Write to MH i2c: F0 00 00 E9 03 DB [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: F0 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: F0 09 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: F0 09 00 E9 03 00 41 A2 C9 66 4F 53 BE 66 BC [09:05:04]GetLastDocTimeStamp 1724490215 [09:05:04]current date 1724490305 [09:05:04]FM_GetShiftState [09:05:04]SAM_PROTO_GetShiftState [09:05:04]wFMCommunicate request_size=4 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 13 01 00 [09:05:04]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 0E 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 28 [09:05:04]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:05:04]wFMCommunicate OK [09:05:04]SAM_PROTO_GetShiftState done [09:05:04]FM_GetShiftState done [09:05:04]opened in 1724458079 [09:05:04]opened+sec_in_day 1724544479 [09:05:04]quantity*price = 100005 [09:05:04]sum+1 = 100006 [09:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 78 24.08.2024 09:05 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178852 ФПД: 153874533560556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090505&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178852&fm=153874533560556&tin=02508201610067®Number=0000000000092561&sum=100000 [09:05:05]StoreToDocumentArchive [09:05:05]shift 471 fd 178852 [09:05:05]save to /storage/0471/doc_00178852 [09:05:05]save last doc name /storage/0471/doc_00178852 to /storage/kkm_last_doc_name [09:05:05]save OK [09:05:05]Clear old archive folders... [09:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:05]tlvbuf is 01771290 [09:05:05]SAM_PROTO_ClearQueue [09:05:05]wFMCommunicate request_size=4 [09:05:05]MH_SAM_APDU [09:05:05]CAPDU: 80 09 00 00 [09:05:05]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:05]Read from MH i2c: E2 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 03 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [09:05:05]RAPDU: 90 00 [09:05:05]wFMCommunicate OK [09:05:05]SAM_PROTO_ClearQueue done [09:05:05]KKMCreateOFDPacket [09:05:05]OFDProtocolAddRootSTLVToBuf [09:05:05]FM_MakeSignedData [09:05:05]FM_MakeSignedData [09:05:05]SAM_PROTO_SignData [09:05:05]wFMCommunicate request_size=4 [09:05:05]MH_SAM_APDU [09:05:05]CAPDU: 80 0D 01 02 [09:05:05]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:05]Read from MH i2c: E2 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 03 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [09:05:05]RAPDU: 90 00 [09:05:05]wFMCommunicate OK [09:05:05]wFMCommunicate request_size=255 [09:05:05]MH_SAM_APDU [09:05: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 4E 00 00 00 F4 03 04 00 41 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 BA 02 00 35 04 06 00 8B [09:05:05]Write to MH i2c: E2 02 01 F9 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 4E 00 00 00 F4 03 04 00 41 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 BA 02 00 35 04 06 00 8B 00 00 A9 [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 03 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [09:05:06]RAPDU: 90 00 [09:05:06]wFMCommunicate OK [09:05:06]wFMCommunicate request_size=10 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 0D 02 02 05 F2 B4 E9 B0 EC [09:05:06]Write to MH i2c: E2 0D 00 FA 03 80 0D 02 02 05 00 F2 B4 E9 B0 EC 00 00 AC [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 03 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [09:05:06]RAPDU: 90 00 [09:05:06]wFMCommunicate OK [09:05:06]wFMCommunicate request_size=4 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 0D 03 02 [09:05:06]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 0B 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 0B 00 FB 03 00 66 F4 11 CA E3 B5 42 27 90 00 B0 [09:05:06]RAPDU: 66 F4 11 CA E3 B5 42 27 90 00 [09:05:06]wFMCommunicate OK [09:05:06]SAM_PROTO_SignData done [09:05:06]FM_MakeSignedData done [09:05:06]CreateOFDProtocolMessage [09:05:06]wFMCommunicate request_size=4 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 11 00 00 [09:05:06]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 17 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D2 [09:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:05:06]wFMCommunicate OK [09:05:06]CreateOFDProtocolMessage done [09:05:06]OFDSenderStorePacket 178852 [09:05:06]StoreOFDPacket docnum=178852 [09:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 31 CB 07 01 03 C9 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 4E 00 00 00 F4 03 04 00 41 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 BA 02 00 35 04 06 00 8B F2 B4 E9 B0 EC 66 F4 11 CA E3 B5 42 27 [09:05:06]CheckFolder [09:05:06]dirname=/storage/ofd_packets [09:05:06]CheckFolder done [09:05:06]ProducePacketName [09:05:06]name=ofd_packets/00178852 [09:05:06]NVStorageSaveData ofd_packets/00178852 [09:05:06]File name is /storage/ofd_packets/00178852 [09:05:06]Write 301 bytes [09:05:06]NVStorageSaveData done [09:05:06]OFDSenderStorePacket done [09:05:06]KKMCreateOFDPacket done [09:05:06]NVStorageSaveData kkm_last_timestamp [09:05:06]File name is /storage/kkm_last_timestamp [09:05:06]Write 4 bytes [09:05:06]NVStorageSaveData done [09:05:06]ExternCall_PrintAddStr [09:05:06]wPrintStart [09:05:06]Write to MH i2c: 01 00 00 FD 03 00 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 07 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [09:05:06]RasterBufferAndPrint [09:05:06]line Счет N : (1)295120 [09:05:06]line ИНН: 02508201610067 [09:05:06]line Контрольно-Кассовый Чек [09:05:06]line ПРОДАЖА [09:05:06]line ТРК (МРК, ГНК) : 52 [09:05:06]line Товар: 2710124130 [09:05:06]line Аи-92-К-5 [09:05:06]line 14.750 * 67.80 [09:05:06]line = 1000.05 [09:05:06]line НДС 12% НСП 1% [09:05:06]line > о реализуемом товаре [09:05:06]line ОКРУГЛЕНИЕ: -0.05 [09:05:06]line ИТОГО: 1000.00 [09:05:06]line Внесено: 1000.00 [09:05:06]line СДАЧА: 0.00 [09:05:06]line НСП 1% : 8.85 [09:05:06]line НДС 12% : 106.20 [09:05:06]line Наличными: 1000.00 [09:05:06]line Безнал.: 0.00 [09:05:06]line Место: АЗС № 130 "Партнер Нефть" [09:05:06]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:05:06]line СНО: Общий режим [09:05:06]line Чек 78 24.08.2024 09:05 [09:05:06]line Смена: 471 ФФД: 1.0 [09:05:06]line ЗНМ: 0300000071 [09:05:06]line РНМ: 0000000000092561 [09:05:06]line Версия ККМ: 001 [09:05:06]line ФМ: 0000000000871778 [09:05:06]line ФД: 178852 [09:05:06]line ФПД: 153874533560556 [09:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090505&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178852&fm=153874533560556&tin=02508201610067®Number=0000000000092561&sum=100000 [09:05:06]written 0, free lines is 4095 [09:05:06]OFD Sender: Processing packet 178852 [packets to send 500, broken 499] [09:05:06]ProducePacketName [09:05:06]name=ofd_packets/00178852 [09:05:06]OFD Sender: To server: pG, [09:05:06]CommunicateWithHost lk.salyk.kg:30040 [09:05:06]ConnectInit lk.salyk.kg [09:05:06]Write to MH i2c: 01 00 00 28 04 2C [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 07 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 D1 0C 10 [09:05:06]RasterBufferAndPrint [09:05:06]line [09:05:06]line [09:05:06]line [09:05:06]line [09:05:06]line [09:05:06]written 0, free lines is 3288 [09:05:06]MH_Cut [09:05:06]Write to MH i2c: D1 01 00 2F 04 01 05 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: D1 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: D1 01 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: D1 01 00 2F 04 00 04 [09:05:06]Write to MH i2c: 01 00 00 30 04 34 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:07]*** Cut start [09:05:07]*** Partial cut [09:05:07]*** CUTSNS_PIN = 1 [09:05:07]*** CUTSNS_PIN = 0 [09:05:07]*** Brake cut motor [09:05:08]Read from MH i2c: 01 [09:05:08]MH_I2C_Read... [09:05:08]*** Stop cut motor [09:05:08]*** Cut end [09:05:08]Read from MH i2c: 01 07 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [09:05:08]process_action close_receipt done [09:05:08]requested_data is exist [09:05:08]produce_requested_data [09:05:08]requested_item fm.sn is exist - process it [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 11 00 00 [09:05:08]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 17 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 08 [09:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:05:08]wFMCommunicate OK [09:05:08]requested_item fd.num is exist - process it [09:05:08]SAM_PROTO_GetFieldsCounters [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 13 00 00 [09:05:08]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 62 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 62 00 32 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A4 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [09:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A4 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:08]wFMCommunicate OK [09:05:08]SAM_PROTO_GetFieldsCounters done [09:05:08]requested_item shift.num is exist - process it [09:05:08]requested_item shift.opened is exist - process it [09:05:08]req_shift_opened [09:05:08]FM_GetShiftState [09:05:08]SAM_PROTO_GetShiftState [09:05:08]wFMCommunicate request_size=4 [09:05:08]MH_SAM_APDU [09:05:08]CAPDU: 80 13 01 00 [09:05:08]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [09:05:08]Write i2c OK [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 [09:05:08]MH_I2C_Read... [09:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:08]Read from MH i2c: E2 0E 00 [09:05:08]MH_I2C_Read... [09:05:08]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 72 [09:05:08]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:05:08]wFMCommunicate OK [09:05:08]SAM_PROTO_GetShiftState done [09:05:08]FM_GetShiftState done [09:05:08]req_shift_opened done [09:05:08]requested_item shift.open_date is exist - process it [09:05:08]req_shift_open_date [09:05:08]req_shift_open_date done [09:05:08]produce_requested_data done [09:05:08]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178852,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:05:08]process_action_free close_receipt [09:05:08]json_value_free [09:05:08]json_value_free done [09:05:08]process_json_proto returns [09:05:08]Send response to host [09:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178852,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:05:08]free response buf [09:05:08]execute_script done [09:05:08]execute_script returns [09:05:08]free content buf [09:05:08]Sock 9.Close socket [09:05:08]Sock 9.Thread stoped [09:05:09]recv_with_timeout no data received [09:05:11]ConnectInit Can't take IP for lk.salyk.kg [09:05:11]CommunicateWithHost connect error [09:05:11]CommunicateWithHost err = -1 [09:05:11]OFD Sender: Server communicate error [09:05:16]OFD Sender: Processing packet 178852 [packets to send 500, broken 499] [09:05:16]ProducePacketName [09:05:16]name=ofd_packets/00178852 [09:05:16]OFD Sender: To server: pG, [09:05:16]CommunicateWithHost lk.salyk.kg:30040 [09:05:16]ConnectInit lk.salyk.kg [09:05:24]recv_with_timeout no data received [09:05:25]Connected sock=9 [09:05: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 37 37 38 0F 01 00 00 31 CB 07 01 03 C9 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 4E 00 00 00 F4 03 04 00 41 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 BA 02 00 35 04 06 00 8B F2 B4 E9 B0 EC 66 F4 11 CA E3 B5 42 27 [09:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 92 7C 47 00 A6 93 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 37 37 38 10 04 04 00 A4 BA 02 00 F4 03 04 00 F9 4D C9 66 B6 04 01 00 00 F6 40 8F B9 18 1E 70 D9 [09:05:26]CommunicateWithHost err = 0 [09:05:26]CheckOFDResponse [09:05:26]1017 (14) - 77093643461234 [09:05:26]1041 (16) - 0000000000871778 [09:05:26]1040 (4) - 178852 [09:05:26]1012 (4) - 24.08.2024 03:05 [09:05:26]1206 (1) - 0 [09:05:26]OFD Sender: Remove packet 178852 [09:05:26]ProducePacketName [09:05:26]name=ofd_packets/00178852 [09:05:26]NVStorageDeleteData [09:05:26]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:44]recv_with_timeout no data received [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:04]accept exits with 10 [09:06:04]New connection [09:06:04]New thread 3067112804 created [09:06:04]Thread 3066969444 joined [09:06:04]Waiting for new connection... [09:06:04] Sock 10.Parse request [09:06:04]Sock 10.Check first char [09:06:04]Sock 10.First char is OK [09:06:04]request: POST /json_proto HTTP/1.0 [09:06:04]Method: POST [09:06:04]URL: /json_proto [09:06:04]Method is POST - this is cgi request [09:06:04]url: /json_proto [09:06:04]query_string will be loaded in cgi processing [09:06:04]execute_cgi json_proto POST (null) [09:06:04]execute_cgi path=json_proto method=POST [09:06:04]POST find Content-Length [09:06:04]Host: 172.17.44.131:8080 [09:06:04]Content-Length: 790 [09:06:04]Content-Type: application/json [09:06:04] [09:06:04]POST finish read [09:06:04]Found Content-Length = 790 [09:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 6.570, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:04]execute_script... [09:06:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 6.570, "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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:04]POST & json_proto [09:06:04]process_json_proto [09:06:04]json parsed OK: [09:06:04]protocol is kg_v1.0 [09:06:04]action value=close_receipt [09:06:04]process_action close_receipt [09:06:04]cmd_close_receipt [09:06:04]MH_GetDate [09:06:04]Write to MH i2c: F0 00 00 34 04 27 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 09 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: F0 09 00 34 04 00 7D A2 C9 66 4F 53 BE 66 44 [09:06:04]GetLastDocTimeStamp 1724490305 [09:06:04]current date 1724490365 [09:06:04]FM_GetShiftState [09:06:04]SAM_PROTO_GetShiftState [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 13 01 00 [09:06:04]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 74 [09:06:04]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_GetShiftState done [09:06:04]FM_GetShiftState done [09:06:04]opened in 1724458079 [09:06:04]opened+sec_in_day 1724544479 [09:06:04]quantity*price = 0 [09:06:04]sum+1 = 1 [09:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 79 24.08.2024 09:06 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178853 ФПД: 14656980386963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090605&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178853&fm=14656980386963&tin=02508201610067®Number=0000000000092561&sum=0 [09:06:05]StoreToDocumentArchive [09:06:05]shift 471 fd 178853 [09:06:05]save to /storage/0471/doc_00178853 [09:06:05]save last doc name /storage/0471/doc_00178853 to /storage/kkm_last_doc_name [09:06:05]save OK [09:06:05]Clear old archive folders... [09:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:06:05]tlvbuf is 01753780 [09:06:05]SAM_PROTO_ClearQueue [09:06:05]wFMCommunicate request_size=4 [09:06:05]MH_SAM_APDU [09:06:05]CAPDU: 80 09 00 00 [09:06:05]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:05]Read from MH i2c: E2 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 03 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [09:06:05]RAPDU: 90 00 [09:06:05]wFMCommunicate OK [09:06:05]SAM_PROTO_ClearQueue done [09:06:05]KKMCreateOFDPacket [09:06:05]OFDProtocolAddRootSTLVToBuf [09:06:05]FM_MakeSignedData [09:06:05]FM_MakeSignedData [09:06:05]SAM_PROTO_SignData [09:06:05]wFMCommunicate request_size=4 [09:06:05]MH_SAM_APDU [09:06:05]CAPDU: 80 0D 01 02 [09:06:05]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:05]Read from MH i2c: E2 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 03 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [09:06:05]RAPDU: 90 00 [09:06:05]wFMCommunicate OK [09:06:05]wFMCommunicate request_size=255 [09:06:05]MH_SAM_APDU [09:06:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 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 4F 00 00 00 F4 03 04 00 7D A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 BA 02 00 35 04 06 00 0D 54 98 1C [09:06:05]Write to MH i2c: E2 02 01 44 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 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 4F 00 00 00 F4 03 04 00 7D A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 BA 02 00 35 04 06 00 0D 54 98 1C 00 00 D4 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=7 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 02 02 02 04 93 [09:06:06]Write to MH i2c: E2 0A 00 45 04 80 0D 02 02 02 00 04 93 00 00 5E [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 03 02 [09:06:06]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 46 04 00 51 03 49 4A D5 64 B9 57 90 00 F6 [09:06:06]RAPDU: 51 03 49 4A D5 64 B9 57 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_SignData done [09:06:06]FM_MakeSignedData done [09:06:06]CreateOFDProtocolMessage [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 11 00 00 [09:06:06]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 47 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1E [09:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:06:06]wFMCommunicate OK [09:06:06]CreateOFDProtocolMessage done [09:06:06]OFDSenderStorePacket 178853 [09:06:06]StoreOFDPacket docnum=178853 [09:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 BA 58 04 01 7B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 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 4F 00 00 00 F4 03 04 00 7D A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 BA 02 00 35 04 06 00 0D 54 98 1C 04 93 51 03 49 4A D5 64 B9 57 [09:06:06]CheckFolder [09:06:06]dirname=/storage/ofd_packets [09:06:06]CheckFolder done [09:06:06]ProducePacketName [09:06:06]name=ofd_packets/00178853 [09:06:06]NVStorageSaveData ofd_packets/00178853 [09:06:06]File name is /storage/ofd_packets/00178853 [09:06:06]Write 298 bytes [09:06:06]NVStorageSaveData done [09:06:06]OFDSenderStorePacket done [09:06:06]KKMCreateOFDPacket done [09:06:06]NVStorageSaveData kkm_last_timestamp [09:06:06]File name is /storage/kkm_last_timestamp [09:06:06]Write 4 bytes [09:06:06]NVStorageSaveData done [09:06:06]ExternCall_PrintAddStr [09:06:06]wPrintStart [09:06:06]Write to MH i2c: 01 00 00 48 04 4C [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [09:06:06]RasterBufferAndPrint [09:06:06]line Счет N : (1)295121 [09:06:06]line ИНН: 02508201610067 [09:06:06]line Контрольно-Кассовый Чек [09:06:06]line ПРОДАЖА [09:06:06]line ТРК (МРК, ГНК) : 44 [09:06:06]line Товар: 2710194800 [09:06:06]line ДТ-К-5 [09:06:06]line 6.570 * 0.00 [09:06:06]line = 0.00 [09:06:06]line НДС 12% НСП 1% [09:06:06]line > о реализуемом товаре [09:06:06]line ИТОГО: 0.00 [09:06:06]line НСП 1% : 0.00 [09:06:06]line НДС 12% : 0.00 [09:06:06]line Наличными: 0.00 [09:06:06]line Безнал.: 0.00 [09:06:06]line Место: АЗС № 130 "Партнер Нефть" [09:06:06]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:06:06]line СНО: Общий режим [09:06:06]line Чек 79 24.08.2024 09:06 [09:06:06]line Смена: 471 ФФД: 1.0 [09:06:06]line ЗНМ: 0300000071 [09:06:06]line РНМ: 0000000000092561 [09:06:06]line Версия ККМ: 001 [09:06:06]line Талоны: Топливные Талоны [09:06:06]line 1 [09:06:06]line ФМ: 0000000000871778 [09:06:06]line ФД: 178853 [09:06:06]line ФПД: 14656980386963 [09:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090605&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178853&fm=14656980386963&tin=02508201610067®Number=0000000000092561&sum=0 [09:06:06]written 0, free lines is 4095 [09:06:06]OFD Sender: Processing packet 178853 [packets to send 500, broken 499] [09:06:06]ProducePacketName [09:06:06]name=ofd_packets/00178853 [09:06:06]OFD Sender: To server: pG, [09:06:06]CommunicateWithHost lk.salyk.kg:30040 [09:06:06]ConnectInit lk.salyk.kg [09:06:06]Write to MH i2c: 01 00 00 72 04 76 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 DF 0C 68 [09:06:06]RasterBufferAndPrint [09:06:06]line [09:06:06]line [09:06:06]line [09:06:06]line [09:06:06]line [09:06:06]written 0, free lines is 3301 [09:06:06]MH_Cut [09:06:06]Write to MH i2c: D1 01 00 79 04 01 4F [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: D1 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: D1 01 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: D1 01 00 79 04 00 4E [09:06:06]Write to MH i2c: 01 00 00 7A 04 7E [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:07]*** Cut start [09:06:07]*** Partial cut [09:06:07]*** CUTSNS_PIN = 1 [09:06:07]*** CUTSNS_PIN = 0 [09:06:07]*** Brake cut motor [09:06:07]Read from MH i2c: 01 [09:06:07]MH_I2C_Read... [09:06:07]*** Stop cut motor [09:06:07]*** Cut end [09:06:07]Read from MH i2c: 01 07 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [09:06:07]process_action close_receipt done [09:06:07]requested_data is exist [09:06:07]produce_requested_data [09:06:07]requested_item fm.sn is exist - process it [09:06:07]wFMCommunicate request_size=4 [09:06:07]MH_SAM_APDU [09:06:07]CAPDU: 80 11 00 00 [09:06:07]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 52 [09:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:06:08]wFMCommunicate OK [09:06:08]requested_item fd.num is exist - process it [09:06:08]SAM_PROTO_GetFieldsCounters [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 00 00 [09:06:08]Write to MH i2c: E2 08 00 7C 04 80 13 00 00 00 00 00 00 FC [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 7C 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A5 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A5 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetFieldsCounters done [09:06:08]requested_item shift.num is exist - process it [09:06:08]requested_item shift.opened is exist - process it [09:06:08]req_shift_opened [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 BC [09:06:08]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]req_shift_opened done [09:06:08]requested_item shift.open_date is exist - process it [09:06:08]req_shift_open_date [09:06:08]req_shift_open_date done [09:06:08]produce_requested_data done [09:06:08]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178853,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:06:08]process_action_free close_receipt [09:06:08]json_value_free [09:06:08]json_value_free done [09:06:08]process_json_proto returns [09:06:08]Send response to host [09:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178853,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:06:08]free response buf [09:06:08]execute_script done [09:06:08]execute_script returns [09:06:08]free content buf [09:06:08]Sock 10.Close socket [09:06:08]Sock 10.Thread stoped [09:06:08]recv_with_timeout no data received [09:06:11]ConnectInit Can't take IP for lk.salyk.kg [09:06:11]CommunicateWithHost connect error [09:06:11]CommunicateWithHost err = -1 [09:06:11]OFD Sender: Server communicate error [09:06:16]OFD Sender: Processing packet 178853 [packets to send 500, broken 499] [09:06:16]ProducePacketName [09:06:16]name=ofd_packets/00178853 [09:06:16]OFD Sender: To server: pG, [09:06:16]CommunicateWithHost lk.salyk.kg:30040 [09:06:16]ConnectInit lk.salyk.kg [09:06:17]Connected sock=10 [09:06: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 37 37 38 0C 01 00 00 BA 58 04 01 7B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 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 4F 00 00 00 F4 03 04 00 7D A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 BA 02 00 35 04 06 00 0D 54 98 1C 04 93 51 03 49 4A D5 64 B9 57 [09:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5D C4 47 00 F0 D2 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 37 37 38 10 04 04 00 A5 BA 02 00 F4 03 04 00 2C 4E C9 66 B6 04 01 00 00 7A 20 0F 8E F4 AF 72 3C [09:06:19]CommunicateWithHost err = 0 [09:06:19]CheckOFDResponse [09:06:19]1017 (14) - 77093643461234 [09:06:19]1041 (16) - 0000000000871778 [09:06:19]1040 (4) - 178853 [09:06:19]1012 (4) - 24.08.2024 03:06 [09:06:19]1206 (1) - 0 [09:06:19]OFD Sender: Remove packet 178853 [09:06:19]ProducePacketName [09:06:19]name=ofd_packets/00178853 [09:06:19]NVStorageDeleteData [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:41]accept exits with 9 [09:06:41]New connection [09:06:41]New thread 3066969444 created [09:06:41]Thread 3067112804 joined [09:06:41]Waiting for new connection... [09:06:41] Sock 9.Parse request [09:06:41]Sock 9.Check first char [09:06:41]Sock 9.First char is OK [09:06:41]request: POST /json_proto HTTP/1.0 [09:06:41]Method: POST [09:06:41]URL: /json_proto [09:06:41]Method is POST - this is cgi request [09:06:41]url: /json_proto [09:06:41]query_string will be loaded in cgi processing [09:06:41]execute_cgi json_proto POST (null) [09:06:41]execute_cgi path=json_proto method=POST [09:06:41]POST find Content-Length [09:06:41]Host: 172.17.44.131:8080 [09:06:41]Content-Length: 677 [09:06:41]Content-Type: application/json [09:06:41] [09:06:41]POST finish read [09:06:41]Found Content-Length = 677 [09:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:41]execute_script... [09:06: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)295122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:41]POST & json_proto [09:06:41]process_json_proto [09:06:41]json parsed OK: [09:06:41]protocol is kg_v1.0 [09:06:41]action value=close_receipt [09:06:41]process_action close_receipt [09:06:41]cmd_close_receipt [09:06:41]MH_GetDate [09:06:41]Write to MH i2c: F0 00 00 7E 04 71 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: F0 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: F0 09 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: F0 09 00 7E 04 00 A1 A2 C9 66 4F 53 BE 66 B2 [09:06:41]GetLastDocTimeStamp 1724490365 [09:06:41]current date 1724490401 [09:06:41]FM_GetShiftState [09:06:41]SAM_PROTO_GetShiftState [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 01 00 [09:06:41]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 BE [09:06:41]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetShiftState done [09:06:41]FM_GetShiftState done [09:06:41]opened in 1724458079 [09:06:41]opened+sec_in_day 1724544479 [09:06:41]quantity*price = 50036 [09:06:41]sum+1 = 50037 [09:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 80 24.08.2024 09:06 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178854 ФПД: 23781193823105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178854&fm=23781193823105&tin=02508201610067®Number=0000000000092561&sum=50000 [09:06:42]StoreToDocumentArchive [09:06:42]shift 471 fd 178854 [09:06:42]save to /storage/0471/doc_00178854 [09:06:42]save last doc name /storage/0471/doc_00178854 to /storage/kkm_last_doc_name [09:06:42]save OK [09:06:42]Clear old archive folders... [09:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:42]tlvbuf is 01753DD0 [09:06:42]SAM_PROTO_ClearQueue [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 09 00 00 [09:06:42]Write to MH i2c: E2 08 00 8C 04 80 09 00 00 00 00 00 00 02 [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [09:06:42]RAPDU: 90 00 [09:06:42]wFMCommunicate OK [09:06:42]SAM_PROTO_ClearQueue done [09:06:42]KKMCreateOFDPacket [09:06:42]OFDProtocolAddRootSTLVToBuf [09:06:42]FM_MakeSignedData [09:06:42]FM_MakeSignedData [09:06:42]SAM_PROTO_SignData [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 0D 01 02 [09:06:42]Write to MH i2c: E2 08 00 8D 04 80 0D 01 02 00 00 00 00 0A [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [09:06:42]RAPDU: 90 00 [09:06:42]wFMCommunicate OK [09:06:42]wFMCommunicate request_size=255 [09:06:42]MH_SAM_APDU [09:06:42]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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 BA 02 00 35 04 06 00 15 [09:06:42]Write to MH i2c: E2 02 01 8E 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 BA 02 00 35 04 06 00 15 00 00 9E [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [09:06:42]RAPDU: 90 00 [09:06:42]wFMCommunicate OK [09:06:42]wFMCommunicate request_size=10 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 0D 02 02 05 A0 FD 9C 33 81 [09:06:42]Write to MH i2c: E2 0D 00 8F 04 80 0D 02 02 05 00 A0 FD 9C 33 81 00 00 04 [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [09:06:42]RAPDU: 90 00 [09:06:42]wFMCommunicate OK [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 0D 03 02 [09:06:42]Write to MH i2c: E2 08 00 90 04 80 0D 03 02 00 00 00 00 0F [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 0B 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 0B 00 90 04 00 31 3E 40 03 9D EA E9 F8 90 00 2A [09:06:42]RAPDU: 31 3E 40 03 9D EA E9 F8 90 00 [09:06:42]wFMCommunicate OK [09:06:42]SAM_PROTO_SignData done [09:06:42]FM_MakeSignedData done [09:06:42]CreateOFDProtocolMessage [09:06:42]wFMCommunicate request_size=4 [09:06:42]MH_SAM_APDU [09:06:42]CAPDU: 80 11 00 00 [09:06:42]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:42]Read from MH i2c: E2 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 17 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 68 [09:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:06:42]wFMCommunicate OK [09:06:42]CreateOFDProtocolMessage done [09:06:42]OFDSenderStorePacket 178854 [09:06:42]StoreOFDPacket docnum=178854 [09:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 20 6D 07 01 CD 96 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 BA 02 00 35 04 06 00 15 A0 FD 9C 33 81 31 3E 40 03 9D EA E9 F8 [09:06:42]CheckFolder [09:06:42]dirname=/storage/ofd_packets [09:06:42]CheckFolder done [09:06:42]ProducePacketName [09:06:42]name=ofd_packets/00178854 [09:06:42]NVStorageSaveData ofd_packets/00178854 [09:06:42]File name is /storage/ofd_packets/00178854 [09:06:42]Write 301 bytes [09:06:42]NVStorageSaveData done [09:06:42]OFDSenderStorePacket done [09:06:42]KKMCreateOFDPacket done [09:06:42]NVStorageSaveData kkm_last_timestamp [09:06:42]File name is /storage/kkm_last_timestamp [09:06:42]Write 4 bytes [09:06:42]NVStorageSaveData done [09:06:42]ExternCall_PrintAddStr [09:06:42]wPrintStart [09:06:42]Write to MH i2c: 01 00 00 92 04 96 [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 FF 0F AB [09:06:42]RasterBufferAndPrint [09:06:42]line Счет N : (1)295122 [09:06:42]line ИНН: 02508201610067 [09:06:42]line Контрольно-Кассовый Чек [09:06:42]line ПРОДАЖА [09:06:42]line ТРК (МРК, ГНК) : 32 [09:06:42]line Товар: 2710124130 [09:06:42]line Аи-92-К-5 [09:06:42]line 7.380 * 67.80 [09:06:42]line = 500.36 [09:06:42]line НДС 12% НСП 1% [09:06:42]line > о реализуемом товаре [09:06:42]line ОКРУГЛЕНИЕ: -0.36 [09:06:42]line ИТОГО: 500.00 [09:06:42]line Внесено: 500.00 [09:06:42]line СДАЧА: 0.00 [09:06:42]line НСП 1% : 4.43 [09:06:42]line НДС 12% : 53.14 [09:06:42]line Наличными: 500.00 [09:06:42]line Безнал.: 0.00 [09:06:42]line Место: АЗС № 130 "Партнер Нефть" [09:06:42]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:06:42]line СНО: Общий режим [09:06:42]line Чек 80 24.08.2024 09:06 [09:06:42]line Смена: 471 ФФД: 1.0 [09:06:42]line ЗНМ: 0300000071 [09:06:42]line РНМ: 0000000000092561 [09:06:42]line Версия ККМ: 001 [09:06:42]line ФМ: 0000000000871778 [09:06:42]line ФД: 178854 [09:06:42]line ФПД: 23781193823105 [09:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T090641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178854&fm=23781193823105&tin=02508201610067®Number=0000000000092561&sum=50000 [09:06:43]OFD Sender: Processing packet 178854 [packets to send 500, broken 499] [09:06:43]ProducePacketName [09:06:43]name=ofd_packets/00178854 [09:06:43]OFD Sender: To server: pG, [09:06:43]CommunicateWithHost lk.salyk.kg:30040 [09:06:43]ConnectInit lk.salyk.kg [09:06:43]written 0, free lines is 4095 [09:06:43]Write to MH i2c: 01 00 00 BD 04 C1 [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 C9 0C 9D [09:06:43]RasterBufferAndPrint [09:06:43]line [09:06:43]line [09:06:43]line [09:06:43]line [09:06:43]line [09:06:43]written 0, free lines is 3279 [09:06:43]MH_Cut [09:06:43]Write to MH i2c: D1 01 00 C4 04 01 9A [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: D1 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: D1 01 00 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: D1 01 00 C4 04 00 99 [09:06:43]Write to MH i2c: 01 00 00 C5 04 C9 [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:44]*** Cut start [09:06:44]*** Partial cut [09:06:44]*** CUTSNS_PIN = 1 [09:06:44]*** CUTSNS_PIN = 0 [09:06:44]*** Brake cut motor [09:06:45]Read from MH i2c: 01 [09:06:45]MH_I2C_Read... [09:06:45]*** Stop cut motor [09:06:45]*** Cut end [09:06:45]Read from MH i2c: 01 07 00 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [09:06:45]process_action close_receipt done [09:06:45]requested_data is exist [09:06:45]produce_requested_data [09:06:45]requested_item fm.sn is exist - process it [09:06:45]wFMCommunicate request_size=4 [09:06:45]MH_SAM_APDU [09:06:45]CAPDU: 80 11 00 00 [09:06:45]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [09:06:45]Write i2c OK [09:06:45]MH_I2C_Read... [09:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:45]Read from MH i2c: E2 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 17 00 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 9D [09:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:06:45]wFMCommunicate OK [09:06:45]requested_item fd.num is exist - process it [09:06:45]SAM_PROTO_GetFieldsCounters [09:06:45]wFMCommunicate request_size=4 [09:06:45]MH_SAM_APDU [09:06:45]CAPDU: 80 13 00 00 [09:06:45]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [09:06:45]Write i2c OK [09:06:45]MH_I2C_Read... [09:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:45]Read from MH i2c: E2 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 62 00 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 62 00 C7 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [09:06: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:45]wFMCommunicate OK [09:06:45]SAM_PROTO_GetFieldsCounters done [09:06:45]requested_item shift.num is exist - process it [09:06:45]requested_item shift.opened is exist - process it [09:06:45]req_shift_opened [09:06:45]FM_GetShiftState [09:06:45]SAM_PROTO_GetShiftState [09:06:45]wFMCommunicate request_size=4 [09:06:45]MH_SAM_APDU [09:06:45]CAPDU: 80 13 01 00 [09:06:45]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [09:06:45]Write i2c OK [09:06:45]MH_I2C_Read... [09:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:45]Read from MH i2c: E2 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 0E 00 [09:06:45]MH_I2C_Read... [09:06:45]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 07 [09:06:45]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:06:45]wFMCommunicate OK [09:06:45]SAM_PROTO_GetShiftState done [09:06:45]FM_GetShiftState done [09:06:45]req_shift_opened done [09:06:45]requested_item shift.open_date is exist - process it [09:06:45]req_shift_open_date [09:06:45]req_shift_open_date done [09:06:45]produce_requested_data done [09:06:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178854,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:06:45]process_action_free close_receipt [09:06:45]json_value_free [09:06:45]json_value_free done [09:06:45]process_json_proto returns [09:06:45]Send response to host [09:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178854,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:06:45]free response buf [09:06:45]execute_script done [09:06:45]execute_script returns [09:06:45]free content buf [09:06:45]Sock 9.Close socket [09:06:45]Sock 9.Thread stoped [09:06:45]Connected sock=11 [09:06: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 37 37 38 0F 01 00 00 20 6D 07 01 CD 96 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 A2 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 BA 02 00 35 04 06 00 15 A0 FD 9C 33 81 31 3E 40 03 9D EA E9 F8 [09:06:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 E5 34 47 00 03 92 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 37 37 38 10 04 04 00 A6 BA 02 00 F4 03 04 00 49 4E C9 66 B6 04 01 00 00 62 AC 0D 88 24 C4 56 D3 [09:06:46]CommunicateWithHost err = 0 [09:06:46]CheckOFDResponse [09:06:46]1017 (14) - 77093643461234 [09:06:46]1041 (16) - 0000000000871778 [09:06:46]1040 (4) - 178854 [09:06:46]1012 (4) - 24.08.2024 03:06 [09:06:46]1206 (1) - 0 [09:06:46]OFD Sender: Remove packet 178854 [09:06:46]ProducePacketName [09:06:46]name=ofd_packets/00178854 [09:06:46]NVStorageDeleteData [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]recv_with_timeout no data received [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:09]recv_with_timeout no data received [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:21]accept exits with 7 [09:10:21]New connection [09:10:21]New thread 3067112804 created [09:10:21]Thread 3066969444 joined [09:10:21]Waiting for new connection... [09:10:21] Sock 7.Parse request [09:10:21]Sock 7.Check first char [09:10:21]Sock 7.First char is OK [09:10:21]request: POST /json_proto HTTP/1.0 [09:10:21]Method: POST [09:10:21]URL: /json_proto [09:10:21]Method is POST - this is cgi request [09:10:21]url: /json_proto [09:10:21]query_string will be loaded in cgi processing [09:10:21]execute_cgi json_proto POST (null) [09:10:21]execute_cgi path=json_proto method=POST [09:10:21]POST find Content-Length [09:10:21]Host: 172.17.44.131:8080 [09:10:21]Content-Length: 682 [09:10:21]Content-Type: application/json [09:10:21] [09:10:21]POST finish read [09:10:21]Found Content-Length = 682 [09:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [09:10:21]execute_script... [09:10: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)295130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [09:10:21]POST & json_proto [09:10:21]process_json_proto [09:10:21]json parsed OK: [09:10:21]protocol is kg_v1.0 [09:10:21]action value=close_receipt [09:10:21]process_action close_receipt [09:10:21]cmd_close_receipt [09:10:21]MH_GetDate [09:10:21]Write to MH i2c: F0 00 00 C9 04 BC [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 09 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 09 00 C9 04 00 7D A3 C9 66 4F 53 BE 66 DA [09:10:21]GetLastDocTimeStamp 1724490401 [09:10:21]current date 1724490621 [09:10:21]FM_GetShiftState [09:10:21]SAM_PROTO_GetShiftState [09:10:21]wFMCommunicate request_size=4 [09:10:21]MH_SAM_APDU [09:10:21]CAPDU: 80 13 01 00 [09:10:21]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:21]Read from MH i2c: E2 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: E2 0E 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 09 [09:10:21]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:10:21]wFMCommunicate OK [09:10:21]SAM_PROTO_GetShiftState done [09:10:21]FM_GetShiftState done [09:10:21]opened in 1724458079 [09:10:21]opened+sec_in_day 1724544479 [09:10:21]quantity*price = 100021 [09:10:21]sum+1 = 100023 [09:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 81 24.08.2024 09:10 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178855 ФПД: 64634464223318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091021&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178855&fm=64634464223318&tin=02508201610067®Number=0000000000092561&sum=100000 [09:10:22]StoreToDocumentArchive [09:10:22]shift 471 fd 178855 [09:10:22]save to /storage/0471/doc_00178855 [09:10:22]save last doc name /storage/0471/doc_00178855 to /storage/kkm_last_doc_name [09:10:22]save OK [09:10:22]Clear old archive folders... [09:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:22]tlvbuf is 017556F0 [09:10:22]SAM_PROTO_ClearQueue [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 09 00 00 [09:10:22]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [09:10:22]RAPDU: 90 00 [09:10:22]wFMCommunicate OK [09:10:22]SAM_PROTO_ClearQueue done [09:10:22]KKMCreateOFDPacket [09:10:22]OFDProtocolAddRootSTLVToBuf [09:10:22]FM_MakeSignedData [09:10:22]FM_MakeSignedData [09:10:22]SAM_PROTO_SignData [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 0D 01 02 [09:10:22]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [09:10:22]RAPDU: 90 00 [09:10:22]wFMCommunicate OK [09:10:22]wFMCommunicate request_size=255 [09:10:22]MH_SAM_APDU [09:10: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 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 51 00 00 00 F4 03 04 00 7D A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 BA 02 00 35 04 06 00 3A [09:10:22]Write to MH i2c: E2 02 01 D9 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 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 51 00 00 00 F4 03 04 00 7D A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 BA 02 00 35 04 06 00 3A 00 00 1A [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [09:10:22]RAPDU: 90 00 [09:10:22]wFMCommunicate OK [09:10:22]wFMCommunicate request_size=10 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 0D 02 02 05 C8 E2 47 C0 56 [09:10:22]Write to MH i2c: E2 0D 00 DA 04 80 0D 02 02 05 00 C8 E2 47 C0 56 00 00 69 [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [09:10:22]RAPDU: 90 00 [09:10:22]wFMCommunicate OK [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 0D 03 02 [09:10:22]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 0B 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 0B 00 DB 04 00 75 09 CC C8 FF FA EB 70 90 00 C1 [09:10:22]RAPDU: 75 09 CC C8 FF FA EB 70 90 00 [09:10:22]wFMCommunicate OK [09:10:22]SAM_PROTO_SignData done [09:10:22]FM_MakeSignedData done [09:10:22]CreateOFDProtocolMessage [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 11 00 00 [09:10:22]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 17 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B3 [09:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:10:23]wFMCommunicate OK [09:10:23]CreateOFDProtocolMessage done [09:10:23]OFDSenderStorePacket 178855 [09:10:23]StoreOFDPacket docnum=178855 [09:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 44 9F 07 01 84 04 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 51 00 00 00 F4 03 04 00 7D A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 BA 02 00 35 04 06 00 3A C8 E2 47 C0 56 75 09 CC C8 FF FA EB 70 [09:10:23]CheckFolder [09:10:23]dirname=/storage/ofd_packets [09:10:23]CheckFolder done [09:10:23]ProducePacketName [09:10:23]name=ofd_packets/00178855 [09:10:23]NVStorageSaveData ofd_packets/00178855 [09:10:23]File name is /storage/ofd_packets/00178855 [09:10:23]Write 301 bytes [09:10:23]NVStorageSaveData done [09:10:23]OFDSenderStorePacket done [09:10:23]KKMCreateOFDPacket done [09:10:23]NVStorageSaveData kkm_last_timestamp [09:10:23]File name is /storage/kkm_last_timestamp [09:10:23]Write 4 bytes [09:10:23]NVStorageSaveData done [09:10:23]ExternCall_PrintAddStr [09:10:23]wPrintStart [09:10:23]Write to MH i2c: 01 00 00 DD 04 E1 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [09:10:23]RasterBufferAndPrint [09:10:23]line Счет N : (1)295130 [09:10:23]line ИНН: 02508201610067 [09:10:23]line Контрольно-Кассовый Чек [09:10:23]line ПРОДАЖА [09:10:23]line ТРК (МРК, ГНК) : 33 [09:10:23]line Товар: 2710124500 [09:10:23]line Аи-95-К-5 [09:10:23]line 13.480 * 74.20 [09:10:23]line = 1000.22 [09:10:23]line НДС 12% НСП 1% [09:10:23]line > о реализуемом товаре [09:10:23]line ОКРУГЛЕНИЕ: -0.22 [09:10:23]line ИТОГО: 1000.00 [09:10:23]line Внесено: 1000.00 [09:10:23]line СДАЧА: 0.00 [09:10:23]line НСП 1% : 8.85 [09:10:23]line НДС 12% : 106.22 [09:10:23]line Наличными: 1000.00 [09:10:23]line Безнал.: 0.00 [09:10:23]line Место: АЗС № 130 "Партнер Нефть" [09:10:23]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:10:23]line СНО: Общий режим [09:10:23]line Чек 81 24.08.2024 09:10 [09:10:23]line Смена: 471 ФФД: 1.0 [09:10:23]line ЗНМ: 0300000071 [09:10:23]line РНМ: 0000000000092561 [09:10:23]line Версия ККМ: 001 [09:10:23]line ФМ: 0000000000871778 [09:10:23]line ФД: 178855 [09:10:23]line ФПД: 64634464223318 [09:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091021&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178855&fm=64634464223318&tin=02508201610067®Number=0000000000092561&sum=100000 [09:10:23]written 0, free lines is 4095 [09:10:23]OFD Sender: Processing packet 178855 [packets to send 500, broken 499] [09:10:23]ProducePacketName [09:10:23]name=ofd_packets/00178855 [09:10:23]OFD Sender: To server: pG, [09:10:23]CommunicateWithHost lk.salyk.kg:30040 [09:10:23]ConnectInit lk.salyk.kg [09:10:23]Write to MH i2c: 01 00 00 08 05 0D [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 D0 0C F0 [09:10:23]RasterBufferAndPrint [09:10:23]line [09:10:23]line [09:10:23]line [09:10:23]line [09:10:23]line [09:10:23]written 0, free lines is 3286 [09:10:23]MH_Cut [09:10:23]Write to MH i2c: D1 01 00 0F 05 01 E6 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D1 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D1 01 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: D1 01 00 0F 05 00 E5 [09:10:23]Write to MH i2c: 01 00 00 10 05 15 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:24]*** Cut start [09:10:24]*** Partial cut [09:10:24]*** CUTSNS_PIN = 1 [09:10:24]*** CUTSNS_PIN = 0 [09:10:24]*** Brake cut motor [09:10:24]Read from MH i2c: 01 [09:10:24]MH_I2C_Read... [09:10:24]*** Stop cut motor [09:10:24]*** Cut end [09:10:24]Read from MH i2c: 01 07 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [09:10:24]process_action close_receipt done [09:10:24]requested_data is exist [09:10:24]produce_requested_data [09:10:24]requested_item fm.sn is exist - process it [09:10:24]wFMCommunicate request_size=4 [09:10:24]MH_SAM_APDU [09:10:24]CAPDU: 80 11 00 00 [09:10:24]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:24]Read from MH i2c: E2 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: E2 17 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E9 [09:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:10:24]wFMCommunicate OK [09:10:24]requested_item fd.num is exist - process it [09:10:24]SAM_PROTO_GetFieldsCounters [09:10:24]wFMCommunicate request_size=4 [09:10:24]MH_SAM_APDU [09:10:24]CAPDU: 80 13 00 00 [09:10:24]Write to MH i2c: E2 08 00 12 05 80 13 00 00 00 00 00 00 93 [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:25]Read from MH i2c: E2 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 62 00 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 62 00 12 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A7 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [09:10: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A7 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:25]wFMCommunicate OK [09:10:25]SAM_PROTO_GetFieldsCounters done [09:10:25]requested_item shift.num is exist - process it [09:10:25]requested_item shift.opened is exist - process it [09:10:25]req_shift_opened [09:10:25]FM_GetShiftState [09:10:25]SAM_PROTO_GetShiftState [09:10:25]wFMCommunicate request_size=4 [09:10:25]MH_SAM_APDU [09:10:25]CAPDU: 80 13 01 00 [09:10:25]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [09:10:25]Write i2c OK [09:10:25]MH_I2C_Read... [09:10:25]Connected sock=11 [09:10: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 37 37 38 0F 01 00 00 44 9F 07 01 84 04 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 51 00 00 00 F4 03 04 00 7D A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 BA 02 00 35 04 06 00 3A C8 E2 47 C0 56 75 09 CC C8 FF FA EB 70 [09:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:25]Read from MH i2c: E2 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 0E 00 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 53 [09:10:25]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:10:25]wFMCommunicate OK [09:10:25]SAM_PROTO_GetShiftState done [09:10:25]FM_GetShiftState done [09:10:25]req_shift_opened done [09:10:25]requested_item shift.open_date is exist - process it [09:10:25]req_shift_open_date [09:10:25]req_shift_open_date done [09:10:25]produce_requested_data done [09:10:25]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178855,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:10:25]process_action_free close_receipt [09:10:25]json_value_free [09:10:25]json_value_free done [09:10:25]process_json_proto returns [09:10:25]Send response to host [09:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178855,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:10:25]free response buf [09:10:25]execute_script done [09:10:25]execute_script returns [09:10:25]free content buf [09:10:25]Sock 7.Close socket [09:10:25]Sock 7.Thread stoped [09:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5E F7 47 00 8A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 BA 02 00 F4 03 04 00 25 4F C9 66 B6 04 01 00 00 A0 3C F1 52 CA A8 56 EB [09:10:25]CommunicateWithHost err = 0 [09:10:25]CheckOFDResponse [09:10:25]1017 (14) - 77093643461234 [09:10:25]1041 (16) - 0000000000871778 [09:10:25]1040 (4) - 178855 [09:10:25]1012 (4) - 24.08.2024 03:10 [09:10:25]1206 (1) - 0 [09:10:25]OFD Sender: Remove packet 178855 [09:10:25]ProducePacketName [09:10:25]name=ofd_packets/00178855 [09:10:25]NVStorageDeleteData [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:12]accept exits with 10 [09:11:12]New connection [09:11:12]New thread 3066969444 created [09:11:12]Thread 3067112804 joined [09:11:12]Waiting for new connection... [09:11:12] Sock 10.Parse request [09:11:12]Sock 10.Check first char [09:11:12]Sock 10.First char is OK [09:11:12]request: POST /json_proto HTTP/1.0 [09:11:12]Method: POST [09:11:12]URL: /json_proto [09:11:12]Method is POST - this is cgi request [09:11:12]url: /json_proto [09:11:12]query_string will be loaded in cgi processing [09:11:12]execute_cgi json_proto POST (null) [09:11:12]execute_cgi path=json_proto method=POST [09:11:12]POST find Content-Length [09:11:12]Host: 172.17.44.131:8080 [09:11:12]Content-Length: 791 [09:11:12]Content-Type: application/json [09:11:12] [09:11:12]POST finish read [09:11:12]Found Content-Length = 791 [09:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:12]execute_script... [09:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.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\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:12]POST & json_proto [09:11:12]process_json_proto [09:11:12]json parsed OK: [09:11:12]protocol is kg_v1.0 [09:11:12]action value=close_receipt [09:11:12]process_action close_receipt [09:11:12]cmd_close_receipt [09:11:12]MH_GetDate [09:11:12]Write to MH i2c: F0 00 00 14 05 08 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: F0 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: F0 09 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: F0 09 00 14 05 00 B1 A3 C9 66 4F 53 BE 66 5A [09:11:12]GetLastDocTimeStamp 1724490621 [09:11:12]current date 1724490673 [09:11:12]FM_GetShiftState [09:11:12]SAM_PROTO_GetShiftState [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 13 01 00 [09:11:12]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0E 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 55 [09:11:12]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:11:12]wFMCommunicate OK [09:11:12]SAM_PROTO_GetShiftState done [09:11:12]FM_GetShiftState done [09:11:12]opened in 1724458079 [09:11:12]opened+sec_in_day 1724544479 [09:11:12]quantity*price = 0 [09:11:12]sum+1 = 1 [09:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 82 24.08.2024 09:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178856 ФПД: 52742640691549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091113&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178856&fm=52742640691549&tin=02508201610067®Number=0000000000092561&sum=0 [09:11:13]StoreToDocumentArchive [09:11:13]shift 471 fd 178856 [09:11:13]save to /storage/0471/doc_00178856 [09:11:13]save last doc name /storage/0471/doc_00178856 to /storage/kkm_last_doc_name [09:11:13]save OK [09:11:13]Clear old archive folders... [09:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:13]tlvbuf is 01780FF0 [09:11:13]SAM_PROTO_ClearQueue [09:11:13]wFMCommunicate request_size=4 [09:11:13]MH_SAM_APDU [09:11:13]CAPDU: 80 09 00 00 [09:11:13]Write to MH i2c: E2 08 00 22 05 80 09 00 00 00 00 00 00 99 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:13]Read from MH i2c: E2 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [09:11:13]RAPDU: 90 00 [09:11:13]wFMCommunicate OK [09:11:13]SAM_PROTO_ClearQueue done [09:11:13]KKMCreateOFDPacket [09:11:13]OFDProtocolAddRootSTLVToBuf [09:11:13]FM_MakeSignedData [09:11:13]FM_MakeSignedData [09:11:13]SAM_PROTO_SignData [09:11:13]wFMCommunicate request_size=4 [09:11:13]MH_SAM_APDU [09:11:13]CAPDU: 80 0D 01 02 [09:11:13]Write to MH i2c: E2 08 00 23 05 80 0D 01 02 00 00 00 00 A1 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [09:11:14]RAPDU: 90 00 [09:11:14]wFMCommunicate OK [09:11:14]wFMCommunicate request_size=255 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 52 00 00 00 F4 03 04 00 B1 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 BA 02 00 35 04 06 00 2F F8 1A 5C [09:11:14]Write to MH i2c: E2 02 01 24 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 52 00 00 00 F4 03 04 00 B1 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 BA 02 00 35 04 06 00 2F F8 1A 5C 00 00 FF [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [09:11:14]RAPDU: 90 00 [09:11:14]wFMCommunicate OK [09:11:14]wFMCommunicate request_size=7 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 0D 02 02 02 E9 5D [09:11:14]Write to MH i2c: E2 0A 00 25 05 80 0D 02 02 02 00 E9 5D 00 00 EE [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [09:11:14]RAPDU: 90 00 [09:11:14]wFMCommunicate OK [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 0D 03 02 [09:11:14]Write to MH i2c: E2 08 00 26 05 80 0D 03 02 00 00 00 00 A6 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0B 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0B 00 26 05 00 F8 5E 8D FA D7 94 E9 DA 90 00 B2 [09:11:14]RAPDU: F8 5E 8D FA D7 94 E9 DA 90 00 [09:11:14]wFMCommunicate OK [09:11:14]SAM_PROTO_SignData done [09:11:14]FM_MakeSignedData done [09:11:14]CreateOFDProtocolMessage [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 11 00 00 [09:11:14]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 17 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FF [09:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:11:14]wFMCommunicate OK [09:11:14]CreateOFDProtocolMessage done [09:11:14]OFDSenderStorePacket 178856 [09:11:14]StoreOFDPacket docnum=178856 [09:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 50 C0 04 01 54 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 52 00 00 00 F4 03 04 00 B1 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 BA 02 00 35 04 06 00 2F F8 1A 5C E9 5D F8 5E 8D FA D7 94 E9 DA [09:11:14]CheckFolder [09:11:14]dirname=/storage/ofd_packets [09:11:14]CheckFolder done [09:11:14]ProducePacketName [09:11:14]name=ofd_packets/00178856 [09:11:14]NVStorageSaveData ofd_packets/00178856 [09:11:14]File name is /storage/ofd_packets/00178856 [09:11:14]Write 298 bytes [09:11:14]NVStorageSaveData done [09:11:14]OFDSenderStorePacket done [09:11:14]KKMCreateOFDPacket done [09:11:14]NVStorageSaveData kkm_last_timestamp [09:11:14]File name is /storage/kkm_last_timestamp [09:11:14]Write 4 bytes [09:11:14]NVStorageSaveData done [09:11:14]ExternCall_PrintAddStr [09:11:14]wPrintStart [09:11:14]Write to MH i2c: 01 00 00 28 05 2D [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 FF 0F 42 [09:11:14]RasterBufferAndPrint [09:11:14]line Счет N : (1)295129 [09:11:14]line ИНН: 02508201610067 [09:11:14]line Контрольно-Кассовый Чек [09:11:14]line ПРОДАЖА [09:11:14]line ТРК (МРК, ГНК) : 21 [09:11:14]line Товар: 2710194800 [09:11:14]line ДТ-К-5 [09:11:14]line 60.000 * 0.00 [09:11:14]line = 0.00 [09:11:14]line НДС 12% НСП 1% [09:11:14]line > о реализуемом товаре [09:11:14]line ИТОГО: 0.00 [09:11:14]line НСП 1% : 0.00 [09:11:14]line НДС 12% : 0.00 [09:11:14]line Наличными: 0.00 [09:11:14]line Безнал.: 0.00 [09:11:14]line Место: АЗС № 130 "Партнер Нефть" [09:11:14]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:11:14]line СНО: Общий режим [09:11:14]line Чек 82 24.08.2024 09:11 [09:11:14]line Смена: 471 ФФД: 1.0 [09:11:14]line ЗНМ: 0300000071 [09:11:14]line РНМ: 0000000000092561 [09:11:14]line Версия ККМ: 001 [09:11:14]line Талоны: Топливные Талоны [09:11:14]line 1 [09:11:14]line ФМ: 0000000000871778 [09:11:14]line ФД: 178856 [09:11:14]line ФПД: 52742640691549 [09:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091113&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178856&fm=52742640691549&tin=02508201610067®Number=0000000000092561&sum=0 [09:11:14]written 0, free lines is 4095 [09:11:14]OFD Sender: Processing packet 178856 [packets to send 500, broken 499] [09:11:14]ProducePacketName [09:11:14]name=ofd_packets/00178856 [09:11:14]OFD Sender: To server: pG, [09:11:14]CommunicateWithHost lk.salyk.kg:30040 [09:11:14]ConnectInit lk.salyk.kg [09:11:14]Connected sock=9 [09:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 50 C0 04 01 54 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 52 00 00 00 F4 03 04 00 B1 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 BA 02 00 35 04 06 00 2F F8 1A 5C E9 5D F8 5E 8D FA D7 94 E9 DA [09:11:14]Write to MH i2c: 01 00 00 52 05 57 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 DA 0C 44 [09:11:14]RasterBufferAndPrint [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]written 0, free lines is 3296 [09:11:14]MH_Cut [09:11:14]Write to MH i2c: D1 01 00 59 05 01 30 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 01 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 01 00 59 05 00 2F [09:11:14]Write to MH i2c: 01 00 00 5A 05 5F [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AA 18 47 00 14 DE 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 37 37 38 10 04 04 00 A8 BA 02 00 F4 03 04 00 56 4F C9 66 B6 04 01 00 00 EB 61 87 D2 8A EC 37 99 [09:11:15]CommunicateWithHost err = 0 [09:11:15]CheckOFDResponse [09:11:15]1017 (14) - 77093643461234 [09:11:15]1041 (16) - 0000000000871778 [09:11:15]1040 (4) - 178856 [09:11:15]1012 (4) - 24.08.2024 03:11 [09:11:15]1206 (1) - 0 [09:11:15]OFD Sender: Remove packet 178856 [09:11:15]ProducePacketName [09:11:15]name=ofd_packets/00178856 [09:11:15]NVStorageDeleteData [09:11:15]*** Cut start [09:11:15]*** Partial cut [09:11:15]*** CUTSNS_PIN = 1 [09:11:15]*** CUTSNS_PIN = 0 [09:11:15]*** Brake cut motor [09:11:15]OFD Sender: No OFD packet to send [09:11:16]Read from MH i2c: 01 [09:11:16]MH_I2C_Read... [09:11:16]*** Stop cut motor [09:11:16]*** Cut end [09:11:16]Read from MH i2c: 01 07 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [09:11:16]process_action close_receipt done [09:11:16]requested_data is exist [09:11:16]produce_requested_data [09:11:16]requested_item fm.sn is exist - process it [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 11 00 00 [09:11:16]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 17 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 33 [09:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:11:16]wFMCommunicate OK [09:11:16]requested_item fd.num is exist - process it [09:11:16]SAM_PROTO_GetFieldsCounters [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 13 00 00 [09:11:16]Write to MH i2c: E2 08 00 5C 05 80 13 00 00 00 00 00 00 DD [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 62 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 62 00 5C 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A8 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:11: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A8 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_GetFieldsCounters done [09:11:16]requested_item shift.num is exist - process it [09:11:16]requested_item shift.opened is exist - process it [09:11:16]req_shift_opened [09:11:16]FM_GetShiftState [09:11:16]SAM_PROTO_GetShiftState [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 13 01 00 [09:11:16]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 9D [09:11:16]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_GetShiftState done [09:11:16]FM_GetShiftState done [09:11:16]req_shift_opened done [09:11:16]requested_item shift.open_date is exist - process it [09:11:16]req_shift_open_date [09:11:16]req_shift_open_date done [09:11:16]produce_requested_data done [09:11:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178856,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:11:16]process_action_free close_receipt [09:11:16]json_value_free [09:11:16]json_value_free done [09:11:16]process_json_proto returns [09:11:16]Send response to host [09:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178856,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:11:16]free response buf [09:11:16]execute_script done [09:11:16]execute_script returns [09:11:16]free content buf [09:11:16]Sock 10.Close socket [09:11:16]Sock 10.Thread stoped [09:11:16]accept exits with 7 [09:11:16]New connection [09:11:16]New thread 3067112804 created [09:11:16]Thread 3066969444 joined [09:11:16]Waiting for new connection... [09:11:16] Sock 7.Parse request [09:11:16]Sock 7.Check first char [09:11:16]Sock 7.First char is OK [09:11:16]request: POST /json_proto HTTP/1.0 [09:11:16]Method: POST [09:11:16]URL: /json_proto [09:11:16]Method is POST - this is cgi request [09:11:16]url: /json_proto [09:11:16]query_string will be loaded in cgi processing [09:11:16]execute_cgi json_proto POST (null) [09:11:16]execute_cgi path=json_proto method=POST [09:11:16]POST find Content-Length [09:11:16]Host: 172.17.44.131:8080 [09:11:16]Content-Length: 682 [09:11:16]Content-Type: application/json [09:11:16] [09:11:16]POST finish read [09:11:16]Found Content-Length = 682 [09:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:11:16]execute_script... [09: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)295131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:11:16]POST & json_proto [09:11:16]process_json_proto [09:11:16]json parsed OK: [09:11:16]protocol is kg_v1.0 [09:11:16]action value=close_receipt [09:11:16]process_action close_receipt [09:11:16]cmd_close_receipt [09:11:16]MH_GetDate [09:11:16]Write to MH i2c: F0 00 00 5E 05 52 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 09 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: F0 09 00 5E 05 00 B5 A3 C9 66 4F 53 BE 66 A8 [09:11:16]GetLastDocTimeStamp 1724490673 [09:11:16]current date 1724490677 [09:11:16]FM_GetShiftState [09:11:16]SAM_PROTO_GetShiftState [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 13 01 00 [09:11:16]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 9F [09:11:16]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_GetShiftState done [09:11:16]FM_GetShiftState done [09:11:16]opened in 1724458079 [09:11:16]opened+sec_in_day 1724544479 [09:11:16]quantity*price = 100005 [09:11:16]sum+1 = 100006 [09:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 83 24.08.2024 09:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178857 ФПД: 177078967884075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091117&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178857&fm=177078967884075&tin=02508201610067®Number=0000000000092561&sum=100000 [09:11:18]StoreToDocumentArchive [09:11:18]shift 471 fd 178857 [09:11:18]save to /storage/0471/doc_00178857 [09:11:18]save last doc name /storage/0471/doc_00178857 to /storage/kkm_last_doc_name [09:11:18]save OK [09:11:18]Clear old archive folders... [09:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:18]tlvbuf is 017808F0 [09:11:18]SAM_PROTO_ClearQueue [09:11:18]wFMCommunicate request_size=4 [09:11:18]MH_SAM_APDU [09:11:18]CAPDU: 80 09 00 00 [09:11:18]Write to MH i2c: E2 08 00 6C 05 80 09 00 00 00 00 00 00 E3 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [09:11:18]RAPDU: 90 00 [09:11:18]wFMCommunicate OK [09:11:18]SAM_PROTO_ClearQueue done [09:11:18]KKMCreateOFDPacket [09:11:18]OFDProtocolAddRootSTLVToBuf [09:11:18]FM_MakeSignedData [09:11:18]FM_MakeSignedData [09:11:18]SAM_PROTO_SignData [09:11:18]wFMCommunicate request_size=4 [09:11:18]MH_SAM_APDU [09:11:18]CAPDU: 80 0D 01 02 [09:11:18]Write to MH i2c: E2 08 00 6D 05 80 0D 01 02 00 00 00 00 EB [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [09:11:18]RAPDU: 90 00 [09:11:18]wFMCommunicate OK [09:11:18]wFMCommunicate request_size=255 [09:11:18]MH_SAM_APDU [09: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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 53 00 00 00 F4 03 04 00 B5 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 BA 02 00 35 04 06 00 A1 [09:11:18]Write to MH i2c: E2 02 01 6E 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 53 00 00 00 F4 03 04 00 B5 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 BA 02 00 35 04 06 00 A1 00 00 B5 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [09:11:18]RAPDU: 90 00 [09:11:18]wFMCommunicate OK [09:11:18]wFMCommunicate request_size=10 [09:11:18]MH_SAM_APDU [09:11:18]CAPDU: 80 0D 02 02 05 0D 68 FA 59 2B [09:11:18]Write to MH i2c: E2 0D 00 6F 05 80 0D 02 02 05 00 0D 68 FA 59 2B 00 00 EB [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [09:11:18]RAPDU: 90 00 [09:11:18]wFMCommunicate OK [09:11:18]wFMCommunicate request_size=4 [09:11:18]MH_SAM_APDU [09:11:18]CAPDU: 80 0D 03 02 [09:11:18]Write to MH i2c: E2 08 00 70 05 80 0D 03 02 00 00 00 00 F0 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 0B 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 0B 00 70 05 00 CE 4F C0 0B A3 72 1B 23 90 00 2C [09:11:18]RAPDU: CE 4F C0 0B A3 72 1B 23 90 00 [09:11:18]wFMCommunicate OK [09:11:18]SAM_PROTO_SignData done [09:11:18]FM_MakeSignedData done [09:11:18]CreateOFDProtocolMessage [09:11:18]wFMCommunicate request_size=4 [09:11:18]MH_SAM_APDU [09:11:18]CAPDU: 80 11 00 00 [09:11:18]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:18]Read from MH i2c: E2 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 17 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 49 [09:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:11:18]wFMCommunicate OK [09:11:18]CreateOFDProtocolMessage done [09:11:18]OFDSenderStorePacket 178857 [09:11:18]StoreOFDPacket docnum=178857 [09:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 3C 47 07 01 C2 D2 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 53 00 00 00 F4 03 04 00 B5 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 BA 02 00 35 04 06 00 A1 0D 68 FA 59 2B CE 4F C0 0B A3 72 1B 23 [09:11:18]CheckFolder [09:11:18]dirname=/storage/ofd_packets [09:11:18]CheckFolder done [09:11:18]ProducePacketName [09:11:18]name=ofd_packets/00178857 [09:11:18]NVStorageSaveData ofd_packets/00178857 [09:11:18]File name is /storage/ofd_packets/00178857 [09:11:18]Write 301 bytes [09:11:18]NVStorageSaveData done [09:11:18]OFDSenderStorePacket done [09:11:18]KKMCreateOFDPacket done [09:11:18]NVStorageSaveData kkm_last_timestamp [09:11:18]File name is /storage/kkm_last_timestamp [09:11:18]Write 4 bytes [09:11:18]NVStorageSaveData done [09:11:18]ExternCall_PrintAddStr [09:11:18]wPrintStart [09:11:18]Write to MH i2c: 01 00 00 72 05 77 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 FF 0F 8C [09:11:18]RasterBufferAndPrint [09:11:18]line Счет N : (1)295131 [09:11:18]line ИНН: 02508201610067 [09:11:18]line Контрольно-Кассовый Чек [09:11:18]line ПРОДАЖА [09:11:18]line ТРК (МРК, ГНК) : 42 [09:11:18]line Товар: 2710124130 [09:11:18]line Аи-92-К-5 [09:11:18]line 14.750 * 67.80 [09:11:18]line = 1000.05 [09:11:18]line НДС 12% НСП 1% [09:11:18]line > о реализуемом товаре [09:11:18]line ОКРУГЛЕНИЕ: -0.05 [09:11:18]line ИТОГО: 1000.00 [09:11:18]line Внесено: 1000.00 [09:11:18]line СДАЧА: 0.00 [09:11:18]line НСП 1% : 8.85 [09:11:18]line НДС 12% : 106.20 [09:11:18]line Наличными: 1000.00 [09:11:18]line Безнал.: 0.00 [09:11:18]line Место: АЗС № 130 "Партнер Нефть" [09:11:18]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:11:18]line СНО: Общий режим [09:11:18]line Чек 83 24.08.2024 09:11 [09:11:18]line Смена: 471 ФФД: 1.0 [09:11:18]line ЗНМ: 0300000071 [09:11:18]line РНМ: 0000000000092561 [09:11:18]line Версия ККМ: 001 [09:11:18]line ФМ: 0000000000871778 [09:11:18]line ФД: 178857 [09:11:18]line ФПД: 177078967884075 [09:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091117&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178857&fm=177078967884075&tin=02508201610067®Number=0000000000092561&sum=100000 [09:11:19]OFD Sender: Processing packet 178857 [packets to send 500, broken 499] [09:11:19]ProducePacketName [09:11:19]name=ofd_packets/00178857 [09:11:19]written 0, free lines is 4095 [09:11:19]OFD Sender: To server: pG, [09:11:19]CommunicateWithHost lk.salyk.kg:30040 [09:11:19]ConnectInit lk.salyk.kg [09:11:19]Write to MH i2c: 01 00 00 9D 05 A2 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: 01 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: 01 07 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 D5 0C 8A [09:11:19]RasterBufferAndPrint [09:11:19]line [09:11:19]line [09:11:19]line [09:11:19]line [09:11:19]line [09:11:19]written 0, free lines is 3297 [09:11:19]MH_Cut [09:11:19]Write to MH i2c: D1 01 00 A4 05 01 7B [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: D1 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: D1 01 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: D1 01 00 A4 05 00 7A [09:11:19]Write to MH i2c: 01 00 00 A5 05 AA [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:20]Connected sock=11 [09:11: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 37 37 38 0F 01 00 00 3C 47 07 01 C2 D2 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 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 7C 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 53 00 00 00 F4 03 04 00 B5 A3 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 BA 02 00 35 04 06 00 A1 0D 68 FA 59 2B CE 4F C0 0B A3 72 1B 23 [09:11:20]*** Cut start [09:11:20]*** Partial cut [09:11:20]*** CUTSNS_PIN = 1 [09:11:20]*** CUTSNS_PIN = 0 [09:11:20]*** Brake cut motor [09:11:20]Read from MH i2c: 01 [09:11:21]MH_I2C_Read... [09:11:21]*** Stop cut motor [09:11:21]*** Cut end [09:11:21]Read from MH i2c: 01 07 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [09:11:21]process_action close_receipt done [09:11:21]requested_data is exist [09:11:21]produce_requested_data [09:11:21]requested_item fm.sn is exist - process it [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 11 00 00 [09:11:21]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7E [09:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:11:21]wFMCommunicate OK [09:11:21]requested_item fd.num is exist - process it [09:11:21]SAM_PROTO_GetFieldsCounters [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 13 00 00 [09:11:21]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 62 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 62 00 A7 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A9 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:11: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A9 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:21]wFMCommunicate OK [09:11:21]SAM_PROTO_GetFieldsCounters done [09:11:21]requested_item shift.num is exist - process it [09:11:21]requested_item shift.opened is exist - process it [09:11:21]req_shift_opened [09:11:21]FM_GetShiftState [09:11:21]SAM_PROTO_GetShiftState [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 13 01 00 [09:11:21]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 0E 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 E8 [09:11:21]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:11:21]wFMCommunicate OK [09:11:21]SAM_PROTO_GetShiftState done [09:11:21]FM_GetShiftState done [09:11:21]req_shift_opened done [09:11:21]requested_item shift.open_date is exist - process it [09:11:21]req_shift_open_date [09:11:21]req_shift_open_date done [09:11:21]produce_requested_data done [09:11:21]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178857,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:11:21]process_action_free close_receipt [09:11:21]json_value_free [09:11:21]json_value_free done [09:11:21]process_json_proto returns [09:11:21]Send response to host [09:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178857,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:11:21]free response buf [09:11:21]execute_script done [09:11:21]execute_script returns [09:11:21]free content buf [09:11:21]Sock 7.Close socket [09:11:21]Sock 7.Thread stoped [09:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 27 1E 47 00 42 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 BA 02 00 F4 03 04 00 5C 4F C9 66 B6 04 01 00 00 03 FB 4D 12 E9 F9 64 31 [09:11:21]CommunicateWithHost err = 0 [09:11:21]CheckOFDResponse [09:11:21]1017 (14) - 77093643461234 [09:11:21]1041 (16) - 0000000000871778 [09:11:21]1040 (4) - 178857 [09:11:21]1012 (4) - 24.08.2024 03:11 [09:11:21]1206 (1) - 0 [09:11:21]OFD Sender: Remove packet 178857 [09:11:21]ProducePacketName [09:11:21]name=ofd_packets/00178857 [09:11:21]NVStorageDeleteData [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:19]recv_with_timeout no data received [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:46]accept exits with 9 [09:14:46]New connection [09:14:46]New thread 3066969444 created [09:14:46]Thread 3067112804 joined [09:14:46]Waiting for new connection... [09:14:46] Sock 9.Parse request [09:14:46]Sock 9.Check first char [09:14:46]Sock 9.First char is OK [09:14:46]request: POST /json_proto HTTP/1.0 [09:14:46]Method: POST [09:14:46]URL: /json_proto [09:14:46]Method is POST - this is cgi request [09:14:46]url: /json_proto [09:14:46]query_string will be loaded in cgi processing [09:14:46]execute_cgi json_proto POST (null) [09:14:46]execute_cgi path=json_proto method=POST [09:14:46]POST find Content-Length [09:14:46]Host: 172.17.44.131:8080 [09:14:46]Content-Length: 677 [09:14:46]Content-Type: application/json [09:14:46] [09:14:46]POST finish read [09:14:46]Found Content-Length = 677 [09:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:46]execute_script... [09:14: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)295134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:46]POST & json_proto [09:14:46]process_json_proto [09:14:46]json parsed OK: [09:14:46]protocol is kg_v1.0 [09:14:46]action value=close_receipt [09:14:46]process_action close_receipt [09:14:46]cmd_close_receipt [09:14:46]MH_GetDate [09:14:46]Write to MH i2c: F0 00 00 A9 05 9D [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: F0 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: F0 09 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: F0 09 00 A9 05 00 87 A4 C9 66 4F 53 BE 66 C6 [09:14:46]GetLastDocTimeStamp 1724490677 [09:14:46]current date 1724490887 [09:14:46]FM_GetShiftState [09:14:46]SAM_PROTO_GetShiftState [09:14:46]wFMCommunicate request_size=4 [09:14:46]MH_SAM_APDU [09:14:46]CAPDU: 80 13 01 00 [09:14:46]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:46]Read from MH i2c: E2 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 0E 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EA [09:14:46]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:14:46]wFMCommunicate OK [09:14:46]SAM_PROTO_GetShiftState done [09:14:46]FM_GetShiftState done [09:14:46]opened in 1724458079 [09:14:46]opened+sec_in_day 1724544479 [09:14:46]quantity*price = 50036 [09:14:46]sum+1 = 50037 [09:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 84 24.08.2024 09:14 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178858 ФПД: 73505201764761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091447&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178858&fm=73505201764761&tin=02508201610067®Number=0000000000092561&sum=50000 [09:14:48]StoreToDocumentArchive [09:14:48]shift 471 fd 178858 [09:14:48]save to /storage/0471/doc_00178858 [09:14:48]save last doc name /storage/0471/doc_00178858 to /storage/kkm_last_doc_name [09:14:48]save OK [09:14:48]Clear old archive folders... [09:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:48]tlvbuf is 0175BE80 [09:14:48]SAM_PROTO_ClearQueue [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 09 00 00 [09:14:48]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [09:14:48]RAPDU: 90 00 [09:14:48]wFMCommunicate OK [09:14:48]SAM_PROTO_ClearQueue done [09:14:48]KKMCreateOFDPacket [09:14:48]OFDProtocolAddRootSTLVToBuf [09:14:48]FM_MakeSignedData [09:14:48]FM_MakeSignedData [09:14:48]SAM_PROTO_SignData [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 0D 01 02 [09:14:48]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [09:14:48]RAPDU: 90 00 [09:14:48]wFMCommunicate OK [09:14:48]wFMCommunicate request_size=255 [09:14:48]MH_SAM_APDU [09:14:48]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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 87 A4 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA BA 02 00 35 04 06 00 42 [09:14:48]Write to MH i2c: E2 02 01 B9 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 87 A4 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA BA 02 00 35 04 06 00 42 00 00 E7 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [09:14:48]RAPDU: 90 00 [09:14:48]wFMCommunicate OK [09:14:48]wFMCommunicate request_size=10 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 0D 02 02 05 DA 43 70 B9 99 [09:14:48]Write to MH i2c: E2 0D 00 BA 05 80 0D 02 02 05 00 DA 43 70 B9 99 00 00 22 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [09:14:48]RAPDU: 90 00 [09:14:48]wFMCommunicate OK [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 0D 03 02 [09:14:48]Write to MH i2c: E2 08 00 BB 05 80 0D 03 02 00 00 00 00 3B [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 0B 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 0B 00 BB 05 00 DE B0 D2 D2 AA 16 F1 3C 90 00 5B [09:14:48]RAPDU: DE B0 D2 D2 AA 16 F1 3C 90 00 [09:14:48]wFMCommunicate OK [09:14:48]SAM_PROTO_SignData done [09:14:48]FM_MakeSignedData done [09:14:48]CreateOFDProtocolMessage [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 11 00 00 [09:14:48]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 17 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 94 [09:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:14:48]wFMCommunicate OK [09:14:48]CreateOFDProtocolMessage done [09:14:48]OFDSenderStorePacket 178858 [09:14:48]StoreOFDPacket docnum=178858 [09:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 4E 09 07 01 31 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 87 A4 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA BA 02 00 35 04 06 00 42 DA 43 70 B9 99 DE B0 D2 D2 AA 16 F1 3C [09:14:48]CheckFolder [09:14:48]dirname=/storage/ofd_packets [09:14:48]CheckFolder done [09:14:48]ProducePacketName [09:14:48]name=ofd_packets/00178858 [09:14:48]NVStorageSaveData ofd_packets/00178858 [09:14:48]File name is /storage/ofd_packets/00178858 [09:14:48]Write 301 bytes [09:14:48]NVStorageSaveData done [09:14:48]OFDSenderStorePacket done [09:14:48]KKMCreateOFDPacket done [09:14:48]NVStorageSaveData kkm_last_timestamp [09:14:48]File name is /storage/kkm_last_timestamp [09:14:48]Write 4 bytes [09:14:48]NVStorageSaveData done [09:14:48]ExternCall_PrintAddStr [09:14:48]wPrintStart [09:14:48]Write to MH i2c: 01 00 00 BD 05 C2 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: 01 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: 01 07 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [09:14:48]RasterBufferAndPrint [09:14:48]line Счет N : (1)295134 [09:14:48]line ИНН: 02508201610067 [09:14:48]line Контрольно-Кассовый Чек [09:14:48]line ПРОДАЖА [09:14:48]line ТРК (МРК, ГНК) : 42 [09:14:48]line Товар: 2710124130 [09:14:48]line Аи-92-К-5 [09:14:48]line 7.380 * 67.80 [09:14:48]line = 500.36 [09:14:48]line НДС 12% НСП 1% [09:14:48]line > о реализуемом товаре [09:14:48]line ОКРУГЛЕНИЕ: -0.36 [09:14:48]line ИТОГО: 500.00 [09:14:48]line Внесено: 500.00 [09:14:48]line СДАЧА: 0.00 [09:14:48]line НСП 1% : 4.43 [09:14:48]line НДС 12% : 53.14 [09:14:48]line Наличными: 500.00 [09:14:48]line Безнал.: 0.00 [09:14:48]line Место: АЗС № 130 "Партнер Нефть" [09:14:48]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:14:48]line СНО: Общий режим [09:14:48]line Чек 84 24.08.2024 09:14 [09:14:48]line Смена: 471 ФФД: 1.0 [09:14:48]line ЗНМ: 0300000071 [09:14:48]line РНМ: 0000000000092561 [09:14:48]line Версия ККМ: 001 [09:14:48]line ФМ: 0000000000871778 [09:14:48]line ФД: 178858 [09:14:48]line ФПД: 73505201764761 [09:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091447&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178858&fm=73505201764761&tin=02508201610067®Number=0000000000092561&sum=50000 [09:14:48]written 0, free lines is 4095 [09:14:48]OFD Sender: Processing packet 178858 [packets to send 500, broken 499] [09:14:48]ProducePacketName [09:14:48]name=ofd_packets/00178858 [09:14:48]OFD Sender: To server: pG, [09:14:48]CommunicateWithHost lk.salyk.kg:30040 [09:14:48]ConnectInit lk.salyk.kg [09:14:49]Write to MH i2c: 01 00 00 E8 05 ED [09:14:49]Write i2c OK [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: 01 [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: 01 07 00 [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 C9 0C C9 [09:14:49]RasterBufferAndPrint [09:14:49]line [09:14:49]line [09:14:49]line [09:14:49]line [09:14:49]line [09:14:49]written 0, free lines is 3280 [09:14:49]MH_Cut [09:14:49]Write to MH i2c: D1 01 00 EF 05 01 C6 [09:14:49]Write i2c OK [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: D1 [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: D1 01 00 [09:14:49]MH_I2C_Read... [09:14:49]Read from MH i2c: D1 01 00 EF 05 00 C5 [09:14:49]Write to MH i2c: 01 00 00 F0 05 F5 [09:14:49]Write i2c OK [09:14:49]MH_I2C_Read... [09:14:49]Connected sock=10 [09:14: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 37 37 38 0F 01 00 00 4E 09 07 01 31 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 87 A4 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA BA 02 00 35 04 06 00 42 DA 43 70 B9 99 DE B0 D2 D2 AA 16 F1 3C [09:14:49]*** Cut start [09:14:49]*** Partial cut [09:14:49]*** CUTSNS_PIN = 1 [09:14:49]*** CUTSNS_PIN = 0 [09:14:50]*** Brake cut motor [09:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C3 7D 47 00 75 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA BA 02 00 F4 03 04 00 2D 50 C9 66 B6 04 01 00 00 1E 0B 93 D4 71 4B 5D CC [09:14:50]CommunicateWithHost err = 0 [09:14:50]CheckOFDResponse [09:14:50]1017 (14) - 77093643461234 [09:14:50]1041 (16) - 0000000000871778 [09:14:50]1040 (4) - 178858 [09:14:50]1012 (4) - 24.08.2024 03:14 [09:14:50]1206 (1) - 0 [09:14:50]OFD Sender: Remove packet 178858 [09:14:50]ProducePacketName [09:14:50]name=ofd_packets/00178858 [09:14:50]NVStorageDeleteData [09:14:50]Read from MH i2c: 01 [09:14:50]MH_I2C_Read... [09:14:50]*** Stop cut motor [09:14:50]*** Cut end [09:14:50]Read from MH i2c: 01 07 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [09:14:50]process_action close_receipt done [09:14:50]requested_data is exist [09:14:50]produce_requested_data [09:14:50]requested_item fm.sn is exist - process it [09:14:50]wFMCommunicate request_size=4 [09:14:50]MH_SAM_APDU [09:14:50]CAPDU: 80 11 00 00 [09:14:50]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [09:14:50]Write i2c OK [09:14:50]MH_I2C_Read... [09:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:50]Read from MH i2c: E2 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 17 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C9 [09:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:14:50]wFMCommunicate OK [09:14:50]requested_item fd.num is exist - process it [09:14:50]SAM_PROTO_GetFieldsCounters [09:14:50]wFMCommunicate request_size=4 [09:14:50]MH_SAM_APDU [09:14:50]CAPDU: 80 13 00 00 [09:14:50]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [09:14:50]Write i2c OK [09:14:50]MH_I2C_Read... [09:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:50]Read from MH i2c: E2 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 62 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 62 00 F2 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AA BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:14: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AA BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:50]wFMCommunicate OK [09:14:50]SAM_PROTO_GetFieldsCounters done [09:14:50]requested_item shift.num is exist - process it [09:14:50]requested_item shift.opened is exist - process it [09:14:50]req_shift_opened [09:14:50]FM_GetShiftState [09:14:50]SAM_PROTO_GetShiftState [09:14:50]wFMCommunicate request_size=4 [09:14:50]MH_SAM_APDU [09:14:50]CAPDU: 80 13 01 00 [09:14:50]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [09:14:50]Write i2c OK [09:14:50]MH_I2C_Read... [09:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:50]Read from MH i2c: E2 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 0E 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 33 [09:14:50]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:14:50]wFMCommunicate OK [09:14:50]SAM_PROTO_GetShiftState done [09:14:50]FM_GetShiftState done [09:14:50]req_shift_opened done [09:14:50]requested_item shift.open_date is exist - process it [09:14:50]req_shift_open_date [09:14:50]req_shift_open_date done [09:14:50]produce_requested_data done [09:14:50]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178858,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:14:50]process_action_free close_receipt [09:14:50]json_value_free [09:14:50]json_value_free done [09:14:50]process_json_proto returns [09:14:50]Send response to host [09:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178858,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:14:50]free response buf [09:14:50]execute_script done [09:14:50]execute_script returns [09:14:50]free content buf [09:14:50]Sock 9.Close socket [09:14:50]Sock 9.Thread stoped [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:11]recv_with_timeout no data received [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:01]accept exits with 7 [09:18:01]New connection [09:18:01]New thread 3067112804 created [09:18:01]Thread 3066969444 joined [09:18:01]Waiting for new connection... [09:18:01] Sock 7.Parse request [09:18:01]Sock 7.Check first char [09:18:01]Sock 7.First char is OK [09:18:01]request: POST /json_proto HTTP/1.0 [09:18:01]Method: POST [09:18:01]URL: /json_proto [09:18:01]Method is POST - this is cgi request [09:18:01]url: /json_proto [09:18:01]query_string will be loaded in cgi processing [09:18:01]execute_cgi json_proto POST (null) [09:18:01]execute_cgi path=json_proto method=POST [09:18:01]POST find Content-Length [09:18:01]Host: 172.17.44.131:8080 [09:18:01]Content-Length: 682 [09:18:01]Content-Type: application/json [09:18:01] [09:18:01]POST finish read [09:18:01]Found Content-Length = 682 [09:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [09:18:01]execute_script... [09:18: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)295140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [09:18:01]POST & json_proto [09:18:01]process_json_proto [09:18:01]json parsed OK: [09:18:01]protocol is kg_v1.0 [09:18:01]action value=close_receipt [09:18:01]process_action close_receipt [09:18:01]cmd_close_receipt [09:18:01]MH_GetDate [09:18:01]Write to MH i2c: F0 00 00 F4 05 E8 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: F0 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: F0 09 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: F0 09 00 F4 05 00 4A A5 C9 66 4F 53 BE 66 D5 [09:18:01]GetLastDocTimeStamp 1724490887 [09:18:01]current date 1724491082 [09:18:01]FM_GetShiftState [09:18:01]SAM_PROTO_GetShiftState [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 13 01 00 [09:18:01]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 35 [09:18:01]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:18:01]wFMCommunicate OK [09:18:01]SAM_PROTO_GetShiftState done [09:18:01]FM_GetShiftState done [09:18:01]opened in 1724458079 [09:18:01]opened+sec_in_day 1724544479 [09:18:01]quantity*price = 100021 [09:18:01]sum+1 = 100023 [09:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 85 24.08.2024 09:18 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178859 ФПД: 221759491358848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091802&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178859&fm=221759491358848&tin=02508201610067®Number=0000000000092561&sum=100000 [09:18:03]StoreToDocumentArchive [09:18:03]shift 471 fd 178859 [09:18:03]save to /storage/0471/doc_00178859 [09:18:03]save last doc name /storage/0471/doc_00178859 to /storage/kkm_last_doc_name [09:18:03]save OK [09:18:03]Clear old archive folders... [09:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:03]tlvbuf is 017DE470 [09:18:03]SAM_PROTO_ClearQueue [09:18:03]wFMCommunicate request_size=4 [09:18:03]MH_SAM_APDU [09:18:03]CAPDU: 80 09 00 00 [09:18:03]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [09:18:03]RAPDU: 90 00 [09:18:03]wFMCommunicate OK [09:18:03]SAM_PROTO_ClearQueue done [09:18:03]KKMCreateOFDPacket [09:18:03]OFDProtocolAddRootSTLVToBuf [09:18:03]FM_MakeSignedData [09:18:03]FM_MakeSignedData [09:18:03]SAM_PROTO_SignData [09:18:03]wFMCommunicate request_size=4 [09:18:03]MH_SAM_APDU [09:18:03]CAPDU: 80 0D 01 02 [09:18:03]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [09:18:03]RAPDU: 90 00 [09:18:03]wFMCommunicate OK [09:18:03]wFMCommunicate request_size=255 [09:18:03]MH_SAM_APDU [09:18:03]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 55 00 00 00 F4 03 04 00 4A A5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB BA 02 00 35 04 06 00 C9 [09:18:03]Write to MH i2c: E2 02 01 04 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 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 55 00 00 00 F4 03 04 00 4A A5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB BA 02 00 35 04 06 00 C9 00 00 AD [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:03]Read from MH i2c: E2 03 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [09:18:03]RAPDU: 90 00 [09:18:03]wFMCommunicate OK [09:18:03]wFMCommunicate request_size=10 [09:18:03]MH_SAM_APDU [09:18:03]CAPDU: 80 0D 02 02 05 B0 67 B5 40 80 [09:18:03]Write to MH i2c: E2 0D 00 05 06 80 0D 02 02 05 00 B0 67 B5 40 80 00 00 1B [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [09:18:03]RAPDU: 90 00 [09:18:03]wFMCommunicate OK [09:18:03]wFMCommunicate request_size=4 [09:18:03]MH_SAM_APDU [09:18:03]CAPDU: 80 0D 03 02 [09:18:03]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0B 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 0B 00 06 06 00 8D 8A 54 54 6F 12 89 A4 90 00 F5 [09:18:03]RAPDU: 8D 8A 54 54 6F 12 89 A4 90 00 [09:18:03]wFMCommunicate OK [09:18:03]SAM_PROTO_SignData done [09:18:03]FM_MakeSignedData done [09:18:03]CreateOFDProtocolMessage [09:18:03]wFMCommunicate request_size=4 [09:18:03]MH_SAM_APDU [09:18:03]CAPDU: 80 11 00 00 [09:18:03]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:03]Read from MH i2c: E2 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 17 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E0 [09:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:18:03]wFMCommunicate OK [09:18:03]CreateOFDProtocolMessage done [09:18:03]OFDSenderStorePacket 178859 [09:18:03]StoreOFDPacket docnum=178859 [09:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0A 28 07 01 F9 B5 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 55 00 00 00 F4 03 04 00 4A A5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB BA 02 00 35 04 06 00 C9 B0 67 B5 40 80 8D 8A 54 54 6F 12 89 A4 [09:18:03]CheckFolder [09:18:03]dirname=/storage/ofd_packets [09:18:03]CheckFolder done [09:18:03]ProducePacketName [09:18:03]name=ofd_packets/00178859 [09:18:03]NVStorageSaveData ofd_packets/00178859 [09:18:03]File name is /storage/ofd_packets/00178859 [09:18:03]Write 301 bytes [09:18:03]NVStorageSaveData done [09:18:03]OFDSenderStorePacket done [09:18:03]KKMCreateOFDPacket done [09:18:03]NVStorageSaveData kkm_last_timestamp [09:18:03]File name is /storage/kkm_last_timestamp [09:18:03]Write 4 bytes [09:18:03]NVStorageSaveData done [09:18:03]ExternCall_PrintAddStr [09:18:03]wPrintStart [09:18:03]Write to MH i2c: 01 00 00 08 06 0E [09:18:03]Write i2c OK [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: 01 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: 01 07 00 [09:18:03]MH_I2C_Read... [09:18:03]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [09:18:03]RasterBufferAndPrint [09:18:03]line Счет N : (1)295140 [09:18:03]line ИНН: 02508201610067 [09:18:03]line Контрольно-Кассовый Чек [09:18:03]line ПРОДАЖА [09:18:03]line ТРК (МРК, ГНК) : 63 [09:18:03]line Товар: 2710124500 [09:18:03]line Аи-95-К-5 [09:18:03]line 13.480 * 74.20 [09:18:03]line = 1000.22 [09:18:03]line НДС 12% НСП 1% [09:18:03]line > о реализуемом товаре [09:18:03]line ОКРУГЛЕНИЕ: -0.22 [09:18:03]line ИТОГО: 1000.00 [09:18:03]line Внесено: 1000.00 [09:18:03]line СДАЧА: 0.00 [09:18:03]line НСП 1% : 8.85 [09:18:03]line НДС 12% : 106.22 [09:18:03]line Наличными: 1000.00 [09:18:03]line Безнал.: 0.00 [09:18:03]line Место: АЗС № 130 "Партнер Нефть" [09:18:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:18:03]line СНО: Общий режим [09:18:03]line Чек 85 24.08.2024 09:18 [09:18:03]line Смена: 471 ФФД: 1.0 [09:18:03]line ЗНМ: 0300000071 [09:18:03]line РНМ: 0000000000092561 [09:18:03]line Версия ККМ: 001 [09:18:03]line ФМ: 0000000000871778 [09:18:03]line ФД: 178859 [09:18:03]line ФПД: 221759491358848 [09:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T091802&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178859&fm=221759491358848&tin=02508201610067®Number=0000000000092561&sum=100000 [09:18:03]OFD Sender: Processing packet 178859 [packets to send 500, broken 499] [09:18:03]ProducePacketName [09:18:03]name=ofd_packets/00178859 [09:18:03]OFD Sender: To server: pG, [09:18:03]CommunicateWithHost lk.salyk.kg:30040 [09:18:03]ConnectInit lk.salyk.kg [09:18:03]written 0, free lines is 4095 [09:18:04]Write to MH i2c: 01 00 00 33 06 39 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 D0 0C 1C [09:18:04]RasterBufferAndPrint [09:18:04]line [09:18:04]line [09:18:04]line [09:18:04]line [09:18:04]line [09:18:04]written 0, free lines is 3286 [09:18:04]MH_Cut [09:18:04]Write to MH i2c: D1 01 00 3A 06 01 12 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: D1 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: D1 01 00 [09:18:04]MH_I2C_Read... [09:18:04]Read from MH i2c: D1 01 00 3A 06 00 11 [09:18:04]Write to MH i2c: 01 00 00 3B 06 41 [09:18:04]Write i2c OK [09:18:04]MH_I2C_Read... [09:18:04]Connected sock=11 [09:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0A 28 07 01 F9 B5 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 55 00 00 00 F4 03 04 00 4A A5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB BA 02 00 35 04 06 00 C9 B0 67 B5 40 80 8D 8A 54 54 6F 12 89 A4 [09:18:05]*** Cut start [09:18:05]*** Partial cut [09:18:05]*** CUTSNS_PIN = 1 [09:18:05]*** CUTSNS_PIN = 0 [09:18:05]*** Brake cut motor [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]*** Stop cut motor [09:18:05]*** Cut end [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [09:18:05]process_action close_receipt done [09:18:05]requested_data is exist [09:18:05]produce_requested_data [09:18:05]requested_item fm.sn is exist - process it [09:18:05]wFMCommunicate request_size=4 [09:18:05]MH_SAM_APDU [09:18:05]CAPDU: 80 11 00 00 [09:18:05]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:05]Read from MH i2c: E2 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 17 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 15 [09:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:18:05]wFMCommunicate OK [09:18:05]requested_item fd.num is exist - process it [09:18:05]SAM_PROTO_GetFieldsCounters [09:18:05]wFMCommunicate request_size=4 [09:18:05]MH_SAM_APDU [09:18:05]CAPDU: 80 13 00 00 [09:18:05]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:05]Read from MH i2c: E2 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 62 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AB BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:18: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AB BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:05]wFMCommunicate OK [09:18:05]SAM_PROTO_GetFieldsCounters done [09:18:05]requested_item shift.num is exist - process it [09:18:05]requested_item shift.opened is exist - process it [09:18:05]req_shift_opened [09:18:05]FM_GetShiftState [09:18:05]SAM_PROTO_GetShiftState [09:18:05]wFMCommunicate request_size=4 [09:18:05]MH_SAM_APDU [09:18:05]CAPDU: 80 13 01 00 [09:18:05]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:05]Read from MH i2c: E2 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 0E 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 7F [09:18:05]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:18:05]wFMCommunicate OK [09:18:05]SAM_PROTO_GetShiftState done [09:18:05]FM_GetShiftState done [09:18:05]req_shift_opened done [09:18:05]requested_item shift.open_date is exist - process it [09:18:05]req_shift_open_date [09:18:05]req_shift_open_date done [09:18:05]produce_requested_data done [09:18:05]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178859,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:18:05]process_action_free close_receipt [09:18:05]json_value_free [09:18:05]json_value_free done [09:18:05]process_json_proto returns [09:18:05]Send response to host [09:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178859,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:18:05]free response buf [09:18:05]execute_script done [09:18:05]execute_script returns [09:18:05]free content buf [09:18:05]Sock 7.Close socket [09:18:05]Sock 7.Thread stoped [09:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 11 05 47 00 F3 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB BA 02 00 F4 03 04 00 F0 50 C9 66 B6 04 01 00 00 6D 0D 71 AC 36 39 76 2D [09:18:07]CommunicateWithHost err = 0 [09:18:07]CheckOFDResponse [09:18:07]1017 (14) - 77093643461234 [09:18:07]1041 (16) - 0000000000871778 [09:18:07]1040 (4) - 178859 [09:18:07]1012 (4) - 24.08.2024 03:18 [09:18:07]1206 (1) - 0 [09:18:07]OFD Sender: Remove packet 178859 [09:18:07]ProducePacketName [09:18:07]name=ofd_packets/00178859 [09:18:07]NVStorageDeleteData [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:49]recv_with_timeout no data received [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:07]recv_with_timeout no data received [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:57]recv_with_timeout no data received [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:49]recv_with_timeout no data received [09:22:50]accept exits with 9 [09:22:50]New connection [09:22:50]New thread 3066969444 created [09:22:50]Thread 3067112804 joined [09:22:50]Waiting for new connection... [09:22:50] Sock 9.Parse request [09:22:50]Sock 9.Check first char [09:22:50]Sock 9.First char is OK [09:22:50]request: POST /json_proto HTTP/1.0 [09:22:50]Method: POST [09:22:50]URL: /json_proto [09:22:50]Method is POST - this is cgi request [09:22:50]url: /json_proto [09:22:50]query_string will be loaded in cgi processing [09:22:50]execute_cgi json_proto POST (null) [09:22:50]execute_cgi path=json_proto method=POST [09:22:50]POST find Content-Length [09:22:50]Host: 172.17.44.131:8080 [09:22:50]Content-Length: 682 [09:22:50]Content-Type: application/json [09:22:50] [09:22:50]POST finish read [09:22:50]Found Content-Length = 682 [09:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:22:50]execute_script... [09:22:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [09:22:50]POST & json_proto [09:22:50]process_json_proto [09:22:50]json parsed OK: [09:22:50]protocol is kg_v1.0 [09:22:50]action value=close_receipt [09:22:50]process_action close_receipt [09:22:50]cmd_close_receipt [09:22:50]MH_GetDate [09:22:50]Write to MH i2c: F0 00 00 3F 06 34 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 09 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: F0 09 00 3F 06 00 6B A6 C9 66 4F 53 BE 66 43 [09:22:50]GetLastDocTimeStamp 1724491082 [09:22:50]current date 1724491371 [09:22:50]FM_GetShiftState [09:22:50]SAM_PROTO_GetShiftState [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 01 00 [09:22:50]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 81 [09:22:50]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetShiftState done [09:22:50]FM_GetShiftState done [09:22:50]opened in 1724458079 [09:22:50]opened+sec_in_day 1724544479 [09:22:50]quantity*price = 100021 [09:22:50]sum+1 = 100023 [09:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 86 24.08.2024 09:22 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178860 ФПД: 28013937872542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T092251&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178860&fm=28013937872542&tin=02508201610067®Number=0000000000092561&sum=100000 [09:22:51]StoreToDocumentArchive [09:22:51]shift 471 fd 178860 [09:22:51]save to /storage/0471/doc_00178860 [09:22:51]save last doc name /storage/0471/doc_00178860 to /storage/kkm_last_doc_name [09:22:51]save OK [09:22:51]Clear old archive folders... [09:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:51]tlvbuf is 0175B4F0 [09:22:51]SAM_PROTO_ClearQueue [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 09 00 00 [09:22:51]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]SAM_PROTO_ClearQueue done [09:22:51]KKMCreateOFDPacket [09:22:51]OFDProtocolAddRootSTLVToBuf [09:22:51]FM_MakeSignedData [09:22:51]FM_MakeSignedData [09:22:51]SAM_PROTO_SignData [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 0D 01 02 [09:22:51]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [09:22:51]RAPDU: 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=255 [09:22:51]MH_SAM_APDU [09:22:51]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 56 00 00 00 F4 03 04 00 6B A6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC BA 02 00 35 04 06 00 19 [09:22:51]Write to MH i2c: E2 02 01 4F 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 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 56 00 00 00 F4 03 04 00 6B A6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC BA 02 00 35 04 06 00 19 00 00 6C [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 03 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [09:22:52]RAPDU: 90 00 [09:22:52]wFMCommunicate OK [09:22:52]wFMCommunicate request_size=10 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 0D 02 02 05 7A 80 D0 CE 9E [09:22:52]Write to MH i2c: E2 0D 00 50 06 80 0D 02 02 05 00 7A 80 D0 CE 9E 00 00 10 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 03 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [09:22:52]RAPDU: 90 00 [09:22:52]wFMCommunicate OK [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 0D 03 02 [09:22:52]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0B 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0B 00 51 06 00 E5 89 49 CC 02 F2 15 68 90 00 C7 [09:22:52]RAPDU: E5 89 49 CC 02 F2 15 68 90 00 [09:22:52]wFMCommunicate OK [09:22:52]SAM_PROTO_SignData done [09:22:52]FM_MakeSignedData done [09:22:52]CreateOFDProtocolMessage [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 11 00 00 [09:22:52]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 17 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2B [09:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:22:52]wFMCommunicate OK [09:22:52]CreateOFDProtocolMessage done [09:22:52]OFDSenderStorePacket 178860 [09:22:52]StoreOFDPacket docnum=178860 [09:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A1 CE 07 01 1B 23 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 56 00 00 00 F4 03 04 00 6B A6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC BA 02 00 35 04 06 00 19 7A 80 D0 CE 9E E5 89 49 CC 02 F2 15 68 [09:22:52]CheckFolder [09:22:52]dirname=/storage/ofd_packets [09:22:52]CheckFolder done [09:22:52]ProducePacketName [09:22:52]name=ofd_packets/00178860 [09:22:52]NVStorageSaveData ofd_packets/00178860 [09:22:52]File name is /storage/ofd_packets/00178860 [09:22:52]Write 301 bytes [09:22:52]NVStorageSaveData done [09:22:52]OFDSenderStorePacket done [09:22:52]KKMCreateOFDPacket done [09:22:52]NVStorageSaveData kkm_last_timestamp [09:22:52]File name is /storage/kkm_last_timestamp [09:22:52]Write 4 bytes [09:22:52]NVStorageSaveData done [09:22:52]ExternCall_PrintAddStr [09:22:52]wPrintStart [09:22:52]Write to MH i2c: 01 00 00 53 06 59 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [09:22:52]RasterBufferAndPrint [09:22:52]line Счет N : (1)295141 [09:22:52]line ИНН: 02508201610067 [09:22:52]line Контрольно-Кассовый Чек [09:22:52]line ПРОДАЖА [09:22:52]line ТРК (МРК, ГНК) : 43 [09:22:52]line Товар: 2710124500 [09:22:52]line Аи-95-К-5 [09:22:52]line 13.480 * 74.20 [09:22:52]line = 1000.22 [09:22:52]line НДС 12% НСП 1% [09:22:52]line > о реализуемом товаре [09:22:52]line ОКРУГЛЕНИЕ: -0.22 [09:22:52]line ИТОГО: 1000.00 [09:22:52]line Внесено: 1000.00 [09:22:52]line СДАЧА: 0.00 [09:22:52]line НСП 1% : 8.85 [09:22:52]line НДС 12% : 106.22 [09:22:52]line Наличными: 1000.00 [09:22:52]line Безнал.: 0.00 [09:22:52]line Место: АЗС № 130 "Партнер Нефть" [09:22:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:22:52]line СНО: Общий режим [09:22:52]line Чек 86 24.08.2024 09:22 [09:22:52]line Смена: 471 ФФД: 1.0 [09:22:52]line ЗНМ: 0300000071 [09:22:52]line РНМ: 0000000000092561 [09:22:52]line Версия ККМ: 001 [09:22:52]line ФМ: 0000000000871778 [09:22:52]line ФД: 178860 [09:22:52]line ФПД: 28013937872542 [09:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T092251&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178860&fm=28013937872542&tin=02508201610067®Number=0000000000092561&sum=100000 [09:22:52]written 0, free lines is 4095 [09:22:52]OFD Sender: Processing packet 178860 [packets to send 500, broken 499] [09:22:52]ProducePacketName [09:22:52]name=ofd_packets/00178860 [09:22:52]OFD Sender: To server: pG, [09:22:52]CommunicateWithHost lk.salyk.kg:30040 [09:22:52]ConnectInit lk.salyk.kg [09:22:52]Write to MH i2c: 01 00 00 7E 06 84 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 DA 0C 71 [09:22:52]RasterBufferAndPrint [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]line [09:22:52]written 0, free lines is 3296 [09:22:52]MH_Cut [09:22:52]Write to MH i2c: D1 01 00 85 06 01 5D [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 01 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: D1 01 00 85 06 00 5C [09:22:52]Write to MH i2c: 01 00 00 86 06 8C [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:53]*** Cut start [09:22:53]*** Partial cut [09:22:53]*** CUTSNS_PIN = 1 [09:22:53]*** CUTSNS_PIN = 0 [09:22:53]*** Brake cut motor [09:22:53]Connected sock=10 [09:22: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 37 37 38 0F 01 00 00 A1 CE 07 01 1B 23 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 56 00 00 00 F4 03 04 00 6B A6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC BA 02 00 35 04 06 00 19 7A 80 D0 CE 9E E5 89 49 CC 02 F2 15 68 [09:22:54]Read from MH i2c: 01 [09:22:54]MH_I2C_Read... [09:22:54]*** Stop cut motor [09:22:54]*** Cut end [09:22:54]Read from MH i2c: 01 07 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [09:22:54]process_action close_receipt done [09:22:54]requested_data is exist [09:22:54]produce_requested_data [09:22:54]requested_item fm.sn is exist - process it [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 11 00 00 [09:22:54]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 60 [09:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:22:54]wFMCommunicate OK [09:22:54]requested_item fd.num is exist - process it [09:22:54]SAM_PROTO_GetFieldsCounters [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 13 00 00 [09:22:54]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 62 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 62 00 88 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AC BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:22: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AC BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:54]wFMCommunicate OK [09:22:54]SAM_PROTO_GetFieldsCounters done [09:22:54]requested_item shift.num is exist - process it [09:22:54]requested_item shift.opened is exist - process it [09:22:54]req_shift_opened [09:22:54]FM_GetShiftState [09:22:54]SAM_PROTO_GetShiftState [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 13 01 00 [09:22:54]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0E 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CA [09:22:54]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:22:54]wFMCommunicate OK [09:22:54]SAM_PROTO_GetShiftState done [09:22:54]FM_GetShiftState done [09:22:54]req_shift_opened done [09:22:54]requested_item shift.open_date is exist - process it [09:22:54]req_shift_open_date [09:22:54]req_shift_open_date done [09:22:54]produce_requested_data done [09:22:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178860,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:22:54]process_action_free close_receipt [09:22:54]json_value_free [09:22:54]json_value_free done [09:22:54]process_json_proto returns [09:22:54]Send response to host [09:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178860,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:22:54]free response buf [09:22:54]execute_script done [09:22:54]execute_script returns [09:22:54]free content buf [09:22:54]Sock 9.Close socket [09:22:54]Sock 9.Thread stoped [09:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 BE FF 47 00 0C 8F 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 37 37 38 10 04 04 00 AC BA 02 00 F4 03 04 00 11 52 C9 66 B6 04 01 00 00 70 2B 45 F9 3F 2E BB B4 [09:22:54]CommunicateWithHost err = 0 [09:22:54]CheckOFDResponse [09:22:54]1017 (14) - 77093643461234 [09:22:54]1041 (16) - 0000000000871778 [09:22:54]1040 (4) - 178860 [09:22:54]1012 (4) - 24.08.2024 03:22 [09:22:54]1206 (1) - 0 [09:22:54]OFD Sender: Remove packet 178860 [09:22:54]ProducePacketName [09:22:54]name=ofd_packets/00178860 [09:22:54]NVStorageDeleteData [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:08]recv_with_timeout no data received [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:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]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:10]recv_with_timeout no data received [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:02]recv_with_timeout no data received [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:05]recv_with_timeout no data received [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:35]recv_with_timeout no data received [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:47]recv_with_timeout no data received [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:28]recv_with_timeout no data received [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:15]recv_with_timeout no data received [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:31]recv_with_timeout no data received [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:33]recv_with_timeout no data received [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]recv_with_timeout no data received [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:02]recv_with_timeout no data received [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:08]accept exits with 7 [09:42:08]New connection [09:42:08]New thread 3067112804 created [09:42:08]Thread 3066969444 joined [09:42:08]Waiting for new connection... [09:42:08] Sock 7.Parse request [09:42:08]Sock 7.Check first char [09:42:08]Sock 7.First char is OK [09:42:08]request: POST /json_proto HTTP/1.0 [09:42:08]Method: POST [09:42:08]URL: /json_proto [09:42:08]Method is POST - this is cgi request [09:42:08]url: /json_proto [09:42:08]query_string will be loaded in cgi processing [09:42:08]execute_cgi json_proto POST (null) [09:42:08]execute_cgi path=json_proto method=POST [09:42:08]POST find Content-Length [09:42:08]Host: 172.17.44.131:8080 [09:42:08]Content-Length: 672 [09:42:08]Content-Type: application/json [09:42:08] [09:42:08]POST finish read [09:42:08]Found Content-Length = 672 [09:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:42:08]execute_script... [09:42: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)295152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:42:08]POST & json_proto [09:42:08]process_json_proto [09:42:08]json parsed OK: [09:42:08]protocol is kg_v1.0 [09:42:08]action value=close_receipt [09:42:08]process_action close_receipt [09:42:08]cmd_close_receipt [09:42:08]MH_GetDate [09:42:08]Write to MH i2c: F0 00 00 8A 06 7F [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 09 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 09 00 8A 06 00 F1 AA C9 66 4F 53 BE 66 18 [09:42:08]GetLastDocTimeStamp 1724491371 [09:42:08]current date 1724492529 [09:42:08]FM_GetShiftState [09:42:08]SAM_PROTO_GetShiftState [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 13 01 00 [09:42:08]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CC [09:42:08]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:42:08]wFMCommunicate OK [09:42:08]SAM_PROTO_GetShiftState done [09:42:08]FM_GetShiftState done [09:42:08]opened in 1724458079 [09:42:08]opened+sec_in_day 1724544479 [09:42:08]quantity*price = 100035 [09:42:08]sum+1 = 100036 [09:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 87 24.08.2024 09:42 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178861 ФПД: 81067004875269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T094209&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178861&fm=81067004875269&tin=02508201610067®Number=0000000000092561&sum=100000 [09:42:09]StoreToDocumentArchive [09:42:09]shift 471 fd 178861 [09:42:09]save to /storage/0471/doc_00178861 [09:42:09]save last doc name /storage/0471/doc_00178861 to /storage/kkm_last_doc_name [09:42:09]save OK [09:42:09]Clear old archive folders... [09:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=249 [09:42:09]tlvbuf is 01756D70 [09:42:09]SAM_PROTO_ClearQueue [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 09 00 00 [09:42:09]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [09:42:09]RAPDU: 90 00 [09:42:09]wFMCommunicate OK [09:42:09]SAM_PROTO_ClearQueue done [09:42:09]KKMCreateOFDPacket [09:42:09]OFDProtocolAddRootSTLVToBuf [09:42:09]FM_MakeSignedData [09:42:09]FM_MakeSignedData [09:42:09]SAM_PROTO_SignData [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 0D 01 02 [09:42:09]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [09:42:09]RAPDU: 90 00 [09:42:09]wFMCommunicate OK [09:42:09]wFMCommunicate request_size=255 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 57 00 00 00 F4 03 04 00 F1 AA C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD BA 02 00 35 04 06 00 49 BA E2 [09:42:09]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 57 00 00 00 F4 03 04 00 F1 AA C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD BA 02 00 35 04 06 00 49 BA E2 00 00 DD [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]wFMCommunicate request_size=8 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 02 02 03 07 52 05 [09:42:10]Write to MH i2c: E2 0B 00 9B 06 80 0D 02 02 03 00 07 52 05 00 00 7F [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 03 02 [09:42:10]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 0B 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 0B 00 9C 06 00 3D DE 0F BB 56 2F 60 BF 90 00 A7 [09:42:10]RAPDU: 3D DE 0F BB 56 2F 60 BF 90 00 [09:42:10]wFMCommunicate OK [09:42:10]SAM_PROTO_SignData done [09:42:10]FM_MakeSignedData done [09:42:10]CreateOFDProtocolMessage [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 11 00 00 [09:42:10]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 17 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 76 [09:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:42:10]wFMCommunicate OK [09:42:10]CreateOFDProtocolMessage done [09:42:10]OFDSenderStorePacket 178861 [09:42:10]StoreOFDPacket docnum=178861 [09:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 8D 98 05 01 81 F8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 57 00 00 00 F4 03 04 00 F1 AA C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD BA 02 00 35 04 06 00 49 BA E2 07 52 05 3D DE 0F BB 56 2F 60 BF [09:42:10]CheckFolder [09:42:10]dirname=/storage/ofd_packets [09:42:10]CheckFolder done [09:42:10]ProducePacketName [09:42:10]name=ofd_packets/00178861 [09:42:10]NVStorageSaveData ofd_packets/00178861 [09:42:10]File name is /storage/ofd_packets/00178861 [09:42:10]Write 299 bytes [09:42:10]NVStorageSaveData done [09:42:10]OFDSenderStorePacket done [09:42:10]KKMCreateOFDPacket done [09:42:10]NVStorageSaveData kkm_last_timestamp [09:42:10]File name is /storage/kkm_last_timestamp [09:42:10]Write 4 bytes [09:42:10]NVStorageSaveData done [09:42:10]ExternCall_PrintAddStr [09:42:10]wPrintStart [09:42:10]Write to MH i2c: 01 00 00 9E 06 A4 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [09:42:10]RasterBufferAndPrint [09:42:10]line Счет N : (1)295152 [09:42:10]line ИНН: 02508201610067 [09:42:10]line Контрольно-Кассовый Чек [09:42:10]line ПРОДАЖА [09:42:10]line ТРК (МРК, ГНК) : 61 [09:42:10]line Товар: 2710124130 [09:42:10]line SU-92-К-5 [09:42:10]line 14.540 * 68.80 [09:42:10]line = 1000.35 [09:42:10]line НДС 12% НСП 1% [09:42:10]line > о реализуемом товаре [09:42:10]line ОКРУГЛЕНИЕ: -0.35 [09:42:10]line ИТОГО: 1000.00 [09:42:10]line Внесено: 1000.00 [09:42:10]line СДАЧА: 0.00 [09:42:10]line НСП 1% : 8.85 [09:42:10]line НДС 12% : 106.23 [09:42:10]line Наличными: 1000.00 [09:42:10]line Безнал.: 0.00 [09:42:10]line Место: АЗС № 130 "Партнер Нефть" [09:42:10]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:42:10]line СНО: Общий режим [09:42:10]line Чек 87 24.08.2024 09:42 [09:42:10]line Смена: 471 ФФД: 1.0 [09:42:10]line ЗНМ: 0300000071 [09:42:10]line РНМ: 0000000000092561 [09:42:10]line Версия ККМ: 001 [09:42:10]line ФМ: 0000000000871778 [09:42:10]line ФД: 178861 [09:42:10]line ФПД: 81067004875269 [09:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T094209&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178861&fm=81067004875269&tin=02508201610067®Number=0000000000092561&sum=100000 [09:42:10]written 0, free lines is 4095 [09:42:10]OFD Sender: Processing packet 178861 [packets to send 500, broken 499] [09:42:10]ProducePacketName [09:42:10]name=ofd_packets/00178861 [09:42:10]OFD Sender: To server: pG, [09:42:10]CommunicateWithHost lk.salyk.kg:30040 [09:42:10]ConnectInit lk.salyk.kg [09:42:10]Write to MH i2c: 01 00 00 C9 06 CF [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 C9 0C AB [09:42:10]RasterBufferAndPrint [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]written 0, free lines is 3280 [09:42:10]MH_Cut [09:42:10]Write to MH i2c: D1 01 00 D0 06 01 A8 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 01 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 01 00 D0 06 00 A7 [09:42:10]Write to MH i2c: 01 00 00 D1 06 D7 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:11]*** Cut start [09:42:11]*** Partial cut [09:42:11]*** CUTSNS_PIN = 1 [09:42:11]*** CUTSNS_PIN = 0 [09:42:11]*** Brake cut motor [09:42:12]Read from MH i2c: 01 [09:42:12]MH_I2C_Read... [09:42:12]*** Stop cut motor [09:42:12]*** Cut end [09:42:12]Read from MH i2c: 01 07 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [09:42:12]process_action close_receipt done [09:42:12]requested_data is exist [09:42:12]produce_requested_data [09:42:12]requested_item fm.sn is exist - process it [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 11 00 00 [09:42:12]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 17 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AB [09:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:42:12]wFMCommunicate OK [09:42:12]requested_item fd.num is exist - process it [09:42:12]SAM_PROTO_GetFieldsCounters [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 00 00 [09:42:12]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 62 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 62 00 D3 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [09:42: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:12]wFMCommunicate OK [09:42:12]SAM_PROTO_GetFieldsCounters done [09:42:12]requested_item shift.num is exist - process it [09:42:12]requested_item shift.opened is exist - process it [09:42:12]req_shift_opened [09:42:12]FM_GetShiftState [09:42:12]SAM_PROTO_GetShiftState [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 01 00 [09:42:12]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:12]Read from MH i2c: E2 0E 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 15 [09:42:12]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:42:12]wFMCommunicate OK [09:42:12]SAM_PROTO_GetShiftState done [09:42:12]FM_GetShiftState done [09:42:12]req_shift_opened done [09:42:12]requested_item shift.open_date is exist - process it [09:42:12]req_shift_open_date [09:42:12]req_shift_open_date done [09:42:12]produce_requested_data done [09:42:12]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178861,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:42:12]process_action_free close_receipt [09:42:12]json_value_free [09:42:12]json_value_free done [09:42:12]process_json_proto returns [09:42:12]Send response to host [09:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178861,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:42:12]free response buf [09:42:12]execute_script done [09:42:12]execute_script returns [09:42:12]free content buf [09:42:12]Sock 7.Close socket [09:42:12]Sock 7.Thread stoped [09:42:13]Connected sock=11 [09:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 8D 98 05 01 81 F8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 7F 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 57 00 00 00 F4 03 04 00 F1 AA C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD BA 02 00 35 04 06 00 49 BA E2 07 52 05 3D DE 0F BB 56 2F 60 BF [09:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 11 F3 47 00 C7 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD BA 02 00 F4 03 04 00 99 56 C9 66 B6 04 01 00 00 F8 0A 09 8D F1 B0 81 6B [09:42:14]CommunicateWithHost err = 0 [09:42:14]CheckOFDResponse [09:42:14]1017 (14) - 77093643461234 [09:42:14]1041 (16) - 0000000000871778 [09:42:14]1040 (4) - 178861 [09:42:14]1012 (4) - 24.08.2024 03:42 [09:42:14]1206 (1) - 0 [09:42:14]OFD Sender: Remove packet 178861 [09:42:14]ProducePacketName [09:42:14]name=ofd_packets/00178861 [09:42:14]NVStorageDeleteData [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:21]recv_with_timeout no data received [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:37]recv_with_timeout no data received [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:14]recv_with_timeout no data received [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:53]recv_with_timeout no data received [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:12]recv_with_timeout no data received [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]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:04]recv_with_timeout no data received [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:48]accept exits with 10 [09:49:48]New connection [09:49:48]New thread 3066969444 created [09:49:48]Thread 3067112804 joined [09:49:48]Waiting for new connection... [09:49:48] Sock 10.Parse request [09:49:48]Sock 10.Check first char [09:49:48]Sock 10.First char is OK [09:49:48]request: POST /json_proto HTTP/1.0 [09:49:48]Method: POST [09:49:48]URL: /json_proto [09:49:48]Method is POST - this is cgi request [09:49:48]url: /json_proto [09:49:48]query_string will be loaded in cgi processing [09:49:48]execute_cgi json_proto POST (null) [09:49:48]execute_cgi path=json_proto method=POST [09:49:48]POST find Content-Length [09:49:48]Host: 172.17.44.131:8080 [09:49:48]Content-Length: 678 [09:49:48]Content-Type: application/json [09:49:48] [09:49:48]POST finish read [09:49:48]Found Content-Length = 678 [09:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:49:48]execute_script... [09:49: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)295163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:49:48]POST & json_proto [09:49:48]process_json_proto [09:49:48]json parsed OK: [09:49:48]protocol is kg_v1.0 [09:49:48]action value=close_receipt [09:49:48]process_action close_receipt [09:49:48]cmd_close_receipt [09:49:48]MH_GetDate [09:49:48]Write to MH i2c: F0 00 00 D5 06 CA [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 09 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: F0 09 00 D5 06 00 BD AC C9 66 4F 53 BE 66 31 [09:49:48]GetLastDocTimeStamp 1724492529 [09:49:48]current date 1724492989 [09:49:48]FM_GetShiftState [09:49:48]SAM_PROTO_GetShiftState [09:49:48]wFMCommunicate request_size=4 [09:49:48]MH_SAM_APDU [09:49:48]CAPDU: 80 13 01 00 [09:49:48]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0E 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 17 [09:49:48]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:49:48]wFMCommunicate OK [09:49:48]SAM_PROTO_GetShiftState done [09:49:48]FM_GetShiftState done [09:49:48]opened in 1724458079 [09:49:48]opened+sec_in_day 1724544479 [09:49:48]quantity*price = 70037 [09:49:48]sum+1 = 70038 [09:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 88 24.08.2024 09:49 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178862 ФПД: 180012092663635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T094949&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178862&fm=180012092663635&tin=02508201610067®Number=0000000000092561&sum=70000 [09:49:49]StoreToDocumentArchive [09:49:49]shift 471 fd 178862 [09:49:49]save to /storage/0471/doc_00178862 [09:49:49]save last doc name /storage/0471/doc_00178862 to /storage/kkm_last_doc_name [09:49:49]save OK [09:49:49]Clear old archive folders... [09:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:49]tlvbuf is 01758BD0 [09:49:49]SAM_PROTO_ClearQueue [09:49:49]wFMCommunicate request_size=4 [09:49:49]MH_SAM_APDU [09:49:49]CAPDU: 80 09 00 00 [09:49:49]Write to MH i2c: E2 08 00 E3 06 80 09 00 00 00 00 00 00 5B [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:49]Read from MH i2c: E2 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [09:49:49]RAPDU: 90 00 [09:49:49]wFMCommunicate OK [09:49:49]SAM_PROTO_ClearQueue done [09:49:49]KKMCreateOFDPacket [09:49:49]OFDProtocolAddRootSTLVToBuf [09:49:49]FM_MakeSignedData [09:49:49]FM_MakeSignedData [09:49:49]SAM_PROTO_SignData [09:49:49]wFMCommunicate request_size=4 [09:49:49]MH_SAM_APDU [09:49:49]CAPDU: 80 0D 01 02 [09:49:49]Write to MH i2c: E2 08 00 E4 06 80 0D 01 02 00 00 00 00 63 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:49]Read from MH i2c: E2 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [09:49:49]RAPDU: 90 00 [09:49:49]wFMCommunicate OK [09:49:49]wFMCommunicate request_size=255 [09:49:49]MH_SAM_APDU [09:49:49]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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 58 00 00 00 F4 03 04 00 BD AC C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AE BA 02 00 35 04 06 00 A3 [09:49:49]Write to MH i2c: E2 02 01 E5 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 58 00 00 00 F4 03 04 00 BD AC C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AE BA 02 00 35 04 06 00 A3 00 00 A2 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]wFMCommunicate request_size=10 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 02 02 05 B8 54 D6 A7 53 [09:49:50]Write to MH i2c: E2 0D 00 E6 06 80 0D 02 02 05 00 B8 54 D6 A7 53 00 00 4C [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 03 02 [09:49:50]Write to MH i2c: E2 08 00 E7 06 80 0D 03 02 00 00 00 00 68 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0B 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0B 00 E7 06 00 77 AB 9A D2 A7 2E EF 94 90 00 4F [09:49:50]RAPDU: 77 AB 9A D2 A7 2E EF 94 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_SignData done [09:49:50]FM_MakeSignedData done [09:49:50]CreateOFDProtocolMessage [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 11 00 00 [09:49:50]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 E8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C1 [09:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:49:50]wFMCommunicate OK [09:49:50]CreateOFDProtocolMessage done [09:49:50]OFDSenderStorePacket 178862 [09:49:50]StoreOFDPacket docnum=178862 [09:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B6 25 07 01 9A 68 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 58 00 00 00 F4 03 04 00 BD AC C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AE BA 02 00 35 04 06 00 A3 B8 54 D6 A7 53 77 AB 9A D2 A7 2E EF 94 [09:49:50]CheckFolder [09:49:50]dirname=/storage/ofd_packets [09:49:50]CheckFolder done [09:49:50]ProducePacketName [09:49:50]name=ofd_packets/00178862 [09:49:50]NVStorageSaveData ofd_packets/00178862 [09:49:50]File name is /storage/ofd_packets/00178862 [09:49:50]Write 301 bytes [09:49:50]NVStorageSaveData done [09:49:50]OFDSenderStorePacket done [09:49:50]KKMCreateOFDPacket done [09:49:50]NVStorageSaveData kkm_last_timestamp [09:49:50]File name is /storage/kkm_last_timestamp [09:49:50]Write 4 bytes [09:49:50]NVStorageSaveData done [09:49:50]ExternCall_PrintAddStr [09:49:50]wPrintStart [09:49:50]Write to MH i2c: 01 00 00 E9 06 EF [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [09:49:50]RasterBufferAndPrint [09:49:50]line Счет N : (1)295163 [09:49:50]line ИНН: 02508201610067 [09:49:50]line Контрольно-Кассовый Чек [09:49:50]line ПРОДАЖА [09:49:50]line ТРК (МРК, ГНК) : 32 [09:49:50]line Товар: 2710124130 [09:49:50]line Аи-92-К-5 [09:49:50]line 10.330 * 67.80 [09:49:50]line = 700.37 [09:49:50]line НДС 12% НСП 1% [09:49:50]line > о реализуемом товаре [09:49:50]line ОКРУГЛЕНИЕ: -0.37 [09:49:50]line ИТОГО: 700.00 [09:49:50]line Внесено: 700.00 [09:49:50]line СДАЧА: 0.00 [09:49:50]line НСП 1% : 6.20 [09:49:50]line НДС 12% : 74.38 [09:49:50]line Наличными: 700.00 [09:49:50]line Безнал.: 0.00 [09:49:50]line Место: АЗС № 130 "Партнер Нефть" [09:49:50]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:49:50]line СНО: Общий режим [09:49:50]line Чек 88 24.08.2024 09:49 [09:49:50]line Смена: 471 ФФД: 1.0 [09:49:50]line ЗНМ: 0300000071 [09:49:50]line РНМ: 0000000000092561 [09:49:50]line Версия ККМ: 001 [09:49:50]line ФМ: 0000000000871778 [09:49:50]line ФД: 178862 [09:49:50]line ФПД: 180012092663635 [09:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T094949&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178862&fm=180012092663635&tin=02508201610067®Number=0000000000092561&sum=70000 [09:49:50]OFD Sender: Processing packet 178862 [packets to send 500, broken 499] [09:49:50]ProducePacketName [09:49:50]name=ofd_packets/00178862 [09:49:50]OFD Sender: To server: pG, [09:49:50]CommunicateWithHost lk.salyk.kg:30040 [09:49:50]ConnectInit lk.salyk.kg [09:49:50]written 0, free lines is 4095 [09:49:51]Write to MH i2c: 01 00 00 14 07 1B [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 07 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 CF 0C FD [09:49:51]RasterBufferAndPrint [09:49:51]line [09:49:51]line [09:49:51]line [09:49:51]line [09:49:51]line [09:49:51]written 0, free lines is 3286 [09:49:51]MH_Cut [09:49:51]Write to MH i2c: D1 01 00 1B 07 01 F4 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: D1 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: D1 01 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: D1 01 00 1B 07 00 F3 [09:49:51]Write to MH i2c: 01 00 00 1C 07 23 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** Cut start [09:49:51]*** Partial cut [09:49:51]*** CUTSNS_PIN = 1 [09:49:51]*** CUTSNS_PIN = 0 [09:49:52]*** Brake cut motor [09:49:52]Read from MH i2c: 01 [09:49:52]MH_I2C_Read... [09:49:52]*** Stop cut motor [09:49:52]*** Cut end [09:49:52]Read from MH i2c: 01 07 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [09:49:52]process_action close_receipt done [09:49:52]requested_data is exist [09:49:52]produce_requested_data [09:49:52]requested_item fm.sn is exist - process it [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 11 00 00 [09:49:52]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 17 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F7 [09:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:49:52]wFMCommunicate OK [09:49:52]requested_item fd.num is exist - process it [09:49:52]SAM_PROTO_GetFieldsCounters [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 00 00 [09:49:52]Write to MH i2c: E2 08 00 1E 07 80 13 00 00 00 00 00 00 A1 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 62 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 62 00 1E 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [09:49: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetFieldsCounters done [09:49:52]requested_item shift.num is exist - process it [09:49:52]requested_item shift.opened is exist - process it [09:49:52]req_shift_opened [09:49:52]FM_GetShiftState [09:49:52]SAM_PROTO_GetShiftState [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 01 00 [09:49:52]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 61 [09:49:52]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetShiftState done [09:49:52]FM_GetShiftState done [09:49:52]req_shift_opened done [09:49:52]requested_item shift.open_date is exist - process it [09:49:52]req_shift_open_date [09:49:52]req_shift_open_date done [09:49:52]produce_requested_data done [09:49:52]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:49:52]process_action_free close_receipt [09:49:52]json_value_free [09:49:52]json_value_free done [09:49:52]process_json_proto returns [09:49:52]Send response to host [09:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:49:52]free response buf [09:49:52]execute_script done [09:49:52]execute_script returns [09:49:52]free content buf [09:49:52]Sock 10.Close socket [09:49:52]Sock 10.Thread stoped [09:49:54]Connected sock=11 [09:49: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 37 37 38 0F 01 00 00 B6 25 07 01 9A 68 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 58 00 00 00 F4 03 04 00 BD AC C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AE BA 02 00 35 04 06 00 A3 B8 54 D6 A7 53 77 AB 9A D2 A7 2E EF 94 [09:49:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4D 4B 47 00 8E 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 37 37 38 10 04 04 00 AE BA 02 00 F4 03 04 00 66 58 C9 66 B6 04 01 00 00 FD 2F 42 14 55 37 C3 78 [09:49:58]CommunicateWithHost err = 0 [09:49:58]CheckOFDResponse [09:49:58]1017 (14) - 77093643461234 [09:49:58]1041 (16) - 0000000000871778 [09:49:58]1040 (4) - 178862 [09:49:58]1012 (4) - 24.08.2024 03:49 [09:49:58]1206 (1) - 0 [09:49:58]OFD Sender: Remove packet 178862 [09:49:58]ProducePacketName [09:49:58]name=ofd_packets/00178862 [09:49:58]NVStorageDeleteData [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:47]recv_with_timeout no data received [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]recv_with_timeout no data received [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:46]recv_with_timeout no data received [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [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 54000000005725A6 (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: 744171+1723749199=1724493370 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [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 78 00 80 00 FF FF D6 [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 3B AE C9 66 4F 53 BE 66 DD [09:56:11]Current date/time: 24.08.2024 09:56 [09:56:11]FM_Init [09:56:11]wFMConnect [09:56:11]MH_SAM_On [09:56:11]Write to MH i2c: E0 00 00 08 00 E7 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_init finished! [09:56:11]*** atr: [09:56:11]*** 0F 3B D5 18 FF 81 91 FE [09:56:11]*** 1F C3 80 73 C8 21 10 0A [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]*** 00 00 00 00 00 00 00 00 [09:56:11]Read from MH i2c: E0 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E0 10 00 [09:56:11]MH_I2C_Read... [09:56:11]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 [09:56:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:56:11]wFMCommunicate request_size=10 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:56:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 11 00 00 [09:56:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 17 00 [09:56:11]MH_I2C_Read... [09:56:11]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 37 37 38 90 00 DD [09:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:56:11]wFMCommunicate OK [09:56:11]Detected FM SN is 0000000000871778 [09:56:11]Stored FM SN is 0000000000871778 [09:56:11]wFMCommunicate request_size=9 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 16 00 00 04 D9 BA 00 00 [09:56:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]FM PIN OK [09:56:11]wFMCommunicate request_size=8 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 14 04 00 03 02 00 01 [09:56:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=13 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:56:11]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 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:56:11]RAPDU: 90 00 [09:56:11]wFMCommunicate OK [09:56:11]wFMCommunicate request_size=4 [09:56:11]MH_SAM_APDU [09:56:11]CAPDU: 80 11 00 00 [09:56:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:11]Read from MH i2c: E2 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: E2 17 00 [09:56:11]MH_I2C_Read... [09:56:11]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 37 37 38 90 00 E1 [09:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:56:11]wFMCommunicate OK [09:56:11]DocumentArchiveInit [09:56:11]Start Httpd... [09:56:11]Httpd thread 3067350372 created [09:56:11]Write to MH i2c: 01 00 00 0F 00 0F [09:56:11]Write i2c OK [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 07 00 [09:56:11]MH_I2C_Read... [09:56:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:56:11]MH Int Process started [09:56:11]Allocated Socket 6 [09:56:11]Bind OK [09:56:11]Listen OK [09:56:11]httpd running on port 8080 [09:56:11]Waiting for new connection... [09:56:12]OFD Sender: No OFD packet to send [09:56:13]accept exits with 7 [09:56:13]New connection [09:56:13]New thread 3067063652 created [09:56:13]Waiting for new connection... [09:56:13] Sock 7.Parse request [09:56:13]Sock 7.Check first char [09:56:13]Sock 7.First char is OK [09:56:13]request: POST /json_proto HTTP/1.0 [09:56:13]Method: POST [09:56:13]URL: /json_proto [09:56:13]Method is POST - this is cgi request [09:56:13]url: /json_proto [09:56:13]query_string will be loaded in cgi processing [09:56:13]execute_cgi json_proto POST (null) [09:56:13]execute_cgi path=json_proto method=POST [09:56:13]POST find Content-Length [09:56:13]Host: 172.17.44.131:8080 [09:56:13]Content-Length: 215 [09:56:13]Content-Type: application/json [09:56:13] [09:56:13]POST finish read [09:56:13]Found Content-Length = 215 [09:56:13]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" ] } } [09:56:13]execute_script... [09:56:13]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" ] } } [09:56:13]POST & json_proto [09:56:13]process_json_proto [09:56:13]json parsed OK: [09:56:13]protocol is kg_v1.0 [09:56:13]action value=get_value [09:56:13]process_action get_value [09:56:13]cmd_get_value [09:56:13]process_action get_value done [09:56:13]requested_data is exist [09:56:13]produce_requested_data [09:56:13]requested_item kkm.sn is exist - process it [09:56:13]requested_item kkm.ver is exist - process it [09:56:13]requested_item fm.sn is exist - process it [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 11 00 00 [09:56:13]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 17 00 [09:56:13]MH_I2C_Read... [09:56:13]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 37 37 38 90 00 E3 [09:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:56:13]wFMCommunicate OK [09:56:13]requested_item fd.num is exist - process it [09:56:13]SAM_PROTO_GetFieldsCounters [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 13 00 00 [09:56:13]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 62 00 [09:56:13]MH_I2C_Read... [09:56:13]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:56: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_GetFieldsCounters done [09:56:13]requested_item shift.num is exist - process it [09:56:13]requested_item shift.opened is exist - process it [09:56:13]req_shift_opened [09:56:13]FM_GetShiftState [09:56:13]SAM_PROTO_GetShiftState [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 13 01 00 [09:56:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0E 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [09:56:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_GetShiftState done [09:56:13]FM_GetShiftState done [09:56:13]req_shift_opened done [09:56:13]requested_item shift.open_date is exist - process it [09:56:13]req_shift_open_date [09:56:13]req_shift_open_date done [09:56:13]produce_requested_data done [09:56:13]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [09:56:13]process_action_free get_value [09:56:13]json_value_free [09:56:13]json_value_free done [09:56:13]process_json_proto returns [09:56:13]Send response to host [09:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [09:56:13]free response buf [09:56:13]execute_script done [09:56:13]execute_script returns [09:56:13]free content buf [09:56:13]Sock 7.Close socket [09:56:13]Sock 7.Thread stoped [09:56:13]accept exits with 8 [09:56:13]New connection [09:56:13]New thread 3066920292 created [09:56:13]Thread 3067063652 joined [09:56:13]Waiting for new connection... [09:56:13] Sock 8.Parse request [09:56:13]Sock 8.Check first char [09:56:13]Sock 8.First char is OK [09:56:13]request: POST /json_proto HTTP/1.0 [09:56:13]Method: POST [09:56:13]URL: /json_proto [09:56:13]Method is POST - this is cgi request [09:56:13]url: /json_proto [09:56:13]query_string will be loaded in cgi processing [09:56:13]execute_cgi json_proto POST (null) [09:56:13]execute_cgi path=json_proto method=POST [09:56:13]POST find Content-Length [09:56:13]Host: 172.17.44.131:8080 [09:56:13]Content-Length: 331 [09:56:13]Content-Type: application/json [09:56:13] [09:56:13]POST finish read [09:56:13]Found Content-Length = 331 [09:56:13]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" ] } } [09:56:13]execute_script... [09:56:13]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" ] } } [09:56:13]POST & json_proto [09:56:13]process_json_proto [09:56:13]json parsed OK: [09:56:13]protocol is kg_v1.0 [09:56:13]action value=get_value [09:56:13]process_action get_value [09:56:13]cmd_get_value [09:56:13]process_action get_value done [09:56:13]requested_data is exist [09:56:13]produce_requested_data [09:56:13]requested_item fm.sale.total is exist - process it [09:56:13]SAM_PROTO_GetFMData [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 13 03 00 [09:56:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:56:14]Read from MH i2c: E2 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 FD 00 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 00 B7 02 00 69 04 A4 00 6F 04 04 00 69 B5 02 00 B1 04 05 00 EF 42 6B 2C 05 70 04 05 00 8F D5 7B 15 04 72 04 05 00 60 6D EF 16 01 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 24 DE AD 8C 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 78 F5 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 34 [09:56:14]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 00 B7 02 00 69 04 A4 00 6F 04 04 00 69 B5 02 00 B1 04 05 00 EF 42 6B 2C 05 70 04 05 00 8F D5 7B 15 04 72 04 05 00 60 6D EF 16 01 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 24 DE AD 8C 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 78 F5 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [09:56:14]wFMCommunicate OK [09:56:14]wFMCommunicate request_size=4 [09:56:14]MH_SAM_APDU [09:56:14]CAPDU: 80 17 00 00 [09:56:14]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [09:56:15]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:56:15]wFMCommunicate OK [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 17 00 00 [09:56:15]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [09:56:15]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:56:15]wFMCommunicate OK [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 17 00 00 [09:56:15]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [09:56:15]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:56:15]wFMCommunicate OK [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 17 00 00 [09:56:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:56:15]Read from MH i2c: E2 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 E3 00 [09:56:15]MH_I2C_Read... [09:56:15]Read from MH i2c: E2 E3 00 17 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 76 [09:56:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:56:15]wFMCommunicate OK [09:56:15]SAM_PROTO_GetFMData done [09:56:15]requested_item fm.sale_refund.total is exist - process it [09:56:15]requested_item fm.buy.total is exist - process it [09:56:15]requested_item shift.sale.total is exist - process it [09:56:15]SAM_PROTO_GetShiftData [09:56:15]wFMCommunicate request_size=4 [09:56:15]MH_SAM_APDU [09:56:15]CAPDU: 80 13 02 00 [09:56:15]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:56:15]Write i2c OK [09:56:15]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 CD F6 C0 70 04 03 00 E8 62 82 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CD 7E 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 35 B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 65 [09:56:16]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 CD F6 C0 70 04 03 00 E8 62 82 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CD 7E 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 35 B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 17 00 00 [09:56:16]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [09:56:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 17 00 00 [09:56:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [09:56:16]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:56:16]wFMCommunicate OK [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 17 00 00 [09:56:16]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:17]OFD Sender: No OFD packet to send [09:56:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 FD 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [09:56:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [09:56:17]wFMCommunicate OK [09:56:17]wFMCommunicate request_size=4 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 17 00 00 [09:56:17]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 CC 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [09:56:17]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:56:17]wFMCommunicate OK [09:56:17]SAM_PROTO_GetShiftData done [09:56:17]requested_item shift.sale.total_cash is exist - process it [09:56:17]requested_item shift.sale_refund.total is exist - process it [09:56:17]requested_item shift.sale_refund.total_cash is exist - process it [09:56:17]requested_item shift.buy.total is exist - process it [09:56:17]requested_item shift.buy.total_cash is exist - process it [09:56:17]produce_requested_data done [09:56:17]produce_requested_data return {"fm.sale.total":222200634.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":126460.93,"shift.sale.total_cash":85450.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} [09:56:17]process_action_free get_value [09:56:17]json_value_free [09:56:17]json_value_free done [09:56:17]process_json_proto returns [09:56:17]Send response to host [09:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222200634.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":126460.93,"shift.sale.total_cash":85450.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}}} [09:56:17]free response buf [09:56:17]execute_script done [09:56:17]execute_script returns [09:56:17]free content buf [09:56:17]Sock 8.Close socket [09:56:17]Sock 8.Thread stoped [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:43]recv_with_timeout no data received [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]/dev/ttyS4 opened [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 744401+1723749199=1724493600 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 20 AF C9 66 4F 53 BE 66 C3 [10:00:00]Current date/time: 24.08.2024 10:00 [10:00:00]FM_Init [10:00:00]wFMConnect [10:00:00]MH_SAM_On [10:00:00]Write to MH i2c: E0 00 00 08 00 E7 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_init finished! [10:00:00]*** atr: [10:00:00]*** 0F 3B D5 18 FF 81 91 FE [10:00:00]*** 1F C3 80 73 C8 21 10 0A [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]Read from MH i2c: E0 [10:00:00]MH_I2C_Read... [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]*** 00 00 00 00 00 00 00 00 [10:00:00]Read from MH i2c: E0 10 00 [10:00:00]MH_I2C_Read... [10:00:00]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 [10:00:00]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:00:00]wFMCommunicate request_size=10 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:00:00]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:00:00]RAPDU: 90 00 [10:00:00]wFMCommunicate OK [10:00:00]wFMCommunicate request_size=4 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 11 00 00 [10:00:00]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 17 00 [10:00:00]MH_I2C_Read... [10:00:00]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 37 37 38 90 00 DD [10:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:00]wFMCommunicate OK [10:00:00]Detected FM SN is 0000000000871778 [10:00:00]Stored FM SN is 0000000000871778 [10:00:00]wFMCommunicate request_size=9 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 16 00 00 04 D9 BA 00 00 [10:00:00]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:00:00]RAPDU: 90 00 [10:00:00]wFMCommunicate OK [10:00:00]FM PIN OK [10:00:00]wFMCommunicate request_size=8 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 14 04 00 03 02 00 01 [10:00:00]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:00:00]RAPDU: 90 00 [10:00:00]wFMCommunicate OK [10:00:00]wFMCommunicate request_size=13 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:00:00]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 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:00:00]RAPDU: 90 00 [10:00:00]wFMCommunicate OK [10:00:00]wFMCommunicate request_size=4 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 11 00 00 [10:00:00]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 17 00 [10:00:00]MH_I2C_Read... [10:00:00]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 37 37 38 90 00 E1 [10:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:00]wFMCommunicate OK [10:00:00]DocumentArchiveInit [10:00:00]Start Httpd... [10:00:00]Httpd thread 3067125092 created [10:00:00]Write to MH i2c: 01 00 00 0F 00 0F [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:00:00]MH Int Process started [10:00:00]Allocated Socket 7 [10:00:00]Bind OK [10:00:00]Listen OK [10:00:00]httpd running on port 8080 [10:00:00]Waiting for new connection... [10:00:01]OFD Sender: No OFD packet to send [10:00:04]accept exits with 8 [10:00:04]New connection [10:00:04]New thread 3066838372 created [10:00:04]Waiting for new connection... [10:00:04] Sock 8.Parse request [10:00:04]Sock 8.Check first char [10:00:04]Sock 8.First char is OK [10:00:04]request: POST /json_proto HTTP/1.0 [10:00:04]Method: POST [10:00:04]URL: /json_proto [10:00:04]Method is POST - this is cgi request [10:00:04]url: /json_proto [10:00:04]query_string will be loaded in cgi processing [10:00:04]execute_cgi json_proto POST (null) [10:00:04]execute_cgi path=json_proto method=POST [10:00:04]POST find Content-Length [10:00:04]Host: 172.17.44.131:8080 [10:00:04]Content-Length: 215 [10:00:04]Content-Type: application/json [10:00:04] [10:00:04]POST finish read [10:00:04]Found Content-Length = 215 [10:00:04]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:00:04]execute_script... [10:00:04]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:00:04]POST & json_proto [10:00:04]process_json_proto [10:00:04]json parsed OK: [10:00:04]protocol is kg_v1.0 [10:00:04]action value=get_value [10:00:04]process_action get_value [10:00:04]cmd_get_value [10:00:04]process_action get_value done [10:00:04]requested_data is exist [10:00:04]produce_requested_data [10:00:04]requested_item kkm.sn is exist - process it [10:00:04]requested_item kkm.ver is exist - process it [10:00:04]requested_item fm.sn is exist - process it [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 11 00 00 [10:00:04]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 17 00 [10:00:04]MH_I2C_Read... [10:00:04]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 37 37 38 90 00 E3 [10:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:04]wFMCommunicate OK [10:00:04]requested_item fd.num is exist - process it [10:00:04]SAM_PROTO_GetFieldsCounters [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 13 00 00 [10:00:04]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:04]Read from MH i2c: E2 62 00 [10:00:04]MH_I2C_Read... [10:00:04]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:00: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AE BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_GetFieldsCounters done [10:00:04]requested_item shift.num is exist - process it [10:00:04]requested_item shift.opened is exist - process it [10:00:04]req_shift_opened [10:00:04]FM_GetShiftState [10:00:04]SAM_PROTO_GetShiftState [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 13 01 00 [10:00:04]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [10:00:04]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_GetShiftState done [10:00:04]FM_GetShiftState done [10:00:04]req_shift_opened done [10:00:04]requested_item shift.open_date is exist - process it [10:00:04]req_shift_open_date [10:00:04]req_shift_open_date done [10:00:04]produce_requested_data done [10:00:04]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [10:00:04]process_action_free get_value [10:00:04]json_value_free [10:00:04]json_value_free done [10:00:04]process_json_proto returns [10:00:04]Send response to host [10:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178862,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [10:00:04]free response buf [10:00:04]execute_script done [10:00:04]execute_script returns [10:00:04]free content buf [10:00:04]Sock 8.Close socket [10:00:04]Sock 8.Thread stoped [10:00:04]accept exits with 10 [10:00:04]New connection [10:00:04]New thread 3066695012 created [10:00:04]Thread 3066838372 joined [10:00:04]Waiting for new connection... [10:00:04] Sock 10.Parse request [10:00:04]Sock 10.Check first char [10:00:04]Sock 10.First char is OK [10:00:04]request: POST /json_proto HTTP/1.0 [10:00:04]Method: POST [10:00:04]URL: /json_proto [10:00:04]Method is POST - this is cgi request [10:00:04]url: /json_proto [10:00:04]query_string will be loaded in cgi processing [10:00:04]execute_cgi json_proto POST (null) [10:00:04]execute_cgi path=json_proto method=POST [10:00:04]POST find Content-Length [10:00:04]Host: 172.17.44.131:8080 [10:00:04]Content-Length: 331 [10:00:04]Content-Type: application/json [10:00:04] [10:00:04]POST finish read [10:00:04]Found Content-Length = 331 [10:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:00:04]execute_script... [10:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:00:04]POST & json_proto [10:00:04]process_json_proto [10:00:04]json parsed OK: [10:00:04]protocol is kg_v1.0 [10:00:04]action value=get_value [10:00:04]process_action get_value [10:00:04]cmd_get_value [10:00:04]process_action get_value done [10:00:04]requested_data is exist [10:00:04]produce_requested_data [10:00:04]requested_item fm.sale.total is exist - process it [10:00:04]SAM_PROTO_GetFMData [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 13 03 00 [10:00:04]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 00 B7 02 00 69 04 A4 00 6F 04 04 00 69 B5 02 00 B1 04 05 00 EF 42 6B 2C 05 70 04 05 00 8F D5 7B 15 04 72 04 05 00 60 6D EF 16 01 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 24 DE AD 8C 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 78 F5 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 34 [10:00:05]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 00 B7 02 00 69 04 A4 00 6F 04 04 00 69 B5 02 00 B1 04 05 00 EF 42 6B 2C 05 70 04 05 00 8F D5 7B 15 04 72 04 05 00 60 6D EF 16 01 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 24 DE AD 8C 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 78 F5 B8 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 17 00 00 [10:00:05]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [10:00:05]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 17 00 00 [10:00:05]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [10:00:05]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 17 00 00 [10:00:05]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [10:00:05]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [10:00:05]wFMCommunicate OK [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 17 00 00 [10:00:05]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:06]OFD Sender: No OFD packet to send [10:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 E3 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 E3 00 17 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 76 [10:00:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:06]wFMCommunicate OK [10:00:06]SAM_PROTO_GetFMData done [10:00:06]requested_item fm.sale_refund.total is exist - process it [10:00:06]requested_item fm.buy.total is exist - process it [10:00:06]requested_item shift.sale.total is exist - process it [10:00:06]SAM_PROTO_GetShiftData [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 13 02 00 [10:00:06]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 FD 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 CD F6 C0 70 04 03 00 E8 62 82 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CD 7E 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 35 B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 65 [10:00:06]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 CD F6 C0 70 04 03 00 E8 62 82 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CD 7E 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 35 B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 17 00 00 [10:00:06]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 FD 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [10:00:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 17 00 00 [10:00:06]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 FD 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [10:00:07]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:00:07]wFMCommunicate OK [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 17 00 00 [10:00:07]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 FD 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [10:00:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:00:07]wFMCommunicate OK [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 17 00 00 [10:00:07]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 CC 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [10:00:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetShiftData done [10:00:07]requested_item shift.sale.total_cash is exist - process it [10:00:07]requested_item shift.sale_refund.total is exist - process it [10:00:07]requested_item shift.sale_refund.total_cash is exist - process it [10:00:07]requested_item shift.buy.total is exist - process it [10:00:07]requested_item shift.buy.total_cash is exist - process it [10:00:07]produce_requested_data done [10:00:07]produce_requested_data return {"fm.sale.total":222200634.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":126460.93,"shift.sale.total_cash":85450.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:00:07]process_action_free get_value [10:00:07]json_value_free [10:00:07]json_value_free done [10:00:07]process_json_proto returns [10:00:07]Send response to host [10:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222200634.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":126460.93,"shift.sale.total_cash":85450.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:00:07]free response buf [10:00:07]execute_script done [10:00:07]execute_script returns [10:00:07]free content buf [10:00:07]Sock 10.Close socket [10:00:07]Sock 10.Thread stoped [10:00:11]OFD Sender: No OFD packet to send [10:00:14]recv_with_timeout no data received [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:53]recv_with_timeout no data received [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:18]recv_with_timeout no data received [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:16]recv_with_timeout no data received [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:19]recv_with_timeout no data received [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:19]recv_with_timeout no data received [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:16]recv_with_timeout no data received [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:44]recv_with_timeout no data received [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:20:52]ConnectInit Can't connect to host [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:05]recv_with_timeout no data received [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:31]recv_with_timeout no data received [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:37]recv_with_timeout no data received [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:58]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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]accept exits with 8 [10:28:40]New connection [10:28:40]New thread 3066838372 created [10:28:40]Thread 3066695012 joined [10:28:40]Waiting for new connection... [10:28:40] Sock 8.Parse request [10:28:40]Sock 8.Check first char [10:28:40]Sock 8.First char is OK [10:28:40]request: POST /json_proto HTTP/1.0 [10:28:40]Method: POST [10:28:40]URL: /json_proto [10:28:40]Method is POST - this is cgi request [10:28:40]url: /json_proto [10:28:40]query_string will be loaded in cgi processing [10:28:40]execute_cgi json_proto POST (null) [10:28:40]execute_cgi path=json_proto method=POST [10:28:40]POST find Content-Length [10:28:40]Host: 172.17.44.131:8080 [10:28:40]Content-Length: 682 [10:28:40]Content-Type: application/json [10:28:40] [10:28:40]POST finish read [10:28:40]Found Content-Length = 682 [10:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:28:40]execute_script... [10:28: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)295192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:28:40]POST & json_proto [10:28:40]process_json_proto [10:28:40]json parsed OK: [10:28:40]protocol is kg_v1.0 [10:28:40]action value=close_receipt [10:28:40]process_action close_receipt [10:28:40]cmd_close_receipt [10:28:40]MH_GetDate [10:28:40]Write to MH i2c: F0 00 00 1D 00 0C [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 09 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 09 00 1D 00 00 D9 B5 C9 66 4F 53 BE 66 98 [10:28:40]GetLastDocTimeStamp 1724492989 [10:28:40]current date 1724495321 [10:28:40]FM_GetShiftState [10:28:40]SAM_PROTO_GetShiftState [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 01 00 [10:28:40]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]OFD Sender: No OFD packet to send [10:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [10:28:40]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetShiftState done [10:28:40]FM_GetShiftState done [10:28:40]opened in 1724458079 [10:28:40]opened+sec_in_day 1724544479 [10:28:40]quantity*price = 150041 [10:28:40]sum+1 = 150042 [10:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 89 24.08.2024 10:28 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178863 ФПД: 235784117119447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T102841&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178863&fm=235784117119447&tin=02508201610067®Number=0000000000092561&sum=150000 [10:28:41]StoreToDocumentArchive [10:28:41]shift 471 fd 178863 [10:28:41]save to /storage/0471/doc_00178863 [10:28:41]save last doc name /storage/0471/doc_00178863 to /storage/kkm_last_doc_name [10:28:41]save OK [10:28:41]Clear old archive folders... [10:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:41]tlvbuf is 02035B70 [10:28:41]SAM_PROTO_ClearQueue [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 09 00 00 [10:28:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:28:41]RAPDU: 90 00 [10:28:41]wFMCommunicate OK [10:28:41]SAM_PROTO_ClearQueue done [10:28:41]KKMCreateOFDPacket [10:28:41]OFDProtocolAddRootSTLVToBuf [10:28:41]FM_MakeSignedData [10:28:41]FM_MakeSignedData [10:28:41]SAM_PROTO_SignData [10:28:41]wFMCommunicate request_size=4 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 0D 01 02 [10:28:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:28:41]RAPDU: 90 00 [10:28:41]wFMCommunicate OK [10:28:41]wFMCommunicate request_size=255 [10:28:41]MH_SAM_APDU [10:28: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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 59 00 00 00 F4 03 04 00 D9 B5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AF BA 02 00 35 04 06 00 D6 [10:28:41]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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 59 00 00 00 F4 03 04 00 D9 B5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AF BA 02 00 35 04 06 00 D6 00 00 CC [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:28:41]RAPDU: 90 00 [10:28:41]wFMCommunicate OK [10:28:41]wFMCommunicate request_size=10 [10:28:41]MH_SAM_APDU [10:28:41]CAPDU: 80 0D 02 02 05 71 C4 8B 69 D7 [10:28:41]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 71 C4 8B 69 D7 00 00 B2 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 03 02 [10:28:42]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 2F 00 00 AA 58 8A 00 6F 57 C2 A3 90 00 62 [10:28:42]RAPDU: AA 58 8A 00 6F 57 C2 A3 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_SignData done [10:28:42]FM_MakeSignedData done [10:28:42]CreateOFDProtocolMessage [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]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 37 37 38 90 00 03 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:28:42]wFMCommunicate OK [10:28:42]CreateOFDProtocolMessage done [10:28:42]OFDSenderStorePacket 178863 [10:28:42]StoreOFDPacket docnum=178863 [10:28:55]recv_with_timeout no data received [10:28:59]ConnectInit Can't take IP for lk.salyk.kg [10:28:59]CommunicateWithHost connect error [10:28:59]CommunicateWithHost err = -1 [10:28:59]OFD Sender: Server communicate error [10:29:04]OFD Sender: Processing packet 178863 [packets to send 500, broken 499] [10:29:04]ProducePacketName [10:29:04]name=ofd_packets/00178863 [10:29:04]OFD Sender: To server: pG, [10:29:04]CommunicateWithHost lk.salyk.kg:30040 [10:29:04]ConnectInit lk.salyk.kg [10:29:12]recv_with_timeout no data received [10:29:14]Connected sock=10 [10:29: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 37 37 38 0F 01 00 00 F4 1F 07 01 1C 54 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 59 00 00 00 F4 03 04 00 D9 B5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AF BA 02 00 35 04 06 00 D6 71 C4 8B 69 D7 AA 58 8A 00 6F 57 C2 A3 [10:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 89 B5 47 00 7F D1 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 37 37 38 10 04 04 00 AF BA 02 00 F4 03 04 00 9E 61 C9 66 B6 04 01 00 00 49 69 0F 1C 96 1A 85 7F [10:29:15]CommunicateWithHost err = 0 [10:29:15]CheckOFDResponse [10:29:15]1017 (14) - 77093643461234 [10:29:15]1041 (16) - 0000000000871778 [10:29:15]1040 (4) - 178863 [10:29:15]1012 (4) - 24.08.2024 04:29 [10:29:15]1206 (1) - 0 [10:29:15]OFD Sender: Remove packet 178863 [10:29:15]ProducePacketName [10:29:15]name=ofd_packets/00178863 [10:29:15]NVStorageDeleteData [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:24]recv_with_timeout no data received [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30: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:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 F4 1F 07 01 1C 54 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 59 00 00 00 F4 03 04 00 D9 B5 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AF BA 02 00 35 04 06 00 D6 71 C4 8B 69 D7 AA 58 8A 00 6F 57 C2 A3 [10:28:42]CheckFolder [10:28:42]dirname=/storage/ofd_packets [10:28:42]CheckFolder done [10:28:42]ProducePacketName [10:28:42]name=ofd_packets/00178863 [10:28:42]NVStorageSaveData ofd_packets/00178863 [10:28:42]File name is /storage/ofd_packets/00178863 [10:28:42]Write 301 bytes [10:28:42]NVStorageSaveData done [10:28:42]OFDSenderStorePacket done [10:28:42]KKMCreateOFDPacket done [10:28:42]NVStorageSaveData kkm_last_timestamp [10:28:42]File name is /storage/kkm_last_timestamp [10:28:42]Write 4 bytes [10:28:42]NVStorageSaveData done [10:28:42]ExternCall_PrintAddStr [10:28:42]wPrintStart [10:28:42]Write to MH i2c: 01 00 00 31 00 31 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:28:42]RasterBufferAndPrint [10:28:42]line Счет N : (1)295192 [10:28:42]line ИНН: 02508201610067 [10:28:42]line Контрольно-Кассовый Чек [10:28:42]line ПРОДАЖА [10:28:42]line ТРК (МРК, ГНК) : 42 [10:28:42]line Товар: 2710124130 [10:28:42]line Аи-92-К-5 [10:28:42]line 22.130 * 67.80 [10:28:42]line = 1500.41 [10:28:42]line НДС 12% НСП 1% [10:28:42]line > о реализуемом товаре [10:28:42]line ОКРУГЛЕНИЕ: -0.41 [10:28:42]line ИТОГО: 1500.00 [10:28:42]line Внесено: 1500.00 [10:28:42]line СДАЧА: 0.00 [10:28:42]line НСП 1% : 13.28 [10:28:42]line НДС 12% : 159.34 [10:28:42]line Наличными: 1500.00 [10:28:42]line Безнал.: 0.00 [10:28:42]line Место: АЗС № 130 "Партнер Нефть" [10:28:42]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:28:42]line СНО: Общий режим [10:28:42]line Чек 89 24.08.2024 10:28 [10:28:42]line Смена: 471 ФФД: 1.0 [10:28:42]line ЗНМ: 0300000071 [10:28:42]line РНМ: 0000000000092561 [10:28:42]line Версия ККМ: 001 [10:28:42]line ФМ: 0000000000871778 [10:28:42]line ФД: 178863 [10:28:42]line ФПД: 235784117119447 [10:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T102841&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178863&fm=235784117119447&tin=02508201610067®Number=0000000000092561&sum=150000 [10:28:42]written 0, free lines is 4095 [10:28:42]OFD Sender: Processing packet 178863 [packets to send 500, broken 499] [10:28:42]ProducePacketName [10:28:42]name=ofd_packets/00178863 [10:28:42]OFD Sender: To server: pG, [10:28:42]CommunicateWithHost lk.salyk.kg:30040 [10:28:42]ConnectInit lk.salyk.kg [10:28:42]Write to MH i2c: 01 00 00 5C 00 5C [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E0 0C 4F [10:28:42]RasterBufferAndPrint [10:28:42]line [10:28:42]line [10:28:42]line [10:28:42]line [10:28:42]line [10:28:42]written 0, free lines is 3302 [10:28:42]MH_Cut [10:28:42]Write to MH i2c: D1 01 00 63 00 01 35 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: D1 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: D1 01 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: D1 01 00 63 00 00 34 [10:28:42]Write to MH i2c: 01 00 00 64 00 64 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:43]*** Cut start [10:28:43]*** Partial cut [10:28:43]*** CUTSNS_PIN = 1 [10:28:43]*** CUTSNS_PIN = 0 [10:28:43]*** Brake cut motor [10:28:43]Read from MH i2c: 01 [10:28:43]MH_I2C_Read... [10:28:43]*** Stop cut motor [10:28:43]*** Cut end [10:28:43]Read from MH i2c: 01 07 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [10:28:43]process_action close_receipt done [10:28:43]requested_data is exist [10:28:43]produce_requested_data [10:28:43]requested_item fm.sn is exist - process it [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 11 00 00 [10:28:43]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 17 00 [10:28:43]MH_I2C_Read... [10:28:43]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 37 37 38 90 00 38 [10:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:28:43]wFMCommunicate OK [10:28:43]requested_item fd.num is exist - process it [10:28:43]SAM_PROTO_GetFieldsCounters [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 13 00 00 [10:28:43]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:44]Read from MH i2c: E2 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: E2 62 00 [10:28:44]MH_I2C_Read... [10:28:44]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AF BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:28: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39[10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:29]recv_with_timeout no data received [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:05]recv_with_timeout no data received [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37: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:29]recv_with_timeout no data received [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:20]accept exits with 9 [10:38:20]New connection [10:38:20]New thread 3066695012 created [10:38:20]Thread 3066838372 joined [10:38:20]Waiting for new connection... [10:38:20] Sock 9.Parse request [10:38:20]Sock 9.Check first char [10:38:20]Sock 9.First char is OK [10:38:20]request: POST /json_proto HTTP/1.0 [10:38:20]Method: POST [10:38:20]URL: /json_proto [10:38:20]Method is POST - this is cgi request [10:38:20]url: /json_proto [10:38:20]query_string will be loaded in cgi processing [10:38:20]execute_cgi json_proto POST (null) [10:38:20]execute_cgi path=json_proto method=POST [10:38:20]POST find Content-Length [10:38:20]Host: 172.17.44.131:8080 [10:38:20]Content-Length: 672 [10:38:20]Content-Type: application/json [10:38:20] [10:38:20]POST finish read [10:38:20]Found Content-Length = 672 [10:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 17.450, "sum" : 1200.56, "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" ] } } [10:38:20]execute_script... [10:38: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)295197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 17.450, "sum" : 1200.56, "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" ] } } [10:38:20]POST & json_proto [10:38:20]process_json_proto [10:38:20]json parsed OK: [10:38:20]protocol is kg_v1.0 [10:38:20]action value=close_receipt [10:38:20]process_action close_receipt [10:38:20]cmd_close_receipt [10:38:20]MH_GetDate [10:38:20]Write to MH i2c: F0 00 00 68 00 57 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: F0 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: F0 09 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: F0 09 00 68 00 00 1D B8 C9 66 4F 53 BE 66 2A [10:38:20]GetLastDocTimeStamp 1724495321 [10:38:20]current date 1724495901 [10:38:20]FM_GetShiftState [10:38:20]SAM_PROTO_GetShiftState [10:38:20]wFMCommunicate request_size=4 [10:38:20]MH_SAM_APDU [10:38:20]CAPDU: 80 13 01 00 [10:38:20]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:20]Read from MH i2c: E2 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 0E 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [10:38:20]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [10:38:20]wFMCommunicate OK [10:38:20]SAM_PROTO_GetShiftState done [10:38:20]FM_GetShiftState done [10:38:20]opened in 1724458079 [10:38:20]opened+sec_in_day 1724544479 [10:38:20]quantity*price = 120056 [10:38:20]sum+1 = 120057 [10:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 90 24.08.2024 10:38 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178864 ФПД: 164138224249730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T103821&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178864&fm=164138224249730&tin=02508201610067®Number=0000000000092561&sum=120000 [10:38:22]StoreToDocumentArchive [10:38:22]shift 471 fd 178864 [10:38:22]save to /storage/0471/doc_00178864 [10:38:22]save last doc name /storage/0471/doc_00178864 to /storage/kkm_last_doc_name [10:38:22]save OK [10:38:22]Clear old archive folders... [10:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=249 [10:38:22]tlvbuf is 0202C6F0 [10:38:22]SAM_PROTO_ClearQueue [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 09 00 00 [10:38:22]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:38:22]RAPDU: 90 00 [10:38:22]wFMCommunicate OK [10:38:22]SAM_PROTO_ClearQueue done [10:38:22]KKMCreateOFDPacket [10:38:22]OFDProtocolAddRootSTLVToBuf [10:38:22]FM_MakeSignedData [10:38:22]FM_MakeSignedData [10:38:22]SAM_PROTO_SignData [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 0D 01 02 [10:38:22]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]OFD Sender: No OFD packet to send [10:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:38:22]RAPDU: 90 00 [10:38:22]wFMCommunicate OK [10:38:22]wFMCommunicate request_size=255 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 F8 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 CD 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 5A 00 00 00 F4 03 04 00 1D B8 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 BA 02 00 35 04 06 00 95 48 68 [10:38:22]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 F8 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 CD 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 5A 00 00 00 F4 03 04 00 1D B8 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 BA 02 00 35 04 06 00 95 48 68 00 00 26 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [10:38:22]RAPDU: 90 00 [10:38:22]wFMCommunicate OK [10:38:22]wFMCommunicate request_size=8 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 0D 02 02 03 8C EB 82 [10:38:22]Write to MH i2c: E2 0B 00 79 00 80 0D 02 02 03 00 8C EB 82 00 00 F2 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:22]Read from MH i2c: E2 03 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [10:38:22]RAPDU: 90 00 [10:38:22]wFMCommunicate OK [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 0D 03 02 [10:38:22]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 0B 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 0B 00 7A 00 00 18 49 4F 26 B7 1C EE 4B 90 00 D8 [10:38:22]RAPDU: 18 49 4F 26 B7 1C EE 4B 90 00 [10:38:22]wFMCommunicate OK [10:38:22]SAM_PROTO_SignData done [10:38:22]FM_MakeSignedData done [10:38:22]CreateOFDProtocolMessage [10:38:22]wFMCommunicate request_size=4 [10:38:22]MH_SAM_APDU [10:38:22]CAPDU: 80 11 00 00 [10:38:22]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:22]Read from MH i2c: E2 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: E2 17 00 [10:38:22]MH_I2C_Read... [10:38:22]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 37 37 38 90 00 4E [10:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:38:22]wFMCommunicate OK [10:38:22]CreateOFDProtocolMessage done [10:38:22]OFDSenderStorePacket 178864 [10:38:22]StoreOFDPacket docnum=178864 [10:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 37 9A 05 01 33 E9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 F8 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 CD 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 5A 00 00 00 F4 03 04 00 1D B8 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 BA 02 00 35 04 06 00 95 48 68 8C EB 82 18 49 4F 26 B7 1C EE 4B [10:38:22]CheckFolder [10:38:22]dirname=/storage/ofd_packets [10:38:22]CheckFolder done [10:38:22]ProducePacketName [10:38:22]name=ofd_packets/00178864 [10:38:22]NVStorageSaveData ofd_packets/00178864 [10:38:22]File name is /storage/ofd_packets/00178864 [10:38:22]Write 299 bytes [10:38:22]NVStorageSaveData done [10:38:22]OFDSenderStorePacket done [10:38:22]KKMCreateOFDPacket done [10:38:22]NVStorageSaveData kkm_last_timestamp [10:38:22]File name is /storage/kkm_last_timestamp [10:38:22]Write 4 bytes [10:38:22]NVStorageSaveData done [10:38:22]ExternCall_PrintAddStr [10:38:22]wPrintStart [10:38:22]Write to MH i2c: 01 00 00 7C 00 7C [10:38:22]Write i2c OK [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: 01 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: 01 07 00 [10:38:22]MH_I2C_Read... [10:38:22]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [10:38:22]RasterBufferAndPrint [10:38:22]line Счет N : (1)295197 [10:38:22]line ИНН: 02508201610067 [10:38:22]line Контрольно-Кассовый Чек [10:38:22]line ПРОДАЖА [10:38:22]line ТРК (МРК, ГНК) : 41 [10:38:22]line Товар: 2710124130 [10:38:22]line SU-92-К-5 [10:38:22]line 17.450 * 68.80 [10:38:22]line = 1200.56 [10:38:22]line НДС 12% НСП 1% [10:38:22]line > о реализуемом товаре [10:38:22]line ОКРУГЛЕНИЕ: -0.56 [10:38:22]line ИТОГО: 1200.00 [10:38:22]line Внесено: 1200.00 [10:38:22]line СДАЧА: 0.00 [10:38:22]line НСП 1% : 10.62 [10:38:22]line НДС 12% : 127.49 [10:38:22]line Наличными: 1200.00 [10:38:22]line Безнал.: 0.00 [10:38:22]line Место: АЗС № 130 "Партнер Нефть" [10:38:22]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:38:22]line СНО: Общий режим [10:38:22]line Чек 90 24.08.2024 10:38 [10:38:22]line Смена: 471 ФФД: 1.0 [10:38:22]line ЗНМ: 0300000071 [10:38:22]line РНМ: 0000000000092561 [10:38:22]line Версия ККМ: 001 [10:38:22]line ФМ: 0000000000871778 [10:38:22]line ФД: 178864 [10:38:22]line ФПД: 164138224249730 [10:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T103821&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178864&fm=164138224249730&tin=02508201610067®Number=0000000000092561&sum=120000 [10:38:22]written 0, free lines is 4095 [10:38:22]OFD Sender: Processing packet 178864 [packets to send 500, broken 499] [10:38:22]ProducePacketName [10:38:22]name=ofd_packets/00178864 [10:38:22]OFD Sender: To server: pG, [10:38:22]CommunicateWithHost lk.salyk.kg:30040 [10:38:22]ConnectInit lk.salyk.kg [10:38:23]Write to MH i2c: 01 00 00 A7 00 A7 [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 DC 0C 96 [10:38:23]RasterBufferAndPrint [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]written 0, free lines is 3298 [10:38:23]MH_Cut [10:38:23]Write to MH i2c: D1 01 00 AE 00 01 80 [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 01 00 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 01 00 AE 00 00 7F [10:38:23]Write to MH i2c: 01 00 00 AF 00 AF [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Connected sock=8 [10:38: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 37 37 38 0D 01 00 00 37 9A 05 01 33 E9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 44 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 F8 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 CD 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 5A 00 00 00 F4 03 04 00 1D B8 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 BA 02 00 35 04 06 00 95 48 68 8C EB 82 18 49 4F 26 B7 1C EE 4B [10:38:23]*** Cut start [10:38:23]*** Partial cut [10:38:23]*** CUTSNS_PIN = 1 [10:38:23]*** CUTSNS_PIN = 0 [10:38:24]*** Brake cut motor [10:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 09 E7 47 00 03 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 37 37 38 10 04 04 00 B0 BA 02 00 F4 03 04 00 C3 63 C9 66 B6 04 01 00 00 5E 92 48 9C CB 79 99 7C [10:38:24]CommunicateWithHost err = 0 [10:38:24]CheckOFDResponse [10:38:24]1017 (14) - 77093643461234 [10:38:24]1041 (16) - 0000000000871778 [10:38:24]1040 (4) - 178864 [10:38:24]1012 (4) - 24.08.2024 04:38 [10:38:24]1206 (1) - 0 [10:38:24]OFD Sender: Remove packet 178864 [10:38:24]ProducePacketName [10:38:24]name=ofd_packets/00178864 [10:38:24]NVStorageDeleteData [10:38:24]Read from MH i2c: 01 [10:38:24]MH_I2C_Read... [10:38:24]*** Stop cut motor [10:38:24]*** Cut end [10:38:24]Read from MH i2c: 01 07 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [10:38:24]process_action close_receipt done [10:38:24]requested_data is exist [10:38:24]produce_requested_data [10:38:24]requested_item fm.sn is exist - process it [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 11 00 00 [10:38:24]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 17 00 [10:38:24]MH_I2C_Read... [10:38:24]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 37 37 38 90 00 83 [10:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:38:24]wFMCommunicate OK [10:38:24]requested_item fd.num is exist - process it [10:38:24]SAM_PROTO_GetFieldsCounters [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 13 00 00 [10:38:24]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 62 00 [10:38:24]MH_I2C_Read... [10:38:24]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B0 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:38: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B0 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:24]wFMCommunicate OK [10:38:24]SAM_PROTO_GetFieldsCounters done [10:38:24]requested_item shift.num is exist - process it [10:38:24]requested_item shift.opened is exist - process it [10:38:24]req_shift_opened [10:38:24]FM_GetShiftState [10:38:24]SAM_PROTO_GetShiftState [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 13 01 00 [10:38:24]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]OFD Sender: No OFD packet to send [10:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [10:38:24]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [10:38:24]wFMCommunicate OK [10:38:24]SAM_PROTO_GetShiftState done [10:38:24]FM_GetShiftState done [10:38:24]req_shift_opened done [10:38:24]requested_item shift.open_date is exist - process it [10:38:24]req_shift_open_date [10:38:24]req_shift_open_date done [10:38:24]produce_requested_data done [10:38:24]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178864,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [10:38:24]process_action_free close_receipt [10:38:24]json_value_free [10:38:24]json_value_free done [10:38:24]process_json_proto returns [10:38:24]Send response to host [10:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178864,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [10:38:24]free response buf [10:38:24]execute_script done [10:38:24]execute_script returns [10:38:24]free content buf [10:38:24]Sock 9.Close socket [10:38:24]Sock 9.Thread stoped [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:41]recv_with_timeout no data received [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:57]recv_with_timeout no data received [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:07]recv_with_timeout no data received [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]recv_with_timeout no data received [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:53]recv_with_timeout no data received [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:06]recv_with_timeout no data received [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:43]recv_with_timeout no data received [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:43]recv_with_timeout no data received [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:45:30]ConnectInit Can't connect to host [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:47]recv_with_timeout no data received [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:48:13]ConnectInit Can't connect to host [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:29]recv_with_timeout no data received [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:51:09]ConnectInit Can't connect to host [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:03]accept exits with 10 [10:52:03]New connection [10:52:03]New thread 3066838372 created [10:52:03]Thread 3066695012 joined [10:52:03]Waiting for new connection... [10:52:03] Sock 10.Parse request [10:52:03]Sock 10.Check first char [10:52:03]Sock 10.First char is OK [10:52:03]request: POST /json_proto HTTP/1.0 [10:52:03]Method: POST [10:52:03]URL: /json_proto [10:52:03]Method is POST - this is cgi request [10:52:03]url: /json_proto [10:52:03]query_string will be loaded in cgi processing [10:52:03]execute_cgi json_proto POST (null) [10:52:03]execute_cgi path=json_proto method=POST [10:52:03]POST find Content-Length [10:52:03]Host: 172.17.44.131:8080 [10:52:03]Content-Length: 679 [10:52:03]Content-Type: application/json [10:52:03] [10:52:03]POST finish read [10:52:03]Found Content-Length = 679 [10:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:52:03]execute_script... [10:52: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)295210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:52:03]POST & json_proto [10:52:03]process_json_proto [10:52:03]json parsed OK: [10:52:03]protocol is kg_v1.0 [10:52:03]action value=close_receipt [10:52:03]process_action close_receipt [10:52:03]cmd_close_receipt [10:52:03]MH_GetDate [10:52:03]Write to MH i2c: F0 00 00 B3 00 A2 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: F0 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: F0 09 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: F0 09 00 B3 00 00 54 BB C9 66 4F 53 BE 66 AF [10:52:03]GetLastDocTimeStamp 1724495901 [10:52:03]current date 1724496724 [10:52:03]FM_GetShiftState [10:52:03]SAM_PROTO_GetShiftState [10:52:03]wFMCommunicate request_size=4 [10:52:03]MH_SAM_APDU [10:52:03]CAPDU: 80 13 01 00 [10:52:03]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [10:52:03]Write i2c OK [10:52:03]MH_I2C_Read... [10:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:03]Read from MH i2c: E2 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0E 00 [10:52:03]MH_I2C_Read... [10:52:03]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EF [10:52:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [10:52:03]wFMCommunicate OK [10:52:03]SAM_PROTO_GetShiftState done [10:52:03]FM_GetShiftState done [10:52:03]opened in 1724458079 [10:52:03]opened+sec_in_day 1724544479 [10:52:03]quantity*price = 100050 [10:52:03]sum+1 = 100052 [10:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 91 24.08.2024 10:52 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178865 ФПД: 27990488695537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T105204&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178865&fm=27990488695537&tin=02508201610067®Number=0000000000092561&sum=100000 [10:52:05]StoreToDocumentArchive [10:52:05]shift 471 fd 178865 [10:52:05]save to /storage/0471/doc_00178865 [10:52:05]save last doc name /storage/0471/doc_00178865 to /storage/kkm_last_doc_name [10:52:05]save OK [10:52:05]Clear old archive folders... [10:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:05]tlvbuf is 02021CA0 [10:52:05]SAM_PROTO_ClearQueue [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 09 00 00 [10:52:05]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:52:05]RAPDU: 90 00 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_ClearQueue done [10:52:05]KKMCreateOFDPacket [10:52:05]OFDProtocolAddRootSTLVToBuf [10:52:05]FM_MakeSignedData [10:52:05]FM_MakeSignedData [10:52:05]SAM_PROTO_SignData [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 0D 01 02 [10:52:05]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [10:52:05]RAPDU: 90 00 [10:52:05]wFMCommunicate OK [10:52:05]wFMCommunicate request_size=255 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5B 00 00 00 F4 03 04 00 54 BB C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 BA 02 00 35 04 06 00 19 75 0B 22 [10:52:05]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5B 00 00 00 F4 03 04 00 54 BB C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 BA 02 00 35 04 06 00 19 75 0B 22 00 00 62 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [10:52:05]RAPDU: 90 00 [10:52:05]wFMCommunicate OK [10:52:05]wFMCommunicate request_size=7 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 0D 02 02 02 C2 F1 [10:52:05]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 C2 F1 00 00 F5 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [10:52:05]RAPDU: 90 00 [10:52:05]wFMCommunicate OK [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 0D 03 02 [10:52:05]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0B 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 0B 00 C5 00 00 D0 51 CA 4C 2A F2 8D 06 90 00 27 [10:52:05]RAPDU: D0 51 CA 4C 2A F2 8D 06 90 00 [10:52:05]wFMCommunicate OK [10:52:05]SAM_PROTO_SignData done [10:52:05]FM_MakeSignedData done [10:52:05]CreateOFDProtocolMessage [10:52:05]wFMCommunicate request_size=4 [10:52:05]MH_SAM_APDU [10:52:05]CAPDU: 80 11 00 00 [10:52:05]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:05]Read from MH i2c: E2 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: E2 17 00 [10:52:05]MH_I2C_Read... [10:52:05]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 37 37 38 90 00 99 [10:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:52:05]wFMCommunicate OK [10:52:05]CreateOFDProtocolMessage done [10:52:05]OFDSenderStorePacket 178865 [10:52:05]StoreOFDPacket docnum=178865 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00: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 54000000005725A6 (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: 747999+1723749199=1724497198 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [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 78 00 80 00 FF FF D6 [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 2F BD C9 66 4F 53 BE 66 E0 [10:59:59]Current date/time: 24.08.2024 10:59 [10:59:59]FM_Init [10:59:59]wFMConnect [10:59:59]MH_SAM_On [10:59:59]Write to MH i2c: E0 00 00 08 00 E7 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_init finished! [10:59:59]*** atr: [10:59:59]*** 0F 3B D5 18 FF 81 91 FE [10:59:59]*** 1F C3 80 73 C8 21 10 0A [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]*** 00 00 00 00 00 00 00 00 [10:59:59]Read from MH i2c: E0 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E0 10 00 [10:59:59]MH_I2C_Read... [10:59:59]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 [10:59:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:59:59]wFMCommunicate request_size=10 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:59:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:59:59]RAPDU: 90 00 [10:59:59]wFMCommunicate OK [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 11 00 00 [10:59:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 17 00 [10:59:59]MH_I2C_Read... [10:59:59]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 37 37 38 90 00 DD [10:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:59:59]wFMCommunicate OK [10:59:59]Detected FM SN is 0000000000871778 [10:59:59]Stored FM SN is 0000000000871778 [10:59:59]wFMCommunicate request_size=9 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 16 00 00 04 D9 BA 00 00 [10:59:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:59:59]RAPDU: 90 00 [10:59:59]wFMCommunicate OK [10:59:59]FM PIN OK [10:59:59]wFMCommunicate request_size=8 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 14 04 00 03 02 00 01 [10:59:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:59:59]RAPDU: 90 00 [10:59:59]wFMCommunicate OK [10:59:59]wFMCommunicate request_size=13 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:59:59]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 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:59:59]RAPDU: 90 00 [10:59:59]wFMCommunicate OK [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 11 00 00 [10:59:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 17 00 [10:59:59]MH_I2C_Read... [10:59:59]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 37 37 38 90 00 E1 [10:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:59:59]wFMCommunicate OK [10:59:59]DocumentArchiveInit [10:59:59]Start Httpd... [10:59:59]Httpd thread 3067592036 created [10:59:59]Write to MH i2c: 01 00 00 0F 00 0F [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: 01 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: 01 07 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:59:59]MH Int Process started [10:59:59]Allocated Socket 8 [10:59:59]Bind OK [10:59:59]Listen OK [10:59:59]httpd running on port 8080 [10:59:59]Waiting for new connection... [11:00:00]OFD Sender: Processing packet 178865 [packets to send 500, broken 499] [11:00:00]ProducePacketName [11:00:00]name=ofd_packets/00178865 [11:00:00]OFD Sender: To server: pG, [11:00:00]CommunicateWithHost lk.salyk.kg:30040 [11:00:00]ConnectInit lk.salyk.kg [11:00:02]accept exits with 9 [11:00:02]New connection [11:00:02]New thread 3067305316 created [11:00:02]Waiting for new connection... [11:00:02] Sock 9.Parse request [11:00:02]Sock 9.Check first char [11:00:02]Sock 9.First char is OK [11:00:02]request: POST /json_proto HTTP/1.0 [11:00:02]Method: POST [11:00:02]URL: /json_proto [11:00:02]Method is POST - this is cgi request [11:00:02]url: /json_proto [11:00:02]query_string will be loaded in cgi processing [11:00:02]execute_cgi json_proto POST (null) [11:00:02]execute_cgi path=json_proto method=POST [11:00:02]POST find Content-Length [11:00:02]Host: 172.17.44.131:8080 [11:00:02]Content-Length: 215 [11:00:02]Content-Type: application/json [11:00:02] [11:00:02]POST finish read [11:00:02]Found Content-Length = 215 [11:00:02]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" ] } } [11:00:02]execute_script... [11:00:02]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" ] } } [11:00:02]POST & json_proto [11:00:02]process_json_proto [11:00:02]json parsed OK: [11:00:02]protocol is kg_v1.0 [11:00:02]action value=get_value [11:00:02]process_action get_value [11:00:02]cmd_get_value [11:00:02]process_action get_value done [11:00:02]requested_data is exist [11:00:02]produce_requested_data [11:00:02]requested_item kkm.sn is exist - process it [11:00:02]requested_item kkm.ver is exist - process it [11:00:02]requested_item fm.sn is exist - process it [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 11 00 00 [11:00:02]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 17 00 [11:00:02]MH_I2C_Read... [11:00:02]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 37 37 38 90 00 E3 [11:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:00:02]wFMCommunicate OK [11:00:02]requested_item fd.num is exist - process it [11:00:02]SAM_PROTO_GetFieldsCounters [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 13 00 00 [11:00:02]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 62 00 [11:00:02]MH_I2C_Read... [11:00:02]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B1 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B1 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:02]wFMCommunicate OK [11:00:02]SAM_PROTO_GetFieldsCounters done [11:00:02]requested_item shift.num is exist - process it [11:00:02]requested_item shift.opened is exist - process it [11:00:02]req_shift_opened [11:00:02]FM_GetShiftState [11:00:02]SAM_PROTO_GetShiftState [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 13 01 00 [11:00:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:00:02]Write i2c OK [11:00:02]MH_I2C_Read... [11:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:02]Read from MH i2c: E2 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0E 00 [11:00:02]MH_I2C_Read... [11:00:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [11:00:02]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:00:02]wFMCommunicate OK [11:00:02]SAM_PROTO_GetShiftState done [11:00:02]FM_GetShiftState done [11:00:02]req_shift_opened done [11:00:02]requested_item shift.open_date is exist - process it [11:00:02]req_shift_open_date [11:00:02]req_shift_open_date done [11:00:02]produce_requested_data done [11:00:02]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178865,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:00:02]process_action_free get_value [11:00:02]json_value_free [11:00:02]json_value_free done [11:00:02]process_json_proto returns [11:00:02]Send response to host [11:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178865,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:00:02]free response buf [11:00:02]execute_script done [11:00:02]execute_script returns [11:00:02]free content buf [11:00:02]Sock 9.Close socket [11:00:02]Sock 9.Thread stoped [11:00:02]accept exits with 11 [11:00:02]New connection [11:00:02]New thread 3067161956 created [11:00:02]Thread 3067305316 joined [11:00:02]Waiting for new connection... [11:00:02] Sock 11.Parse request [11:00:02]Sock 11.Check first char [11:00:02]Sock 11.First char is OK [11:00:02]request: POST /json_proto HTTP/1.0 [11:00:02]Method: POST [11:00:02]URL: /json_proto [11:00:02]Method is POST - this is cgi request [11:00:02]url: /json_proto [11:00:02]query_string will be loaded in cgi processing [11:00:02]execute_cgi json_proto POST (null) [11:00:02]execute_cgi path=json_proto method=POST [11:00:02]POST find Content-Length [11:00:02]Host: 172.17.44.131:8080 [11:00:02]Content-Length: 331 [11:00:02]Content-Type: application/json [11:00:02] [11:00:02]POST finish read [11:00:02]Found Content-Length = 331 [11:00:02]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" ] } } [11:00:02]execute_script... [11:00:02]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" ] } } [11:00:02]POST & json_proto [11:00:02]process_json_proto [11:00:02]json parsed OK: [11:00:02]protocol is kg_v1.0 [11:00:02]action value=get_value [11:00:02]process_action get_value [11:00:02]cmd_get_value [11:00:02]process_action get_value done [11:00:02]requested_data is exist [11:00:02]produce_requested_data [11:00:02]requested_item fm.sale.total is exist - process it [11:00:02]SAM_PROTO_GetFMData [11:00:02]wFMCommunicate request_size=4 [11:00:02]MH_SAM_APDU [11:00:02]CAPDU: 80 13 03 00 [11:00:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:00:03]Read from MH i2c: E2 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 FD 00 [11:00:03]MH_I2C_Read... [11:00:03]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 03 B7 02 00 69 04 A4 00 6F 04 04 00 6C B5 02 00 B1 04 05 00 3F E8 70 2C 05 70 04 05 00 DF 7A 81 15 04 72 04 05 00 60 6D EF 16 01 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 B0 77 AE 8C 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 43 02 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 2F [11:00:03]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 03 B7 02 00 69 04 A4 00 6F 04 04 00 6C B5 02 00 B1 04 05 00 3F E8 70 2C 05 70 04 05 00 DF 7A 81 15 04 72 04 05 00 60 6D EF 16 01 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 B0 77 AE 8C 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 43 02 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [11:00:03]wFMCommunicate OK [11:00:03]wFMCommunicate request_size=4 [11:00:03]MH_SAM_APDU [11:00:03]CAPDU: 80 17 00 00 [11:00:03]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:00:03]Write i2c OK [11:00:03]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [11:00:04]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 17 00 00 [11:00:04]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [11:00:04]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 17 00 00 [11:00:04]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [11:00:04]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 17 00 00 [11:00:04]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 E3 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 E3 00 17 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 76 [11:00:04]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:00:04]wFMCommunicate OK [11:00:04]SAM_PROTO_GetFMData done [11:00:04]requested_item fm.sale_refund.total is exist - process it [11:00:04]requested_item fm.buy.total is exist - process it [11:00:04]requested_item shift.sale.total is exist - process it [11:00:04]SAM_PROTO_GetShiftData [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 13 02 00 [11:00:04]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:05]ConnectInit Can't take IP for lk.salyk.kg [11:00:05]CommunicateWithHost connect error [11:00:05]CommunicateWithHost err = -1 [11:00:05]OFD Sender: Server communicate error [11:00:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 5B 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 1D 9C C6 70 04 03 00 38 08 88 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 59 18 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 C2 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 62 [11:00:05]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 5B 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 1D 9C C6 70 04 03 00 38 08 88 72 04 03 00 E5 93 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 59 18 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 00 C2 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:00:05]wFMCommunicate OK [11:00:05]wFMCommunicate request_size=4 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 17 00 00 [11:00:05]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [11:00:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:00:05]wFMCommunicate OK [11:00:05]wFMCommunicate request_size=4 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 17 00 00 [11:00:05]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:05]Read from MH i2c: E2 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 [11:00:05]MH_I2C_Read... [11:00:05]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [11:00:05]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:00:05]wFMCommunicate OK [11:00:05]wFMCommunicate request_size=4 [11:00:05]MH_SAM_APDU [11:00:05]CAPDU: 80 17 00 00 [11:00:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:00:05]Write i2c OK [11:00:05]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 FD 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:00:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:00:06]wFMCommunicate OK [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 17 00 00 [11:00:06]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 CC 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [11:00:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:00:06]wFMCommunicate OK [11:00:06]SAM_PROTO_GetShiftData done [11:00:06]requested_item shift.sale.total_cash is exist - process it [11:00:06]requested_item shift.sale_refund.total is exist - process it [11:00:06]requested_item shift.sale_refund.total_cash is exist - process it [11:00:06]requested_item shift.buy.total is exist - process it [11:00:06]requested_item shift.buy.total_cash is exist - process it [11:00:06]produce_requested_data done [11:00:06]produce_requested_data return {"fm.sale.total":222204334.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":130160.93,"shift.sale.total_cash":89150.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} [11:00:06]process_action_free get_value [11:00:06]json_value_free [11:00:06]json_value_free done [11:00:06]process_json_proto returns [11:00:06]Send response to host [11:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222204334.71,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":130160.93,"shift.sale.total_cash":89150.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}}} [11:00:06]free response buf [11:00:06]execute_script done [11:00:06]execute_script returns [11:00:06]free content buf [11:00:06]Sock 11.Close socket [11:00:06]Sock 11.Thread stoped [11:00:06]accept exits with 9 [11:00:06]New connection [11:00:06]New thread 3067305316 created [11:00:06]Thread 3067161956 joined [11:00:06]Waiting for new connection... [11:00:06] Sock 9.Parse request [11:00:06]Sock 9.Check first char [11:00:06]Sock 9.First char is OK [11:00:06]request: POST /json_proto HTTP/1.0 [11:00:06]Method: POST [11:00:06]URL: /json_proto [11:00:06]Method is POST - this is cgi request [11:00:06]url: /json_proto [11:00:06]query_string will be loaded in cgi processing [11:00:06]execute_cgi json_proto POST (null) [11:00:06]execute_cgi path=json_proto method=POST [11:00:06]POST find Content-Length [11:00:06]Host: 172.17.44.131:8080 [11:00:06]Content-Length: 678 [11:00:06]Content-Type: application/json [11:00:06] [11:00:06]POST finish read [11:00:06]Found Content-Length = 678 [11:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:06]execute_script... [11:00:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:06]POST & json_proto [11:00:06]process_json_proto [11:00:06]json parsed OK: [11:00:06]protocol is kg_v1.0 [11:00:06]action value=close_receipt [11:00:06]process_action close_receipt [11:00:06]cmd_close_receipt [11:00:06]MH_GetDate [11:00:06]Write to MH i2c: F0 00 00 1D 00 0C [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: F0 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: F0 09 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: F0 09 00 1D 00 00 37 BD C9 66 4F 53 BE 66 FE [11:00:06]GetLastDocTimeStamp 1724496724 [11:00:06]current date 1724497207 [11:00:06]FM_GetShiftState [11:00:06]SAM_PROTO_GetShiftState [11:00:06]wFMCommunicate request_size=4 [11:00:06]MH_SAM_APDU [11:00:06]CAPDU: 80 13 01 00 [11:00:06]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:00:06]Write i2c OK [11:00:06]MH_I2C_Read... [11:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:06]Read from MH i2c: E2 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 0E 00 [11:00:06]MH_I2C_Read... [11:00:06]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [11:00:06]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:00:06]wFMCommunicate OK [11:00:06]SAM_PROTO_GetShiftState done [11:00:06]FM_GetShiftState done [11:00:06]opened in 1724458079 [11:00:06]opened+sec_in_day 1724544479 [11:00:06]quantity*price = 80061 [11:00:06]sum+1 = 80063 [11:00:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 92 24.08.2024 11:00 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178866 ФПД: 89423023996565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110007&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178866&fm=89423023996565&tin=02508201610067®Number=0000000000092561&sum=80000 [11:00:07]StoreToDocumentArchive [11:00:07]shift 471 fd 178866 [11:00:07]save to /storage/0471/doc_00178866 [11:00:07]save last doc name /storage/0471/doc_00178866 to /storage/kkm_last_doc_name [11:00:07]save OK [11:00:07]Clear old archive folders... [11:00:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:07]tlvbuf is 01220D60 [11:00:07]SAM_PROTO_ClearQueue [11:00:07]wFMCommunicate request_size=4 [11:00:07]MH_SAM_APDU [11:00:07]CAPDU: 80 09 00 00 [11:00:07]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:00:07]Write i2c OK [11:00:07]MH_I2C_Read... [11:00:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:07]Read from MH i2c: E2 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 03 00 [11:00:07]MH_I2C_Read... [11:00:07]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:00:07]RAPDU: 90 00 [11:00:07]wFMCommunicate OK [11:00:07]SAM_PROTO_ClearQueue done [11:00:07]KKMCreateOFDPacket [11:00:07]OFDProtocolAddRootSTLVToBuf [11:00:07]FM_MakeSignedData [11:00:07]FM_MakeSignedData [11:00:07]SAM_PROTO_SignData [11:00:07]wFMCommunicate request_size=4 [11:00:07]MH_SAM_APDU [11:00:07]CAPDU: 80 0D 01 02 [11:00:08]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=255 [11:00:08]MH_SAM_APDU [11:00:08]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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 37 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 BA 02 00 35 04 06 00 51 [11:00:08]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 37 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 BA 02 00 35 04 06 00 51 00 00 BB [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=10 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 02 02 05 54 6B 94 7E 95 [11:00:08]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 54 6B 94 7E 95 00 00 18 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:00:08]RAPDU: 90 00 [11:00:08]wFMCommunicate OK [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 0D 03 02 [11:00:08]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0B 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0B 00 2F 00 00 06 22 56 75 7F 51 22 BA 90 00 4A [11:00:08]RAPDU: 06 22 56 75 7F 51 22 BA 90 00 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_SignData done [11:00:08]FM_MakeSignedData done [11:00:08]CreateOFDProtocolMessage [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 11 00 00 [11:00:08]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 17 00 [11:00:08]MH_I2C_Read... [11:00:08]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 37 37 38 90 00 03 [11:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:00:08]wFMCommunicate OK [11:00:08]CreateOFDProtocolMessage done [11:00:08]OFDSenderStorePacket 178866 [11:00:08]StoreOFDPacket docnum=178866 [11:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB CA 07 01 8D C2 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 37 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 BA 02 00 35 04 06 00 51 54 6B 94 7E 95 06 22 56 75 7F 51 22 BA [11:00:08]CheckFolder [11:00:08]dirname=/storage/ofd_packets [11:00:08]CheckFolder done [11:00:08]ProducePacketName [11:00:08]name=ofd_packets/00178866 [11:00:08]NVStorageSaveData ofd_packets/00178866 [11:00:08]File name is /storage/ofd_packets/00178866 [11:00:08]Write 301 bytes [11:00:08]NVStorageSaveData done [11:00:08]OFDSenderStorePacket done [11:00:08]KKMCreateOFDPacket done [11:00:08]NVStorageSaveData kkm_last_timestamp [11:00:08]File name is /storage/kkm_last_timestamp [11:00:08]Write 4 bytes [11:00:08]NVStorageSaveData done [11:00:08]ExternCall_PrintAddStr [11:00:08]wPrintStart [11:00:08]Write to MH i2c: 01 00 00 31 00 31 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: 01 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: 01 07 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:00:08]RasterBufferAndPrint [11:00:08]line Счет N : (1)295211 [11:00:08]line ИНН: 02508201610067 [11:00:08]line Контрольно-Кассовый Чек [11:00:08]line ПРОДАЖА [11:00:08]line ТРК (МРК, ГНК) : 53 [11:00:08]line Товар: 2710124500 [11:00:08]line Аи-95-К-5 [11:00:08]line 10.790 * 74.20 [11:00:08]line = 800.62 [11:00:08]line НДС 12% НСП 1% [11:00:08]line > о реализуемом товаре [11:00:08]line ОКРУГЛЕНИЕ: -0.62 [11:00:08]line ИТОГО: 800.00 [11:00:08]line Внесено: 800.00 [11:00:08]line СДАЧА: 0.00 [11:00:08]line НСП 1% : 7.08 [11:00:08]line НДС 12% : 85.02 [11:00:08]line Наличными: 800.00 [11:00:08]line Безнал.: 0.00 [11:00:08]line Место: АЗС № 130 "Партнер Нефть" [11:00:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:00:08]line СНО: Общий режим [11:00:08]line Чек 92 24.08.2024 11:00 [11:00:08]line Смена: 471 ФФД: 1.0 [11:00:08]line ЗНМ: 0300000071 [11:00:09]line РНМ: 0000000000092561 [11:00:09]line Версия ККМ: 001 [11:00:09]line ФМ: 0000000000871778 [11:00:09]line ФД: 178866 [11:00:09]line ФПД: 89423023996565 [11:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110007&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178866&fm=89423023996565&tin=02508201610067®Number=0000000000092561&sum=80000 [11:00:09]written 0, free lines is 4095 [11:00:09]OFD Sender: Processing packet 178865 [packets to send 501, broken 499] [11:00:09]ProducePacketName [11:00:09]name=ofd_packets/00178865 [11:00:09]OFD Sender: To server: pG, [11:00:09]CommunicateWithHost lk.salyk.kg:30040 [11:00:09]ConnectInit lk.salyk.kg [11:00:09]Write to MH i2c: 01 00 00 5C 00 5C [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 EA 0C 59 [11:00:09]RasterBufferAndPrint [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]line [11:00:09]written 0, free lines is 3330 [11:00:09]MH_Cut [11:00:09]Write to MH i2c: D1 01 00 63 00 01 35 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 01 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: D1 01 00 63 00 00 34 [11:00:09]Write to MH i2c: 01 00 00 64 00 64 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:10]*** Cut start [11:00:10]*** Partial cut [11:00:10]*** CUTSNS_PIN = 1 [11:00:10]*** CUTSNS_PIN = 0 [11:00:10]*** Brake cut motor [11:00:10]Read from MH i2c: 01 [11:00:10]MH_I2C_Read... [11:00:10]*** Stop cut motor [11:00:10]*** Cut end [11:00:10]Read from MH i2c: 01 07 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:00:10]process_action close_receipt done [11:00:10]requested_data is exist [11:00:10]produce_requested_data [11:00:10]requested_item fm.sn is exist - process it [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 11 00 00 [11:00:10]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 17 00 [11:00:10]MH_I2C_Read... [11:00:10]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 37 37 38 90 00 38 [11:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:00:10]wFMCommunicate OK [11:00:10]requested_item fd.num is exist - process it [11:00:10]SAM_PROTO_GetFieldsCounters [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 13 00 00 [11:00:10]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 62 00 [11:00:10]MH_I2C_Read... [11:00:10]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B2 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:00: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B2 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetFieldsCounters done [11:00:11]requested_item shift.num is exist - process it [11:00:11]requested_item shift.opened is exist - process it [11:00:11]req_shift_opened [11:00:11]FM_GetShiftState [11:00:11]SAM_PROTO_GetShiftState [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 01 00 [11:00:11]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A2 [11:00:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetShiftState done [11:00:11]FM_GetShiftState done [11:00:11]req_shift_opened done [11:00:11]requested_item shift.open_date is exist - process it [11:00:11]req_shift_open_date [11:00:11]req_shift_open_date done [11:00:11]produce_requested_data done [11:00:11]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178866,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:00:11]process_action_free close_receipt [11:00:11]json_value_free [11:00:11]json_value_free done [11:00:11]process_json_proto returns [11:00:11]Send response to host [11:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178866,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:00:11]free response buf [11:00:11]execute_script done [11:00:11]execute_script returns [11:00:11]free content buf [11:00:11]Sock 9.Close socket [11:00:11]Sock 9.Thread stoped [11:00:14]ConnectInit Can't take IP for lk.salyk.kg [11:00:14]CommunicateWithHost connect error [11:00:14]CommunicateWithHost err = -1 [11:00:14]OFD Sender: Server communicate error [11:00:19]OFD Sender: Processing packet 178865 [packets to send 501, broken 499] [11:00:19]ProducePacketName [11:00:19]name=ofd_packets/00178865 [11:00:19]OFD Sender: To server: pG, [11:00:19]CommunicateWithHost lk.salyk.kg:30040 [11:00:19]ConnectInit lk.salyk.kg [11:00:22]Connected sock=9 [11:00: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 37 37 38 0C 01 00 00 CA 50 04 01 C3 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5B 00 00 00 F4 03 04 00 54 BB C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 BA 02 00 35 04 06 00 19 75 0B 22 C2 F1 D0 51 CA 4C 2A F2 8D 06 [11:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1E FA 47 00 90 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 37 37 38 10 04 04 00 B1 BA 02 00 F4 03 04 00 EA 68 C9 66 B6 04 01 00 00 F0 06 2D 81 4E 93 4D 0F [11:00:22]CommunicateWithHost err = 0 [11:00:22]CheckOFDResponse [11:00:22]1017 (14) - 77093643461234 [11:00:22]1041 (16) - 0000000000871778 [11:00:22]1040 (4) - 178865 [11:00:22]1012 (4) - 24.08.2024 05:00 [11:00:22]1206 (1) - 0 [11:00:22]OFD Sender: Remove packet 178865 [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00178865 [11:00:22]NVStorageDeleteData [11:00:23]OFD Sender: Processing packet 178866 [packets to send 500, broken 499] [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00178866 [11:00:23]OFD Sender: To server: pG, [11:00:23]CommunicateWithHost lk.salyk.kg:30040 [11:00:23]ConnectInit lk.salyk.kg [11:00:25]Connected sock=9 [11:00: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 37 37 38 0F 01 00 00 BB CA 07 01 8D C2 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 37 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 BA 02 00 35 04 06 00 51 54 6B 94 7E 95 06 22 56 75 7F 51 22 BA [11:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B3 62 47 00 91 59 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 37 37 38 10 04 04 00 B2 BA 02 00 F4 03 04 00 ED 68 C9 66 B6 04 01 00 00 92 DD A4 AD 11 44 C3 D5 [11:00:25]CommunicateWithHost err = 0 [11:00:25]CheckOFDResponse [11:00:25]1017 (14) - 77093643461234 [11:00:25]1041 (16) - 0000000000871778 [11:00:25]1040 (4) - 178866 [11:00:25]1012 (4) - 24.08.2024 05:00 [11:00:25]1206 (1) - 0 [11:00:25]OFD Sender: Remove packet 178866 [11:00:25]ProducePacketName [11:00:25]name=ofd_packets/00178866 [11:00:25]NVStorageDeleteData [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:45]accept exits with 6 [11:00:45]New connection [11:00:45]New thread 3067161956 created [11:00:45]Thread 3067305316 joined [11:00:45]Waiting for new connection... [11:00:45] Sock 6.Parse request [11:00:45]Sock 6.Check first char [11:00:45]Sock 6.First char is OK [11:00:45]request: POST /json_proto HTTP/1.0 [11:00:45]Method: POST [11:00:45]URL: /json_proto [11:00:45]Method is POST - this is cgi request [11:00:45]url: /json_proto [11:00:45]query_string will be loaded in cgi processing [11:00:45]execute_cgi json_proto POST (null) [11:00:45]execute_cgi path=json_proto method=POST [11:00:45]POST find Content-Length [11:00:45]Host: 172.17.44.131:8080 [11:00:45]Content-Length: 816 [11:00:45]Content-Type: application/json [11:00:45] [11:00:45]POST finish read [11:00:45]Found Content-Length = 816 [11:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]execute_script... [11:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]POST & json_proto [11:00:45]process_json_proto [11:00:45]json parsed OK: [11:00:45]protocol is kg_v1.0 [11:00:45]action value=close_receipt [11:00:45]process_action close_receipt [11:00:45]cmd_close_receipt [11:00:45]MH_GetDate [11:00:45]Write to MH i2c: F0 00 00 68 00 57 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 68 00 00 5D BD C9 66 4F 53 BE 66 6F [11:00:45]GetLastDocTimeStamp 1724497207 [11:00:45]current date 1724497245 [11:00:45]FM_GetShiftState [11:00:45]SAM_PROTO_GetShiftState [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 13 01 00 [11:00:45]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [11:00:45]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_GetShiftState done [11:00:45]FM_GetShiftState done [11:00:45]opened in 1724458079 [11:00:45]opened+sec_in_day 1724544479 [11:00:45]quantity*price = 50036 [11:00:45]sum+1 = 50037 [11:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 93 24.08.2024 11:00 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178867 ФПД: 2952277980881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110045&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178867&fm=2952277980881&tin=02508201610067®Number=0000000000092561&sum=50036 [11:00:46]StoreToDocumentArchive [11:00:46]shift 471 fd 178867 [11:00:46]save to /storage/0471/doc_00178867 [11:00:46]save last doc name /storage/0471/doc_00178867 to /storage/kkm_last_doc_name [11:00:46]save OK [11:00:46]Clear old archive folders... [11:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:46]tlvbuf is 01220C20 [11:00:46]SAM_PROTO_ClearQueue [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 09 00 00 [11:00:46]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_ClearQueue done [11:00:46]KKMCreateOFDPacket [11:00:46]OFDProtocolAddRootSTLVToBuf [11:00:46]FM_MakeSignedData [11:00:46]FM_MakeSignedData [11:00:46]SAM_PROTO_SignData [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 01 02 [11:00:46]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=255 [11:00:46]MH_SAM_APDU [11:00:46]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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 5D BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 BA 02 00 35 04 06 00 02 [11:00:46]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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 5D BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 BA 02 00 35 04 06 00 02 00 00 AA [11:00:46]OFD Sender: No OFD packet to send [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=10 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 02 02 05 AF 61 7A F6 D1 [11:00:46]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 AF 61 7A F6 D1 00 00 4E [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 03 02 [11:00:46]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 0B 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 0B 00 7A 00 00 FF C7 F6 E4 F7 02 20 42 90 00 F1 [11:00:46]RAPDU: FF C7 F6 E4 F7 02 20 42 90 00 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_SignData done [11:00:46]FM_MakeSignedData done [11:00:46]CreateOFDProtocolMessage [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 11 00 00 [11:00:46]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 [11:00:47]MH_I2C_Read... [11:00:47]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 37 37 38 90 00 4E [11:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:00:47]wFMCommunicate OK [11:00:47]CreateOFDProtocolMessage done [11:00:47]OFDSenderStorePacket 178867 [11:00:47]StoreOFDPacket docnum=178867 [11:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 66 F0 07 01 B3 BF 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 5D BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 BA 02 00 35 04 06 00 02 AF 61 7A F6 D1 FF C7 F6 E4 F7 02 20 42 [11:00:47]CheckFolder [11:00:47]dirname=/storage/ofd_packets [11:00:47]CheckFolder done [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00178867 [11:00:47]NVStorageSaveData ofd_packets/00178867 [11:00:47]File name is /storage/ofd_packets/00178867 [11:00:47]Write 301 bytes [11:00:47]NVStorageSaveData done [11:00:47]OFDSenderStorePacket done [11:00:47]KKMCreateOFDPacket done [11:00:47]NVStorageSaveData kkm_last_timestamp [11:00:47]File name is /storage/kkm_last_timestamp [11:00:47]Write 4 bytes [11:00:47]NVStorageSaveData done [11:00:47]ExternCall_PrintAddStr [11:00:47]wPrintStart [11:00:47]Write to MH i2c: 01 00 00 7C 00 7C [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:00:47]RasterBufferAndPrint [11:00:47]line Счет N : (1)295213 [11:00:47]line ИНН: 02508201610067 [11:00:47]line Контрольно-Кассовый Чек [11:00:47]line ПРОДАЖА [11:00:47]line ТРК (МРК, ГНК) : 32 [11:00:47]line Товар: 2710124130 [11:00:47]line Аи-92-К-5 [11:00:47]line 7.380 * 67.80 [11:00:47]line = 500.36 [11:00:47]line НДС 12% НСП 1% [11:00:47]line > о реализуемом товаре [11:00:47]line ИТОГО: 500.36 [11:00:47]line НСП 1% : 4.43 [11:00:47]line НДС 12% : 53.14 [11:00:47]line Наличными: 0.00 [11:00:47]line Безнал.: 500.36 [11:00:47]line Место: АЗС № 130 "Партнер Нефть" [11:00:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:00:47]line СНО: Общий режим [11:00:47]line Чек 93 24.08.2024 11:00 [11:00:47]line Смена: 471 ФФД: 1.0 [11:00:47]line ЗНМ: 0300000071 [11:00:47]line РНМ: 0000000000092561 [11:00:47]line Версия ККМ: 001 [11:00:47]line Платежная система: Бакай Банк [11:00:47]line ФМ: 0000000000871778 [11:00:47]line ФД: 178867 [11:00:47]line ФПД: 2952277980881 [11:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110045&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178867&fm=2952277980881&tin=02508201610067®Number=0000000000092561&sum=50036 [11:00:47]written 0, free lines is 4095 [11:00:47]OFD Sender: Processing packet 178867 [packets to send 500, broken 499] [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00178867 [11:00:47]OFD Sender: To server: pG, [11:00:47]CommunicateWithHost lk.salyk.kg:30040 [11:00:47]ConnectInit lk.salyk.kg [11:00:47]Write to MH i2c: 01 00 00 A6 00 A6 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 F0 0C A9 [11:00:47]RasterBufferAndPrint [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]written 0, free lines is 3330 [11:00:47]MH_Cut [11:00:47]Write to MH i2c: D1 01 00 AD 00 01 7F [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 AD 00 00 7E [11:00:47]Write to MH i2c: 01 00 00 AE 00 AE [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:48]*** Cut start [11:00:48]*** Partial cut [11:00:48]*** CUTSNS_PIN = 1 [11:00:48]*** CUTSNS_PIN = 0 [11:00:48]*** Brake cut motor [11:00:48]Read from MH i2c: 01 [11:00:48]MH_I2C_Read... [11:00:48]*** Stop cut motor [11:00:48]*** Cut end [11:00:48]Read from MH i2c: 01 07 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [11:00:48]process_action close_receipt done [11:00:48]requested_data is exist [11:00:48]produce_requested_data [11:00:48]requested_item fm.sn is exist - process it [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 11 00 00 [11:00:48]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:48]Read from MH i2c: E2 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 17 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [11:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:00:48]wFMCommunicate OK [11:00:48]requested_item fd.num is exist - process it [11:00:48]SAM_PROTO_GetFieldsCounters [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 13 00 00 [11:00:48]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 62 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 62 00 B0 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B3 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B3 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:49]wFMCommunicate OK [11:00:49]SAM_PROTO_GetFieldsCounters done [11:00:49]requested_item shift.num is exist - process it [11:00:49]requested_item shift.opened is exist - process it [11:00:49]req_shift_opened [11:00:49]FM_GetShiftState [11:00:49]SAM_PROTO_GetShiftState [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 13 01 00 [11:00:49]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [11:00:49]Connected sock=10 [11:00: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 37 37 38 0F 01 00 00 66 F0 07 01 B3 BF 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:49]00 Write i2c OK [11:00:49]F2 MH_I2C_Read... [11:00:49]03 Read from MH i2c: 01 E2 00 [11:00:49]01 MH_I2C_Read... [11:00:49]F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 Read from MH i2c: 26 E2 00 EF 0E 03 00 0F [11:00:49]00 MH_I2C_Read... [11:00:49]F6 03 01 Read from MH i2c: 00 E2 01 0E F7 00 03 B1 06 00 00 00 BB 09 01 00 00 01 00 5F 00 24 00 C9 EE 66 03 00 0F 00 00 F2 00 03 00 01 90 00 00 01 EC F3 [11:00:49]03 RAPDU: 06 09 00 00 C2 01 14 5F 00 24 00 C9 00 66 00 00 07 00 04 00 06 00 00 90 00 00 00 00 [11:00:49]00 wFMCommunicate OK [11:00:49]00 SAM_PROTO_GetShiftState done [11:00:49]00 FM_GetShiftState done [11:00:49]39 req_shift_opened done [11:00:49]04 requested_item shift.open_date is exist - process it [11:00:49]06 req_shift_open_date [11:00:49]00 req_shift_open_date done [11:00:49]74 produce_requested_data done [11:00:49]C3 produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178867,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:00:49]00 process_action_free close_receipt [11:00:49]00 json_value_free [11:00:49]00 json_value_free done [11:00:49]00 process_json_proto returns [11:00:49]1F 04 Send response to host [11:00:49]02 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178867,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:00:49]00 free response buf [11:00:49]01 execute_script done [11:00:49]00 execute_script returns [11:00:49]12 free content buf [11:00:49]04 Sock 6.Close socket [11:00:49]04 Sock 6.Thread stoped [11:00:49]00 5D 00 00 00 F4 03 04 00 5D BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 BA 02 00 35 04 06 00 02 AF 61 7A F6 D1 FF C7 F6 E4 F7 02 20 42 [11:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 BA B3 47 00 6D 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 37 37 38 10 04 04 00 B3 BA 02 00 F4 03 04 00 05 69 C9 66 B6 04 01 00 00 6E 09 AD 82 DE E7 4D 42 [11:00:50]CommunicateWithHost err = 0 [11:00:50]CheckOFDResponse [11:00:50]1017 (14) - 77093643461234 [11:00:50]1041 (16) - 0000000000871778 [11:00:50]1040 (4) - 178867 [11:00:50]1012 (4) - 24.08.2024 05:00 [11:00:50]1206 (1) - 0 [11:00:50]OFD Sender: Remove packet 178867 [11:00:50]ProducePacketName [11:00:50]name=ofd_packets/00178867 [11:00:50]NVStorageDeleteData [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:06]recv_with_timeout no data received [11:01:10]OFD Sender: No OFD packet to send [11:01:15]accept exits with 9 [11:01:15]New connection [11:01:15]New thread 3067305316 created [11:01:15]Thread 3067161956 joined [11:01:15]Waiting for new connection... [11:01:15] Sock 9.Parse request [11:01:15]Sock 9.Check first char [11:01:15]Sock 9.First char is OK [11:01:15]request: POST /json_proto HTTP/1.0 [11:01:15]Method: POST [11:01:15]URL: /json_proto [11:01:15]Method is POST - this is cgi request [11:01:15]url: /json_proto [11:01:15]query_string will be loaded in cgi processing [11:01:15]execute_cgi json_proto POST (null) [11:01:15]execute_cgi path=json_proto method=POST [11:01:15]POST find Content-Length [11:01:15]Host: 172.17.44.131:8080 [11:01:15]Content-Length: 667 [11:01:15]Content-Type: application/json [11:01:15] [11:01:15]POST finish read [11:01:15]Found Content-Length = 667 [11:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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:01:15]execute_script... [11:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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:01:15]POST & json_proto [11:01:15]process_json_proto [11:01:15]json parsed OK: [11:01:15]protocol is kg_v1.0 [11:01:15]action value=close_receipt [11:01:15]process_action close_receipt [11:01:15]cmd_close_receipt [11:01:15]MH_GetDate [11:01:15]Write to MH i2c: F0 00 00 B2 00 A1 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 09 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 09 00 B2 00 00 7B BD C9 66 4F 53 BE 66 D7 [11:01:15]GetLastDocTimeStamp 1724497245 [11:01:15]current date 1724497275 [11:01:15]FM_GetShiftState [11:01:15]SAM_PROTO_GetShiftState [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 13 01 00 [11:01:15]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:15]Read from MH i2c: E2 0E 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EE [11:01:15]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:01:15]wFMCommunicate OK [11:01:15]SAM_PROTO_GetShiftState done [11:01:15]FM_GetShiftState done [11:01:15]opened in 1724458079 [11:01:15]opened+sec_in_day 1724544479 [11:01:15]quantity*price = 50017 [11:01:15]sum+1 = 50019 [11:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 94 24.08.2024 11:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178868 ФПД: 154369349994292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110115&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178868&fm=154369349994292&tin=02508201610067®Number=0000000000092561&sum=50000 [11:01:16]StoreToDocumentArchive [11:01:16]shift 471 fd 178868 [11:01:16]save to /storage/0471/doc_00178868 [11:01:16]save last doc name /storage/0471/doc_00178868 to /storage/kkm_last_doc_name [11:01:16]save OK [11:01:16]Clear old archive folders... [11:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=249 [11:01:16]tlvbuf is 011FDCC0 [11:01:16]SAM_PROTO_ClearQueue [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 09 00 00 [11:01:16]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]SAM_PROTO_ClearQueue done [11:01:16]KKMCreateOFDPacket [11:01:16]OFDProtocolAddRootSTLVToBuf [11:01:16]FM_MakeSignedData [11:01:16]FM_MakeSignedData [11:01:16]SAM_PROTO_SignData [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 01 02 [11:01:16]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=255 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 5E 00 00 00 F4 03 04 00 7B BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 BA 02 00 35 04 06 00 8C 65 EA [11:01:16]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 5E 00 00 00 F4 03 04 00 7B BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 BA 02 00 35 04 06 00 8C 65 EA 00 00 41 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=8 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 02 02 03 45 47 34 [11:01:16]Write to MH i2c: E2 0B 00 C3 00 80 0D 02 02 03 00 45 47 34 00 00 03 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 03 02 [11:01:16]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0B 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0B 00 C4 00 00 14 4E 2B 64 DE E3 84 99 90 00 0F [11:01:16]RAPDU: 14 4E 2B 64 DE E3 84 99 90 00 [11:01:16]wFMCommunicate OK [11:01:16]SAM_PROTO_SignData done [11:01:16]FM_MakeSignedData done [11:01:16]CreateOFDProtocolMessage [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 11 00 00 [11:01:16]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 17 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [11:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:01:16]wFMCommunicate OK [11:01:16]CreateOFDProtocolMessage done [11:01:16]OFDSenderStorePacket 178868 [11:01:16]StoreOFDPacket docnum=178868 [11:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 48 51 05 01 53 97 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 5E 00 00 00 F4 03 04 00 7B BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 BA 02 00 35 04 06 00 8C 65 EA 45 47 34 14 4E 2B 64 DE E3 84 99 [11:01:16]CheckFolder [11:01:16]dirname=/storage/ofd_packets [11:01:16]CheckFolder done [11:01:16]ProducePacketName [11:01:16]name=ofd_packets/00178868 [11:01:16]NVStorageSaveData ofd_packets/00178868 [11:01:16]File name is /storage/ofd_packets/00178868 [11:01:16]Write 299 bytes [11:01:16]NVStorageSaveData done [11:01:16]OFDSenderStorePacket done [11:01:16]KKMCreateOFDPacket done [11:01:16]NVStorageSaveData kkm_last_timestamp [11:01:16]File name is /storage/kkm_last_timestamp [11:01:16]Write 4 bytes [11:01:16]NVStorageSaveData done [11:01:16]ExternCall_PrintAddStr [11:01:16]wPrintStart [11:01:16]Write to MH i2c: 01 00 00 C6 00 C6 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [11:01:16]RasterBufferAndPrint [11:01:16]line Счет N : (1)295215 [11:01:16]line ИНН: 02508201610067 [11:01:16]line Контрольно-Кассовый Чек [11:01:16]line ПРОДАЖА [11:01:16]line ТРК (МРК, ГНК) : 51 [11:01:16]line Товар: 2710124130 [11:01:16]line SU-92-К-5 [11:01:16]line 7.270 * 68.80 [11:01:16]line = 500.18 [11:01:16]line НДС 12% НСП 1% [11:01:16]line > о реализуемом товаре [11:01:16]line ОКРУГЛЕНИЕ: -0.18 [11:01:16]line ИТОГО: 500.00 [11:01:16]line Внесено: 500.00 [11:01:16]line СДАЧА: 0.00 [11:01:16]line НСП 1% : 4.43 [11:01:16]line НДС 12% : 53.12 [11:01:16]line Наличными: 500.00 [11:01:16]line Безнал.: 0.00 [11:01:16]line Место: АЗС № 130 "Партнер Нефть" [11:01:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:01:16]line СНО: Общий режим [11:01:16]line Чек 94 24.08.2024 11:01 [11:01:16]line Смена: 471 ФФД: 1.0 [11:01:16]line ЗНМ: 0300000071 [11:01:16]line РНМ: 0000000000092561 [11:01:16]line Версия ККМ: 001 [11:01:16]line ФМ: 0000000000871778 [11:01:16]line ФД: 178868 [11:01:16]line ФПД: 154369349994292 [11:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110115&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178868&fm=154369349994292&tin=02508201610067®Number=0000000000092561&sum=50000 [11:01:16]written 0, free lines is 4095 [11:01:16]OFD Sender: Processing packet 178868 [packets to send 500, broken 499] [11:01:16]ProducePacketName [11:01:16]name=ofd_packets/00178868 [11:01:16]OFD Sender: To server: pG, [11:01:16]CommunicateWithHost lk.salyk.kg:30040 [11:01:16]ConnectInit lk.salyk.kg [11:01:17]Write to MH i2c: 01 00 00 F1 00 F1 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E3 0C E7 [11:01:17]RasterBufferAndPrint [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]written 0, free lines is 3317 [11:01:17]MH_Cut [11:01:17]Write to MH i2c: D1 01 00 F8 00 01 CA [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 01 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 01 00 F8 00 00 C9 [11:01:17]Write to MH i2c: 01 00 00 F9 00 F9 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** Cut start [11:01:17]*** Partial cut [11:01:17]*** CUTSNS_PIN = 1 [11:01:17]*** CUTSNS_PIN = 0 [11:01:18]*** Brake cut motor [11:01:18]Read from MH i2c: 01 [11:01:18]MH_I2C_Read... [11:01:18]*** Stop cut motor [11:01:18]*** Cut end [11:01:18]Read from MH i2c: 01 07 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [11:01:18]process_action close_receipt done [11:01:18]requested_data is exist [11:01:18]produce_requested_data [11:01:18]requested_item fm.sn is exist - process it [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 11 00 00 [11:01:18]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [11:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:01:18]wFMCommunicate OK [11:01:18]requested_item fd.num is exist - process it [11:01:18]SAM_PROTO_GetFieldsCounters [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 13 00 00 [11:01:18]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 62 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 62 00 FB 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B4 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:01: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B4 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetFieldsCounters done [11:01:18]requested_item shift.num is exist - process it [11:01:18]requested_item shift.opened is exist - process it [11:01:18]req_shift_opened [11:01:18]FM_GetShiftState [11:01:18]SAM_PROTO_GetShiftState [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 13 01 00 [11:01:18]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 37 [11:01:18]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetShiftState done [11:01:18]FM_GetShiftState done [11:01:18]req_shift_opened done [11:01:18]requested_item shift.open_date is exist - process it [11:01:18]req_shift_open_date [11:01:18]req_shift_open_date done [11:01:18]produce_requested_data done [11:01:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178868,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:01:18]process_action_free close_receipt [11:01:18]json_value_free [11:01:18]json_value_free done [11:01:18]process_json_proto returns [11:01:18]Send response to host [11:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178868,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:01:18]free response buf [11:01:18]execute_script done [11:01:18]execute_script returns [11:01:18]free content buf [11:01:18]Sock 9.Close socket [11:01:18]Sock 9.Thread stoped [11:01:21]ConnectInit Can't take IP for lk.salyk.kg [11:01:21]CommunicateWithHost connect error [11:01:21]CommunicateWithHost err = -1 [11:01:21]OFD Sender: Server communicate error [11:01:26]OFD Sender: Processing packet 178868 [packets to send 500, broken 499] [11:01:26]ProducePacketName [11:01:26]name=ofd_packets/00178868 [11:01:26]OFD Sender: To server: pG, [11:01:26]CommunicateWithHost lk.salyk.kg:30040 [11:01:26]ConnectInit lk.salyk.kg [11:01:32]recv_with_timeout no data received [11:01:33]Connected sock=9 [11:01: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 37 37 38 0D 01 00 00 48 51 05 01 53 97 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 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 5E 00 00 00 F4 03 04 00 7B BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 BA 02 00 35 04 06 00 8C 65 EA 45 47 34 14 4E 2B 64 DE E3 84 99 [11:01:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 96 6C 47 00 0D 7D 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 37 37 38 10 04 04 00 B4 BA 02 00 F4 03 04 00 31 69 C9 66 B6 04 01 00 00 64 E4 3C 86 86 A9 5D FF [11:01:33]CommunicateWithHost err = 0 [11:01:33]CheckOFDResponse [11:01:33]1017 (14) - 77093643461234 [11:01:33]1041 (16) - 0000000000871778 [11:01:33]1040 (4) - 178868 [11:01:33]1012 (4) - 24.08.2024 05:01 [11:01:33]1206 (1) - 0 [11:01:33]OFD Sender: Remove packet 178868 [11:01:33]ProducePacketName [11:01:33]name=ofd_packets/00178868 [11:01:33]NVStorageDeleteData [11:01:34]OFD Sender: No OFD packet to send [11:01:35]accept exits with 10 [11:01:35]New connection [11:01:35]New thread 3067161956 created [11:01:35]Thread 3067305316 joined [11:01:35]Waiting for new connection... [11:01:35] Sock 10.Parse request [11:01:35]Sock 10.Check first char [11:01:35]Sock 10.First char is OK [11:01:35]request: POST /json_proto HTTP/1.0 [11:01:35]Method: POST [11:01:35]URL: /json_proto [11:01:35]Method is POST - this is cgi request [11:01:35]url: /json_proto [11:01:35]query_string will be loaded in cgi processing [11:01:35]execute_cgi json_proto POST (null) [11:01:35]execute_cgi path=json_proto method=POST [11:01:35]POST find Content-Length [11:01:35]Host: 172.17.44.131:8080 [11:01:35]Content-Length: 679 [11:01:35]Content-Type: application/json [11:01:35] [11:01:35]POST finish read [11:01:35]Found Content-Length = 679 [11:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:01:35]execute_script... [11:01:35]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)295214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:01:35]POST & json_proto [11:01:35]process_json_proto [11:01:35]json parsed OK: [11:01:35]protocol is kg_v1.0 [11:01:35]action value=close_receipt [11:01:35]process_action close_receipt [11:01:35]cmd_close_receipt [11:01:35]MH_GetDate [11:01:35]Write to MH i2c: F0 00 00 FD 00 EC [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 09 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 09 00 FD 00 00 90 BD C9 66 4F 53 BE 66 37 [11:01:35]GetLastDocTimeStamp 1724497275 [11:01:35]current date 1724497296 [11:01:35]FM_GetShiftState [11:01:35]SAM_PROTO_GetShiftState [11:01:35]wFMCommunicate request_size=4 [11:01:35]MH_SAM_APDU [11:01:35]CAPDU: 80 13 01 00 [11:01:35]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:35]Read from MH i2c: E2 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 0E 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 39 [11:01:35]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:01:35]wFMCommunicate OK [11:01:35]SAM_PROTO_GetShiftState done [11:01:35]FM_GetShiftState done [11:01:35]opened in 1724458079 [11:01:35]opened+sec_in_day 1724544479 [11:01:35]quantity*price = 100050 [11:01:35]sum+1 = 100052 [11:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 95 24.08.2024 11:01 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178869 ФПД: 108790831123794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110136&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178869&fm=108790831123794&tin=02508201610067®Number=0000000000092561&sum=100000 [11:01:37]StoreToDocumentArchive [11:01:37]shift 471 fd 178869 [11:01:37]save to /storage/0471/doc_00178869 [11:01:37]save last doc name /storage/0471/doc_00178869 to /storage/kkm_last_doc_name [11:01:37]save OK [11:01:37]Clear old archive folders... [11:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:37]tlvbuf is 011F4300 [11:01:37]SAM_PROTO_ClearQueue [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 09 00 00 [11:01:37]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_ClearQueue done [11:01:37]KKMCreateOFDPacket [11:01:37]OFDProtocolAddRootSTLVToBuf [11:01:37]FM_MakeSignedData [11:01:37]FM_MakeSignedData [11:01:37]SAM_PROTO_SignData [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 01 02 [11:01:37]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=255 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5F 00 00 00 F4 03 04 00 90 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 BA 02 00 35 04 06 00 62 F1 D6 D8 [11:01:37]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5F 00 00 00 F4 03 04 00 90 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 BA 02 00 35 04 06 00 62 F1 D6 D8 00 00 39 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=7 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 02 02 02 0D 52 [11:01:37]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 0D 52 00 00 EC [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 03 02 [11:01:37]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0B 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0B 00 0F 01 00 D0 AE 30 0C 2C 49 EC 02 90 00 A9 [11:01:37]RAPDU: D0 AE 30 0C 2C 49 EC 02 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_SignData done [11:01:37]FM_MakeSignedData done [11:01:37]CreateOFDProtocolMessage [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 11 00 00 [11:01:37]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [11:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:01:37]wFMCommunicate OK [11:01:37]CreateOFDProtocolMessage done [11:01:37]OFDSenderStorePacket 178869 [11:01:37]StoreOFDPacket docnum=178869 [11:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 67 9D 04 01 2F 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5F 00 00 00 F4 03 04 00 90 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 BA 02 00 35 04 06 00 62 F1 D6 D8 0D 52 D0 AE 30 0C 2C 49 EC 02 [11:01:37]CheckFolder [11:01:37]dirname=/storage/ofd_packets [11:01:37]CheckFolder done [11:01:37]ProducePacketName [11:01:37]name=ofd_packets/00178869 [11:01:37]NVStorageSaveData ofd_packets/00178869 [11:01:37]File name is /storage/ofd_packets/00178869 [11:01:37]Write 298 bytes [11:01:37]NVStorageSaveData done [11:01:37]OFDSenderStorePacket done [11:01:37]KKMCreateOFDPacket done [11:01:37]NVStorageSaveData kkm_last_timestamp [11:01:37]File name is /storage/kkm_last_timestamp [11:01:37]Write 4 bytes [11:01:37]NVStorageSaveData done [11:01:37]ExternCall_PrintAddStr [11:01:37]wPrintStart [11:01:37]Write to MH i2c: 01 00 00 11 01 12 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [11:01:37]RasterBufferAndPrint [11:01:37]line Счет N : (1)295214 [11:01:37]line ИНН: 02508201610067 [11:01:37]line Контрольно-Кассовый Чек [11:01:37]line ПРОДАЖА [11:01:37]line ТРК (МРК, ГНК) : 11 [11:01:37]line Товар: 2710194800 [11:01:37]line ДТ-К-5 [11:01:37]line 13.130 * 76.20 [11:01:37]line = 1000.51 [11:01:37]line НДС 12% НСП 1% [11:01:37]line > о реализуемом товаре [11:01:37]line ОКРУГЛЕНИЕ: -0.51 [11:01:37]line ИТОГО: 1000.00 [11:01:37]line Внесено: 1000.00 [11:01:37]line СДАЧА: 0.00 [11:01:37]line НСП 1% : 8.85 [11:01:37]line НДС 12% : 106.25 [11:01:37]line Наличными: 1000.00 [11:01:37]line Безнал.: 0.00 [11:01:37]line Место: АЗС № 130 "Партнер Нефть" [11:01:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:01:37]line СНО: Общий режим [11:01:37]line Чек 95 24.08.2024 11:01 [11:01:37]line Смена: 471 ФФД: 1.0 [11:01:37]line ЗНМ: 0300000071 [11:01:37]line РНМ: 0000000000092561 [11:01:37]line Версия ККМ: 001 [11:01:37]line ФМ: 0000000000871778 [11:01:37]line ФД: 178869 [11:01:37]line ФПД: 108790831123794 [11:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T110136&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178869&fm=108790831123794&tin=02508201610067®Number=0000000000092561&sum=100000 [11:01:37]OFD Sender: Processing packet 178869 [packets to send 500, broken 499] [11:01:37]ProducePacketName [11:01:37]name=ofd_packets/00178869 [11:01:37]OFD Sender: To server: pG, [11:01:37]CommunicateWithHost lk.salyk.kg:30040 [11:01:37]ConnectInit lk.salyk.kg [11:01:37]written 0, free lines is 4095 [11:01:38]Write to MH i2c: 01 00 00 3C 01 3D [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 07 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 E2 0C 32 [11:01:38]RasterBufferAndPrint [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]written 0, free lines is 3322 [11:01:38]MH_Cut [11:01:38]Write to MH i2c: D1 01 00 43 01 01 16 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 01 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 01 00 43 01 00 15 [11:01:38]Write to MH i2c: 01 00 00 44 01 45 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:39]*** Cut start [11:01:39]*** Partial cut [11:01:39]*** CUTSNS_PIN = 1 [11:01:39]*** CUTSNS_PIN = 0 [11:01:39]*** Brake cut motor [11:01:39]Read from MH i2c: 01 [11:01:39]MH_I2C_Read... [11:01:39]*** Stop cut motor [11:01:39]*** Cut end [11:01:39]Read from MH i2c: 01 07 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [11:01:39]process_action close_receipt done [11:01:39]requested_data is exist [11:01:39]produce_requested_data [11:01:39]requested_item fm.sn is exist - process it [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 11 00 00 [11:01:39]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [11:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:01:39]wFMCommunicate OK [11:01:39]requested_item fd.num is exist - process it [11:01:39]SAM_PROTO_GetFieldsCounters [11:01:39]wFMCommunicate request_size=4 [11:01:39]MH_SAM_APDU [11:01:39]CAPDU: 80 13 00 00 [11:01:39]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [11:01:39]Write i2c OK [11:01:39]MH_I2C_Read... [11:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:39]Read from MH i2c: E2 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 62 00 [11:01:39]MH_I2C_Read... [11:01:39]Read from MH i2c: E2 62 00 46 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B5 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B5 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:40]wFMCommunicate OK [11:01:40]SAM_PROTO_GetFieldsCounters done [11:01:40]requested_item shift.num is exist - process it [11:01:40]requested_item shift.opened is exist - process it [11:01:40]req_shift_opened [11:01:40]FM_GetShiftState [11:01:40]SAM_PROTO_GetShiftState [11:01:40]wFMCommunicate request_size=4 [11:01:40]MH_SAM_APDU [11:01:40]CAPDU: 80 13 01 00 [11:01:40]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:40]Read from MH i2c: E2 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 0E 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 83 [11:01:40]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:01:40]wFMCommunicate OK [11:01:40]SAM_PROTO_GetShiftState done [11:01:40]FM_GetShiftState done [11:01:40]req_shift_opened done [11:01:40]requested_item shift.open_date is exist - process it [11:01:40]req_shift_open_date [11:01:40]req_shift_open_date done [11:01:40]produce_requested_data done [11:01:40]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178869,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:01:40]process_action_free close_receipt [11:01:40]json_value_free [11:01:40]json_value_free done [11:01:40]process_json_proto returns [11:01:40]Send response to host [11:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178869,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:01:40]free response buf [11:01:40]execute_script done [11:01:40]execute_script returns [11:01:40]free content buf [11:01:40]Sock 10.Close socket [11:01:40]Sock 10.Thread stoped [11:01:43]recv_with_timeout no data received [11:01:45]Connected sock=11 [11:01: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 37 37 38 0C 01 00 00 67 9D 04 01 2F 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 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 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 81 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 5F 00 00 00 F4 03 04 00 90 BD C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 BA 02 00 35 04 06 00 62 F1 D6 D8 0D 52 D0 AE 30 0C 2C 49 EC 02 [11:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4B E8 47 00 79 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 BA 02 00 F4 03 04 00 3D 69 C9 66 B6 04 01 00 00 9A 06 BF 89 06 3C FB AE [11:01:50]CommunicateWithHost err = 0 [11:01:50]CheckOFDResponse [11:01:50]1017 (14) - 77093643461234 [11:01:50]1041 (16) - 0000000000871778 [11:01:50]1040 (4) - 178869 [11:01:50]1012 (4) - 24.08.2024 05:01 [11:01:50]1206 (1) - 0 [11:01:50]OFD Sender: Remove packet 178869 [11:01:50]ProducePacketName [11:01:50]name=ofd_packets/00178869 [11:01:50]NVStorageDeleteData [11:01:50]OFD Sender: No OFD packet to send [11:01:55]recv_with_timeout no data received [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:07]recv_with_timeout no data received [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:23]recv_with_timeout no data received [11:02:25]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:53]recv_with_timeout no data received [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:11]recv_with_timeout no data received [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:22]recv_with_timeout no data received [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:49]recv_with_timeout no data received [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:22]recv_with_timeout no data received [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:29]recv_with_timeout no data received [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:10:44]ConnectInit Can't connect to host [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]recv_with_timeout no data received [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:14]recv_with_timeout no data received [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:31]recv_with_timeout no data received [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:45]recv_with_timeout no data received [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:25]recv_with_timeout no data received [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:17]recv_with_timeout no data received [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:03]recv_with_timeout no data received [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:01]recv_with_timeout no data received [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:08]recv_with_timeout no data received [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:55]ConnectInit Can't connect to host [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:42]recv_with_timeout no data received [11:29:44]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:27]recv_with_timeout no data received [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:44]recv_with_timeout no data received [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:19]recv_with_timeout no data received [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]recv_with_timeout no data received [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:10]recv_with_timeout no data received [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:05]accept exits with 7 [11:39:05]New connection [11:39:05]New thread 3067305316 created [11:39:05]Thread 3067161956 joined [11:39:05]Waiting for new connection... [11:39:05] Sock 7.Parse request [11:39:05]Sock 7.Check first char [11:39:05]Sock 7.First char is OK [11:39:05]request: POST /json_proto HTTP/1.0 [11:39:05]Method: POST [11:39:05]URL: /json_proto [11:39:05]Method is POST - this is cgi request [11:39:05]url: /json_proto [11:39:05]query_string will be loaded in cgi processing [11:39:05]execute_cgi json_proto POST (null) [11:39:05]execute_cgi path=json_proto method=POST [11:39:05]POST find Content-Length [11:39:05]Host: 172.17.44.131:8080 [11:39:05]Content-Length: 685 [11:39:05]Content-Type: application/json [11:39:05] [11:39:05]POST finish read [11:39:05]Found Content-Length = 685 [11:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 38.030, "sum" : 1422.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1422.00, "payments": [ { "type": 0, "sum" : 1422.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:05]execute_script... [11:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)295237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 38.030, "sum" : 1422.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1422.00, "payments": [ { "type": 0, "sum" : 1422.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:05]POST & json_proto [11:39:05]process_json_proto [11:39:05]json parsed OK: [11:39:05]protocol is kg_v1.0 [11:39:05]action value=close_receipt [11:39:05]process_action close_receipt [11:39:05]cmd_close_receipt [11:39:05]MH_GetDate [11:39:05]Write to MH i2c: F0 00 00 48 01 38 [11:39:05]Write i2c OK [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: F0 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: F0 09 00 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: F0 09 00 48 01 00 5A C6 C9 66 4F 53 BE 66 56 [11:39:05]GetLastDocTimeStamp 1724497296 [11:39:05]current date 1724499546 [11:39:05]FM_GetShiftState [11:39:05]SAM_PROTO_GetShiftState [11:39:05]wFMCommunicate request_size=4 [11:39:05]MH_SAM_APDU [11:39:05]CAPDU: 80 13 01 00 [11:39:05]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [11:39:05]Write i2c OK [11:39:05]MH_I2C_Read... [11:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:05]Read from MH i2c: E2 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: E2 0E 00 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 85 [11:39:05]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:39:05]wFMCommunicate OK [11:39:05]SAM_PROTO_GetShiftState done [11:39:05]FM_GetShiftState done [11:39:05]opened in 1724458079 [11:39:05]opened+sec_in_day 1724544479 [11:39:05]quantity*price = 142232 [11:39:05]sum+1 = 142233 [11:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1422.00 Внесено: 3000.00 СДАЧА: 1578.00 НСП 1% : 12.59 НДС 12% : 151.04 Наличными: 1422.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 96 24.08.2024 11:39 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178870 ФПД: 81307816764261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T113906&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178870&fm=81307816764261&tin=02508201610067®Number=0000000000092561&sum=142200 [11:39:07]StoreToDocumentArchive [11:39:07]shift 471 fd 178870 [11:39:07]save to /storage/0471/doc_00178870 [11:39:07]save last doc name /storage/0471/doc_00178870 to /storage/kkm_last_doc_name [11:39:07]save OK [11:39:07]Clear old archive folders... [11:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:39:07]tlvbuf is 0123AC10 [11:39:07]SAM_PROTO_ClearQueue [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 09 00 00 [11:39:07]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]SAM_PROTO_ClearQueue done [11:39:07]KKMCreateOFDPacket [11:39:07]OFDProtocolAddRootSTLVToBuf [11:39:07]FM_MakeSignedData [11:39:07]FM_MakeSignedData [11:39:07]SAM_PROTO_SignData [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 01 02 [11:39:07]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=255 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E 94 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 2B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 2B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 3B 00 00 00 00 07 04 06 00 78 2B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5A C6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 BA 02 00 35 04 06 00 49 F2 [11:39:07]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E 94 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 2B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 2B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 3B 00 00 00 00 07 04 06 00 78 2B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5A C6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 BA 02 00 35 04 06 00 49 F2 00 00 C8 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=9 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 02 02 04 F3 89 23 65 [11:39:07]Write to MH i2c: E2 0C 00 59 01 80 0D 02 02 04 00 F3 89 23 65 00 00 E0 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 03 02 [11:39:07]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0B 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0B 00 5A 01 00 98 23 87 2E 07 FB E2 0C 90 00 37 [11:39:07]RAPDU: 98 23 87 2E 07 FB E2 0C 90 00 [11:39:07]wFMCommunicate OK [11:39:07]SAM_PROTO_SignData done [11:39:07]FM_MakeSignedData done [11:39:07]CreateOFDProtocolMessage [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 11 00 00 [11:39:07]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 17 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [11:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:39:07]wFMCommunicate OK [11:39:07]CreateOFDProtocolMessage done [11:39:07]OFDSenderStorePacket 178870 [11:39:07]StoreOFDPacket docnum=178870 [11:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 0A CE 06 01 DE 8C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E 94 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 2B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 2B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 3B 00 00 00 00 07 04 06 00 78 2B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5A C6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 BA 02 00 35 04 06 00 49 F2 F3 89 23 65 98 23 87 2E 07 FB E2 0C [11:39:07]CheckFolder [11:39:07]dirname=/storage/ofd_packets [11:39:07]CheckFolder done [11:39:07]ProducePacketName [11:39:07]name=ofd_packets/00178870 [11:39:07]NVStorageSaveData ofd_packets/00178870 [11:39:07]File name is /storage/ofd_packets/00178870 [11:39:07]Write 300 bytes [11:39:07]NVStorageSaveData done [11:39:07]OFDSenderStorePacket done [11:39:07]KKMCreateOFDPacket done [11:39:07]NVStorageSaveData kkm_last_timestamp [11:39:07]File name is /storage/kkm_last_timestamp [11:39:07]Write 4 bytes [11:39:07]NVStorageSaveData done [11:39:07]ExternCall_PrintAddStr [11:39:07]wPrintStart [11:39:07]Write to MH i2c: 01 00 00 5C 01 5D [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [11:39:07]RasterBufferAndPrint [11:39:07]line Счет N : (1)295237 [11:39:07]line ИНН: 02508201610067 [11:39:07]line Контрольно-Кассовый Чек [11:39:07]line ПРОДАЖА [11:39:07]line ТРК (МРК, ГНК) : 81 [11:39:07]line Товар: 2711129700 [11:39:07]line ГАЗ-К-5 [11:39:07]line 38.030 * 37.40 [11:39:07]line = 1422.32 [11:39:07]line НДС 12% НСП 1% [11:39:07]line > о реализуемом товаре [11:39:07]line ОКРУГЛЕНИЕ: -0.32 [11:39:07]line ИТОГО: 1422.00 [11:39:07]line Внесено: 3000.00 [11:39:07]line СДАЧА: 1578.00 [11:39:07]line НСП 1% : 12.59 [11:39:07]line НДС 12% : 151.04 [11:39:07]line Наличными: 1422.00 [11:39:07]line Безнал.: 0.00 [11:39:07]line Место: АЗС № 130 "Партнер Нефть" [11:39:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:39:07]line СНО: Общий режим [11:39:07]line Чек 96 24.08.2024 11:39 [11:39:07]line Смена: 471 ФФД: 1.0 [11:39:07]line ЗНМ: 0300000071 [11:39:07]line РНМ: 0000000000092561 [11:39:07]line Версия ККМ: 001 [11:39:07]line ФМ: 0000000000871778 [11:39:07]line ФД: 178870 [11:39:07]line ФПД: 81307816764261 [11:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T113906&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178870&fm=81307816764261&tin=02508201610067®Number=0000000000092561&sum=142200 [11:39:07]OFD Sender: Processing packet 178870 [packets to send 500, broken 499] [11:39:07]ProducePacketName [11:39:07]name=ofd_packets/00178870 [11:39:07]OFD Sender: To server: pG, [11:39:07]CommunicateWithHost lk.salyk.kg:30040 [11:39:07]ConnectInit lk.salyk.kg [11:39:07]written 0, free lines is 4095 [11:39:08]Write to MH i2c: 01 00 00 87 01 88 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 07 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 E1 0C 7C [11:39:08]RasterBufferAndPrint [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]written 0, free lines is 3303 [11:39:08]MH_Cut [11:39:08]Write to MH i2c: D1 01 00 8E 01 01 61 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 01 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 01 00 8E 01 00 60 [11:39:08]Write to MH i2c: 01 00 00 8F 01 90 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:09]*** Cut start [11:39:09]*** Partial cut [11:39:09]*** CUTSNS_PIN = 1 [11:39:09]*** CUTSNS_PIN = 0 [11:39:09]*** Brake cut motor [11:39:09]Read from MH i2c: 01 [11:39:09]MH_I2C_Read... [11:39:09]*** Stop cut motor [11:39:09]*** Cut end [11:39:09]Read from MH i2c: 01 07 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [11:39:09]process_action close_receipt done [11:39:09]requested_data is exist [11:39:09]produce_requested_data [11:39:09]requested_item fm.sn is exist - process it [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 11 00 00 [11:39:09]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 17 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [11:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:39:09]wFMCommunicate OK [11:39:09]requested_item fd.num is exist - process it [11:39:09]SAM_PROTO_GetFieldsCounters [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 13 00 00 [11:39:09]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 62 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 62 00 91 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [11:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetFieldsCounters done [11:39:09]requested_item shift.num is exist - process it [11:39:09]requested_item shift.opened is exist - process it [11:39:09]req_shift_opened [11:39:09]FM_GetShiftState [11:39:09]SAM_PROTO_GetShiftState [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 13 01 00 [11:39:09]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CE [11:39:09]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetShiftState done [11:39:09]FM_GetShiftState done [11:39:09]req_shift_opened done [11:39:09]requested_item shift.open_date is exist - process it [11:39:09]req_shift_open_date [11:39:09]req_shift_open_date done [11:39:09]produce_requested_data done [11:39:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [11:39:09]process_action_free close_receipt [11:39:09]json_value_free [11:39:09]json_value_free done [11:39:09]process_json_proto returns [11:39:09]Send response to host [11:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [11:39:09]free response buf [11:39:09]execute_script done [11:39:09]execute_script returns [11:39:09]free content buf [11:39:09]Sock 7.Close socket [11:39:09]Sock 7.Thread stoped [11:39:12]recv_with_timeout no data received [11:39:12]ConnectInit Can't take IP for lk.salyk.kg [11:39:12]CommunicateWithHost connect error [11:39:12]CommunicateWithHost err = -1 [11:39:12]OFD Sender: Server communicate error [11:39:17]OFD Sender: Processing packet 178870 [packets to send 500, broken 499] [11:39:17]ProducePacketName [11:39:17]name=ofd_packets/00178870 [11:39:17]OFD Sender: To server: pG, [11:39:17]CommunicateWithHost lk.salyk.kg:30040 [11:39:17]ConnectInit lk.salyk.kg [11:39:20]Connected sock=10 [11:39: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 37 37 38 0E 01 00 00 0A CE 06 01 DE 8C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E 94 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 2B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 2B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 3B 00 00 00 00 07 04 06 00 78 2B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5A C6 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 BA 02 00 35 04 06 00 49 F2 F3 89 23 65 98 23 87 2E 07 FB E2 0C [11:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5C 3F 47 00 CC B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 BA 02 00 F4 03 04 00 0C 72 C9 66 B6 04 01 00 00 B7 84 1E CA B3 C1 05 74 [11:39:20]CommunicateWithHost err = 0 [11:39:20]CheckOFDResponse [11:39:20]1017 (14) - 77093643461234 [11:39:20]1041 (16) - 0000000000871778 [11:39:20]1040 (4) - 178870 [11:39:20]1012 (4) - 24.08.2024 05:39 [11:39:20]1206 (1) - 0 [11:39:20]OFD Sender: Remove packet 178870 [11:39:20]ProducePacketName [11:39:20]name=ofd_packets/00178870 [11:39:20]NVStorageDeleteData [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:41]recv_with_timeout no data received [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:53]recv_with_timeout no data received [11:39:56]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:24]recv_with_timeout no data received [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:42]recv_with_timeout no data received [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:24]recv_with_timeout no data received [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:19]recv_with_timeout no data received [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:38]recv_with_timeout no data received [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:49:58]recv_with_timeout no data received [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:06]recv_with_timeout no data received [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:30]recv_with_timeout no data received [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:16]recv_with_timeout no data received [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]recv_with_timeout no data received [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:12]recv_with_timeout no data received [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:29]recv_with_timeout no data received [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:19]recv_with_timeout no data received [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:05]recv_with_timeout no data received [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:27]recv_with_timeout no data received [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:12]recv_with_timeout no data received [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:35]recv_with_timeout no data received [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:16]recv_with_timeout no data received [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:27]recv_with_timeout no data received [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:07]recv_with_timeout no data received [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:23]recv_with_timeout no data received [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]recv_with_timeout no data received [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:19]recv_with_timeout no data received [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:12]recv_with_timeout no data received [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [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]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [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]*** 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 54000000005725A6 (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: 752182+1723749199=1724501381 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [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 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [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 78 00 80 00 FF FF D6 [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 85 CD C9 66 4F 53 BE 66 46 [12:09:41]Current date/time: 24.08.2024 12:09 [12:09:41]FM_Init [12:09:41]wFMConnect [12:09:41]MH_SAM_On [12:09:41]Write to MH i2c: E0 00 00 08 00 E7 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_init finished! [12:09:41]*** atr: [12:09:41]*** 0F 3B D5 18 FF 81 91 FE [12:09:41]*** 1F C3 80 73 C8 21 10 0A [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]*** 00 00 00 00 00 00 00 00 [12:09:41]Read from MH i2c: E0 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E0 10 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:09:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:09:41]wFMCommunicate request_size=10 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:09:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:09:41]RAPDU: 90 00 [12:09:41]wFMCommunicate OK [12:09:41]wFMCommunicate request_size=4 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 11 00 00 [12:09:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 17 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [12:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:09:41]wFMCommunicate OK [12:09:41]Detected FM SN is 0000000000871778 [12:09:41]Stored FM SN is 0000000000871778 [12:09:41]wFMCommunicate request_size=9 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 16 00 00 04 D9 BA 00 00 [12:09:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:09:41]RAPDU: 90 00 [12:09:41]wFMCommunicate OK [12:09:41]FM PIN OK [12:09:41]wFMCommunicate request_size=8 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 14 04 00 03 02 00 01 [12:09:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:09:41]Read from MH i2c: E2 03 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:09:41]RAPDU: 90 00 [12:09:41]wFMCommunicate OK [12:09:41]wFMCommunicate request_size=13 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:09:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:09:41]RAPDU: 90 00 [12:09:41]wFMCommunicate OK [12:09:41]wFMCommunicate request_size=4 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 11 00 00 [12:09:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:41]Read from MH i2c: E2 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 17 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [12:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:09:41]wFMCommunicate OK [12:09:41]DocumentArchiveInit [12:09:41]Start Httpd... [12:09:41]Httpd thread 3067673956 created [12:09:41]Write to MH i2c: 01 00 00 0F 00 0F [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: 01 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: 01 07 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:09:41]MH Int Process started [12:09:41]Allocated Socket 8 [12:09:41]Bind OK [12:09:41]Listen OK [12:09:41]httpd running on port 8080 [12:09:41]Waiting for new connection... [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]accept exits with 9 [12:09:52]New connection [12:09:52]New thread 3067387236 created [12:09:52]Waiting for new connection... [12:09:52] Sock 9.Parse request [12:09:52]Sock 9.Check first char [12:09:52]Sock 9.First char is OK [12:09:52]request: POST /json_proto HTTP/1.0 [12:09:52]Method: POST [12:09:52]URL: /json_proto [12:09:52]Method is POST - this is cgi request [12:09:52]url: /json_proto [12:09:52]query_string will be loaded in cgi processing [12:09:52]execute_cgi json_proto POST (null) [12:09:52]execute_cgi path=json_proto method=POST [12:09:52]POST find Content-Length [12:09:52]Host: 172.17.44.131:8080 [12:09:52]Content-Length: 215 [12:09:52]Content-Type: application/json [12:09:52] [12:09:52]POST finish read [12:09:52]Found Content-Length = 215 [12:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:52]execute_script... [12:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:52]POST & json_proto [12:09:52]process_json_proto [12:09:52]json parsed OK: [12:09:52]protocol is kg_v1.0 [12:09:52]action value=get_value [12:09:52]process_action get_value [12:09:52]cmd_get_value [12:09:52]process_action get_value done [12:09:52]requested_data is exist [12:09:52]produce_requested_data [12:09:52]requested_item kkm.sn is exist - process it [12:09:52]requested_item kkm.ver is exist - process it [12:09:52]requested_item fm.sn is exist - process it [12:09:52]wFMCommunicate request_size=4 [12:09:52]MH_SAM_APDU [12:09:52]CAPDU: 80 11 00 00 [12:09:52]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:09:52]Write i2c OK [12:09:52]MH_I2C_Read... [12:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:52]OFD Sender: No OFD packet to send [12:09:52]Read from MH i2c: E2 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 17 00 [12:09:52]MH_I2C_Read... [12:09:52]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 37 37 38 90 00 E3 [12:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:09:52]wFMCommunicate OK [12:09:52]requested_item fd.num is exist - process it [12:09:52]SAM_PROTO_GetFieldsCounters [12:09:52]wFMCommunicate request_size=4 [12:09:52]MH_SAM_APDU [12:09:52]CAPDU: 80 13 00 00 [12:09:52]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:09:52]Write i2c OK [12:09:52]MH_I2C_Read... [12:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:52]Read from MH i2c: E2 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 62 00 [12:09:52]MH_I2C_Read... [12:09:52]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:09: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:52]wFMCommunicate OK [12:09:52]SAM_PROTO_GetFieldsCounters done [12:09:52]requested_item shift.num is exist - process it [12:09:52]requested_item shift.opened is exist - process it [12:09:52]req_shift_opened [12:09:52]FM_GetShiftState [12:09:52]SAM_PROTO_GetShiftState [12:09:52]wFMCommunicate request_size=4 [12:09:52]MH_SAM_APDU [12:09:52]CAPDU: 80 13 01 00 [12:09:52]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:09:52]Write i2c OK [12:09:52]MH_I2C_Read... [12:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:52]Read from MH i2c: E2 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 0E 00 [12:09:52]MH_I2C_Read... [12:09:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [12:09:52]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [12:09:52]wFMCommunicate OK [12:09:52]SAM_PROTO_GetShiftState done [12:09:52]FM_GetShiftState done [12:09:52]req_shift_opened done [12:09:52]requested_item shift.open_date is exist - process it [12:09:52]req_shift_open_date [12:09:52]req_shift_open_date done [12:09:52]produce_requested_data done [12:09:52]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [12:09:52]process_action_free get_value [12:09:52]json_value_free [12:09:52]json_value_free done [12:09:52]process_json_proto returns [12:09:52]Send response to host [12:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [12:09:52]free response buf [12:09:52]execute_script done [12:09:52]execute_script returns [12:09:52]free content buf [12:09:52]Sock 9.Close socket [12:09:52]Sock 9.Thread stoped [12:09:52]accept exits with 10 [12:09:52]New connection [12:09:52]New thread 3067243876 created [12:09:52]Thread 3067387236 joined [12:09:52]Waiting for new connection... [12:09:52] Sock 10.Parse request [12:09:52]Sock 10.Check first char [12:09:52]Sock 10.First char is OK [12:09:52]request: POST /json_proto HTTP/1.0 [12:09:52]Method: POST [12:09:52]URL: /json_proto [12:09:52]Method is POST - this is cgi request [12:09:52]url: /json_proto [12:09:52]query_string will be loaded in cgi processing [12:09:52]execute_cgi json_proto POST (null) [12:09:52]execute_cgi path=json_proto method=POST [12:09:52]POST find Content-Length [12:09:52]Host: 172.17.44.131:8080 [12:09:52]Content-Length: 331 [12:09:52]Content-Type: application/json [12:09:52] [12:09:52]POST finish read [12:09:52]Found Content-Length = 331 [12:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:52]execute_script... [12:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:09:52]POST & json_proto [12:09:52]process_json_proto [12:09:52]json parsed OK: [12:09:52]protocol is kg_v1.0 [12:09:52]action value=get_value [12:09:52]process_action get_value [12:09:52]cmd_get_value [12:09:52]process_action get_value done [12:09:52]requested_data is exist [12:09:52]produce_requested_data [12:09:52]requested_item fm.sale.total is exist - process it [12:09:52]SAM_PROTO_GetFMData [12:09:52]wFMCommunicate request_size=4 [12:09:52]MH_SAM_APDU [12:09:52]CAPDU: 80 13 03 00 [12:09:52]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:09:52]Write i2c OK [12:09:52]MH_I2C_Read... [12:09:52]recv_with_timeout no data received [12:09:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:09:53]Read from MH i2c: E2 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 72 [12:09:53]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:09:53]wFMCommunicate OK [12:09:53]wFMCommunicate request_size=4 [12:09:53]MH_SAM_APDU [12:09:53]CAPDU: 80 17 00 00 [12:09:53]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:53]Read from MH i2c: E2 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [12:09:53]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:09:53]wFMCommunicate OK [12:09:53]wFMCommunicate request_size=4 [12:09:53]MH_SAM_APDU [12:09:53]CAPDU: 80 17 00 00 [12:09:53]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:53]Read from MH i2c: E2 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [12:09:53]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:09:53]wFMCommunicate OK [12:09:53]wFMCommunicate request_size=4 [12:09:53]MH_SAM_APDU [12:09:53]CAPDU: 80 17 00 00 [12:09:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:53]Read from MH i2c: E2 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 [12:09:53]MH_I2C_Read... [12:09:53]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 11 [12:09:53]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:09:53]wFMCommunicate OK [12:09:53]wFMCommunicate request_size=4 [12:09:53]MH_SAM_APDU [12:09:53]CAPDU: 80 17 00 00 [12:09:53]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:09:53]Write i2c OK [12:09:53]MH_I2C_Read... [12:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:09:54]Read from MH i2c: E2 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 E3 00 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 E3 00 17 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 76 [12:09:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:09:54]wFMCommunicate OK [12:09:54]SAM_PROTO_GetFMData done [12:09:54]requested_item fm.sale_refund.total is exist - process it [12:09:54]requested_item fm.buy.total is exist - process it [12:09:54]requested_item shift.sale.total is exist - process it [12:09:54]SAM_PROTO_GetShiftData [12:09:54]wFMCommunicate request_size=4 [12:09:54]MH_SAM_APDU [12:09:54]CAPDU: 80 13 02 00 [12:09:54]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:09:54]Write i2c OK [12:09:54]MH_I2C_Read... [12:09:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:09:54]Read from MH i2c: E2 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 FD 00 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A4 [12:09:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:09:54]wFMCommunicate OK [12:09:54]wFMCommunicate request_size=4 [12:09:54]MH_SAM_APDU [12:09:54]CAPDU: 80 17 00 00 [12:09:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:09:54]Write i2c OK [12:09:54]MH_I2C_Read... [12:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:54]Read from MH i2c: E2 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 FD 00 [12:09:54]MH_I2C_Read... [12:09:54]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [12:09:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:09:54]wFMCommunicate OK [12:09:54]wFMCommunicate request_size=4 [12:09:54]MH_SAM_APDU [12:09:54]CAPDU: 80 17 00 00 [12:09:54]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:09:54]Write i2c OK [12:09:54]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 FD 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [12:09:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 17 00 00 [12:09:55]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 FD 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [12:09:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:09:55]wFMCommunicate OK [12:09:55]wFMCommunicate request_size=4 [12:09:55]MH_SAM_APDU [12:09:55]CAPDU: 80 17 00 00 [12:09:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:09:55]Write i2c OK [12:09:55]MH_I2C_Read... [12:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:09:55]Read from MH i2c: E2 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 CC 00 [12:09:55]MH_I2C_Read... [12:09:55]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [12:09:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:09:55]wFMCommunicate OK [12:09:55]SAM_PROTO_GetShiftData done [12:09:55]requested_item shift.sale.total_cash is exist - process it [12:09:55]requested_item shift.sale_refund.total is exist - process it [12:09:55]requested_item shift.sale_refund.total_cash is exist - process it [12:09:55]requested_item shift.buy.total is exist - process it [12:09:55]requested_item shift.buy.total_cash is exist - process it [12:09:55]produce_requested_data done [12:09:55]produce_requested_data return {"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:09:55]process_action_free get_value [12:09:55]json_value_free [12:09:55]json_value_free done [12:09:55]process_json_proto returns [12:09:55]Send response to host [12:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:09:55]free response buf [12:09:55]execute_script done [12:09:55]execute_script returns [12:09:55]free content buf [12:09:55]Sock 10.Close socket [12:09:55]Sock 10.Thread stoped [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:19]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:27]recv_with_timeout no data received [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:40]recv_with_timeout no data received [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:56]recv_with_timeout no data received [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:21]recv_with_timeout no data received [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:41]recv_with_timeout no data received [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:03]recv_with_timeout no data received [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:56]recv_with_timeout no data received [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:11]accept exits with 9 [12:15:11]New connection [12:15:11]New thread 3067387236 created [12:15:11]Thread 3067243876 joined [12:15:11]Waiting for new connection... [12:15:11] Sock 9.Parse request [12:15:11]Sock 9.Check first char [12:15:11]Sock 9.First char is OK [12:15:11]request: POST /json_proto HTTP/1.0 [12:15:11]Method: POST [12:15:11]URL: /json_proto [12:15:11]Method is POST - this is cgi request [12:15:11]url: /json_proto [12:15:11]query_string will be loaded in cgi processing [12:15:11]execute_cgi json_proto POST (null) [12:15:11]execute_cgi path=json_proto method=POST [12:15:11]POST find Content-Length [12:15:11]Host: 172.17.44.131:8080 [12:15:11]Content-Length: 215 [12:15:11]Content-Type: application/json [12:15:11] [12:15:11]POST finish read [12:15:11]Found Content-Length = 215 [12:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:11]execute_script... [12:15:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:11]POST & json_proto [12:15:11]process_json_proto [12:15:11]json parsed OK: [12:15:11]protocol is kg_v1.0 [12:15:11]action value=get_value [12:15:11]process_action get_value [12:15:11]cmd_get_value [12:15:11]process_action get_value done [12:15:11]requested_data is exist [12:15:11]produce_requested_data [12:15:11]requested_item kkm.sn is exist - process it [12:15:11]requested_item kkm.ver is exist - process it [12:15:11]requested_item fm.sn is exist - process it [12:15:11]wFMCommunicate request_size=4 [12:15:11]MH_SAM_APDU [12:15:11]CAPDU: 80 11 00 00 [12:15:11]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [12:15:11]Write i2c OK [12:15:11]MH_I2C_Read... [12:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:11]Read from MH i2c: E2 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 17 00 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F0 [12:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:15:11]wFMCommunicate OK [12:15:11]requested_item fd.num is exist - process it [12:15:11]SAM_PROTO_GetFieldsCounters [12:15:11]wFMCommunicate request_size=4 [12:15:11]MH_SAM_APDU [12:15:11]CAPDU: 80 13 00 00 [12:15:11]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [12:15:11]Write i2c OK [12:15:11]MH_I2C_Read... [12:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:11]Read from MH i2c: E2 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 62 00 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 62 00 1E 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [12:15: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:11]wFMCommunicate OK [12:15:11]SAM_PROTO_GetFieldsCounters done [12:15:11]requested_item shift.num is exist - process it [12:15:11]requested_item shift.opened is exist - process it [12:15:11]req_shift_opened [12:15:11]FM_GetShiftState [12:15:11]SAM_PROTO_GetShiftState [12:15:11]wFMCommunicate request_size=4 [12:15:11]MH_SAM_APDU [12:15:11]CAPDU: 80 13 01 00 [12:15:11]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [12:15:11]Write i2c OK [12:15:11]MH_I2C_Read... [12:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:11]Read from MH i2c: E2 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 0E 00 [12:15:11]MH_I2C_Read... [12:15:11]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 5A [12:15:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [12:15:11]wFMCommunicate OK [12:15:11]SAM_PROTO_GetShiftState done [12:15:11]FM_GetShiftState done [12:15:11]req_shift_opened done [12:15:11]requested_item shift.open_date is exist - process it [12:15:11]req_shift_open_date [12:15:11]req_shift_open_date done [12:15:11]produce_requested_data done [12:15:11]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [12:15:11]process_action_free get_value [12:15:11]json_value_free [12:15:11]json_value_free done [12:15:11]process_json_proto returns [12:15:11]Send response to host [12:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [12:15:11]free response buf [12:15:11]execute_script done [12:15:11]execute_script returns [12:15:11]free content buf [12:15:11]Sock 9.Close socket [12:15:11]Sock 9.Thread stoped [12:15:11]accept exits with 7 [12:15:11]New connection [12:15:11]New thread 3067243876 created [12:15:11]Thread 3067387236 joined [12:15:11]Waiting for new connection... [12:15:11] Sock 7.Parse request [12:15:11]Sock 7.Check first char [12:15:11]Sock 7.First char is OK [12:15:11]request: POST /json_proto HTTP/1.0 [12:15:11]Method: POST [12:15:11]URL: /json_proto [12:15:11]Method is POST - this is cgi request [12:15:11]url: /json_proto [12:15:11]query_string will be loaded in cgi processing [12:15:11]execute_cgi json_proto POST (null) [12:15:11]execute_cgi path=json_proto method=POST [12:15:11]POST find Content-Length [12:15:11]Host: 172.17.44.131:8080 [12:15:11]Content-Length: 331 [12:15:11]Content-Type: application/json [12:15:11] [12:15:11]POST finish read [12:15:11]Found Content-Length = 331 [12:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:11]execute_script... [12:15:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:11]POST & json_proto [12:15:11]process_json_proto [12:15:11]json parsed OK: [12:15:11]protocol is kg_v1.0 [12:15:11]action value=get_value [12:15:11]process_action get_value [12:15:11]cmd_get_value [12:15:11]process_action get_value done [12:15:11]requested_data is exist [12:15:11]produce_requested_data [12:15:11]requested_item fm.sale.total is exist - process it [12:15:11]SAM_PROTO_GetFMData [12:15:11]wFMCommunicate request_size=4 [12:15:11]MH_SAM_APDU [12:15:11]CAPDU: 80 13 03 00 [12:15:11]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [12:15:11]Write i2c OK [12:15:11]MH_I2C_Read... [12:15:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:15:12]Read from MH i2c: E2 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 20 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 7F [12:15:12]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:15:12]wFMCommunicate OK [12:15:12]wFMCommunicate request_size=4 [12:15:12]MH_SAM_APDU [12:15:12]CAPDU: 80 17 00 00 [12:15:12]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [12:15:12]Write i2c OK [12:15:12]MH_I2C_Read... [12:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:12]Read from MH i2c: E2 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 21 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2E [12:15:12]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:12]wFMCommunicate OK [12:15:12]wFMCommunicate request_size=4 [12:15:12]MH_SAM_APDU [12:15:12]CAPDU: 80 17 00 00 [12:15:12]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [12:15:12]Write i2c OK [12:15:12]MH_I2C_Read... [12:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:12]Read from MH i2c: E2 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 [12:15:12]MH_I2C_Read... [12:15:12]Read from MH i2c: E2 FD 00 22 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [12:15:12]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:12]wFMCommunicate OK [12:15:12]wFMCommunicate request_size=4 [12:15:12]MH_SAM_APDU [12:15:12]CAPDU: 80 17 00 00 [12:15:12]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [12:15:12]Write i2c OK [12:15:12]MH_I2C_Read... [12:15:12]OFD Sender: No OFD packet to send [12:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:13]Read from MH i2c: E2 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 FD 00 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 FD 00 23 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1E [12:15:13]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:15:13]wFMCommunicate OK [12:15:13]wFMCommunicate request_size=4 [12:15:13]MH_SAM_APDU [12:15:13]CAPDU: 80 17 00 00 [12:15:13]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [12:15:13]Write i2c OK [12:15:13]MH_I2C_Read... [12:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:15:13]Read from MH i2c: E2 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 E3 00 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 E3 00 24 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 83 [12:15:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:13]wFMCommunicate OK [12:15:13]SAM_PROTO_GetFMData done [12:15:13]requested_item fm.sale_refund.total is exist - process it [12:15:13]requested_item fm.buy.total is exist - process it [12:15:13]requested_item shift.sale.total is exist - process it [12:15:13]SAM_PROTO_GetShiftData [12:15:13]wFMCommunicate request_size=4 [12:15:13]MH_SAM_APDU [12:15:13]CAPDU: 80 13 02 00 [12:15:13]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [12:15:13]Write i2c OK [12:15:13]MH_I2C_Read... [12:15:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:15:13]Read from MH i2c: E2 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 FD 00 [12:15:13]MH_I2C_Read... [12:15:13]Read from MH i2c: E2 FD 00 25 00 00 AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B1 [12:15:13]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:13]wFMCommunicate OK [12:15:13]wFMCommunicate request_size=4 [12:15:13]MH_SAM_APDU [12:15:13]CAPDU: 80 17 00 00 [12:15:13]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [12:15:13]Write i2c OK [12:15:13]MH_I2C_Read... [12:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:14]Read from MH i2c: E2 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 26 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [12:15:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:14]wFMCommunicate OK [12:15:14]wFMCommunicate request_size=4 [12:15:14]MH_SAM_APDU [12:15:14]CAPDU: 80 17 00 00 [12:15:14]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [12:15:14]Write i2c OK [12:15:14]MH_I2C_Read... [12:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:14]Read from MH i2c: E2 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 27 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [12:15:14]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:14]wFMCommunicate OK [12:15:14]wFMCommunicate request_size=4 [12:15:14]MH_SAM_APDU [12:15:14]CAPDU: 80 17 00 00 [12:15:14]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [12:15:14]Write i2c OK [12:15:14]MH_I2C_Read... [12:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:14]Read from MH i2c: E2 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 FD 00 28 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 26 [12:15:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:15:14]wFMCommunicate OK [12:15:14]wFMCommunicate request_size=4 [12:15:14]MH_SAM_APDU [12:15:14]CAPDU: 80 17 00 00 [12:15:14]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [12:15:14]Write i2c OK [12:15:14]MH_I2C_Read... [12:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:15:14]Read from MH i2c: E2 [12:15:14]MH_I2C_Read... [12:15:14]Read from MH i2c: E2 CC 00 [12:15:14]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 CC 00 29 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [12:15:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:15]wFMCommunicate OK [12:15:15]SAM_PROTO_GetShiftData done [12:15:15]requested_item shift.sale.total_cash is exist - process it [12:15:15]requested_item shift.sale_refund.total is exist - process it [12:15:15]requested_item shift.sale_refund.total_cash is exist - process it [12:15:15]requested_item shift.buy.total is exist - process it [12:15:15]requested_item shift.buy.total_cash is exist - process it [12:15:15]produce_requested_data done [12:15:15]produce_requested_data return {"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:15:15]process_action_free get_value [12:15:15]json_value_free [12:15:15]json_value_free done [12:15:15]process_json_proto returns [12:15:15]Send response to host [12:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:15:15]free response buf [12:15:15]execute_script done [12:15:15]execute_script returns [12:15:15]free content buf [12:15:15]Sock 7.Close socket [12:15:15]Sock 7.Thread stoped [12:15:15]accept exits with 9 [12:15:15]New connection [12:15:15]New thread 3067387236 created [12:15:15]Thread 3067243876 joined [12:15:15]Waiting for new connection... [12:15:15] Sock 9.Parse request [12:15:15]Sock 9.Check first char [12:15:15]Sock 9.First char is OK [12:15:15]request: POST /json_proto HTTP/1.0 [12:15:15]Method: POST [12:15:15]URL: /json_proto [12:15:15]Method is POST - this is cgi request [12:15:15]url: /json_proto [12:15:15]query_string will be loaded in cgi processing [12:15:15]execute_cgi json_proto POST (null) [12:15:15]execute_cgi path=json_proto method=POST [12:15:15]POST find Content-Length [12:15:15]Host: 172.17.44.131:8080 [12:15:15]Content-Length: 331 [12:15:15]Content-Type: application/json [12:15:15] [12:15:15]POST finish read [12:15:15]Found Content-Length = 331 [12:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:15]execute_script... [12:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:15]POST & json_proto [12:15:15]process_json_proto [12:15:15]json parsed OK: [12:15:15]protocol is kg_v1.0 [12:15:15]action value=get_value [12:15:15]process_action get_value [12:15:15]cmd_get_value [12:15:15]process_action get_value done [12:15:15]requested_data is exist [12:15:15]produce_requested_data [12:15:15]requested_item fm.sale.total is exist - process it [12:15:15]SAM_PROTO_GetFMData [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 13 03 00 [12:15:15]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 FD 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 FD 00 2A 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 89 [12:15:15]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:15:15]wFMCommunicate OK [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 17 00 00 [12:15:15]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:15]Read from MH i2c: E2 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 FD 00 [12:15:15]MH_I2C_Read... [12:15:15]Read from MH i2c: E2 FD 00 2B 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 38 [12:15:15]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:15]wFMCommunicate OK [12:15:15]wFMCommunicate request_size=4 [12:15:15]MH_SAM_APDU [12:15:15]CAPDU: 80 17 00 00 [12:15:15]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [12:15:15]Write i2c OK [12:15:15]MH_I2C_Read... [12:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:16]Read from MH i2c: E2 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 FD 00 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 FD 00 2C 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [12:15:16]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:16]wFMCommunicate OK [12:15:16]wFMCommunicate request_size=4 [12:15:16]MH_SAM_APDU [12:15:16]CAPDU: 80 17 00 00 [12:15:16]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [12:15:16]Write i2c OK [12:15:16]MH_I2C_Read... [12:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:16]Read from MH i2c: E2 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 FD 00 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 FD 00 2D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 28 [12:15:16]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:15:16]wFMCommunicate OK [12:15:16]wFMCommunicate request_size=4 [12:15:16]MH_SAM_APDU [12:15:16]CAPDU: 80 17 00 00 [12:15:16]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [12:15:16]Write i2c OK [12:15:16]MH_I2C_Read... [12:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:15:16]Read from MH i2c: E2 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 E3 00 [12:15:16]MH_I2C_Read... [12:15:16]Read from MH i2c: E2 E3 00 2E 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 8D [12:15:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:17]wFMCommunicate OK [12:15:17]SAM_PROTO_GetFMData done [12:15:17]requested_item fm.sale_refund.total is exist - process it [12:15:17]requested_item fm.buy.total is exist - process it [12:15:17]requested_item shift.sale.total is exist - process it [12:15:17]SAM_PROTO_GetShiftData [12:15:17]wFMCommunicate request_size=4 [12:15:17]MH_SAM_APDU [12:15:17]CAPDU: 80 13 02 00 [12:15:17]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [12:15:17]Write i2c OK [12:15:17]MH_I2C_Read... [12:15:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:15:17]Read from MH i2c: E2 [12:15:17]MH_I2C_Read... [12:15:17]Read from MH i2c: E2 FD 00 [12:15:17]MH_I2C_Read... [12:15:17]Read from MH i2c: E2 FD 00 2F 00 00 AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BB [12:15:17]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:17]wFMCommunicate OK [12:15:17]wFMCommunicate request_size=4 [12:15:17]MH_SAM_APDU [12:15:17]CAPDU: 80 17 00 00 [12:15:17]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [12:15:17]Write i2c OK [12:15:17]MH_I2C_Read... [12:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:17]Read from MH i2c: E2 [12:15:17]MH_I2C_Read... [12:15:17]Read from MH i2c: E2 FD 00 [12:15:17]MH_I2C_Read... [12:15:17]Read from MH i2c: E2 FD 00 30 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [12:15:17]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:18]wFMCommunicate OK [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 17 00 00 [12:15:18]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]OFD Sender: No OFD packet to send [12:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 FD 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 FD 00 31 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [12:15:18]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:18]wFMCommunicate OK [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 17 00 00 [12:15:18]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 FD 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 FD 00 32 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 30 [12:15:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:15:18]wFMCommunicate OK [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 17 00 00 [12:15:18]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:15:19]Read from MH i2c: E2 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 CC 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 CC 00 33 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [12:15:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:19]wFMCommunicate OK [12:15:19]SAM_PROTO_GetShiftData done [12:15:19]requested_item shift.sale.total_cash is exist - process it [12:15:19]requested_item shift.sale_refund.total is exist - process it [12:15:19]requested_item shift.sale_refund.total_cash is exist - process it [12:15:19]requested_item shift.buy.total is exist - process it [12:15:19]requested_item shift.buy.total_cash is exist - process it [12:15:19]produce_requested_data done [12:15:19]produce_requested_data return {"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:15:19]process_action_free get_value [12:15:19]json_value_free [12:15:19]json_value_free done [12:15:19]process_json_proto returns [12:15:19]Send response to host [12:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:15:19]free response buf [12:15:19]execute_script done [12:15:19]execute_script returns [12:15:19]free content buf [12:15:19]Sock 9.Close socket [12:15:19]Sock 9.Thread stoped [12:15:19]accept exits with 7 [12:15:19]New connection [12:15:19]New thread 3067243876 created [12:15:19]Thread 3067387236 joined [12:15:19]Waiting for new connection... [12:15:19] Sock 7.Parse request [12:15:19]Sock 7.Check first char [12:15:19]Sock 7.First char is OK [12:15:19]request: POST /json_proto HTTP/1.0 [12:15:19]Method: POST [12:15:19]URL: /json_proto [12:15:19]Method is POST - this is cgi request [12:15:19]url: /json_proto [12:15:19]query_string will be loaded in cgi processing [12:15:19]execute_cgi json_proto POST (null) [12:15:19]execute_cgi path=json_proto method=POST [12:15:19]POST find Content-Length [12:15:19]Host: 172.17.44.131:8080 [12:15:19]Content-Length: 275 [12:15:19]Content-Type: application/json [12:15:19] [12:15:19]POST finish read [12:15:19]Found Content-Length = 275 [12:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:19]execute_script... [12:15:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:19]POST & json_proto [12:15:19]process_json_proto [12:15:19]json parsed OK: [12:15:19]protocol is kg_v1.0 [12:15:19]action value=x_report [12:15:19]process_action x_report [12:15:19]cmd_x_report [12:15:19]MH_GetDate [12:15:19]Write to MH i2c: F0 00 00 34 00 23 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 09 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 09 00 34 00 00 D8 CE C9 66 4F 53 BE 66 C7 [12:15:19]GetLastDocTimeStamp 1724499546 [12:15:19]current date 1724501720 [12:15:19]FM_GetShiftState [12:15:19]SAM_PROTO_GetShiftState [12:15:19]wFMCommunicate request_size=4 [12:15:19]MH_SAM_APDU [12:15:19]CAPDU: 80 13 01 00 [12:15:19]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:19]Read from MH i2c: E2 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 0E 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 70 [12:15:19]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [12:15:19]wFMCommunicate OK [12:15:19]SAM_PROTO_GetShiftState done [12:15:19]FM_GetShiftState done [12:15:19]KKMCreateXReportDocument [12:15:19]Load OK [12:15:19]Malloc new data [12:15:19]MH_GetDate [12:15:19]Write to MH i2c: F0 00 00 36 00 25 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 09 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: F0 09 00 36 00 00 D8 CE C9 66 4F 53 BE 66 C9 [12:15:19]Malloc new data [12:15:19]Malloc new data [12:15:19]wFMCommunicate request_size=4 [12:15:19]MH_SAM_APDU [12:15:19]CAPDU: 80 11 00 00 [12:15:19]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:19]E2 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 17 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0A [12:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:15:19]wFMCommunicate OK [12:15:19]SAM_PROTO_GetFieldsCounters [12:15:19]wFMCommunicate request_size=4 [12:15:19]MH_SAM_APDU [12:15:19]CAPDU: 80 13 00 00 [12:15:19]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:19]Read from MH i2c: E2 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 62 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 62 00 38 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:15: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:19]wFMCommunicate OK [12:15:19]SAM_PROTO_GetFieldsCounters done [12:15:19]Malloc new data [12:15:19]Malloc new data [12:15:19]Malloc new data [12:15:19]KKMCreateXReportDocument OK [12:15:19]KKMSetXReportData OK [12:15:19]KKMPrepareXReportFMData [12:15:19]SAM_PROTO_GetShiftData [12:15:19]wFMCommunicate request_size=4 [12:15:19]MH_SAM_APDU [12:15:19]CAPDU: 80 13 02 00 [12:15:19]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:19]recv_with_timeout no data received [12:15:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 FD 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 FD 00 39 00 00 AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C5 [12:15:20]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 17 00 00 [12:15:20]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 FD 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 FD 00 3A 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [12:15:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 17 00 00 [12:15:20]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:21]Read from MH i2c: E2 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: E2 FD 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: E2 FD 00 3B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [12:15:21]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:21]wFMCommunicate OK [12:15:21]wFMCommunicate request_size=4 [12:15:21]MH_SAM_APDU [12:15:21]CAPDU: 80 17 00 00 [12:15:21]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:21]Read from MH i2c: E2 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: E2 FD 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: E2 FD 00 3C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 3A [12:15:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:15:21]wFMCommunicate OK [12:15:21]wFMCommunicate request_size=4 [12:15:21]MH_SAM_APDU [12:15:21]CAPDU: 80 17 00 00 [12:15:21]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 CC 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 CC 00 3D 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [12:15:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetShiftData done [12:15:22]1194 (1195) - счетчики итогов смены [12:15:22] 1134 (4) - 96 - количество чеков со всеми признаками расчетов [12:15:22] 1129 (156) - счетчики операций «приход» [12:15:22] 1135 (4) - 96 - количество чеков по признаку расчетов [12:15:22] 1201 (3) - 134383.29 - общая итоговая сумма в чеках [12:15:22] 1136 (3) - 92872.00 - итоговая сумма в чеках наличными [12:15:22] 1138 (3) - 41511.29 - итоговая сумма в чеках безналичными [12:15:22] 1024 (123) - суммы налогов [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 0% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1006 (12) - суммы НДС [12:15:22] 1010 (1) - 12% - код ставки НДС [12:15:22] 1011 (3) - 14273.46 - сумма НДС по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (12) - суммы НСП [12:15:22] 1014 (1) - 1% - код ставки НСП [12:15:22] 1015 (3) - 1189.38 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 2% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 3% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 5% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1130 (141) - счетчики операций «возврат прихода» [12:15:22] 1135 (4) - 0 - количество чеков по признаку расчетов [12:15:22] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:15:22] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:15:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:15:22] 1024 (117) - суммы налогов [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 0% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 12% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 2% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 3% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 5% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1131 (141) - счетчики операций «расход» [12:15:22] 1135 (4) - 0 - количество чеков по признаку расчетов [12:15:22] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:15:22] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:15:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:15:22] 1024 (117) - суммы налогов [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 0% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 12% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 2% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 3% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 5% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1132 (141) - счетчики операций «возврат расхода» [12:15:22] 1135 (4) - 0 - количество чеков по признаку расчетов [12:15:22] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:15:22] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:15:22] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:15:22] 1024 (117) - суммы налогов [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 0% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1006 (9) - суммы НДС [12:15:22] 1010 (1) - 12% - код ставки НДС [12:15:22] 1011 (0) - 0.00 - сумма НДС по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 2% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 3% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 5% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 0,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1007 (9) - суммы НСП [12:15:22] 1014 (1) - 1,50% - код ставки НСП [12:15:22] 1015 (0) - 0.00 - сумма НСП по ставке [12:15:22] 1133 (588) - - счетчики коррекции - не используются [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1194 (04AA) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1134 (046E) [12:15:22]Malloc new data [12:15:22]Processing tag 1129 (0469) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1135 (046F) [12:15:22]Malloc new data [12:15:22]Processing tag 1201 (04B1) [12:15:22]Malloc new data [12:15:22]Processing tag 1136 (0470) [12:15:22]Malloc new data [12:15:22]Processing tag 1138 (0472) [12:15:22]Malloc new data [12:15:22]Processing tag 1024 (0400) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1006 (03EE) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1010 (03F2) [12:15:22]Malloc new data [12:15:22]Processing tag 1011 (03F3) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1006 (03EE) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1010 (03F2) [12:15:22]Malloc new data [12:15:22]Processing tag 1011 (03F3) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]SetTLVBufToDocument err=0 [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1130 (046A) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1135 (046F) [12:15:22]Malloc new data [12:15:22]Processing tag 1201 (04B1) [12:15:22]Malloc new data [12:15:22]Processing tag 1136 (0470) [12:15:22]Malloc new data [12:15:22]Processing tag 1138 (0472) [12:15:22]Malloc new data [12:15:22]Processing tag 1024 (0400) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1006 (03EE) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1010 (03F2) [12:15:22]Malloc new data [12:15:22]Processing tag 1011 (03F3) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1006 (03EE) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1010 (03F2) [12:15:22]Malloc new data [12:15:22]Processing tag 1011 (03F3) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:22]Malloc new data [12:15:22]SetTLVBufToDocument err=0 [12:15:22]Processing tag 1007 (03EF) [12:15:22]Load OK [12:15:22]SetTLVBufToDocument [12:15:22]Processing tag 1014 (03F6) [12:15:22]Malloc new data [12:15:22]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1131 (046B) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1135 (046F) [12:15:23]Malloc new data [12:15:23]Processing tag 1201 (04B1) [12:15:23]Malloc new data [12:15:23]Processing tag 1136 (0470) [12:15:23]Malloc new data [12:15:23]Processing tag 1138 (0472) [12:15:23]Malloc new data [12:15:23]Processing tag 1024 (0400) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1006 (03EE) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1010 (03F2) [12:15:23]Malloc new data [12:15:23]Processing tag 1011 (03F3) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1006 (03EE) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1010 (03F2) [12:15:23]Malloc new data [12:15:23]Processing tag 1011 (03F3) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1132 (046C) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1135 (046F) [12:15:23]Malloc new data [12:15:23]Processing tag 1201 (04B1) [12:15:23]Malloc new data [12:15:23]Processing tag 1136 (0470) [12:15:23]Malloc new data [12:15:23]Processing tag 1138 (0472) [12:15:23]Malloc new data [12:15:23]Processing tag 1024 (0400) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1006 (03EE) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1010 (03F2) [12:15:23]Malloc new data [12:15:23]Processing tag 1011 (03F3) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1006 (03EE) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1010 (03F2) [12:15:23]Malloc new data [12:15:23]Processing tag 1011 (03F3) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1007 (03EF) [12:15:23]Load OK [12:15:23]SetTLVBufToDocument [12:15:23]Processing tag 1014 (03F6) [12:15:23]Malloc new data [12:15:23]Processing tag 1015 (03F7) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Processing tag 1133 (046D) [12:15:23]Malloc new data [12:15:23]SetTLVBufToDocument err=0 [12:15:23]SetTLVBufToDocument err=0 [12:15:23]Malloc new data [12:15:23]SAM_PROTO_GetFMData [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 13 03 00 [12:15:23]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [12:15:23]OFD Sender: No OFD packet to send [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 FD 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 FD 00 3E 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 9D [12:15:24]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 17 00 00 [12:15:24]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 FD 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 FD 00 3F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4C [12:15:24]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 17 00 00 [12:15:24]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 FD 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 FD 00 40 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [12:15:25]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 17 00 00 [12:15:25]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 FD 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 FD 00 41 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 3C [12:15:25]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 17 00 00 [12:15:25]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 E3 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 E3 00 42 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 A1 [12:15:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_GetFMData done [12:15:26]FM_GetFMData:85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:15:27]oper:6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:15:27]total:9B 59 77 2C 05 [12:15:27]Malloc new data [12:15:27]oper:6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:15:27]total:F8 2F FD 6B [12:15:27]Malloc new data [12:15:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:15:27]total: [12:15:27]Malloc new data [12:15:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:15:27]total: [12:15:27]Malloc new data [12:15:27]KKMPrepareXReportFMData err=0 [12:15:27]Х отчет ИНН: 02508201610067 Кассир: Таалайбеков А. 24.08.2024 12:15 Смена: 266 РНМ: 0000000000092561 ЗНМ: 0300000071 СНО: Общий режим Всего чеков: 96 ИТОГИ ПРИХОД Чеков: 96 Общий итог: 134383.29 Итого наличными: 92872.00 Итого безнал.: 41511.29 НДС 0% : 0.00 НДС 12% : 14273.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1189.38 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 92872.00 НС Приход: 222208557.07 НС Возвр.Прихода: 18117550.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871778 [12:15:27]StoreToDocumentArchive [12:15:27]MH_GetDate [12:15:27]Write to MH i2c: F0 00 00 43 00 32 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 43 00 00 E0 CE C9 66 4F 53 BE 66 DE [12:15:27]shift 266 fd 1724501728 [12:15:27]Create dir for shift 0266 [12:15:27]save to /storage/0266/doc_1724501728 [12:15:27]save last doc name /storage/0266/doc_1724501728 to /storage/kkm_last_doc_name [12:15:27]save OK [12:15:27]Clear old archive folders... [12:15:27]NVStorageSaveData kkm_last_timestamp [12:15:27]File name is /storage/kkm_last_timestamp [12:15:27]Write 4 bytes [12:15:27]NVStorageSaveData done [12:15:27]ExternCall_PrintAddStr [12:15:27]wPrintStart [12:15:27]Write to MH i2c: 01 00 00 44 00 44 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [12:15:27]RasterBufferAndPrint [12:15:27]line Х отчет [12:15:27]line ИНН: 02508201610067 [12:15:27]line Кассир: Таалайбеков А. [12:15:27]line 24.08.2024 12:15 [12:15:27]line Смена: 266 [12:15:27]line РНМ: 0000000000092561 [12:15:27]line ЗНМ: 0300000071 [12:15:27]line СНО: Общий режим [12:15:27]line Всего чеков: 96 [12:15:27]line ИТОГИ ПРИХОД [12:15:27]line Чеков: 96 [12:15:27]line Общий итог: 134383.29 [12:15:27]line Итого наличными: 92872.00 [12:15:27]line Итого безнал.: 41511.29 [12:15:27]line НДС 0% : 0.00 [12:15:27]line НДС 12% : 14273.46 [12:15:27]line НСП 0% : 0.00 [12:15:27]line НСП 1,50% : 0.00 [12:15:27]line НСП 0,50% : 0.00 [12:15:27]line НСП 5% : 0.00 [12:15:27]line НСП 3% : 0.00 [12:15:27]line НСП 2% : 0.00 [12:15:27]line НСП 1% : 1189.38 [12:15:27]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:15:27]line Чеков: 0 [12:15:27]line Общий итог: 0.00 [12:15:27]line Итого наличными: 0.00 [12:15:27]line Итого безнал.: 0.00 [12:15:27]line НДС 0% : 0.00 [12:15:27]line НДС 12% : 0.00 [12:15:27]line НСП 0% : 0.00 [12:15:27]line НСП 1,50% : 0.00 [12:15:27]line НСП 0,50% : 0.00 [12:15:27]line НСП 5% : 0.00 [12:15:27]line НСП 3% : 0.00 [12:15:27]line НСП 2% : 0.00 [12:15:27]line НСП 1% : 0.00 [12:15:27]line ИТОГИ РАСХОД [12:15:27]line Чеков: 0 [12:15:27]line Общий итог: 0.00 [12:15:27]line Итого наличными: 0.00 [12:15:27]line Итого безнал.: 0.00 [12:15:27]line НДС 0% : 0.00 [12:15:27]line НДС 12% : 0.00 [12:15:27]line НСП 0% : 0.00 [12:15:27]line НСП 1,50% : 0.00 [12:15:27]line НСП 0,50% : 0.00 [12:15:27]line НСП 5% : 0.00 [12:15:27]line НСП 3% : 0.00 [12:15:27]line НСП 2% : 0.00 [12:15:27]line НСП 1% : 0.00 [12:15:27]line ИТОГИ ВОЗВРАТ РАСХОДА [12:15:27]line Чеков: 0 [12:15:27]line Общий итог: 0.00 [12:15:27]line Итого наличными: 0.00 [12:15:27]line Итого безнал.: 0.00 [12:15:27]line НДС 0% : 0.00 [12:15:27]line НДС 12% : 0.00 [12:15:27]line НСП 0% : 0.00 [12:15:27]line НСП 1,50% : 0.00 [12:15:27]line НСП 0,50% : 0.00 [12:15:27]line НСП 5% : 0.00 [12:15:27]line НСП 3% : 0.00 [12:15:27]line НСП 2% : 0.00 [12:15:27]line НСП 1% : 0.00 [12:15:27]line Сумма внесений: 0.00 [12:15:27]line Сумма выплат: 0.00 [12:15:27]line Нал. в кассе: 92872.00 [12:15:27]line НС Приход: 222208557.07 [12:15:27]line НС Возвр.Прихода: 18117550.00 [12:15:27]line НС Расход: 0.00 [12:15:27]line НС Возвр.Расхода: 0.00 [12:15:27]line ФМ: 0000000000871778 [12:15:27]written 0, free lines is 4095 [12:15:28]Write to MH i2c: 01 00 00 90 00 90 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: 01 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: 01 07 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 FD 0A 9E [12:15:28]RasterBufferAndPrint [12:15:28]line [12:15:28]line [12:15:28]line [12:15:28]line [12:15:28]line [12:15:28]written 0, free lines is 2849 [12:15:28]MH_Cut [12:15:28]Write to MH i2c: D1 01 00 97 00 01 69 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: D1 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: D1 01 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: D1 01 00 97 00 00 68 [12:15:28]Write to MH i2c: 01 00 00 98 00 98 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]OFD Sender: No OFD packet to send [12:15:29]*** Cut start [12:15:29]*** Partial cut [12:15:29]*** CUTSNS_PIN = 1 [12:15:29]*** CUTSNS_PIN = 0 [12:15:29]*** Brake cut motor [12:15:29]Read from MH i2c: 01 [12:15:29]MH_I2C_Read... [12:15:29]*** Stop cut motor [12:15:29]*** Cut end [12:15:29]Read from MH i2c: 01 07 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [12:15:29]process_action x_report done [12:15:29]requested_data is exist [12:15:29]produce_requested_data [12:15:29]requested_item fd.num is exist - process it [12:15:29]SAM_PROTO_GetFieldsCounters [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 13 00 00 [12:15:29]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 62 00 [12:15:30]MH_I2C_Read... [12:15:30]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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [12:15: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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetFieldsCounters done [12:15:30]requested_item shift.num is exist - process it [12:15:30]requested_item shift.opened is exist - process it [12:15:30]req_shift_opened [12:15:30]FM_GetShiftState [12:15:30]SAM_PROTO_GetShiftState [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 13 01 00 [12:15:30]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D5 [12:15:30]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetShiftState done [12:15:30]FM_GetShiftState done [12:15:30]req_shift_opened done [12:15:30]requested_item shift.open_date is exist - process it [12:15:30]req_shift_open_date [12:15:30]req_shift_open_date done [12:15:30]produce_requested_data done [12:15:30]produce_requested_data return {"fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [12:15:30]process_action_free x_report [12:15:30]json_value_free [12:15:30]json_value_free done [12:15:30]process_json_proto returns [12:15:30]Send response to host [12:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [12:15:30]free response buf [12:15:30]execute_script done [12:15:30]execute_script returns [12:15:30]free content buf [12:15:30]Sock 7.Close socket [12:15:30]Sock 7.Thread stoped [12:15:31]recv_with_timeout no data received [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:42]recv_with_timeout no data received [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:55]accept exits with 9 [12:15:55]New connection [12:15:55]New thread 3067387236 created [12:15:55]Thread 3067243876 joined [12:15:55]Waiting for new connection... [12:15:55] Sock 9.Parse request [12:15:55]Sock 9.Check first char [12:15:55]Sock 9.First char is OK [12:15:55]request: POST /json_proto HTTP/1.0 [12:15:55]Method: POST [12:15:55]URL: /json_proto [12:15:55]Method is POST - this is cgi request [12:15:55]url: /json_proto [12:15:55]query_string will be loaded in cgi processing [12:15:55]execute_cgi json_proto POST (null) [12:15:55]execute_cgi path=json_proto method=POST [12:15:55]POST find Content-Length [12:15:55]Host: 172.17.44.131:8080 [12:15:55]Content-Length: 215 [12:15:55]Content-Type: application/json [12:15:55] [12:15:55]POST finish read [12:15:55]Found Content-Length = 215 [12:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:55]execute_script... [12:15:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:55]POST & json_proto [12:15:55]process_json_proto [12:15:55]json parsed OK: [12:15:55]protocol is kg_v1.0 [12:15:55]action value=get_value [12:15:55]process_action get_value [12:15:55]cmd_get_value [12:15:55]process_action get_value done [12:15:55]requested_data is exist [12:15:55]produce_requested_data [12:15:55]requested_item kkm.sn is exist - process it [12:15:55]requested_item kkm.ver is exist - process it [12:15:55]requested_item fm.sn is exist - process it [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 11 00 00 [12:15:55]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:55]Read from MH i2c: E2 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 17 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6E [12:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:15:55]wFMCommunicate OK [12:15:55]requested_item fd.num is exist - process it [12:15:55]SAM_PROTO_GetFieldsCounters [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 13 00 00 [12:15:55]Write to MH i2c: E2 08 00 9C 00 80 13 00 00 00 00 00 00 18 [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:55]Read from MH i2c: E2 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 62 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 62 00 9C 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 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:55]wFMCommunicate OK [12:15:55]SAM_PROTO_GetFieldsCounters done [12:15:55]requested_item shift.num is exist - process it [12:15:55]requested_item shift.opened is exist - process it [12:15:55]req_shift_opened [12:15:55]FM_GetShiftState [12:15:55]SAM_PROTO_GetShiftState [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 13 01 00 [12:15:55]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:56]Read from MH i2c: E2 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 0E 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D8 [12:15:56]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [12:15:56]wFMCommunicate OK [12:15:56]SAM_PROTO_GetShiftState done [12:15:56]FM_GetShiftState done [12:15:56]req_shift_opened done [12:15:56]requested_item shift.open_date is exist - process it [12:15:56]req_shift_open_date [12:15:56]req_shift_open_date done [12:15:56]produce_requested_data done [12:15:56]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [12:15:56]process_action_free get_value [12:15:56]json_value_free [12:15:56]json_value_free done [12:15:56]process_json_proto returns [12:15:56]Send response to host [12:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178870,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [12:15:56]free response buf [12:15:56]execute_script done [12:15:56]execute_script returns [12:15:56]free content buf [12:15:56]Sock 9.Close socket [12:15:56]Sock 9.Thread stoped [12:15:56]accept exits with 10 [12:15:56]New connection [12:15:56]New thread 3067243876 created [12:15:56]Thread 3067387236 joined [12:15:56]Waiting for new connection... [12:15:56] Sock 10.Parse request [12:15:56]Sock 10.Check first char [12:15:56]Sock 10.First char is OK [12:15:56]request: POST /json_proto HTTP/1.0 [12:15:56]Method: POST [12:15:56]URL: /json_proto [12:15:56]Method is POST - this is cgi request [12:15:56]url: /json_proto [12:15:56]query_string will be loaded in cgi processing [12:15:56]execute_cgi json_proto POST (null) [12:15:56]execute_cgi path=json_proto method=POST [12:15:56]POST find Content-Length [12:15:56]Host: 172.17.44.131:8080 [12:15:56]Content-Length: 331 [12:15:56]Content-Type: application/json [12:15:56] [12:15:56]POST finish read [12:15:56]Found Content-Length = 331 [12:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:56]execute_script... [12:15:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:15:56]POST & json_proto [12:15:56]process_json_proto [12:15:56]json parsed OK: [12:15:56]protocol is kg_v1.0 [12:15:56]action value=get_value [12:15:56]process_action get_value [12:15:56]cmd_get_value [12:15:56]process_action get_value done [12:15:56]requested_data is exist [12:15:56]produce_requested_data [12:15:56]requested_item fm.sale.total is exist - process it [12:15:56]SAM_PROTO_GetFMData [12:15:56]wFMCommunicate request_size=4 [12:15:56]MH_SAM_APDU [12:15:56]CAPDU: 80 13 03 00 [12:15:56]Write to MH i2c: E2 08 00 9E 00 80 13 03 00 00 00 00 00 1D [12:15:56]Write i2c OK [12:15:56]MH_I2C_Read... [12:15:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:15:56]Read from MH i2c: E2 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 FD 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 FD 00 9E 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 FD [12:15:56]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:15:56]wFMCommunicate OK [12:15:56]wFMCommunicate request_size=4 [12:15:56]MH_SAM_APDU [12:15:56]CAPDU: 80 17 00 00 [12:15:56]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [12:15:56]Write i2c OK [12:15:56]MH_I2C_Read... [12:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:57]Read from MH i2c: E2 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 FD 00 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 FD 00 9F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 AC [12:15:57]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:57]wFMCommunicate OK [12:15:57]wFMCommunicate request_size=4 [12:15:57]MH_SAM_APDU [12:15:57]CAPDU: 80 17 00 00 [12:15:57]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [12:15:57]Write i2c OK [12:15:57]MH_I2C_Read... [12:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:57]Read from MH i2c: E2 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 FD 00 [12:15:57]MH_I2C_Read... [12:15:57]Read from MH i2c: E2 FD 00 A0 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [12:15:57]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:15:57]wFMCommunicate OK [12:15:57]wFMCommunicate request_size=4 [12:15:57]MH_SAM_APDU [12:15:57]CAPDU: 80 17 00 00 [12:15:57]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [12:15:57]Write i2c OK [12:15:57]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 [12:15:58]MH_I2C_Read... [12:15:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:15:58]Read from MH i2c: E2 FD 00 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 FD 00 A1 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 9C [12:15:58]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:15:58]wFMCommunicate OK [12:15:58]wFMCommunicate request_size=4 [12:15:58]MH_SAM_APDU [12:15:58]CAPDU: 80 17 00 00 [12:15:58]Write to MH i2c: E2 08 00 A2 00 80 17 00 00 00 00 00 00 22 [12:15:58]Write i2c OK [12:15:58]MH_I2C_Read... [12:15:58]OFD Sender: No OFD packet to send [12:15:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:15:58]Read from MH i2c: E2 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 E3 00 [12:15:58]MH_I2C_Read... [12:15:58]Read from MH i2c: E2 E3 00 A2 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 01 [12:15:58]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:15:59]wFMCommunicate OK [12:15:59]SAM_PROTO_GetFMData done [12:15:59]requested_item fm.sale_refund.total is exist - process it [12:15:59]requested_item fm.buy.total is exist - process it [12:15:59]requested_item shift.sale.total is exist - process it [12:15:59]SAM_PROTO_GetShiftData [12:15:59]wFMCommunicate request_size=4 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 13 02 00 [12:15:59]Write to MH i2c: E2 08 00 A3 00 80 13 02 00 00 00 00 00 21 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:15:59]recv_with_timeout no data received [12:15:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:15:59]Read from MH i2c: E2 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 FD 00 [12:15:59]MH_I2C_Read... [12:15:59]Read from MH i2c: E2 FD 00 A3 00 00 AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2F [12:15:59]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 60 00 00 00 69 04 9C 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:15:59]wFMCommunicate OK [12:15:59]wFMCommunicate request_size=4 [12:15:59]MH_SAM_APDU [12:15:59]CAPDU: 80 17 00 00 [12:15:59]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [12:15:59]Write i2c OK [12:15:59]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 FD 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 FD 00 A4 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [12:16:00]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:00]wFMCommunicate OK [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 17 00 00 [12:16:00]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 FD 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 FD 00 A5 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [12:16:00]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 17 00 00 [12:16:01]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 FD 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 FD 00 A6 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 A4 [12:16:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 17 00 00 [12:16:01]Write to MH i2c: E2 08 00 A7 00 80 17 00 00 00 00 00 00 27 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 CC 00 [12:16:01]MH_I2C_Read... [12:16:02]Read from MH i2c: E2 CC 00 A7 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:16:15] 1014 (1) - 0,50% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 1,50% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1132 (141) - счетчики операций «возврат расхода» [12:16:15] 1135 (4) - 0 - количество чеков по признаку расчетов [12:16:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:16:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:16:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:16:15] 1024 (117) - суммы налогов [12:16:15] 1006 (9) - суммы НДС [12:16:15] 1010 (1) - 0% - код ставки НДС [12:16:15] 1011 (0) - 0.00 - сумма НДС по ставке [12:16:15] 1006 (9) - суммы НДС [12:16:15] 1010 (1) - 12% - код ставки НДС [12:16:15] 1011 (0) - 0.00 - сумма НДС по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 0% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 1% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 2% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 3% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 5% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 0,50% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1007 (9) - суммы НСП [12:16:15] 1014 (1) - 1,50% - код ставки НСП [12:16:15] 1015 (0) - 0.00 - сумма НСП по ставке [12:16:15] 1133 (588) - - счетчики коррекции - не используются [12:16:15]1077 (6) - 218190392786436 - ФПД [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1209 (04B9) [12:16:15]Malloc new data [12:16:15]Processing tag 1041 (0411) [12:16:15]Processing tag 1040 (0410) [12:16:15]Malloc new data [12:16:15]Processing tag 1038 (040E) [12:16:15]Malloc new data [12:16:15]Processing tag 1118 (045E) [12:16:15]Malloc new data [12:16:15]Processing tag 1111 (0457) [12:16:15]Malloc new data [12:16:15]Processing tag 1194 (04AA) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1134 (046E) [12:16:15]Malloc new data [12:16:15]Processing tag 1129 (0469) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1135 (046F) [12:16:15]Malloc new data [12:16:15]Processing tag 1201 (04B1) [12:16:15]Malloc new data [12:16:15]Processing tag 1136 (0470) [12:16:15]Malloc new data [12:16:15]Processing tag 1138 (0472) [12:16:15]Malloc new data [12:16:15]Processing tag 1024 (0400) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1130 (046A) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1135 (046F) [12:16:15]Malloc new data [12:16:15]Processing tag 1201 (04B1) [12:16:15]Malloc new data [12:16:15]Processing tag 1136 (0470) [12:16:15]Malloc new data [12:16:15]Processing tag 1138 (0472) [12:16:15]Malloc new data [12:16:15]Processing tag 1024 (0400) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1131 (046B) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1135 (046F) [12:16:15]Malloc new data [12:16:15]Processing tag 1201 (04B1) [12:16:15]Malloc new data [12:16:15]Processing tag 1136 (0470) [12:16:15]Malloc new data [12:16:15]Processing tag 1138 (0472) [12:16:15]Malloc new data [12:16:15]Processing tag 1024 (0400) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1132 (046C) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1135 (046F) [12:16:15]Malloc new data [12:16:15]Processing tag 1201 (04B1) [12:16:15]Malloc new data [12:16:15]Processing tag 1136 (0470) [12:16:15]Malloc new data [12:16:15]Processing tag 1138 (0472) [12:16:15]Malloc new data [12:16:15]Processing tag 1024 (0400) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1006 (03EE) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1010 (03F2) [12:16:15]Malloc new data [12:16:15]Processing tag 1011 (03F3) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1007 (03EF) [12:16:15]Load OK [12:16:15]SetTLVBufToDocument [12:16:15]Processing tag 1014 (03F6) [12:16:15]Malloc new data [12:16:15]Processing tag 1015 (03F7) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1133 (046D) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Processing tag 1077 (0435) [12:16:15]Malloc new data [12:16:15]SetTLVBufToDocument err=0 [12:16:15]Malloc new data [12:16:15]SAM_PROTO_GetFMData [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 13 03 00 [12:16:15]Write to MH i2c: E2 08 00 C0 00 80 13 03 00 00 00 00 00 3F [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 C0 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 1F [12:16:16]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:16:16]wFMCommunicate OK [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 17 00 00 [12:16:16]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 FD 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 FD 00 C1 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CE [12:16:17]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:16:17]wFMCommunicate OK [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 17 00 00 [12:16:17]Write to MH i2c: E2 08 00 C2 00 80 17 00 00 00 00 00 00 42 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 FD 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 FD 00 C2 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [12:16:18]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:18]wFMCommunicate OK [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 17 00 00 [12:16:18]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 FD 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 FD 00 C3 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [12:16:19]F6 03 01 00 00 F7 03 00 90 00 BE [12:16:19]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:16:19]wFMCommunicate OK [12:16:19]wFMCommunicate request_size=4 [12:16:19]MH_SAM_APDU [12:16:19]CAPDU: 80 17 00 00 [12:16:19]Write to MH i2c: E2 08 00 C4 00 80 17 00 00 00 00 00 00 44 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 E3 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 E3 00 C4 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 23 [12:16:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:16:20]wFMCommunicate OK [12:16:20]SAM_PROTO_GetFMData done [12:16:20]Malloc new data [12:16:20]Malloc new data [12:16:20]Malloc new data [12:16:20]Malloc new data [12:16:20]KKMLoadAndSignCloseShiftData err=0 [12:16:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таалайбеков А. 24.08.2024 12:16 Смена: 471 РНМ: 0000000000092561 ЗНМ: 0300000071 СНО: Общий режим Чеков за смену: 96 ФД за смену: 98 Всего чеков: 96 ИТОГИ ПРИХОД Чеков: 96 Общий итог: 134383.29 Итого наличными: 92872.00 Итого безнал.: 41511.29 НДС 0% : 0.00 НДС 12% : 14273.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1189.38 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 92872.00 НС Приход: 222208557.07 НС Возвр.Прихода: 18117550.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 178871 ФМ: 0000000000871778 ФПД: 218190392786436 [12:16:20]StoreToDocumentArchive [12:16:20]shift 471 fd 178871 [12:16:20]save to /storage/0471/doc_00178871 [12:16:20]save last doc name /storage/0471/doc_00178871 to /storage/kkm_last_doc_name [12:16:20]save OK [12:16:20]Clear old archive folders... [12:16:20]Remove dir /storage/0266 [12:16:20]opendir ok [12:16:20]file . [12:16:20]file .. [12:16:20]file doc_1724501728 [12:16:20]remove file /storage/0266/doc_1724501728 [12:16:20]remove dir /storage/0266 [12:16:20]NVStorageSaveData kkm_registers [12:16:20]File name is /storage/kkm_registers [12:16:20]Write 24 bytes [12:16:20]NVStorageSaveData done [12:16:20]NVStorageSaveData kkm_registers [12:16:20]File name is /storage/kkm_registers [12:16:20]Write 24 bytes [12:16:20]NVStorageSaveData done [12:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [12:16:20]tlvbuf is 010AE9F0 [12:16:20]SAM_PROTO_ClearQueue [12:16:20]wFMCommunicate request_size=4 [12:16:20]MH_SAM_APDU [12:16:20]CAPDU: 80 09 00 00 [12:16:20]Write to MH i2c: E2 08 00 C5 00 80 09 00 00 00 00 00 00 37 [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:20]Read from MH i2c: E2 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 03 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [12:16:20]RAPDU: 90 00 [12:16:20]wFMCommunicate OK [12:16:20]SAM_PROTO_ClearQueue done [12:16:20]KKMCreateOFDPacket [12:16:20]OFDProtocolAddRootSTLVToBuf [12:16:20]FM_MakeSignedData [12:16:20]FM_MakeSignedData [12:16:20]SAM_PROTO_SignData [12:16:20]wFMCommunicate request_size=4 [12:16:20]MH_SAM_APDU [12:16:20]CAPDU: 80 0D 01 02 [12:16:20]Write to MH i2c: E2 08 00 C6 00 80 0D 01 02 00 00 00 00 3F [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:20]Read from MH i2c: E2 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 03 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [12:16:20]RAPDU: 90 00 [12:16:20]wFMCommunicate OK [12:16:20]wFMCommunicate request_size=255 [12:16:20]MH_SAM_APDU [12:16:20]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 0A CF C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 5E 04 04 00 60 00 00 00 57 04 04 00 62 00 00 00 AA 04 D6 04 6E 04 04 00 60 00 00 00 69 04 A3 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [12:16:20]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 0A CF C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 5E 04 04 00 60 00 00 00 57 04 04 00 62 00 00 00 AA 04 D6 04 6E 04 04 00 60 00 00 00 69 04 A3 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 99 [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [12:16:21]RAPDU: 90 00 [12:16:21]wFMCommunicate OK [12:16:21]wFMCommunicate request_size=255 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [12:16:21]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 29 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]wFMCommunicate request_size=255 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 02 02 FA F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 [12:16:22]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 00 06 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]wFMCommunicate request_size=255 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 [12:16:23]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 09 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:23]Read from MH i2c: E2 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [12:16:23]RAPDU: 90 00 [12:16:23]wFMCommunicate OK [12:16:23]wFMCommunicate request_size=255 [12:16:23]MH_SAM_APDU [12:16:23]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [12:16:24]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 OFD Sender: No OFD packet to send [12:16:24]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 00 CB [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [12:16:24]RAPDU: 90 00 [12:16:24]wFMCommunicate OK [12:16:24]wFMCommunicate request_size=145 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B7 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 C6 71 68 DA FE 04 [12:16:24]Write to MH i2c: E2 94 00 CC 00 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B7 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 C6 71 68 DA FE 04 00 00 82 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 03 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [12:16:25]RAPDU: 90 00 [12:16:25]wFMCommunicate OK [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 0D 03 02 [12:16:25]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 08 [12:16:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:16:02]wFMCommunicate OK [12:16:02]SAM_PROTO_GetShiftData done [12:16:02]requested_item shift.sale.total_cash is exist - process it [12:16:02]requested_item shift.sale_refund.total is exist - process it [12:16:02]requested_item shift.sale_refund.total_cash is exist - process it [12:16:02]requested_item shift.buy.total is exist - process it [12:16:02]requested_item shift.buy.total_cash is exist - process it [12:16:02]produce_requested_data done [12:16:02]produce_requested_data return {"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:16:02]process_action_free get_value [12:16:02]json_value_free [12:16:02]json_value_free done [12:16:02]process_json_proto returns [12:16:02]Send response to host [12:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222208557.07,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":134383.29,"shift.sale.total_cash":92872.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:16:02]free response buf [12:16:02]execute_script done [12:16:02]execute_script returns [12:16:02]free content buf [12:16:02]Sock 10.Close socket [12:16:02]Sock 10.Thread stoped [12:16:02]accept exits with 9 [12:16:02]New connection [12:16:02]New thread 3067387236 created [12:16:02]Thread 3067243876 joined [12:16:02]Waiting for new connection... [12:16:02] Sock 9.Parse request [12:16:02]Sock 9.Check first char [12:16:02]Sock 9.First char is OK [12:16:02]request: POST /json_proto HTTP/1.0 [12:16:02]Method: POST [12:16:02]URL: /json_proto [12:16:02]Method is POST - this is cgi request [12:16:02]url: /json_proto [12:16:02]query_string will be loaded in cgi processing [12:16:02]execute_cgi json_proto POST (null) [12:16:02]execute_cgi path=json_proto method=POST [12:16:02]POST find Content-Length [12:16:02]Host: 172.17.44.131:8080 [12:16:02]Content-Length: 331 [12:16:02]Content-Type: application/json [12:16:02] [12:16:02]POST finish read [12:16:02]Found Content-Length = 331 [12:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:02]execute_script... [12:16:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:02]POST & json_proto [12:16:02]process_json_proto [12:16:02]json parsed OK: [12:16:02]protocol is kg_v1.0 [12:16:02]action value=get_value [12:16:02]process_action get_value [12:16:02]cmd_get_value [12:16:02]process_action get_value done [12:16:02]requested_data is exist [12:16:02]produce_requested_data [12:16:02]requested_item fm.sale.total is exist - process it [12:16:02]SAM_PROTO_GetFMData [12:16:02]wFMCommunicate request_size=4 [12:16:02]MH_SAM_APDU [12:16:02]CAPDU: 80 13 03 00 [12:16:02]Write to MH i2c: E2 08 00 A8 00 80 13 03 00 00 00 00 00 27 [12:16:02]Write i2c OK [12:16:02]MH_I2C_Read... [12:16:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:16:02]Read from MH i2c: E2 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: E2 FD 00 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: E2 FD 00 A8 00 00 C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 07 [12:16:03]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 08 B7 02 00 69 04 A4 00 6F 04 04 00 71 B5 02 00 B1 04 05 00 9B 59 77 2C 05 70 04 05 00 C7 28 87 15 04 72 04 05 00 D4 30 F0 16 01 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 E9 26 AF 8C 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 DD 10 B9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [12:16:03]wFMCommunicate OK [12:16:03]wFMCommunicate request_size=4 [12:16:03]MH_SAM_APDU [12:16:03]CAPDU: 80 17 00 00 [12:16:03]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [12:16:03]Write i2c OK [12:16:03]MH_I2C_Read... [12:16:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:03]Read from MH i2c: E2 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 FD 00 [12:16:03]MH_I2C_Read... [12:16:03]Read from MH i2c: E2 FD 00 A9 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B6 [12:16:03]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [12:16: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 90 00 [12:16:03]wFMCommunicate OK [12:16:03]wFMCommunicate request_size=4 [12:16:03]MH_SAM_APDU [12:16:03]CAPDU: 80 17 00 00 [12:16:03]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [12:16:04]Write i2c OK [12:16:04]MH_I2C_Read... [12:16:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:04]Read from MH i2c: E2 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 FD 00 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 FD 00 AA 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [12:16:04]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:16:25]Read from MH i2c: E2 0B 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 0B 00 CD 00 00 1B C0 8A 8E 17 EB 72 B8 90 00 68 [12:16:25]RAPDU: 1B C0 8A 8E 17 EB 72 B8 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_SignData done [12:16:25]FM_MakeSignedData done [12:16:25]CreateOFDProtocolMessage [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 11 00 00 [12:16:25]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A1 [12:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:16:25]wFMCommunicate OK [12:16:25]CreateOFDProtocolMessage done [12:16:25]OFDSenderStorePacket 178871 [12:16:25]StoreOFDPacket docnum=178871 [12:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 7E 05 00 00 56 3E 76 05 8F 70 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 0A CF C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 5E 04 04 00 60 00 00 00 57 04 04 00 62 00 00 00 AA 04 D6 04 6E 04 04 00 60 00 00 00 69 04 A3 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 C7 15 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9A D0 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B7 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 C6 71 68 DA FE 04 1B C0 8A 8E 17 EB 72 B8 [12:16:25]CheckFolder [12:16:25]dirname=/storage/ofd_packets [12:16:25]CheckFolder done [12:16:25]ProducePacketName [12:16:25]name=ofd_packets/00178871 [12:16:25]NVStorageSaveData ofd_packets/00178871 [12:16:25]File name is /storage/ofd_packets/00178871 [12:16:25]Write 1436 bytes [12:16:25]NVStorageSaveData done [12:16:25]OFDSenderStorePacket done [12:16:25]KKMCreateOFDPacket done [12:16:25]NVStorageSaveData kkm_last_timestamp [12:16:25]File name is /storage/kkm_last_timestamp [12:16:25]Write 4 bytes [12:16:25]NVStorageSaveData done [12:16:25]ExternCall_PrintAddStr [12:16:25]wPrintStart [12:16:25]Write to MH i2c: 01 00 00 CF 00 CF [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 07 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [12:16:25]RasterBufferAndPrint [12:16:25]line Отчет о закрытии смены [12:16:25]line ФФД: 1.0 [12:16:25]line ИНН: 02508201610067 [12:16:25]line Кассир: Таалайбеков А. [12:16:25]line 24.08.2024 12:16 [12:16:25]line Смена: 471 [12:16:25]line РНМ: 0000000000092561 [12:16:25]line ЗНМ: 0300000071 [12:16:25]line СНО: Общий режим [12:16:25]line Чеков за смену: 96 [12:16:25]line ФД за смену: 98 [12:16:25]line Всего чеков: 96 [12:16:25]line ИТОГИ ПРИХОД [12:16:25]line Чеков: 96 [12:16:25]line Общий итог: 134383.29 [12:16:25]line Итого наличными: 92872.00 [12:16:25]line Итого безнал.: 41511.29 [12:16:25]line НДС 0% : 0.00 [12:16:25]line НДС 12% : 14273.46 [12:16:25]line НСП 0% : 0.00 [12:16:25]line НСП 1,50% : 0.00 [12:16:25]line НСП 0,50% : 0.00 [12:16:25]line НСП 5% : 0.00 [12:16:25]line НСП 3% : 0.00 [12:16:25]line НСП 2% : 0.00 [12:16:25]line НСП 1% : 1189.38 [12:16:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:16:25]line Чеков: 0 [12:16:25]line Общий итог: 0.00 [12:16:25]line Итого наличными: 0.00 [12:16:25]line Итого безнал.: 0.00 [12:16:25]line НДС 0% : 0.00 [12:16:25]line НДС 12% : 0.00 [12:16:25]line НСП 0% : 0.00 [12:16:25]line НСП 1,50% : 0.00 [12:16:25]line НСП 0,50% : 0.00 [12:16:25]line НСП 5% : 0.00 [12:16:25]line НСП 3% : 0.00 [12:16:26]line НСП 2% : 0.00 [12:16:26]line НСП 1% : 0.00 [12:16:26]line ИТОГИ РАСХОД [12:16:26]line Чеков: 0 [12:16:26]line Общий итог: 0.00 [12:16:26]line Итого наличными: 0.00 [12:16:26]line Итого безнал.: 0.00 [12:16:26]line НДС 0% : 0.00 [12:16:26]line НДС 12% : 0.00 [12:16:26]line НСП 0% : 0.00 [12:16:26]line НСП 1,50% : 0.00 [12:16:26]line НСП 0,50% : 0.00 [12:16:26]line НСП 5% : 0.00 [12:16:26]line НСП 3% : 0.00 [12:16:26]line НСП 2% : 0.00 [12:16:26]line НСП 1% : 0.00 [12:16:26]line ИТОГИ ВОЗВРАТ РАСХОДА [12:16:26]line Чеков: 0 [12:16:26]line Общий итог: 0.00 [12:16:26]line Итого наличными: 0.00 [12:16:26]line Итого безнал.: 0.00 [12:16:26]line НДС 0% : 0.00 [12:16:26]line НДС 12% : 0.00 [12:16:26]OFD Sender: Processing packet 178871 [packets to send 500, broken 499] [12:16:26]ProducePacketName [12:16:26]name=ofd_packets/00178871 [12:16:26]OFD Sender: To server: pG, [12:16:26]CommunicateWithHost lk.salyk.kg:30040 [12:16:26]ConnectInit lk.salyk.kg [12:16:26]line НСП 0% : 0.00 [12:16:26]line НСП 1,50% : 0.00 [12:16:26]line НСП 0,50% : 0.00 [12:16:26]line НСП 5% : 0.00 [12:16:26]line НСП 3% : 0.00 [12:16:26]line НСП 2% : 0.00 [12:16:26]line НСП 1% : 0.00 [12:16:26]line Сумма внесений: 0.00 [12:16:26]line Сумма выплат: 0.00 [12:16:26]line Нал. в кассе: 92872.00 [12:16:26]line НС Приход: 222208557.07 [12:16:26]line НС Возвр.Прихода: 18117550.00 [12:16:26]line НС Расход: 0.00 [12:16:26]line НС Возвр.Расхода: 0.00 [12:16:26]line ФД: 178871 [12:16:26]line ФМ: 0000000000871778 [12:16:26]line ФПД: 218190392786436 [12:16:26]written 0, free lines is 4095 [12:16:26]recv_with_timeout no data received [12:16:26]Connected sock=11 [12:16: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 37 37 38 7E 05 00 00 56 3E 76 05 8F 70 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 0A CF C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 5E 04 04 00 60 00 00 00 57 04 04 00 62 00 00 00 AA 04 D6 04 6E 04 04 00 60 00 00 00 69 04 A3 00 6F 04 04 00 60 00 00 00 B1 04 03 00 79 0D CD 70 04 03 00 20 B6 8D 72 04 03 00 59 57 3F 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 92 Write to MH i2c: C7 01 15 00 EF 00 03 20 0A 01 00 21 F6 [12:16:27]03 01 00 00 F7 03 01 00 00 EF 03 Write i2c OK [12:16:27]0A MH_I2C_Read... [12:16:27]00 Read from MH i2c: F6 01 03 01 [12:16:27]00 MH_I2C_Read... [12:16:27]06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 Read from MH i2c: 9A 01 D0 07 00 [12:16:27]MH_I2C_Read... [12:16:27]01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 03 20 01 01 00 00 05 00 F7 00 03 01 00 00 EF 03 0A 00 F6 03 00 01 00 00 17 04 0D F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 4C 00 [12:16:27]00 RasterBufferAndPrint [12:16:27]04 line [12:16:27]7E line [12:16:27]00 line [12:16:27]EE line [12:16:27]03 line [12:16:27]0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 written 0, free lines is 4095 [12:16:27]01 00 01 F3 03 01 00 00 EF 03 0A MH_Cut [12:16:27]00 Write to MH i2c: F6 D1 03 01 01 00 00 27 00 01 F7 01 03 FA 01 00 00 EF 03 0A 00 F6 03 [12:16:28]01 Write i2c OK [12:16:28]00 MH_I2C_Read... [12:16:28]06 F7 03 01 00 00 EF 03 0A 00 F6 Read from MH i2c: 03 D1 01 [12:16:28]00 MH_I2C_Read... [12:16:28]05 Read from MH i2c: D1 01 F7 00 03 [12:16:28]01 MH_I2C_Read... [12:16:28]00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 Read from MH i2c: 7E D1 *** Cut start [12:16:28]01 *** Partial cut [12:16:28]00 *** CUTSNS_PIN = 1 [12:16:28]27 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 01 00 00 F2 03 F9 01 [12:16:28]00 Write to MH i2c: 01 01 *** CUTSNS_PIN = 0 [12:16:28]00 F3 00 03 28 01 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 *** Brake cut motor [12:16:28]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 *** Stop cut motor [12:16:28]01 *** Cut end [12:16:28]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 29 03 [12:16:28]00 Write i2c OK [12:16:28]00 MH_I2C_Read... [12:16:28]EF 03 09 00 F6 03 01 00 05 F7 03 00 Read from MH i2c: 00 01 EF [12:16:28]03 MH_I2C_Read... [12:16:28]09 Read from MH i2c: 00 01 F6 07 03 00 01 00 06 F7 03 00 00 D0 04 [12:16:28]8D MH_I2C_Read... [12:16:28]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 Read from MH i2c: 04 01 00 07 00 00 72 28 04 01 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 00 01 00 00 00 00 FF F3 03 00 00 EE 03 09 00 F2 0F 03 3E 01 [12:16:29]00 process_action close_shift done [12:16:29]01 F3 03 00 00 EF 03 09 00 F6 requested_data is exist [12:16:29]03 produce_requested_data [12:16:29]01 requested_item fd.num is exist - process it [12:16:29]00 SAM_PROTO_GetFieldsCounters [12:16:29]00 F7 03 00 00 EF 03 09 00 wFMCommunicate request_size=4 [12:16:29]F6 MH_SAM_APDU [12:16:29]03 CAPDU: 01 80 00 01 F7 03 00 00 EF 03 09 00 13 F6 00 03 00 01 [12:16:29]00 02 F7 03 00 00 EF 03 09 Write to MH i2c: 00 E2 F6 08 03 00 01 29 00 01 03 80 F7 13 03 00 00 00 00 00 00 A6 [12:16:29]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 Write i2c OK [12:16:29]F6 MH_I2C_Read... [12:16:29]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 Read from MH i2c: 01 E2 F3 03 00 00 EF 03 [12:16:29]09 MH_I2C_Read... [12:16:29]00 F6 03 01 Read from MH i2c: 00 E2 00 62 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:29]00 F7 [12:16:29]03 MH_I2C_Read... [12:16:29]00 00 Read from MH i2c: EF E2 03 62 09 00 00 29 F6 01 03 00 01 5D 00 00 01 B9 F7 03 00 00 EF 03 09 00 F6 04 03 01 01 00 00 01 02 F7 03 00 00 EF 03 09 00 F6 11 03 04 01 10 00 00 03 F7 03 00 00 EF 03 09 00 30 F6 30 03 30 01 30 00 04 F7 03 00 00 EF 03 09 30 00 30 F6 30 03 30 01 30 00 30 05 38 F7 37 03 31 00 37 00 37 EF 38 03 0D 09 00 F6 03 01 00 06 F7 03 04 00 10 00 00 D1 30 04 8D 00 6F 04 04 00 00 00 30 00 30 00 30 B1 30 04 30 00 30 00 30 70 30 04 30 30 39 32 35 36 31 10 04 04 00 B7 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 00 00 72 62 04 00 00 00 00 00 00 19 04 04 75 04 00 00 00 00 00 90 00 37 00 [12:16:29]EE RAPDU: 03 5D 09 00 B9 04 01 00 01 11 04 10 00 00 F2 30 03 30 01 30 00 30 00 30 F3 30 03 30 00 30 00 30 EE 30 03 38 09 37 00 31 F2 37 03 37 01 38 0D 04 10 00 30 30 30 30 00 30 01 F3 30 03 30 00 30 00 30 EF 30 03 30 09 39 32 35 36 31 10 04 04 00 00 B7 F6 BA 03 02 01 00 0E 04 04 00 D7 01 00 00 00 12 00 04 F7 04 03 00 60 00 00 00 5E 04 04 00 00 00 60 EF 00 03 00 09 00 00 57 F6 04 03 04 01 00 00 62 01 00 F7 00 03 00 00 19 00 04 EF 04 03 00 09 00 00 00 F6 00 03 00 01 90 00 00 [12:16:29]wFMCommunicate OK [12:16:29]SAM_PROTO_GetFieldsCounters done [12:16:29]requested_item shift.num is exist - process it [12:16:29]requested_item shift.opened is exist - process it [12:16:29]req_shift_opened [12:16:29]FM_GetShiftState [12:16:29]02 SAM_PROTO_GetShiftState [12:16:29]F7 wFMCommunicate request_size=4 [12:16:30]03 MH_SAM_APDU [12:16:30]00 CAPDU: 80 13 01 00 [12:16:30]Write to MH i2c: E2 08 00 00 EF 2A 03 01 09 80 13 01 00 00 00 00 00 A8 00 [12:16:30]F6 03 01 00 Write i2c OK [12:16:30]03 MH_I2C_Read... [12:16:30]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:30]00 00 EF 03 09 00 F6 03 01 00 06 F7 Read from MH i2c: 03 E2 00 [12:16:30]00 MH_I2C_Read... [12:16:30]10 04 04 00 Read from MH i2c: B7 E2 BA 0E 02 00 00 [12:16:30]11 MH_I2C_Read... [12:16:30]04 10 00 30 30 30 Read from MH i2c: 30 E2 30 0E 30 00 30 30 30 30 38 37 31 37 37 38 2A 35 01 04 00 06 09 00 C6 71 68 DA FE 04 1B C0 8A 00 8E 00 17 00 EB 00 72 B8 [12:16:30]00 00 00 00 00 00 90 00 B3 [12:16:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:16:30]wFMCommunicate OK [12:16:30]SAM_PROTO_GetShiftState done [12:16:30]FM_GetShiftState done [12:16:30]req_shift_opened done [12:16:30]requested_item shift.open_date is exist - process it [12:16:30]req_shift_open_date [12:16:30]FM_GetShiftState [12:16:30]SAM_PROTO_GetShiftState [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 13 01 00 [12:16:30]Write to MH i2c: E2 08 00 2B 01 80 13 01 00 00 00 00 00 A9 [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 0E 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 0E 00 2B 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B4 [12:16:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:16:30]wFMCommunicate OK [12:16:30]SAM_PROTO_GetShiftState done [12:16:30]FM_GetShiftState done [12:16:30]req_shift_open_date done [12:16:30]produce_requested_data done [12:16:30]produce_requested_data return {"fd.num":178871,"shift.num":471,"shift.opened":0,"shift.open_date":0} [12:16:30]process_action_free close_shift [12:16:30]json_value_free [12:16:30]json_value_free done [12:16:30]process_json_proto returns [12:16:30]Send response to host [12:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":178871,"shift.num":471,"shift.opened":0,"shift.open_date":0}}} [12:16:30]free response buf [12:16:30]execute_script done [12:16:30]execute_script returns [12:16:30]free content buf [12:16:30]Sock 7.Close socket [12:16:30]Sock 7.Thread stoped [12:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 13 C2 47 00 5A 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 37 37 38 10 04 04 00 B7 BA 02 00 F4 03 04 00 C2 7A C9 66 B6 04 01 00 00 43 2B 26 DD 18 62 C2 40 [12:16:30]CommunicateWithHost err = 0 [12:16:30]CheckOFDResponse [12:16:30]1017 (14) - 77093643461234 [12:16:30]1041 (16) - 0000000000871778 [12:16:30]1040 (4) - 178871 [12:16:30]1012 (4) - 24.08.2024 06:16 [12:16:30]1206 (1) - 0 [12:16:30]OFD Sender: Remove packet 178871 [12:16:30]ProducePacketName [12:16:30]name=ofd_packets/00178871 [12:16:30]NVStorageDeleteData [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]recv_with_timeout no data received [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:54]recv_with_timeout no data received [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:15]recv_with_timeout no data received [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]ConnectInit Can't connect to host [12:18:36]OFD Sender: No OFD packet to send [12:18:41]ConnectInit Can't connect to host [12:18:41]OFD Sender: No OFD packet to send [12:18:46]ConnectInit Can't connect to host [12:18:46]OFD Sender: No OFD packet to send [12:18:51]ConnectInit Can't connect to host [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]recv_with_timeout no data received [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:54]recv_with_timeout no data received [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:28]recv_with_timeout no data received [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:13]recv_with_timeout no data received [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:47]recv_with_timeout no data received [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:12]recv_with_timeout no data received [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:40]recv_with_timeout no data received [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [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:16]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:10]recv_with_timeout no data received [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [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: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:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41: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:41:55]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:18]recv_with_timeout no data received [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:01]recv_with_timeout no data received [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:35]recv_with_timeout no data received [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:23]recv_with_timeout no data received [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:43]recv_with_timeout no data received [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:11]recv_with_timeout no data received [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:46]recv_with_timeout no data received [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:05]recv_with_timeout no data received [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [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:46]recv_with_timeout no data received [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: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: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:36]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:41]recv_with_timeout no data received [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:52]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:46]recv_with_timeout no data received [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:57]recv_with_timeout no data received [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:44]recv_with_timeout no data received [13:08:48]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:08]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:03]recv_with_timeout no data received [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:16:58]recv_with_timeout no data received [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:22]recv_with_timeout no data received [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:33]recv_with_timeout no data received [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:22]recv_with_timeout no data received [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:34]recv_with_timeout no data received [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:13]recv_with_timeout no data received [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]recv_with_timeout no data received [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]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:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:46]recv_with_timeout no data received [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]recv_with_timeout no data received [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send